"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8058],{78281:(t,e,n)=>{n.r(e),n.d(e,{eventSendFilter:()=>Zi,sentryInitConfig:()=>to});var r=n(10311),s=n.n(r);const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function o(t){return t&&t.Math==Math?t:void 0}const a="object"==typeof globalThis&&o(globalThis)||"object"==typeof window&&o(window)||"object"==typeof self&&o(self)||"object"==typeof n.g&&o(n.g)||function(){return this}()||{};function c(){return a}function u(t,e,n){const r=n||a,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}const d=["debug","info","warn","error","log","assert","trace"],l={};function p(t){if(!("console"in a))return t();const e=a.console,n={},r=Object.keys(l);r.forEach((t=>{const r=l[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const h=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return i?d.forEach((n=>{e[n]=(...e)=>{t&&p((()=>{a.console[n](`Sentry Logger [${n}]:`,...e)}))}})):d.forEach((t=>{e[t]=()=>{}})),e}();function f(){return Date.now()/1e3}const m=function(){const{performance:t}=a;if(!t||!t.now)return f;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let g;const _=(()=>{const{performance:t}=a;if(!t||!t.now)return void(g="none");const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++1&&o+s.length*c+u.length>=l));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(t){return""}}function A(t,e){const n=t,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(P.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&x(s))for(i=s.split(/\s+/),c=0;cq(t,e,n)))}function F(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&B(s,r),t[e]=s}function H(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){i&&h.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function B(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,H(t,"__sentry_original__",e)}catch(t){}}function Y(t){return t.__sentry_original__}function W(t){if(b(t))return{message:t.message,name:t.name,stack:t.stack,...G(t)};if($(t)){const e={type:t.type,target:z(t.target),currentTarget:z(t.currentTarget),...G(t)};return"undefined"!=typeof CustomEvent&&R(t,CustomEvent)&&(e.detail=t.detail),e}return t}function z(t){try{return e=t,"undefined"!=typeof Element&&R(e,Element)?D(t):Object.prototype.toString.call(t)}catch(t){return""}var e}function G(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function J(t){return V(t,new Map)}function V(t,e){if(function(t){if(!I(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=V(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(V(t,e))})),r}return t}const X="baggage",K="sentry-",Q=/^sentry-/;function Z(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[e,n],r)=>{const s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,o=0===r?s:`${t},${s}`;return o.length>8192?(i&&h.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):o}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`sentry-${e}`]=n),t)),{}))}function tt(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}function et(){const t=a,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function nt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function rt(t){const{message:e,event_id:n}=t;if(e)return e;const r=nt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function st(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function it(t,e){const n=nt(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function ot(t){if(t&&t.__sentry_captured__)return!0;try{H(t,"__sentry_captured__",!0)}catch(t){}return!1}function at(t){return Array.isArray(t)?t:[t]}const ct=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ut(t){if(!t)return;const e=t.match(ct);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function dt(t,e){const n=ut(t),r=function(t){if(!x(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>{const n=tt(e);for(const e of Object.keys(n))t[e]=n[e];return t}),{});else{if(!t)return;e=tt(t)}const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(Q)&&(t[e.slice(K.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(e),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||et(),parentSpanId:i||et().substring(16),spanId:et().substring(16),sampled:o,dsc:r||{}}:{traceId:s||et(),spanId:et().substring(16)}}function lt(t=et(),e=et().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function pt(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=gt(t);return J({data:r,op:s,parent_span_id:i,span_id:e,status:o,tags:a,trace_id:n,origin:c})}function ht(t){const{traceId:e,spanId:n}=t.spanContext();return lt(e,n,_t(t))}function ft(t){return"number"==typeof t?mt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?mt(t.getTime()):m()}function mt(t){return t>9999999999?t/1e3:t}function gt(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function _t(t){const{traceFlags:e}=t.spanContext();return Boolean(1&e)}let vt;function yt(t){return vt?vt.get(t):void 0}function bt(t){const e=yt(t);if(!e)return;const n={};for(const[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push(J(r));return n}const St="sentry.source",Tt="sentry.sample_rate",Et="sentry.op",xt="sentry.origin";function wt(t){return t.transaction}var kt;function It(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(t){t.Ok="ok";t.DeadlineExceeded="deadline_exceeded";t.Unauthenticated="unauthenticated";t.PermissionDenied="permission_denied";t.NotFound="not_found";t.ResourceExhausted="resource_exhausted";t.InvalidArgument="invalid_argument";t.Unimplemented="unimplemented";t.Unavailable="unavailable";t.InternalError="internal_error";t.UnknownError="unknown_error";t.Cancelled="cancelled";t.AlreadyExists="already_exists";t.FailedPrecondition="failed_precondition";t.Aborted="aborted";t.OutOfRange="out_of_range";t.DataLoss="data_loss"}(kt||(kt={}));function $t(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=It(e);"unknown_error"!==n&&t.setStatus(n)}class Ct{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Ot{constructor(t={}){this._traceId=t.traceId||et(),this._spanId=t.spanId||et().substring(16),this._startTime=t.startTimestamp||m(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[xt]:t.origin||"manual",[Et]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes["sentry.op"]}set op(t){this.setAttribute(Et,t)}get origin(){return this._attributes["sentry.origin"]}set origin(t){this.setAttribute(xt,t)}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?1:0}}startChild(t){const e=new Ot({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);const n=wt(this);if(e.transaction=n,v&&n){const r=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${gt(e).description||"< unknown name >"}' (${n.spanContext().spanId}).`;h.log(r),this._logMessage=r}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach((e=>this.setAttribute(e,t[e])))}setStatus(t){return this._status=t,this}setHttpStatus(t){return $t(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;const e=wt(this);if(v&&e&&e.spanContext().spanId!==this._spanId){const t=this._logMessage;t&&h.log(t.replace("Starting","Finishing"))}this._endTime=ft(t)}toTraceparent(){return ht(this)}toContext(){return J({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return pt(this)}getSpanJSON(){return J({data:this._getData(),description:this._name,op:this._attributes["sentry.op"],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes["sentry.origin"],_metrics_summary:bt(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;if(n||r)return n&&r?{...t,...e}:n?t:e}}const Rt="production";var Nt;function Pt(t){return new At((e=>{e(t)}))}function Dt(t){return new At(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Nt||(Nt={}));class At{constructor(t){At.prototype.__init.call(this),At.prototype.__init2.call(this),At.prototype.__init3.call(this),At.prototype.__init4.call(this),this._state=Nt.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new At(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new At(((e,n)=>{let r,s;return this.then((e=>{s=!1,r=e,t&&t()}),(e=>{s=!0,r=e,t&&t()})).then((()=>{s?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(Nt.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Nt.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===Nt.PENDING&&(C(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Nt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Nt.RESOLVED&&t[1](this._value),this._state===Nt.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function jt(){return u("globalEventProcessors",(()=>[]))}function Lt(t){jt().push(t)}function Mt(t,e,n,r=0){return new At(((s,i)=>{const o=t[r];if(null===e||"function"!=typeof o)s(e);else{const a=o({...e},n);v&&o.id&&null===a&&h.log(`Event processor "${o.id}" dropped event`),C(a)?a.then((e=>Mt(t,e,n,r+1).then(s))).then(null,i):Mt(t,a,n,r+1).then(s).then(null,i)}}))}function qt(t){const e=m(),n={sid:et(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return J({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&Ut(n,t),n}function Ut(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||m(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:et()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ft(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),Ut(t,n)}const Ht=/\(error: (.*)\)/,Bt=/captureMessage|captureException/;function Yt(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[],s=t.split("\n");for(let t=n;t1024)continue;const i=Ht.test(n)?n.replace(Ht,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){r.push(e);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop();e.reverse(),Bt.test(e[e.length-1].function||"")&&(e.pop(),Bt.test(e[e.length-1].function||"")&&e.pop());return e.slice(0,50).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(r)}}const Wt="";function zt(t){try{return t&&"function"==typeof t&&t.name||Wt}catch(t){return Wt}}function Gt(t,e=100,n=1/0){try{return Vt("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Jt(t,e=3,n=102400){const r=Gt(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?Jt(t,e-1,n):r;var s}function Vt(t,e,r=1/0,s=1/0,i=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t=s){l[t]="[MaxProperties ~]";break}const e=h[t];l[t]=Vt(t,e,u-1,s,i),p++}return a(e),l}function Xt(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||et(),timestamp:e.timestamp||f()},d=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:Rt);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==s&&(t.dist=s);t.message&&(t.message=L(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=L(o.value,i));const a=t.request;a&&a.url&&(a.url=L(a.url,i))}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,d),void 0===e.type&&function(t,e){const n=a._sentryDebugIds;if(!n)return;let r;const s=Kt.get(e);s?r=s:(r=new Map,Kt.set(e,r));const i=Object.keys(n).reduce(((t,s)=>{let i;const o=r.get(s);o?i=o:(i=e(s),r.set(s,i));for(let e=i.length-1;e>=0;e--){const r=i[e];if(r.filename){t[r.filename]=n[s];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=i[t.filename])}))}))}catch(t){}}(u,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new ge;return n.update(e),n}(r,n.captureContext);n.mechanism&&it(u,n.mechanism);const p=s&&s.getEventProcessors?s.getEventProcessors():[],h=function(){me||(me=new ge);return me}().getScopeData();if(i){he(h,i.getScopeData())}if(l){he(h,l.getScopeData())}const m=[...n.attachments||[],...h.attachments];m.length&&(n.attachments=m),pe(u,h);return Mt([...p,...jt(),...h.eventProcessors],u,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof o&&o>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Gt(t.data,e,n)}})))},...t.user&&{user:Gt(t.user,e,n)},...t.contexts&&{contexts:Gt(t.contexts,e,n)},...t.extra&&{extra:Gt(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Gt(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>{const r=gt(t).data;return r&&(t.data=Gt(r,e,n)),t})));return r}(t,o,c):t)))}const Kt=new WeakMap;function Qt(t){if(t)return function(t){return t instanceof ge||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Zt.includes(t)))}(t)?{captureContext:t}:t}const Zt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function te(t,e){return xe().captureException(t,Qt(e))}function ee(t,e){return xe().captureEvent(t,e)}function ne(t,e){xe().addBreadcrumb(t,e)}function re(...t){const e=xe();if(2===t.length){const[n,r]=t;return n?e.withScope((()=>(e.getStackTop().scope=n,r(n)))):e.withScope(r)}return e.withScope(t[0])}function se(){return xe().getClient()}function ie(){return xe().getScope()}function oe(t){const e=se(),n=we(),r=ie(),{release:s,environment:i=Rt}=e&&e.getOptions()||{},{userAgent:o}=a.navigator||{},c=qt({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...t}),u=n.getSession();return u&&"ok"===u.status&&Ut(u,{status:"exited"}),ae(),n.setSession(c),r.setSession(c),c}function ae(){const t=we(),e=ie(),n=e.getSession()||t.getSession();n&&Ft(n),ce(),t.setSession(),e.setSession()}function ce(){const t=we(),e=ie(),n=se(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function ue(t=!1){t?ae():ce()}function de(t,e,n){const r=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=J({environment:r.environment||Rt,release:r.release,user_segment:i,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",o),o}function le(t){const e=se();if(!e)return{};const n=de(gt(t).trace_id||"",e,ie()),r=wt(t);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;null!=i&&(n.sample_rate=`${i}`);const a=gt(r);return o&&"url"!==o&&(n.transaction=a.description),n.sampled=String(_t(r)),e.emit&&e.emit("createDsc",n),n}function pe(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e,c=J(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=J(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const d=J(s);d&&Object.keys(d).length&&(t.user={...d,...t.user});const l=J(i);l&&Object.keys(l).length&&(t.contexts={...l,...t.contexts});o&&(t.level=o);a&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:pt(e),...t.contexts};const n=wt(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:le(e),...t.sdkProcessingMetadata};const r=gt(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,r),function(t,e){t.fingerprint=t.fingerprint?at(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function he(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:p,transactionName:h,span:f}=e;fe(t,"extra",n),fe(t,"tags",r),fe(t,"user",s),fe(t,"contexts",i),fe(t,"sdkProcessingMetadata",a),o&&(t.level=o),h&&(t.transactionName=h),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...p}}function fe(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}let me;class ge{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=_e()}static clone(t){return t?t.clone():new ge}clone(){const t=new ge;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Ut(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof ge){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(I(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=_e(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:f(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:s,_user:i,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:l,_span:p}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:s,user:i,level:o,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:d,transactionName:l,span:p}}applyToEvent(t,e={},n=[]){pe(t,this.getScopeData());return Mt([...n,...jt(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:et();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:et();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:et();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(h.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}function _e(){return{traceId:et(),spanId:et().substring(16)}}const ve="7.110.0",ye=parseFloat(ve),be=100;class Se{constructor(t,e,n,r=ye){let s,i;this._version=r,e?s=e:(s=new ge,s.setClient(t)),n?i=n:(i=new ge,i.setClient(t)),this._stack=[{scope:s}],t&&this.bindClient(t),this._isolationScope=i}isOlderThan(t){return this._version(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:et(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:et(),s=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:et();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=be}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const o={timestamp:f(),...t},a=s?p((()=>s(o,e))):o;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,i))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=Ee(this);try{t(this)}finally{Ee(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return v&&h.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if(v&&!n){this.getClient()?h.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):h.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&Ft(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:s=Rt}=n&&n.getOptions()||{},{userAgent:i}=a.navigator||{},o=qt({release:r,environment:s,user:e.getUser(),...i&&{userAgent:i},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&Ut(c,{status:"exited"}),this.endSession(),e.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=Te().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);v&&h.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Te(){return a.__SENTRY__=a.__SENTRY__||{extensions:{},hub:void 0},a}function Ee(t){const e=Te(),n=$e(e);return Ce(e,t),n}function xe(){const t=Te();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return ke(t)}function we(){return xe().getIsolationScope()}function ke(t=Te()){return Ie(t)&&!$e(t).isOlderThan(ye)||Ce(t,new Se),$e(t)}function Ie(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function $e(t){return u("hub",(()=>new Se),t)}function Ce(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}function Oe(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=se(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Re(t){if(!Oe())return;const e=De(t),n=xe(),r=t.scope?t.scope.getSpan():Ne();if(t.onlyIfParent&&!r)return;const s=(t.scope||ie()).clone();return Pe(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:s})}function Ne(){return ie().getSpan()}function Pe(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:s}){if(!Oe())return;const i=we();let o;if(e&&!r)o=e.startChild(n);else if(e){const r=le(e),{traceId:s,spanId:i}=e.spanContext(),a=_t(e);o=t.startTransaction({traceId:s,parentSpanId:i,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:e,dsc:r,parentSpanId:a,sampled:c}={...i.getPropagationContext(),...s.getPropagationContext()};o=t.startTransaction({traceId:e,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return s.setSpan(o),function(t,e,n){t&&(H(t,je,n),H(t,Ae,e))}(o,s,i),o}function De(t){if(t.startTime){const e={...t};return e.startTimestamp=ft(t.startTime),delete e.startTime,e}return t}const Ae="_sentryScope",je="_sentryIsolationScope";class Le extends Ot{constructor(t,e){super(t),this._contexts={},this._hub=e||xe(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes["sentry.source"]&&{source:this._attributes["sentry.source"]},...this._attributes["sentry.sample_rate"]&&{sampleRate:this._attributes["sentry.sample_rate"]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(St,e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ct(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const e=ft(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){return J({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return le(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(v&&h.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled)return v&&h.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&>(t).timestamp)):[];if(this._trimEnd&&n.length>0){const t=n.map((t=>gt(t).timestamp)).filter(Boolean);this._endTime=t.reduce(((t,e)=>t>e?t:e))}const{scope:r,isolationScope:s}={scope:(i=this)._sentryScope,isolationScope:i._sentryIsolationScope};var i;const{metadata:o}=this,{source:a}=o,c={contexts:{...this._contexts,trace:pt(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:r,capturedSpanIsolationScope:s,...J({dynamicSamplingContext:le(this)})},_metrics_summary:bt(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(v&&h.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),v&&h.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Me={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},qe=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Ue extends Ct{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===gt(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class Fe extends Le{constructor(t,e,n=Me.idleTimeout,r=Me.finalTimeout,s=Me.heartbeatInterval,i=!1,o=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=s,this._onScope=i,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=qe[4],this._autoFinishAllowed=!o,i&&(v&&h.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),e.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=qe[3],this.end())}),this._finalTimeout)}end(t){const e=ft(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){v&&h.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;gt(t).timestamp||(t.setStatus("cancelled"),t.end(e),v&&h.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const{start_timestamp:n,timestamp:r}=gt(t),s=n&&n{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new Ue(e,n,this.spanContext().spanId,t),v&&h.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=qe[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(v&&h.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=qe[1],this.end(t))}),this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),v&&h.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,v&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(v&&h.log(`[Tracing] popActivity ${t}`),delete this.activities[t],v&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=m();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=qe[5],this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(v&&h.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=qe[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){v&&h.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}const He={},Be={};function Ye(t,e){He[t]=He[t]||[],He[t].push(e)}function We(t,e){Be[t]||(e(),Be[t]=!0)}function ze(t,e){const n=t&&He[t];if(n)for(const r of n)try{r(e)}catch(e){i&&h.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${zt(r)}\nError:`,e)}}let Ge=null;function Je(t){const e="error";Ye(e,t),We(e,Ve)}function Ve(){Ge=a.onerror,a.onerror=function(t,e,n,r,s){const i={column:r,error:s,line:n,msg:t,url:e};return ze("error",i),!(!Ge||Ge.__SENTRY_LOADER__)&&Ge.apply(this,arguments)},a.onerror.__SENTRY_INSTRUMENTED__=!0}let Xe=null;function Ke(t){const e="unhandledrejection";Ye(e,t),We(e,Qe)}function Qe(){Xe=a.onunhandledrejection,a.onunhandledrejection=function(t){const e=t;return ze("unhandledrejection",e),!(Xe&&!Xe.__SENTRY_LOADER__)||Xe.apply(this,arguments)},a.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Ze(t){return(t||xe()).getScope().getTransaction()}let tn=!1;function en(){const t=Ze();if(t){const e="internal_error";v&&h.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}function nn(t,e,n){if(!Oe(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setAttribute(Tt,Number(t.sampled)),t;let r;return"function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setAttribute(Tt,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setAttribute(Tt,Number(r))):(r=1,t.setAttribute(Tt,r)),rn(r)?r?(t.sampled=Math.random()1)||(v&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}function sn(){const t=this.getScope().getSpan();return t?{"sentry-trace":ht(t)}:{}}function on(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},s=r.instrumenter||"sentry",i=t.instrumenter||"sentry";s!==i&&(v&&h.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),t.sampled=!1);let o=new Le(t,this);return o=nn(o,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function an(t,e,n,r,s,i,o,a=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let d=new Fe(e,t,n,r,o,s,a);return d=nn(d,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...i}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}function cn(){const t=Te();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=on),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=sn),tn||(tn=!0,Je(en),Ke(en)))}en.tag="sentry_tracingErrorCallback";const un=c();const dn=a;let ln;function pn(t){const e="history";Ye(e,t),We(e,hn)}function hn(){if(!function(){const t=un.chrome,e=t&&t.app&&t.app.runtime,n="history"in un&&!!un.history.pushState&&!!un.history.replaceState;return!e&&n}())return;const t=dn.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=ln,e=String(n);ln=e;ze("history",{from:t,to:e})}return t.apply(this,e)}}dn.onpopstate=function(...e){const n=dn.location.href,r=ln;ln=n;if(ze("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},F(dn.history,"pushState",e),F(dn.history,"replaceState",e)}const fn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,mn=a;const gn=(t,e,n)=>{let r,s;return i=>{e.value>=0&&(i||n)&&(s=e.value-(r||0),(s||void 0===r)&&(r=e.value,e.delta=s,t(e)))}},_n=()=>mn.__WEB_VITALS_POLYFILL__?mn.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=mn.performance.timing,e=mn.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n})()):mn.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],vn=()=>{const t=_n();return t&&t.activationStart||0},yn=(t,e)=>{const n=_n();let r="navigate";return n&&(r=mn.document.prerendering||vn()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},bn=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{e(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},Sn=(t,e)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==mn.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let Tn=-1;const En=()=>(Tn<0&&(Tn="hidden"!==mn.document.visibilityState||mn.document.prerendering?1/0:0,Sn((({timeStamp:t})=>{Tn=t}),!0)),{get firstHiddenTime(){return Tn}});let xn=0,wn=1/0,kn=0;const In=t=>{t.forEach((t=>{t.interactionId&&(wn=Math.min(wn,t.interactionId),kn=Math.max(kn,t.interactionId),xn=kn?(kn-wn)/7+1:0)}))};let $n;const Cn=()=>{"interactionCount"in performance||$n||($n=bn("event",In,{type:"event",buffered:!0,durationThreshold:0}))},On=()=>$n?xn:performance.interactionCount||0,Rn=[],Nn={},Pn=t=>{const e=Rn[Rn.length-1],n=Nn[t.interactionId];if(n||Rn.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Nn[e.id]=e,Rn.push(e)}Rn.sort(((t,e)=>e.latency-t.latency)),Rn.splice(10).forEach((t=>{delete Nn[t.id]}))}},Dn=(t,e)=>{e=e||{},Cn();const n=yn("INP");let r;const s=t=>{t.forEach((t=>{if(t.interactionId&&Pn(t),"first-input"===t.entryType){!Rn.some((e=>e.entries.some((e=>t.duration===e.duration&&t.startTime===e.startTime))))&&Pn(t)}}));const e=(()=>{const t=Math.min(Rn.length-1,Math.floor(On()/50));return Rn[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())},i=bn("event",s,{durationThreshold:e.durationThreshold||40});r=gn(t,n,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Sn((()=>{s(i.takeRecords()),n.value<0&&On()>0&&(n.value=0,n.entries=[]),r(!0)})))},An={},jn=t=>{mn.document&&(mn.document.prerendering?addEventListener("prerenderingchange",(()=>jn(t)),!0):"complete"!==mn.document.readyState?addEventListener("load",(()=>jn(t)),!0):setTimeout(t,0))},Ln={},Mn={};let qn,Un,Fn,Hn,Bn;function Yn(t,e){return Qn(t,e),Mn[t]||(!function(t){const e={};"event"===t&&(e.durationThreshold=0);bn(t,(e=>{Wn(t,{entries:e})}),e)}(t),Mn[t]=!0),Zn(t,e)}function Wn(t,e){const n=Ln[t];if(n&&n.length)for(const r of n)try{r(e)}catch(e){fn&&h.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${zt(r)}\nError:`,e)}}function zn(){return(t=>{const e=yn("CLS",0);let n,r=0,s=[];const i=t=>{t.forEach((t=>{if(!t.hadRecentInput){const i=s[0],o=s[s.length-1];r&&0!==s.length&&t.startTime-o.startTime<1e3&&t.startTime-i.startTime<5e3?(r+=t.value,s.push(t)):(r=t.value,s=[t]),r>e.value&&(e.value=r,e.entries=s,n&&n())}}))},o=bn("layout-shift",i);if(o){n=gn(t,e);const r=()=>{i(o.takeRecords()),n(!0)};return Sn(r),r}})((t=>{Wn("cls",{metric:t}),qn=t}))}function Gn(){return(t=>{const e=En(),n=yn("FID");let r;const s=t=>{t.startTime{t.forEach(s)},o=bn("first-input",i);r=gn(t,n),o&&Sn((()=>{i(o.takeRecords()),o.disconnect()}),!0)})((t=>{Wn("fid",{metric:t}),Un=t}))}function Jn(){return(t=>{const e=En(),n=yn("LCP");let r;const s=t=>{const s=t[t.length-1];if(s){const t=Math.max(s.startTime-vn(),0);t{An[n.id]||(s(i.takeRecords()),i.disconnect(),An[n.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{addEventListener(t,e,{once:!0,capture:!0})})),Sn(e,!0),e}})((t=>{Wn("lcp",{metric:t}),Fn=t}))}function Vn(){return((t,e)=>{e=e||{};const n=yn("TTFB"),r=gn(t,n,e.reportAllChanges);jn((()=>{const t=_n();if(t){if(n.value=Math.max(t.responseStart-vn(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}}))})((t=>{Wn("ttfb",{metric:t}),Hn=t}))}function Xn(){return Dn((t=>{Wn("inp",{metric:t}),Bn=t}))}function Kn(t,e,n,r,s=!1){let i;return Qn(t,e),Mn[t]||(i=n(),Mn[t]=!0),r&&e({metric:r}),Zn(t,e,s?i:void 0)}function Qn(t,e){Ln[t]=Ln[t]||[],Ln[t].push(e)}function Zn(t,e,n){return()=>{n&&n();const r=Ln[t];if(!r)return;const s=r.indexOf(e);-1!==s&&r.splice(s,1)}}const tr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function er(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function nr(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function rr(t){const e="string"==typeof t?function(t){const e=tr.exec(t);if(!e)return void p((()=>{}));const[n,r,s="",i,o="",a]=e.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return nr({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}(t):nr(t);if(e&&function(t){if(!i)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(h.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(h.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}function sr(t,e=[]){return[t,e]}function ir(t,e){const[n,r]=t;return[n,[...r,e]]}function or(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function ar(t,e){return(e||new TextEncoder).encode(t)}function cr(t,e){const[n,r]=t;let s=JSON.stringify(n);function i(t){"string"==typeof s?s="string"==typeof t?s+t:[ar(s,e),t]:s.push("string"==typeof t?ar(t,e):t)}for(const t of r){const[e,n]=t;if(i(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(Gt(n))}i(t)}}return"string"==typeof s?s:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(s)}function ur(t,e){const n="string"==typeof t.data?ar(t.data,e):t.data;return[J({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const dr={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function lr(t){return dr[t]}function pr(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function hr(t){return[{type:"span"},t]}function fr(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function mr(t){return"number"==typeof t&&isFinite(t)}function gr(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function _r(t){return t/1e3}function vr(){return mn&&mn.addEventListener&&mn.performance}let yr,br,Sr=0,Tr={};function Er(){const t=vr();if(t&&_){t.mark&&mn.performance.mark("sentry-tracing-init");const e=Kn("fid",(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=_r(_),r=_r(e.startTime);fn&&h.log("[Measurements] Adding FID"),Tr.fid={value:t.value,unit:"millisecond"},Tr["mark.fid"]={value:n+r,unit:"second"}}),Gn,Un),n=function(t,e=!1){return Kn("cls",t,zn,qn,e)}((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(fn&&h.log("[Measurements] Adding CLS"),Tr.cls={value:t.value,unit:""},br=e)}),!0),r=function(t,e=!1){return Kn("lcp",t,Jn,Fn,e)}((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(fn&&h.log("[Measurements] Adding LCP"),Tr.lcp={value:t.value,unit:"millisecond"},yr=e)}),!0),s=function(t){return Kn("ttfb",t,Vn,Hn)}((({metric:t})=>{t.entries[t.entries.length-1]&&(fn&&h.log("[Measurements] Adding TTFB"),Tr.ttfb={value:t.value,unit:"millisecond"})}));return()=>{e(),n(),r(),s()}}return()=>{}}function xr(t,e){if(vr()&&_){const n=function(t,e){return n=({metric:n})=>{if(void 0===n.value)return;const r=n.entries.find((t=>t.duration===n.value&&void 0!==wr[t.name])),s=se();if(!r||!s)return;const i=wr[r.name],o=s.getOptions(),a=_r(_+r.startTime),c=_r(n.value),u=void 0!==r.interactionId?t[r.interactionId]:void 0;if(void 0===u)return;const{routeName:d,parentContext:l,activeTransaction:p,user:f,replayId:m}=u,g=void 0!==f?f.email||f.id||f.ip_address:void 0,v=void 0!==p?p.getProfileId():void 0,y=new Ot({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:D(r.target),attributes:{release:o.release,environment:o.environment,transaction:d,...void 0!==g&&""!==g?{user:g}:{},...void 0!==v?{profile_id:v}:{},...void 0!==m?{replay_id:m}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),b=function(t,e,n){if(!Oe(e))return!1;let r;return r=void 0!==t&&"function"==typeof e.tracesSampler?e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:mn.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1,rn(r)?!0===r?n:!1===r?0:r*n:(fn&&h.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(l,o,e);if(b&&Math.random(){fn&&h.error("Error while sending interaction:",t)}))}},Kn("inp",n,Xn,Bn);var n}(t,e);return()=>{n()}}return()=>{}}const wr={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function kr(t){const e=vr();if(!e||!mn.performance.getEntries||!_)return;fn&&h.log("[Tracing] Adding & adjusting spans using Performance API");const n=_r(_),r=e.getEntries(),{op:s,start_timestamp:i}=gt(t);if(r.slice(Sr).forEach((e=>{const r=_r(e.startTime),s=_r(e.duration);if(!("navigation"===t.op&&i&&n+r{Ir(t,e,r,n)})),Ir(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Ir(t,e,"fetch",n,"cache","domainLookupStart"),Ir(t,e,"domainLookup",n,"DNS"),function(t,e,n){e.responseEnd&&(gr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+_r(e.requestStart),endTimestamp:n+_r(e.responseEnd)}),gr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+_r(e.responseStart),endTimestamp:n+_r(e.responseEnd)}))}(t,e,n)}(t,e,n);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,s){const i=s+n,o=i+r;gr(t,{description:e.name,endTimestamp:o,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i})}(t,e,r,s,n);const i=En(),o=e.startTime{if(!Tr[t]||!i||n>=i)return;const e=Tr[t].value,r=n+_r(e),s=Math.abs(1e3*(r-i)),o=s-e;fn&&h.log(`[Measurements] Normalized ${t} from ${e} to ${s} (${o})`),Tr[t].value=s}));const e=Tr["mark.fid"];e&&Tr.fid&&(gr(t,{description:"first input delay",endTimestamp:e.value+_r(Tr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete Tr["mark.fid"]),"fcp"in Tr||delete Tr.cls,Object.keys(Tr).forEach((t=>{!function(t,e,n){const r=Ze();r&&r.setMeasurement(t,e,n)}(t,Tr[t].value,Tr[t].unit)})),function(t){yr&&(fn&&h.log("[Measurements] Adding LCP Data"),yr.element&&t.setTag("lcp.element",D(yr.element)),yr.id&&t.setTag("lcp.id",yr.id),yr.url&&t.setTag("lcp.url",yr.url.trim().slice(0,200)),t.setTag("lcp.size",yr.size));br&&br.sources&&(fn&&h.log("[Measurements] Adding CLS Data"),br.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,D(e.node)))))}(t)}yr=void 0,br=void 0,Tr={}}function Ir(t,e,n,r,s,i){const o=i?e[i]:e[`${n}End`],a=e[`${n}Start`];a&&o&&gr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+_r(a),endTimestamp:r+_r(o)})}function $r(t,e,n,r){const s=e[n];null!=s&&s<2147483647&&(t[r]=s)}const Cr=c();function Or(){if(!("fetch"in Cr))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Rr(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Nr(t){const e="fetch";Ye(e,t),We(e,Pr)}function Pr(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Or())return!1;if(Rr(Cr.fetch))return!0;let t=!1;const e=Cr.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Rr(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){i&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&F(a,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Ar(e),method:Dr(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Ar(e),method:Dr(e,"method")?String(e.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ze("fetch",{...s}),t.apply(a,e).then((t=>(ze("fetch",{...s,endTimestamp:Date.now(),response:t}),t)),(t=>{throw ze("fetch",{...s,endTimestamp:Date.now(),error:t}),t}))}}))}function Dr(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Ar(t){return"string"==typeof t?t:t?Dr(t,"url")?t.url:t.toString?t.toString():"":""}const jr=a;function Lr(t){Ye("xhr",t),We("xhr",Mr)}function Mr(){if(!jr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;F(t,"open",(function(t){return function(...e){const n=Date.now(),r=x(e[0])?e[0].toUpperCase():void 0,s=function(t){if(x(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!r||!s)return t.apply(this,e);this.__sentry_xhr_v3__={method:r,url:s,request_headers:{}},"POST"===r&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this.__sentry_xhr_v3__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}ze("xhr",{args:[r,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?F(this,"onreadystatechange",(function(t){return function(...e){return i(),t.apply(this,e)}})):this.addEventListener("readystatechange",i),F(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,s=this.__sentry_xhr_v3__;return s&&x(n)&&x(r)&&(s.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),F(t,"send",(function(t){return function(...e){const n=this.__sentry_xhr_v3__;if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);return ze("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}function qr(t,e,n,r,s="auto.http.browser"){if(!Oe()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const e=t.fetchData.__span;if(!e)return;const n=r[e];if(n){if(t.response){$t(n,t.response.status);const e=t.response&&t.response.headers&&t.response.headers.get("content-length");if(e){const t=parseInt(e);t>0&&n.setAttribute("http.response_content_length",t)}}else t.error&&n.setStatus("internal_error");n.end(),delete r[e]}return}const o=ie(),a=se(),{method:c,url:u}=t.fetchData,d=i?Re({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,[xt]:s},op:"http.client"}):void 0;if(d&&(t.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(t.fetchData.url)&&a){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,r,s){const i=s||n.getSpan(),o=we(),{traceId:a,spanId:c,sampled:u,dsc:d}={...o.getPropagationContext(),...n.getPropagationContext()},l=i?ht(i):lt(a,c,u),p=Z(d||(i?le(i):de(a,e,n))),h=r.headers||("undefined"!=typeof Request&&R(t,Request)?t.headers:void 0);if(h){if("undefined"!=typeof Headers&&R(h,Headers)){const t=new Headers(h);return t.append("sentry-trace",l),p&&t.append(X,p),t}if(Array.isArray(h)){const t=[...h,["sentry-trace",l]];return p&&t.push([X,p]),t}{const t="baggage"in h?h.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),p&&e.push(p),{...h,"sentry-trace":l,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":l,baggage:p}}(e,a,o,n,d)}return d}const Ur=["localhost",/^\/(?!\/)/],Fr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Ur,tracePropagationTargets:Ur};function Hr(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o}={traceFetch:Fr.traceFetch,traceXHR:Fr.traceXHR,...t},a="function"==typeof i?i:t=>!0,c=t=>function(t,e){return U(t,e||Ur)}(t,r||s),u={};e&&Nr((t=>{const e=qr(t,a,c,u);o&&e&&Br(e)})),n&&Lr((t=>{const e=function(t,e,n,r){const s=t.xhr,i=s&&s.__sentry_xhr_v3__;if(!Oe()||!s||s.__sentry_own_request__||!i)return;const o=e(i.url);if(t.endTimestamp&&o){const t=s.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==i.status_code&&($t(e,i.status_code),e.end(),delete r[t]))}const a=ie(),c=we(),u=o?Re({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,url:i.url,[xt]:"auto.http.browser"},op:"http.client"}):void 0;u&&(s.__sentry_xhr_span_id__=u.spanContext().spanId,r[s.__sentry_xhr_span_id__]=u);const d=se();if(s.setRequestHeader&&n(i.url)&&d){const{traceId:t,spanId:e,sampled:n,dsc:r}={...c.getPropagationContext(),...a.getPropagationContext()};!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(X,n)}catch(t){}}(s,u?ht(u):lt(t,e,n),Z(r||(u?le(u):de(t,d,a))))}return u}(t,a,c,u);o&&e&&Br(e)}))}function Br(t){const{url:e}=gt(t).data||{};if(!e||"string"!=typeof e)return;const n=Yn("resource",(({entries:r})=>{r.forEach((r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){(function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(const s of t){if("/"===s){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=s}r===t&&(e=r);return{name:e,version:n}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!_)return r;return[...r,["http.request.redirect_start",Yr(t.redirectStart)],["http.request.fetch_start",Yr(t.fetchStart)],["http.request.domain_lookup_start",Yr(t.domainLookupStart)],["http.request.domain_lookup_end",Yr(t.domainLookupEnd)],["http.request.connect_start",Yr(t.connectStart)],["http.request.secure_connection_start",Yr(t.secureConnectionStart)],["http.request.connection_end",Yr(t.connectEnd)],["http.request.request_start",Yr(t.requestStart)],["http.request.response_start",Yr(t.responseStart)],["http.request.response_end",Yr(t.responseEnd)]]})(r).forEach((e=>t.setAttribute(...e))),setTimeout(n)}}))}))}function Yr(t=0){return((_||performance.timeOrigin)+t)/1e3}const Wr={...Me,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Fr},zr=(t={})=>{const e=!!fn&&!(!t.tracePropagationTargets&&!t.tracingOrigins);cn(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const n={...Wr,...t},r=Er(),s={};n.enableInp&&xr(s,n.interactionsSampleRate),n.enableLongTask&&Yn("longtask",(({entries:t})=>{for(const e of t){const t=Ze();if(!t)return;const n=_r(_+e.startTime),r=_r(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),n._experiments.enableInteractions&&Yn("event",(({entries:t})=>{for(const e of t){const t=Ze();if(!t)return;if("click"===e.name){const n=_r(_+e.startTime),r=_r(e.duration),s={description:D(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},i=j(e.target);i&&(s.attributes={"ui.component_name":i}),t.startChild(s)}}}));const i={name:void 0,context:void 0};function o(t){const e=xe(),{beforeStartSpan:s,idleTimeout:o,finalTimeout:a,heartbeatInterval:c}=n,u="pageload"===t.op;let d;if(u){const e=u?Jr("sentry-trace"):"",n=u?Jr("baggage"):void 0,{traceId:r,dsc:s,parentSpanId:i,sampled:o}=dt(e,n);d={traceId:r,parentSpanId:i,parentSampled:o,...t,metadata:{...t.metadata,dynamicSamplingContext:s},trimEnd:!0}}else d={trimEnd:!0,...t};const l=s?s(d):d;l.metadata=l.name!==d.name?{...l.metadata,source:"custom"}:l.metadata,i.name=l.name,i.context=l,!1===l.sampled&&fn&&h.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),fn&&h.log(`[Tracing] Starting ${l.op} transaction on scope`);const{location:p}=mn,f=an(e,l,o,a,!0,{location:p},c,u);return u&&mn.document&&(mn.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(mn.document.readyState)&&f.sendAutoFinishSignal()})),["interactive","complete"].includes(mn.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback((t=>{r(),kr(t)})),f}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(t){const r=t.getOptions(),{markBackgroundSpan:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:l,_experiments:p}=n,f=r&&r.tracePropagationTargets,m=f||n.tracePropagationTargets;let g;fn&&e&&f&&h.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let v=mn.location&&mn.location.href;if(t.on&&(t.on("startNavigationSpan",(t=>{g&&(fn&&h.log(`[Tracing] Finishing current transaction with op: ${gt(g).op}`),g.end()),g=o({op:"navigation",...t})})),t.on("startPageLoadSpan",(t=>{g&&(fn&&h.log(`[Tracing] Finishing current transaction with op: ${gt(g).op}`),g.end()),g=o({op:"pageload",...t})}))),n.instrumentPageLoad&&t.emit&&mn.location){const e={name:mn.location.pathname,startTimestamp:_?_/1e3:void 0,origin:"auto.pageload.browser",attributes:{[St]:"url"}};!function(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);const n=Ne();n&>(n).op}(t,e)}n.instrumentNavigation&&t.emit&&mn.location&&pn((({to:e,from:n})=>{if(void 0===n&&v&&-1!==v.indexOf(e))v=void 0;else if(n!==e){v=void 0;const e={name:mn.location.pathname,origin:"auto.navigation.browser",attributes:{[St]:"url"}};Gr(t,e)}})),a&&(mn&&mn.document?mn.document.addEventListener("visibilitychange",(()=>{const t=Ze();if(mn.document.hidden&&t){const e="cancelled",{op:n,status:r}=gt(t);fn&&h.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}})):fn&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&function(t,e){let n;const r=()=>{const{idleTimeout:r,finalTimeout:s,heartbeatInterval:i}=t,o="ui.action.click",a=Ze();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(fn&&h.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name)return void(fn&&h.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const{location:c}=mn,u={name:e.name,op:o,trimEnd:!0,data:{[St]:e.context?Vr(e.context):"url"}};n=an(xe(),u,r,s,!0,{location:c},i)};["click"].forEach((t=>{addEventListener(t,r,{once:!1,capture:!0})}))}(n,i),n.enableInp&&function(t,e){const n=({entries:n})=>{const r=se(),s=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,i=void 0!==s?s.getReplayId():void 0,o=Ze(),a=ie(),c=void 0!==a?a.getUser():void 0;n.forEach((n=>{if(function(t){return"duration"in t}(n)){const r=n.interactionId;if(void 0===r)return;const s=t[r],a=n.duration,u=n.startTime,d=Object.keys(t),l=d.length>0?d.reduce(((e,n)=>t[e].durationt[e])).some((t=>t.duration===a&&t.startTime===u)))return}if(!r)return;if(s)s.duration=Math.max(s.duration,a);else if(d.length<10||void 0===l||a>t[l].duration){const n=e.name,s=e.context;n&&s&&(l&&Object.keys(t).length>=10&&delete t[l],t[r]={routeName:n,duration:a,parentContext:s,user:c,activeTransaction:o,replayId:i,startTime:u})}}}))};Yn("event",n),Yn("first-input",n)}(s,i),Hr({traceFetch:c,traceXHR:u,tracePropagationTargets:m,shouldCreateSpanForRequest:d,enableHTTPTimings:l})},options:n}};function Gr(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);const n=Ne();return"navigation"===(n&>(n).op)?n:void 0}function Jr(t){const e=(n=`meta[name=${t}]`,P.document&&P.document.querySelector?P.document.querySelector(n):null);var n;return e?e.getAttribute("content"):void 0}function Vr(t){const e=t.attributes&&t.attributes["sentry.source"],n=t.data&&t.data["sentry.source"],r=t.metadata&&t.metadata.source;return e||n||r}const Xr=["activate","mount","update"],Kr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Qr=/(?:^|[-_])(\w)/g,Zr="",ts=(t,e)=>{if(!t)return Zr;if(t.$root===t)return"";if(!t.$options)return Zr;const n=t.$options;let r=n.name||n._componentTag;const s=n.__file;if(!r&&s){const t=s.match(/([^/\\]+)\.vue$/);t&&(r=t[1])}return(r?`<${i=r,i.replace(Qr,(t=>t.toUpperCase())).replace(/[-_]/g,"")}>`:Zr)+(s&&!1!==e?` at ${s}`:"");var i},es={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};const ns=t=>{const e=(t.hooks||[]).concat(Xr).filter(((t,e,n)=>n.indexOf(t)===e)),n={};for(const r of e){const e=es[r];if(e)for(const s of e)n[s]=function(){const n=this.$root===this;if(n){Ne()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||Re({name:"Application Render",op:"ui.vue.render",origin:"auto.ui.vue"}))}const i=ts(this,!1),o=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(i)>-1:t.trackComponents;var a,c,u;if(n||o)if(this.$_sentrySpans=this.$_sentrySpans||{},s==e[0]){if(this.$root&&this.$root.$_sentryRootSpan||Ne()){const t=this.$_sentrySpans[r];t&&t.end(),this.$_sentrySpans[r]=Re({name:`Vue <${i}>`,op:`ui.vue.${r}`,origin:"auto.ui.vue"})}}else{const e=this.$_sentrySpans[r];if(!e)return;e.end(),a=this,c=m(),u=t.timeout,a.$_sentryRootSpanTimer&&clearTimeout(a.$_sentryRootSpanTimer),a.$_sentryRootSpanTimer=setTimeout((()=>{a.$root&&a.$root.$_sentryRootSpan&&(a.$root.$_sentryRootSpan.end(c),a.$root.$_sentryRootSpan=void 0)}),u)}};else Kr&&h.warn(`Unknown hook: ${r}`)}return n};function rs(t,e,n){t.onError((t=>te(t,{mechanism:{handled:!1}}))),t.beforeEach(((t,r,s)=>{const i=null==r.name&&0===r.matched.length,o={[xt]:"auto.navigation.vue"};for(const e of Object.keys(t.params))o[`params.${e}`]=t.params[e];for(const e of Object.keys(t.query)){const n=t.query[e];n&&(o[`query.${e}`]=n)}let a=t.path,c="url";if(t.name&&"path"!==e.routeLabel?(a=t.name.toString(),c="custom"):t.matched[0]&&t.matched[0].path&&(a=t.matched[0].path,c="route"),e.instrumentPageLoad&&i){const t=ie().getTransaction();if(t){"custom"!==(gt(t).data||{})["sentry.source"]&&(t.updateName(a),t.setAttribute(St,c)),t.setAttributes({...o,[xt]:"auto.pageload.vue"})}}e.instrumentNavigation&&!i&&(o["sentry.source"]=c,n({name:a,op:"navigation",attributes:o})),s&&s()}))}const ss=[];function is(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?at(n(e)):e;const s=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(r),i=function(t,e){for(let n=0;n"Debug"===t.name));if(-1!==i){const[t]=s.splice(i,1);s.push(t)}return s}function os(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function as(t,e,n){if(n[e.name])v&&h.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===ss.indexOf(e.name)&&(e.setupOnce(Lt,xe),ss.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if(t.addEventProcessor&&"function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}v&&h.log(`Integration installed: ${e.name}`)}}function cs(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}const us=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ds=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ls="InboundFilters",ps=(t={})=>({name:ls,setupOnce(){},processEvent(e,n,r){const s=r.getOptions(),i=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:us],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:ds],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,s);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return v&&h.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${rt(t)}`),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(t){}n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`));v&&0===e.length&&h.error(`Could not extract message for event ${rt(t)}`);return e}(t).some((t=>U(t,e)))}(t,e.ignoreErrors))return v&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${rt(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&U(n,e)}(t,e.ignoreTransactions))return v&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${rt(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=hs(t);return!!n&&U(n,e)}(t,e.denyUrls))return v&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${rt(t)}.\nUrl: ${hs(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=hs(t);return!n||U(n,e)}(t,e.allowUrls))return v&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${rt(t)}.\nUrl: ${hs(t)}`),!0;return!1}(e,i)?null:e}});cs(ls,ps);function hs(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return v&&h.error(`Cannot extract url for event ${rt(t)}`),null}}let fs;const ms="FunctionToString",gs=new WeakMap,_s=()=>({name:ms,setupOnce(){fs=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Y(this),n=gs.has(se())&&void 0!==e?e:this;return fs.apply(n,t)}}catch(t){}},setup(t){gs.set(t,!0)}});cs(ms,_s);function vs(t,e){!0===e.debug&&(v?h.enable():p((()=>{})));ie().update(e.initialScope);const n=new t(e);!function(t){const e=xe().getStackTop();e.client=t,e.scope.setClient(t)}(n),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(n)}class ys extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}function bs(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Ss(t,e){return n={sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function Ts(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${bs(t)}${t.projectId}/envelope/`}(t)}?${Ss(t,r)}`}function Es(t,e,n,r){const s=pr(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const o=function(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:er(r)},...s&&{trace:J({...s})}}}(t,s,r,e);delete t.sdkProcessingMetadata;return sr(o,[[{type:i},t]])}function xs(t,e,n,r){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(s.dsn=er(e));const i=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return sr(s,[i])}const ws="Not capturing exception because it's already been captured.";function ks(t){return void 0===t.type}function Is(t){return"transaction"===t.type}const $s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Cs(t,e){const n=Rs(t,e),r={type:e&&e.name,value:Ps(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Os(t,e){return{exception:{values:[Cs(t,e)]}}}function Rs(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Ns.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const Ns=/Minified React error #\d+;/i;function Ps(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Ds(t,e,n,r,s){let i;if(T(e)&&e.error){return Os(t,e.error)}if(E(e)||S(e,"DOMException")){const s=e;if("stack"in e)i=Os(t,e);else{const e=s.name||(E(s)?"DOMError":"DOMException"),o=s.message?`${e}: ${s.message}`:e;i=As(t,o,n,r),st(i,o)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}if(b(e))return Os(t,e);if(I(e)||$(e)){return i=function(t,e,n,r){const s=se(),i=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:$(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:js(e,{isUnhandledRejection:r})}]},extra:{__serialized__:Jt(e,i)}};if(n){const e=Rs(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,s),it(i,{synthetic:!0}),i}return i=As(t,e,n,r),st(i,`${e}`,void 0),it(i,{synthetic:!0}),i}function As(t,e,n,r){const s={};if(r&&n){const r=Rs(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}if(w(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function js(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(W(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return L(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:L(r,e)}return""}(t),r=e?"promise rejection":"exception";if(T(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if($(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const Ls=a;let Ms=0;function qs(){return Ms>0}function Us(){Ms++,setTimeout((()=>{Ms--}))}function Fs(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(Y(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=r.map((t=>Fs(t,e)));return t.apply(this,s)}catch(t){throw Us(),re((n=>{n.addEventProcessor((t=>(e.mechanism&&(st(t,void 0,void 0),it(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),te(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}B(r,t),H(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}class Hs extends class{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=rr(t.dsn):v&&h.warn("No DSN provided, client will not send events."),this._dsn){const e=Ts(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(ot(t))return void(v&&h.log(ws));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let s=n&&n.event_id;const i=w(t)?t:String(t),o=k(t)?this.eventFromMessage(i,e,n):this.eventFromException(t,n);return this._process(o.then((t=>this._captureEvent(t,n,r))).then((t=>{s=t}))),s}captureEvent(t,e,n){if(e&&e.originalException&&ot(e.originalException))return void(v&&h.log(ws));let r=e&&e.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,s||n).then((t=>{r=t}))),r}captureSession(t){"string"!=typeof t.release?v&&h.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Ut(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):Pt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return v&&h.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];as(this,t,this._integrations),e||os(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=Es(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=ir(n,ur(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,r){const s=pr(n);return sr({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:er(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;v&&h.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(t){v&&h.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const e=xs(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&as(t,e,n)})),n}(this,t),os(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1;const s=e.exception&&e.exception.values;if(s){r=!0;for(const t of s){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const i="ok"===t.status;(i&&0===t.errors||i&&n)&&(Ut(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new At((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=we()){const s=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),this.emit("preprocessEvent",t,e),Xt(s,t,e,n,this,r).then((t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&e){const{traceId:r,spanId:s,parentSpanId:i,dsc:o}=e;t.contexts={trace:{trace_id:r,span_id:s,parent_span_id:i},...t.contexts};const a=o||de(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(v){const e=t;"log"===e.logLevel?h.log(e.message):h.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,i=Is(t),o=ks(t),a=t.type||"error",c=`before send for type \`${a}\``;if(o&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",t),Dt(new ys(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const u="replay_event"===a?"replay":a,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new ys("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const s=function(t,e,n){const{beforeSend:r,beforeSendTransaction:s}=t;if(ks(e)&&r)return r(e,n);if(Is(e)&&s)return s(e,n);return e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(C(t))return t.then((t=>{if(!I(t)&&null!==t)throw new ys(n);return t}),(t=>{throw new ys(`${e} rejected with ${t}`)}));if(!I(t)&&null!==t)throw new ys(n);return t}(s,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,t),new ys(`${c} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!i&&s&&this._updateSessionFromEvent(s,r);const o=r.transaction_info;if(i&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof ys)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new ys(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(t=>{v&&h.error("Error while sending event:",t)}));v&&h.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}{constructor(t){!function(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:ve}))),version:ve}),t._metadata=s}(t,"browser",["browser"],Ls.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Ls.document&&Ls.document.addEventListener("visibilitychange",(()=>{"hidden"===Ls.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const s=Ds(t,e,n&&n.syntheticException||void 0,r);return it(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Pt(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const i=As(t,e,r&&r.syntheticException||void 0,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Pt(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void($s&&h.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:er(r)}},i=function(t){return[{type:"user_report"},t]}(t);return sr(s,[i])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void($s&&h.log("No outcomes to send"));if(!this._dsn)return void($s&&h.log("No dsn provided, will not send outcomes"));$s&&h.log("Sending outcomes:",t);const e=(n=t,sr((r=this._options.tunnel&&er(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:s||f(),discarded_events:n}]]));var n,r,s;this._sendEnvelope(e)}}function Bs(){"console"in a&&d.forEach((function(t){t in a.console&&F(a.console,t,(function(e){return l[t]=e,function(...e){ze("console",{args:e,level:t});const n=l[t];n&&n.apply(a.console,e)}}))}))}const Ys=a;let Ws,zs,Gs;function Js(){if(!Ys.document)return;const t=ze.bind(null,"dom"),e=Vs(t,!0);Ys.document.addEventListener("click",e,!1),Ys.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Ys[e]&&Ys[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(F(n,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){const r=Vs(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch(t){}return e.call(this,n,r,s)}})),F(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},i=s[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete s[e]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function Vs(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;H(n,"_sentryCaptured",!0),r&&!r._sentryId&&H(r,"_sentryId",et());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==zs)return!1;try{if(!t.target||t.target._sentryId!==Gs)return!1}catch(t){}return!0}(n)){t({event:n,name:s,global:e}),zs=n.type,Gs=r?r._sentryId:void 0}clearTimeout(Ws),Ws=Ys.setTimeout((()=>{Gs=void 0,zs=void 0}),1e3)}}const Xs=["fatal","error","warning","log","info","debug"];function Ks(t){return"warn"===t?"warning":Xs.includes(t)?t:"log"}const Qs=1024,Zs="Breadcrumbs",ti=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Zs,setupOnce(){},setup(t){var n;e.console&&function(t){const e="console";Ye(e,t),We(e,Bs)}(function(t){return function(e){if(se()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Ks(e.level),message:M(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${M(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}ne(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(se()!==t)return;let r,s,i="object"==typeof e?e.serializeAttribute:void 0,o="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>Qs&&($s&&h.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=Qs),"string"==typeof i&&(i=[i]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=D(e,{keyAttrs:i,maxStringLength:o}),s=j(e)}catch(t){r=""}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),ne(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Ye("dom",n),We("dom",Js)),e.xhr&&Lr(function(t){return function(e){if(se()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr.__sentry_xhr_v3__;if(!n||!r||!s)return;const{method:i,url:o,status_code:a,body:c}=s;ne({category:"xhr",data:{method:i,url:o,status_code:a},type:"http"},{xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(t)),e.fetch&&Nr(function(t){return function(e){if(se()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){ne({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r})}else{const t=e.response;ne({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:r})}}}(t)),e.history&&pn(function(t){return function(e){if(se()!==t)return;let n=e.from,r=e.to;const s=fr(Ls.location.href);let i=n?fr(n):void 0;const o=fr(r);i&&i.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),ne({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(e){se()===t&&ne({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:rt(e)},{event:e})}}(t))}}};cs(Zs,ti);const ei="Dedupe",ni=()=>{let t;return{name:ei,setupOnce(){},processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!si(t,e))return!1;if(!ri(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=ii(e),r=ii(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!si(t,e))return!1;if(!ri(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return $s&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};cs(ei,ni);function ri(t,e){let n=oi(t),r=oi(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let t=0;t{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:ai,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){Je((e=>{const{stackParser:n,attachStacktrace:r}=li();if(se()!==t||qs())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=void 0===c&&x(s)?function(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=T(t)?t.message:t,o="Error";const a=i.match(s);a&&(o=a[1],i=a[2]);return ui({exception:{values:[{type:o,value:i}]}},e,n,r)}(s,i,o,a):ui(Ds(n,c||s,void 0,r,!1),i,o,a);u.level="error",ee(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(t),di("onerror")),e.onunhandledrejection&&(!function(t){Ke((e=>{const{stackParser:n,attachStacktrace:r}=li();if(se()!==t||qs())return;const s=function(t){if(k(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return t}(e),i=k(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Ds(n,s,void 0,r,!0);i.level="error",ee(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),di("onunhandledrejection"))}}};cs(ai,ci);function ui(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,l=x(e)&&e.length>0?e:function(){try{return P.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:d}),t}function di(t){$s&&h.log(`Global Handler attached: ${t}`)}function li(){const t=se();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const pi="HttpContext",hi=()=>({name:pi,setupOnce(){},preprocessEvent(t){if(!Ls.navigator&&!Ls.location&&!Ls.document)return;const e=t.request&&t.request.url||Ls.location&&Ls.location.href,{referrer:n}=Ls.document||{},{userAgent:r}=Ls.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:s};t.request=i}});cs(pi,hi);function fi(t,e,n=250,r,s,i,o){if(!(i.exception&&i.exception.values&&o&&R(o.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,u;a&&(i.exception.values=(c=mi(t,e,s,o.originalException,r,i.exception.values,a,0),u=n,c.map((t=>(t.value&&(t.value=L(t.value,u)),t)))))}function mi(t,e,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(R(r[s],Error)){gi(o,a);const i=t(e,r[s]),u=c.length;_i(i,s,u,a),c=mi(t,e,n,r[s],s,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(R(r,Error)){gi(o,a);const u=t(e,r),d=c.length;_i(u,`errors[${i}]`,d,a),c=mi(t,e,n,r,s,[u,...c],u,d)}})),c}function gi(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function _i(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const vi="LinkedErrors",yi=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:vi,setupOnce(){},preprocessEvent(t,r,s){const i=s.getOptions();fi(Cs,i.stackParser,i.maxValueLength,n,e,t,r)}}},bi=(cs(vi,yi),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),Si="TryCatch",Ti=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Si,setupOnce(){e.setTimeout&&F(Ls,"setTimeout",Ei),e.setInterval&&F(Ls,"setInterval",Ei),e.requestAnimationFrame&&F(Ls,"requestAnimationFrame",xi),e.XMLHttpRequest&&"XMLHttpRequest"in Ls&&F(XMLHttpRequest.prototype,"send",wi);const t=e.eventTarget;if(t){(Array.isArray(t)?t:bi).forEach(ki)}}}};cs(Si,Ti);function Ei(t){return function(...e){const n=e[0];return e[0]=Fs(n,{mechanism:{data:{function:zt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function xi(t){return function(e){return t.apply(this,[Fs(e,{mechanism:{data:{function:"requestAnimationFrame",handler:zt(t)},handled:!1,type:"instrument"}})])}}function wi(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&F(n,t,(function(e){const n={mechanism:{data:{function:t,handler:zt(e)},handled:!1,type:"instrument"}},r=Y(e);return r&&(n.mechanism.data.handler=zt(r)),Fs(e,n)}))})),t.apply(this,e)}}function ki(t){const e=Ls,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(F(n,"addEventListener",(function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=Fs(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:zt(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,Fs(r,{mechanism:{data:{function:"addEventListener",handler:zt(r),target:t},handled:!1,type:"instrument"}}),s])}})),F(n,"removeEventListener",(function(t){return function(e,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,s,r)}})))}const Ii="?";function $i(t,e,n,r){const s={filename:t,function:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const Ci=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Oi=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ri=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ni=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Pi=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Di=Yt(...[[30,t=>{const e=Ci.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=Oi.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Ai(e[1]||Ii,e[2]);return $i(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=Ri.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Ni.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Ii;return[n,t]=Ai(n,t),$i(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=Pi.exec(t);return e?$i(e[2],e[1]||Ii,+e[3],e[4]?+e[4]:void 0):void 0}]]),Ai=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Ii,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function ji(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.lengthn(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new At(((n,r)=>{let s=e.length;if(!s)return n(!0);const i=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{Pt(t).then((()=>{--s||(clearTimeout(i),n(!0))}),r)}))}))}}}function Li(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),o=parseInt(e,10),a=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else o?s.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(o,r):429===e&&(s.all=r+6e4);return s}function Mi(t,e,n=ji(t.bufferSize||30)){let r={};function s(s){const i=[];if(or(s,((e,n)=>{const s=lr(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)){const r=qi(e,n);t.recordDroppedEvent("ratelimit_backoff",s,r)}else i.push(e)})),0===i.length)return Pt();const o=sr(s[0],i),a=e=>{or(o,((n,r)=>{const s=qi(n,r);t.recordDroppedEvent(e,lr(r),s)}))};return n.add((()=>e({body:cr(o,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&v&&h.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Li(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof ys)return v&&h.error("Skipped sending event because buffer is full."),a("queue_overflow"),Pt();throw t}))}return s.__sentry__baseTransport__=!0,{send:s,flush:t=>n.drain(t)}}function qi(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let Ui;function Fi(t,e=function(){if(Ui)return Ui;if(Rr(Ls.fetch))return Ui=Ls.fetch.bind(Ls);const t=Ls.document;let e=Ls.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){$s&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Ui=e.bind(Ls)}()){let n=0,r=0;return Mi(t,(function(s){const i=s.body.length;n+=i,r++;const o={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,o).then((t=>(n-=i,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Ui=void 0,n-=i,r--,Dt(t)}}))}function Hi(t){return Mi(t,(function(e){return new At(((n,r)=>{const s=new XMLHttpRequest;s.onerror=r,s.onreadystatechange=()=>{4===s.readyState&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&s.setRequestHeader(e,t.headers[e]);s.send(e.body)}))}))}const Bi=[ps(),_s(),Ti(),ti(),ci(),yi(),ni(),hi()];function Yi(t){return[...Bi]}function Wi(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=Yi()),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),Ls.SENTRY_RELEASE&&Ls.SENTRY_RELEASE.id&&(t.release=Ls.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(n=t.stackParser||Di,Array.isArray(n)?Yt(...n):n),integrations:is(t),transport:t.transport||(Or()?Fi:Hi)};var n;vs(Hs,e),t.autoSessionTracking&&function(){if(void 0===Ls.document)return void($s&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));oe({ignoreDuration:!0}),ue(),pn((({from:t,to:e})=>{void 0!==t&&t!==e&&(oe({ignoreDuration:!0}),ue())}))}()}const zi=(t,e)=>{const{errorHandler:n,warnHandler:r,silent:s}=t.config;t.config.errorHandler=(i,o,a)=>{const c=ts(o,!1),u=o?(t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let n=0;for(;t;){if(e.length>0){const r=e[e.length-1];if(r.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[r,n],n=0)}e.push(t),t=t.$parent}const r=e.map(((t,e)=>{return`${(0===e?"---\x3e ":(n=" ",r=5+2*e,n.repeat?n.repeat(r):n))+(Array.isArray(t)?`${ts(t[0])}... (${t[1]} recursive calls)`:ts(t))}`;var n,r})).join("\n");return`\n\nfound in\n\n${r}`}return`\n\n(found in ${ts(t)})`})(o):"",d={componentName:c,lifecycleHook:a,trace:u};if(e.attachProps&&o&&(o.$options&&o.$options.propsData?d.propsData=o.$options.propsData:o.$props&&(d.propsData=o.$props)),setTimeout((()=>{te(i,{captureContext:{contexts:{vue:d}},mechanism:{handled:!1}})})),"function"==typeof n&&n.call(t,i,o,a),e.logErrors){const t="undefined"!=typeof console,e=`Error in ${a}: "${i&&i.toString()}"`;r?r.call(null,e,o,u):t&&!s&&p((()=>{}))}}},Gi={Vue:a.Vue,attachProps:!0,logErrors:!0,hooks:Xr,timeout:2e3,trackComponents:!1},Ji=(t={})=>({name:"Vue",setupOnce(){},setup(e){!function(t,e){const n={...Gi,...t.getOptions(),...e};if(!n.Vue&&!n.app)return void p((()=>{}));if(n.app){at(n.app).forEach((t=>Vi(t,n)))}else n.Vue&&Vi(n.Vue,n)}(e,t)}});cs("Vue",Ji);const Vi=(t,e)=>{const n=t;!0===(n._instance&&n._instance.isMounted)&&p((()=>{})),zi(t,e),Oe(e)&&t.mixin(ns({...e,...e.tracingOptions}))};function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ki(t){for(var e=1;e-1)return t.tags.filter_rule="sdk stack",t;if(r&&r.length&&!r.some((t=>"ui.click"===(null==t?void 0:t.category))))return null;if(!s.stack)return t.tags.filter_rule="Empty stack",t;const i=(null!==(n=s.stack)&&void 0!==n?n:"").split("\n").slice(1),o=[],a=[];if(i.forEach((t=>{let e=/^\s*at (?:(?[^\(\r\n]+)\s*\()?(?[^\)]*)\)?/gi.exec(t);if(!e)return;const[n,r,s]=e;if(!s)return;if(e=/^(?(?[^\?\)\r\n]+?(?\.[\w\d]+)?)(?\?[^\)\r\n]+)?)(?:\:(?\d+\:\d+))?$/gi.exec(s),!e)return;const[i,c,u,d,l,p]=e,h=/^(?:(?:https?\:)?\/\/[^\/]+)?(?[^\?]+)(?:\?.*)?/gi.exec(u),[f,m]=null!=h?h:[];o.push({modulePath:u,modulePathName:m,moduleExt:d,lineNo:p,fnName:r}),".js"===(null==d?void 0:d.toLowerCase())&&a.push(u)})),!o.length)return t.tags.filter_rule="Stack not resolved",t;const c=o.filter((t=>{if(!t.modulePathName||!t.modulePathName.startsWith("/"))return!1;if(t.modulePathName.startsWith("//"))return!1;if(t.modulePathName.startsWith("/chunk/sentry."))return!1;if(/^\/static\/v[^\/]+\/store\/chunk\/sentry\./gi.test(t.modulePathName))return!1;if(location.pathname===t.modulePathName){var e,n,r,s,i,o,a,c,u,d,l,p,h,f,m,g,_,v,y;if("1"===(null===(e=t.lineNo)||void 0===e||null===(n=e.split)||void 0===n||null===(r=n.call(e,":"))||void 0===r?void 0:r[0]))return!1;if(null!==(s=t.fnName)&&void 0!==s&&null!==(i=s.endsWith)&&void 0!==i&&i.call(s,"runThen")||null!==(o=t.fnName)&&void 0!==o&&null!==(a=o.endsWith)&&void 0!==a&&a.call(o,"then"))return!1;if(null!==(c=t.fnName)&&void 0!==c&&null!==(u=c.endsWith)&&void 0!==u&&u.call(c,".fetch")||"fetch"===t.fnName||null!==(d=t.fnName)&&void 0!==d&&null!==(l=d.endsWith)&&void 0!==l&&l.call(d,".open")||"open"===t.fnName||null!==(p=t.fnName)&&void 0!==p&&null!==(h=p.endsWith)&&void 0!==h&&h.call(p,".send")||"send"===t.fnName||null!==(f=t.fnName)&&void 0!==f&&null!==(m=f.endsWith)&&void 0!==m&&m.call(f,".parseBody")||"parseBody"===t.fnName||null!==(g=t.fnName)&&void 0!==g&&null!==(_=g.endsWith)&&void 0!==_&&_.call(g,"HackXMLHttpRequest")||null!==(v=t.fnName)&&void 0!==v&&null!==(y=v.endsWith)&&void 0!==y&&y.call(v,".onReadyStateChange")||"onReadyStateChange"===t.fnName)return!1}return!0}));return c.length?c.every((t=>t.modulePathName===location.pathname))?(t.tags.filter_rule="Full page stack",t):c.find((t=>function(t){if(t.startsWith("http")){if(/^(https?\:\/\/[^\/]+)?\/static\/v[^\/]+\/store\//gi.test(t))return!0;if(/^(https?\:\/\/[^\/]+)?\/js\/vue\//gi.test(t))return!0}else if(t.startsWith("/")&&["/js/","/chunk/","/applications/","/athena/","/default/","/showtime/","/venue/","/vogue/","/checkout/"].find((e=>t.startsWith(e))))return!0;return!1}(t.modulePath)))?(t.tags.filter_rule="Theme js",t):null:null}const to={Vue:s(),dsn:"https://8cd10bc007dc4facaae097f3cdfc5e49@o467009.ingest.sentry.io/6247921",release:"v1.47.75",integrations:[function(t={}){if(!t.router)return zr(t);const e=zr({...t,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t);rs(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},(e=>{Gr(t,e)}))}}}({traceFetch:!1,traceXHR:!1,shouldCreateSpanForRequest:!1})],sampleRate:parseFloat("0.1")||.1,tracesSampleRate:parseFloat("0.1")||.1,beforeSend:(t,e)=>Zi(t,e),ignoreErrors:["The user aborted a request.","Request aborted","Fetch is aborted","Network Error","The operation was aborted.","A network error occurred.","The fetching process for the media resource was aborted by the user agent at the user's request.","cancelled","cancelado","avbrutt","отменено","Abgebrochen",/^Request failed with status code/u,"Load failed","Failed to load","Failed to fetch","A server with the specified hostname could not be found.","An error ocurred whilst sending the request.","NetworkError when attempting to fetch resource.","The request timed out","The operation timed out.","SecurityError: Blocked a frame with origin","Non-Error promise rejection captured with keys","postrobot_method","_AutofillCallbackHandler","__AutoFillPopupClose__","PaymentAutofillConfig","r[t]","JSBRIDGE TIMEOUT","IndexSizeError: The index is not in the allowed range.","top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage"],denyUrls:[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/^chrome-extension:\/\//i,/^content:\/\//i,/^safari-web-extension:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,/\/\/hidden\//i],initialScope:t=>(window.current_theme&&t.setTags({current_theme:window.current_theme}),t)};!function(t={}){Wi({_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:ve}],version:ve}},defaultIntegrations:[...Yi(),Ji()],...t})}(to)}}]);