!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="942fc35f-9a27-4351-9748-d202df44e059",t._sentryDebugIdIdentifier="sentry-dbid-942fc35f-9a27-4351-9748-d202df44e059")}catch(t){}}(),function(){"use strict";const t="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,e="10.26.0",n=globalThis;function r(){return s(n),n}function s(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e,n[e]=n[e]||{}}function o(t,r,s=n){const o=s.__SENTRY__=s.__SENTRY__||{},i=o[e]=o[e]||{};return i[t]||(i[t]=r())}const i=["debug","info","warn","error","log","assert","trace"],a={};function c(t){if(!("console"in n))return t();const e=n.console,r={},s=Object.keys(a);s.forEach((t=>{const n=a[t];r[t]=e[t],e[t]=n}));try{return t()}finally{s.forEach((t=>{e[t]=r[t]}))}}function u(){return p().enabled}function l(e,...r){t&&u()&&c((()=>{n.console[e](`Sentry Logger [${e}]:`,...r)}))}function p(){return t?o("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}const d={enable:function(){p().enabled=!0},disable:function(){p().enabled=!1},isEnabled:u,log:function(...t){l("log",...t)},warn:function(...t){l("warn",...t)},error:function(...t){l("error",...t)}},f=[];function h(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach((t=>{t.isDefaultInstance=!0})),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r)}function m(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function g(e,n,r){if(r[n.name])t&&d.log(`Integration skipped because it was already installed: ${n.name}`);else{if(r[n.name]=n,f.includes(n.name)||"function"!=typeof n.setupOnce||(n.setupOnce(),f.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(e),"function"==typeof n.preprocessEvent){const t=n.preprocessEvent.bind(n);e.on("preprocessEvent",((n,r)=>t(n,r,e)))}if("function"==typeof n.processEvent){const t=n.processEvent.bind(n),r=Object.assign(((n,r)=>t(n,r,e)),{id:n.name});e.addEventProcessor(r)}t&&d.log(`Integration installed: ${n.name}`)}}function _(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}const y=Object.prototype.toString;function v(t){switch(y.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return P(t,Error)}}function b(t,e){return y.call(t)===`[object ${e}]`}function E(t){return b(t,"ErrorEvent")}function x(t){return b(t,"DOMError")}function S(t){return b(t,"String")}function w(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function k(t){return null===t||w(t)||"object"!=typeof t&&"function"!=typeof t}function $(t){return b(t,"Object")}function O(t){return"undefined"!=typeof Event&&P(t,Event)}function T(t){return Boolean(t?.then&&"function"==typeof t.then)}function P(t,e){try{return t instanceof e}catch{return!1}}function I(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}const j=n,D=80;function C(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||D;for(;n&&o++1&&i+s.length*c+u.length>=p));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return""}}function A(t,e){const n=t,r=[];if(!n?.tagName)return"";if(j.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e?.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(s?.length)s.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&S(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const t of o){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function N(){try{return j.document.location.href}catch{return""}}function R(e,n,r){if(!(n in e))return;const s=e[n];if("function"!=typeof s)return;const o=r(s);"function"==typeof o&&M(o,s);try{e[n]=o}catch{t&&d.log(`Failed to replace method "${n}" in object`,e)}}function L(e,n,r){try{Object.defineProperty(e,n,{value:r,writable:!0,configurable:!0})}catch{t&&d.log(`Failed to add non-enumerable property "${n}" to object`,e)}}function M(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,L(t,"__sentry_original__",e)}catch{}}function U(t){return t.__sentry_original__}function q(t){if(v(t))return{message:t.message,name:t.name,stack:t.stack,...F(t)};if(O(t)){const e={type:t.type,target:B(t.target),currentTarget:B(t.currentTarget),...F(t)};return"undefined"!=typeof CustomEvent&&P(t,CustomEvent)&&(e.detail=t.detail),e}return t}function B(t){try{return"undefined"!=typeof Element&&P(t,Element)?C(t):Object.prototype.toString.call(t)}catch{return""}}function F(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{}}let H;function z(t=function(){const t=n;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return H||(H=[1e7]+1e3+4e3+8e3+1e11),H.replace(/[018]/g,(t=>(t^(16*Math.random()&15)>>t/4).toString(16)))}function W(t){return t.exception?.values?.[0]}function Y(t){const{message:e,event_id:n}=t;if(e)return e;const r=W(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function G(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function J(t,e){const n=W(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function K(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{L(t,"__sentry_captured__",!0)}catch{}return!1}const X=50,V="?",Z=/\(error: (.*)\)/,Q=/captureMessage|captureException/;function tt(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,r=0)=>{const s=[],o=t.split("\n");for(let t=n;t1024&&(n=n.slice(0,1024));const i=Z.test(n)?n.replace(Z,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){s.push(e);break}}if(s.length>=X+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(et(e).function||"")&&e.pop(),e.reverse(),Q.test(et(e).function||"")&&(e.pop(),Q.test(et(e).function||"")&&e.pop()),e.slice(0,X).map((t=>({...t,filename:t.filename||et(e).filename,function:t.function||V})))}(s.slice(r))}}function et(t){return t[t.length-1]||{}}const nt="";function rt(t){try{return t&&"function"==typeof t&&t.name||nt}catch{return nt}}function st(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch{return}}}function ot(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function it(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function at(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;ect(t,e,n)))}const lt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],pt=(e={})=>{let n;return{name:"EventFilters",setup(t){const r=t.getOptions();n=ft(e,r)},processEvent(r,s,o){if(!n){const t=o.getOptions();n=ft(e,t)}return function(e,n){if(e.type){if("transaction"===e.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&ut(n,e)}(e,n.ignoreTransactions))return t&&d.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Y(e)}`),!0}else{if(function(t,e){return!!e?.length&&_(t).some((t=>ut(t,e)))}(e,n.ignoreErrors))return t&&d.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Y(e)}`),!0;if(function(t){return!!t.exception?.values?.length&&(!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)))}(e))return t&&d.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Y(e)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=ht(t);return!!n&&ut(n,e)}(e,n.denyUrls))return t&&d.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Y(e)}.\nUrl: ${ht(e)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=ht(t);return!n||ut(n,e)}(e,n.allowUrls))return t&&d.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Y(e)}.\nUrl: ${ht(e)}`),!0}return!1}(r,n)?null:r}}},dt=(t={})=>({...pt(t),name:"InboundFilters"});function ft(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:lt],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function ht(e){try{const t=[...e.exception?.values??[]].reverse().find((t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length)),n=t?.stacktrace?.frames;return n?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}(n):null}catch{return t&&d.error(`Cannot extract url for event ${Y(e)}`),null}}const mt=1e3;function gt(){return Date.now()/mt}let _t;function yt(){return(_t??(_t=function(){const{performance:t}=n;if(!t?.now||!t.timeOrigin)return gt;const e=t.timeOrigin;return()=>(e+t.now())/mt}()))()}function vt(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||yt(),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:z()),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 bt(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=bt(r[t],e[t],n-1));return r}function Et(){return z()}function xt(){return z().substring(16)}const St="_sentrySpan";function wt(t,e){e?L(t,St,e):delete t[St]}function kt(t){return t[St]}class $t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Et(),sampleRand:Math.random()}}clone(){const t=new $t;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,wt(t,kt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}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,username:void 0},this._session&&vt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}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}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,n=e instanceof $t?e.getScopeData():$(e)?t:void 0,{tags:r,extra:s,user:o,contexts:i,level:a,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...i},o&&Object.keys(o).length&&(this._user=o),a&&(this._level=a),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),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._session=void 0,wt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Et(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:gt(),...t,message:t.message?it(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:kt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=bt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||z();if(!this._client)return t&&d.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r?.event_id||z();if(!this._client)return t&&d.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:s},this),s}captureEvent(e,n){const r=n?.event_id||z();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(t&&d.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}class Ot{constructor(t,e){let n,r;n=t||new $t,r=e||new $t,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return T(n)?n.then((t=>(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}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function Tt(){const t=s(r());return t.stack=t.stack||new Ot(o("defaultCurrentScope",(()=>new $t)),o("defaultIsolationScope",(()=>new $t)))}function Pt(t){return Tt().withScope(t)}function It(t,e){const n=Tt();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function jt(t){return Tt().withScope((()=>t(Tt().getIsolationScope())))}function Dt(t){const e=s(t);return e.acs?e.acs:{withIsolationScope:jt,withScope:Pt,withSetScope:It,withSetIsolationScope:(t,e)=>jt(e),getCurrentScope:()=>Tt().getScope(),getIsolationScope:()=>Tt().getIsolationScope()}}function Ct(){return Dt(r()).getCurrentScope()}function At(){return Dt(r()).getIsolationScope()}function Nt(){return Ct().getClient()}function Rt(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,o={trace_id:n,span_id:s||xt()};return r&&(o.parent_span_id=r),o}let Lt;const Mt=new WeakMap,Ut=()=>({name:"FunctionToString",setupOnce(){Lt=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=U(this),n=Mt.has(Nt())&&void 0!==e?e:this;return Lt.apply(n,t)}}catch{}},setup(t){Mt.set(t,!0)}}),qt=()=>{let e;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Ft(t,e)&&!!Bt(t,e))))}(t,e)||!!function(t,e){const n=Ht(e),r=Ht(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Ft(t,e)&&!!Bt(t,e)))}(t,e))}(n,e))return t&&d.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=n}}};function Bt(t,e){let n=st(t),r=st(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;tn?Vt(t,e-1,n):r;var s}function Zt(t,e,n=1/0,r=1/0,s=function(){const t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){const[o,i]=s;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(I(e))return ot(e);if($(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${rt(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var n}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return Zt("",u.toJSON(),c-1,r,s)}catch{}const l=Array.isArray(e)?[]:{};let p=0;const d=q(e);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(p>=r){l[t]="[MaxProperties ~]";break}const e=d[t];l[t]=Zt(t,e,c-1,r,s),p++}return i(e),l}function Qt(t,e=[]){return[t,e]}function te(t,e){const[n,r]=t;return[n,[...r,e]]}function ee(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function ne(t){const e=s(n);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function re(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[ne(r),t]:r.push("string"==typeof t?ne(t):t)}for(const t of n){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(Xt(n))}s(t)}}return"string"==typeof r?r: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}(r)}function se(t){const e="string"==typeof t.data?ne(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const oe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function ie(t){return oe[t]}function ae(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ce(t,e){const n=e??function(t){return ue().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=Gt(r)),Qt(s,[(o=t,[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());ue().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function ue(){return o("clientToLogBufferMap",(()=>new WeakMap))}function le(t,e){const n=e??function(t){return pe().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=Gt(r)),Qt(s,[(o=t,[{type:"trace_metric",item_count:o.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());pe().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function pe(){return o("clientToMetricBufferMap",(()=>new WeakMap))}const de="sentry.source",fe="sentry.sample_rate",he="sentry.previous_trace_sample_rate",me="sentry.op",ge="sentry.origin",_e="sentry.profile_id",ye="sentry.exclusive_time",ve="sentry-",be=/^sentry-/;function Ee(t){return t.split(",").map((t=>{const e=t.indexOf("=");return-1===e?[]:[t.slice(0,e),t.slice(e+1)].map((t=>{try{return decodeURIComponent(t.trim())}catch{return}}))})).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const xe=0,Se=1,we="_sentryScope",ke="_sentryIsolationScope";function $e(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function Oe(t){const e=t;return{scope:e[we],isolationScope:$e(e[ke])}}const Te=1;let Pe=!1;function Ie(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:Ae(t).parent_span_id,o=Oe(t).scope;return{parent_span_id:s,span_id:r?o?.getPropagationContext().propagationSpanId||xt():e,trace_id:n}}function je(t){return t&&t.length>0?t.map((({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:n===Te,attributes:s,...r}))):void 0}function De(t){return"number"==typeof t?Ce(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ce(t.getTime()):yt()}function Ce(t){return t>9999999999?t/1e3:t}function Ae(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:De(s),timestamp:De(i)||void 0,status:Ne(a),op:r[me],origin:r[ge],links:je(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Ne(t){if(t&&t.code!==xe)return t.code===Se?"ok":t.message||"internal_error"}const Re="_sentryRootSpan";function Le(t){return t[Re]||t}function Me(){Pe||(c((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")})),Pe=!0)}const Ue="_frozenDsc";function qe(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||zt,release:n.release,public_key:r,trace_id:t,org_id:Kt(e)};return e.emit("createDsc",s),s}function Be(t){const e=Nt();if(!e)return{};const n=Le(t),r=Ae(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[fe]??s[he];function a(t){return"number"!=typeof i&&"string"!=typeof i||(t.sample_rate=`${i}`),t}const c=n[Ue];if(c)return a(c);const u=o?.get("sentry.dsc"),l=u&&function(t){const e=function(t){if(t&&(S(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=Ee(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):Ee(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(be)&&(t[e.slice(ve.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(u);if(l)return a(l);const p=qe(t.spanContext().traceId,e),d=s[de],f=r.description;return"url"!==d&&f&&(p.transaction=f),function(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Nt()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}()&&(p.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return e===Te}(n)),p.sample_rand=o?.get("sentry.sample_rand")??Oe(n).scope?.getPropagationContext().sampleRand.toString()),a(p),e.emit("createDsc",p,n),p}function Fe(t){return new ze((e=>{e(t)}))}function He(t){return new ze(((e,n)=>{n(t)}))}class ze{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new ze(((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 ze(((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)}))}))}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)}))}_runExecutor(t){const e=(t,e)=>{0===this._state&&(T(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}function We(t,e,n,r=0){try{const s=Ye(e,n,t,r);return T(s)?s:Fe(s)}catch(t){return He(t)}}function Ye(e,n,r,s){const o=r[s];if(!e||!o)return e;const i=o({...e},n);return t&&null===i&&d.log(`Event processor "${o.id||"?"}" dropped event`),T(i)?i.then((t=>Ye(t,n,r,s+1))):Ye(i,n,r,s+1)}function Ge(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:p,propagationContext:d,transactionName:f,span:h}=e;Je(t,"extra",n),Je(t,"tags",r),Je(t,"user",s),Je(t,"contexts",o),t.sdkProcessingMetadata=bt(t.sdkProcessingMetadata,a,2),i&&(t.level=i),f&&(t.transactionName=f),h&&(t.span=h),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...d}}function Je(t,e,n){t[e]=bt(t[e],n,1)}let Ke,Xe,Ve,Ze;function Qe(t,e,r,s,i,a){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,l={...e,event_id:e.event_id||r.event_id||z(),timestamp:e.timestamp||gt()},p=r.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||zt,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&(i.url=o?it(i.url,o):i.url)}(l,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(l,p),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const r=function(t){const e=n._sentryDebugIds,r=n._debugIds;if(!e&&!r)return{};const s=e?Object.keys(e):[],o=r?Object.keys(r):[];if(Ze&&s.length===Xe&&o.length===Ve)return Ze;Xe=s.length,Ve=o.length,Ze={},Ke||(Ke={});const i=(e,n)=>{for(const r of e){const e=n[r],s=Ke?.[r];if(s&&Ze&&e)Ze[s[0]]=e,Ke&&(Ke[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],o=s?.filename;if(o&&Ze&&Ke){Ze[o]=e,Ke[r]=[o,e];break}}}}};return e&&i(s,e),r&&i(o,r),Ze}(e);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.filename&&(t.debug_id=r[t.filename])}))}))}(l,t.stackParser);const d=function(t,e){if(!e)return t;const n=t?t.clone():new $t;return n.update(e),n}(s,r.captureContext);r.mechanism&&J(l,r.mechanism);const f=i?i.getEventProcessors():[],h=o("globalScope",(()=>new $t)).getScopeData();a&&Ge(h,a.getScopeData()),d&&Ge(h,d.getScopeData());const m=[...r.attachments||[],...h.attachments];return m.length&&(r.attachments=m),function(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(o).length&&(t.contexts={...o,...t.contexts}),i&&(t.level=i),a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Ie(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Be(e),...t.sdkProcessingMetadata};const n=Ae(Le(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),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,o)}(l,h),We([...f,...h.eventProcessors],l,r).then((t=>(t&&function(t){const e={};if(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)}))})),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.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}(t),"number"==typeof c&&c>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Xt(t.data,e,n)}})))},...t.user&&{user:Xt(t.user,e,n)},...t.contexts&&{contexts:Xt(t.contexts,e,n)},...t.extra&&{extra:Xt(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Xt(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:Xt(t.data,e,n)}})))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=Xt(t.contexts.flags,3,n)),r}(t,c,u):t)))}const tn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function en(t){d.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function nn(e,n){if(!n?.length||!e.description)return!1;for(const s of n){if("string"==typeof(r=s)||r instanceof RegExp){if(ct(e.description,s))return t&&en(e),!0;continue}if(!s.name&&!s.op)continue;const n=!s.name||ct(e.description,s.name),o=!s.op||e.op&&ct(e.op,s.op);if(n&&o)return t&&en(e),!0}var r;return!1}function rn(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const e of t)e.parent_span_id===r&&(e.parent_span_id=n)}const sn="Not capturing exception because it's already been captured.",on="Discarded session because of missing or non-string release",an=Symbol.for("SentryInternalError"),cn=Symbol.for("SentryDoNotSendEventError");function un(t){return{message:t,[an]:!0}}function ln(t){return{message:t,[cn]:!0}}function pn(t){return!!t&&"object"==typeof t&&an in t}function dn(t){return!!t&&"object"==typeof t&&cn in t}function fn(t,e,n,r,s){let o,i=0,a=!1;t.on(n,(()=>{i=0,clearTimeout(o),a=!1})),t.on(e,(e=>{i+=r(e),i>=8e5?s(t):a||(a=!0,o=setTimeout((()=>{s(t)}),5e3))})),t.on("flush",(()=>{s(t)}))}class hn{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const n="string"==typeof e?function(t){const e=Yt.exec(t);if(!e)return void c((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,s="",o="",i="",a=""]=e.slice(1);let u="",l=a;const p=l.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),l=p.pop()),l){const t=l.match(/^\d+/);t&&(l=t[0])}return Jt({host:o,pass:s,path:u,projectId:l,port:i,protocol:n,publicKey:r})}(e):Jt(e);if(n&&function(e){if(!t)return!0;const{port:n,projectId:r,protocol:s}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(d.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(r.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(s)?n&&isNaN(parseInt(n,10))&&(d.error(`Invalid Sentry Dsn: Invalid port ${n}`),1):(d.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(d.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(n))return n}(e.dsn):t&&d.warn("No DSN provided, client will not send events."),this._dsn){const t=(n=this._dsn,r=e.tunnel,s=e._metadata?e._metadata.sdk:void 0,r||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(n)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(n,s)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}var n,r,s;this._options.enableLogs&&fn(this,"afterCaptureLog","flushLogs",yn,ce),(this._options.enableMetrics??this._options._experiments?.enableMetrics??1)&&fn(this,"afterCaptureMetric","flushMetrics",_n,le)}captureException(e,n,r){const s=z();if(K(e))return t&&d.log(sn),s;const o={event_id:s,...n};return this._process(this.eventFromException(e,o).then((t=>this._captureEvent(t,o,r)))),o.event_id}captureMessage(t,e,n,r){const s={event_id:z(),...n},o=w(t)?t:String(t),i=k(t)?this.eventFromMessage(o,e,s):this.eventFromException(t,s);return this._process(i.then((t=>this._captureEvent(t,s,r)))),s.event_id}captureEvent(e,n,r){const s=z();if(n?.originalException&&K(n.originalException))return t&&d.log(sn),s;const o={event_id:s,...n},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,a||r,c)),o.event_id}captureSession(t){this.sendSession(t),vt(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(!e)return!0;this.emit("flush");const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];g(this,t,this._integrations),e||m(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const s=ae(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);const i=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Gt(r)},...s&&{trace:s}}}(t,s,r,e);return delete t.sdkProcessingMetadata,Qt(i,[[{type:o},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=te(n,se(t));this.sendEnvelope(n).then((e=>this.emit("afterSendEvent",t,e)))}sendSession(e){const{release:n,environment:r=zt}=this._options;if("aggregates"in e){const s=e.attrs||{};if(!s.release&&!n)return void(t&&d.warn(on));s.release=s.release||n,s.environment=s.environment||r,e.attrs=s}else{if(!e.release&&!n)return void(t&&d.warn(on));e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const s=function(t,e,n,r){const s=ae(n);return Qt({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Gt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const s=`${e}:${n}`;t&&d.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...t)=>e(...t);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach((t=>t(...e)))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return t&&d.error("Error while sending envelope:",e),{}}return t&&d.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&g(t,e,n)})),n}(this,t),m(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(vt(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||esetTimeout(t,1))),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o?.length&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Qe(s,t,e,n,this,r).then((t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:Rt(n),...t.contexts};const r=function(t,e){const n=e.getPropagationContext();return n.dsc||qe(n.traceId,t)}(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t}))}_captureEvent(e,n={},r=Ct(),s=At()){return t&&mn(e)&&d.log(`Captured error event \`${_(e)[0]||""}\``),this._processEvent(e,n,r,s).then((t=>t.event_id),(e=>{t&&(dn(e)?d.log(e.message):pn(e)?d.warn(e.message):d.warn(e))}))}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=gn(t),a=mn(t),c=t.type||"error",u=`before send for type \`${c}\``,l=void 0===o?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}(o);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),He(ln(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p="replay_event"===c?"replay":c;return this._prepareEvent(t,e,n,r).then((t=>{if(null===t)throw this.recordDroppedEvent("event_processor",p),ln("An event processor returned `null`, will not send event.");if(e.data&&!0===e.data.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i,ignoreSpans:a}=e;let c=n;if(mn(c)&&s)return s(c,r);if(gn(c)){if(i||a){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=t.contexts?.trace??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:i?.[_e],exclusive_time:i?.[ye],measurements:t.measurements,is_segment:!0}}(c);if(a?.length&&nn(e,a))return null;if(i){const t=i(e);t?c=bt(n,{type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[_e]:u.profile_id},...u.exclusive_time&&{[ye]:u.exclusive_time}}}},measurements:u.measurements}):Me()}if(c.spans){const e=[],n=c.spans;for(const t of n)if(a?.length&&nn(t,a))rn(n,t);else if(i){const n=i(t);n?e.push(n):(Me(),e.push(t))}else e.push(t);const r=c.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),c.spans=e}}if(o){if(c.spans){const t=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return o(c,r)}}var u;return c}(this,s,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(T(t))return t.then((t=>{if(!$(t)&&null!==t)throw un(n);return t}),(t=>{throw un(`${e} rejected with ${t}`)}));if(!$(t)&&null!==t)throw un(n);return t}(n,u)})).then((s=>{if(null===s){if(this.recordDroppedEvent("before_send",p),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw ln(`${u} returned \`null\`, will not send event.`)}const o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,s),i){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const c=s.transaction_info;if(i&&c&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...c,source:t}}return this.sendEvent(s,e),s})).then(null,(t=>{if(dn(t)||pn(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),un(`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)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}}))}_flushOutcomes(){t&&d.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(t&&d.log("No outcomes to send"));if(!this._dsn)return void(t&&d.log("No dsn provided, will not send outcomes"));t&&d.log("Sending outcomes:",e);const n=(r=e,Qt((s=this._options.tunnel&&Gt(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:gt(),discarded_events:r}]]));var r,s;this.sendEnvelope(n)}}function mn(t){return void 0===t.type}function gn(t){return"transaction"===t.type}function _n(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+vn(t.attributes)}function yn(t){let e=0;return t.message&&(e+=2*t.message.length),e+vn(t.attributes)}function vn(t){if(!t)return 0;let e=0;return Object.values(t).forEach((t=>{Array.isArray(t)?e+=t.length*bn(t[0]):k(t)?e+=bn(t):e+=100})),e}function bn(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function En(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function xn(t,e){const n=wn(t,e),r={type:On(e),value:Tn(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Sn(t,e){return{exception:{values:[xn(t,e)]}}}function wn(t,e){const n=e.stacktrace||e.stack||"",r=function(t){return t&&kn.test(t.message)?1:0}(e),s=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,r,s)}catch{}return[]}const kn=/Minified React error #\d+;/i;function $n(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function On(t){const e=t?.name;return!e&&$n(t)?t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception":e}function Tn(t){const e=t?.message;return $n(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Pn(t,e,n,r,s){let o;if(E(e)&&e.error)return Sn(t,e.error);if(x(e)||b(e,"DOMException")){const s=e;if("stack"in e)o=Sn(t,e);else{const e=s.name||(x(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=In(t,i,n,r),G(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return v(e)?Sn(t,e):$(e)||O(e)?(o=function(t,e,n,r){const s=Nt(),o=s?.getOptions().normalizeDepth,i=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}(e),a={__serialized__:Vt(e,o)};if(i)return{exception:{values:[xn(t,i)]},extra:a};const c={exception:{values:[{type:O(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:jn(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=wn(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}(t,e,n,s),J(o,{synthetic:!0}),o):(o=In(t,e,n,r),G(o,`${e}`,void 0),J(o,{synthetic:!0}),o)}function In(t,e,n,r){const s={};if(r&&n){const r=wn(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),J(s,{synthetic:!0})}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 jn(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(q(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";return E(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:O(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Dn(t,e){return Ct().captureEvent(t,e)}function Cn(t){const e=At(),r=Ct(),{userAgent:s}=n.navigator||{},o=function(t){const e=yt(),n={sid:z(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{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&&vt(n,t),n}({user:r.getUser()||e.getUser(),...s&&{userAgent:s},...t}),i=e.getSession();return"ok"===i?.status&&vt(i,{status:"exited"}),An(),e.setSession(o),o}function An(){const t=At(),e=Ct().getSession()||t.getSession();e&&function(t,e){let n={};"ok"===t.status&&(n={status:"exited"}),vt(t,n)}(e),Nn(),t.setSession()}function Nn(){const t=At(),e=Nt(),n=t.getSession();n&&e&&e.captureSession(n)}function Rn(t=!1){t?An():Nn()}const Ln=n;let Mn=0;function Un(){return Mn>0}function qn(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(U(t))return t}catch{return t}const n=function(...n){try{const r=n.map((t=>qn(t,e)));return t.apply(this,r)}catch(t){throw Mn++,setTimeout((()=>{Mn--})),function(...t){const e=Dt(r());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}((r=>{var s;r.addEventProcessor((t=>(e.mechanism&&(G(t,void 0,void 0),J(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),s=t,Ct().captureException(s,function(t){if(t)return function(t){return t instanceof $t||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>tn.includes(t)))}(t)?{captureContext:t}:t}(undefined))})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}M(n,t),L(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}class Bn extends hn{constructor(t){const n=(r=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Ln.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(t,n,r=[n],s="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${n}`,packages:r.map((t=>({name:`${s}:@sentry/${t}`,version:e}))),version:e}),t._metadata=o}(n,"browser",["browser"],Ln.SENTRY_SDK_SOURCE||"npm"),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;Ln.document&&(o||i||u)&&Ln.document.addEventListener("visibilitychange",(()=>{"hidden"===Ln.document.visibilityState&&(o&&this._flushOutcomes(),i&&ce(this),u&&le(this))})),s&&this.on("beforeSendSession",En)}eventFromException(t,e){return function(t,e,n,r){const s=Pn(t,e,n?.syntheticException||void 0,r);return J(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),Fe(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=In(t,e,r?.syntheticException||void 0,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),Fe(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const Fn={},Hn={};function zn(t,e){Fn[t]=Fn[t]||[],Fn[t].push(e)}function Wn(e,n){if(!Hn[e]){Hn[e]=!0;try{n()}catch(n){t&&d.error(`Error while instrumenting ${e}`,n)}}}function Yn(e,n){const r=e&&Fn[e];if(r)for(const s of r)try{s(n)}catch(n){t&&d.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${rt(s)}\nError:`,n)}}function Gn(){"console"in n&&i.forEach((function(t){t in n.console&&R(n.console,t,(function(e){return a[t]=e,function(...e){Yn("console",{args:e,level:t});const r=a[t];r?.apply(n.console,e)}}))}))}const Jn=n;function Kn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Xn(e,r=!1){r&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Jn))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(Kn(Jn.fetch))return!0;let e=!1;const n=Jn.document;if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t),t.contentWindow?.fetch&&(e=Kn(t.contentWindow.fetch)),n.head.removeChild(t)}catch(e){t&&d.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||R(n,"fetch",(function(t){return function(...r){const s=new Error,{method:o,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Zn(e),method:Vn(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Zn(e),method:Vn(e,"method")?String(e.method).toUpperCase():"GET"}}(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:1e3*yt(),virtualError:s,headers:Qn(r)};return e||Yn("fetch",{...a}),t.apply(n,r).then((async t=>(e?e(t):Yn("fetch",{...a,endTimestamp:1e3*yt(),response:t}),t)),(t=>{if(Yn("fetch",{...a,endTimestamp:1e3*yt(),error:t}),v(t)&&void 0===t.stack&&(t.stack=s.stack,L(t,"framesToPop",1)),t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const e=new URL(a.fetchData.url);t.message=`${t.message} (${e.host})`}catch{}throw t}))}}))}function Vn(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Zn(t){return"string"==typeof t?t:t?Vn(t,"url")?t.url:t.toString?t.toString():"":""}function Qn(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if("undefined"!=typeof Request&&P(e,Request))return new Headers(e.headers)}catch{}}const tr=100;function er(t,e){const n=Nt(),r=At();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=tr}=n.getOptions();if(o<=0)return;const i={timestamp:gt(),...t},a=s?c((()=>s(i,e))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function nr(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}function rr(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}}const sr=n,or=1e3;let ir,ar,cr;function ur(){if(!sr.document)return;const t=Yn.bind(null,"dom"),e=lr(t,!0);sr.document.addEventListener("click",e,!1),sr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=sr,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(R(r,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=lr(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch{}return e.call(this,n,r,s)}})),R(r,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}})))}))}function lr(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;L(n,"_sentryCaptured",!0),r&&!r._sentryId&&L(r,"_sentryId",z());const s="keypress"===n.type?"input":n.type;(function(t){if(t.type!==ar)return!1;try{if(!t.target||t.target._sentryId!==cr)return!1}catch{}return!0})(n)||(t({event:n,name:s,global:e}),ar=n.type,cr=r?r._sentryId:void 0),clearTimeout(ir),ir=sr.setTimeout((()=>{cr=void 0,ar=void 0}),or)}}const pr="__sentry_xhr_v3__";function dr(){if(!sr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,s=1e3*yt(),o=S(n[0])?n[0].toUpperCase():void 0,i=function(t){if(S(t))return t;try{return t.toString()}catch{}}(n[1]);if(!o||!i)return t.apply(e,n);e[pr]={method:o,url:i,request_headers:{}},"POST"===o&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[pr];if(t&&4===e.readyState){try{t.status_code=e.status}catch{}Yn("xhr",{endTimestamp:1e3*yt(),startTimestamp:s,xhr:e,virtualError:r})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,o=e[pr];return o&&S(r)&&S(s)&&(o.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[pr];return r?(void 0!==n[0]&&(r.body=n[0]),Yn("xhr",{startTimestamp:1e3*yt(),xhr:e}),t.apply(e,n)):t.apply(e,n)}})}let fr;function hr(t){const e="history";zn(e,t),Wn(e,mr)}function mr(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=fr,s=function(t){try{return new URL(t,sr.location.origin).toString()}catch{return t}}(String(n));if(fr=s,r===s)return t.apply(this,e);Yn("history",{from:r,to:s})}return t.apply(this,e)}}sr.addEventListener("popstate",(()=>{const t=sr.location.href,e=fr;fr=t,e!==t&&Yn("history",{from:e,to:t})})),"history"in Jn&&Jn.history&&(R(sr.history,"pushState",t),R(sr.history,"replaceState",t))}const gr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,_r=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console";zn(e,t),Wn(e,Gn)}(function(t){return function(e){if(Nt()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:(r=e.level,"warn"===r?"warning":["fatal","error","warning","log","info","debug"].includes(r)?r:"log"),message:at(e.args," ")};var r;if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${at(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}er(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(Nt()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(gr&&d.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=C(e,{keyAttrs:o,maxStringLength:i}),s=function(t){if(!j.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}(e)}catch{r=""}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),er(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),zn("dom",n),Wn("dom",ur)),e.xhr&&function(t){zn("xhr",t),Wn("xhr",dr)}(function(t){return function(e){if(Nt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[pr];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,u={method:o,url:i,status_code:a},l={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},p={category:"xhr",data:u,type:"http",level:nr(a)};t.emit("beforeOutgoingRequestBreadcrumb",p,l),er(p,l)}}(t)),e.fetch&&function(t,e){const n="fetch";zn(n,t),Wn(n,(()=>Xn(void 0,undefined)))}(function(t){return function(e){if(Nt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){const s=e.fetchData,o={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:s,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),er(i,o)}else{const s=e.response,o={...e.fetchData,status_code:s?.status};e.fetchData.request_body_size,e.fetchData.response_body_size;const i={input:e.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:nr(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,i),er(a,i)}}}(t)),e.history&&hr(function(t){return function(e){if(Nt()!==t)return;let n=e.from,r=e.to;const s=rr(Ln.location.href);let o=n?rr(n):void 0;const i=rr(r);o?.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),er({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){Nt()===t&&er({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Y(e)},{event:e})}}(t))}}},yr=["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"],vr=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&R(Ln,"setTimeout",br),e.setInterval&&R(Ln,"setInterval",br),e.requestAnimationFrame&&R(Ln,"requestAnimationFrame",Er),e.XMLHttpRequest&&"XMLHttpRequest"in Ln&&R(XMLHttpRequest.prototype,"send",xr);const t=e.eventTarget;t&&(Array.isArray(t)?t:yr).forEach((t=>function(t,e){const n=Ln,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(R(r,"addEventListener",(function(n){return function(r,s,o){try{"function"==typeof s.handleEvent&&(s.handleEvent=qn(s.handleEvent,{mechanism:{data:{handler:rt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,qn(s,{mechanism:{data:{handler:rt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}})),R(r,"removeEventListener",(function(t){return function(e,n,r){try{const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}catch{}return t.call(this,e,n,r)}})))}(t,e)))}}};function br(t){return function(...e){const n=e[0];return e[0]=qn(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${rt(t)}`}}),t.apply(this,e)}}function Er(t){return function(e){return t.apply(this,[qn(e,{mechanism:{data:{handler:rt(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function xr(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&R(n,t,(function(e){const n={mechanism:{data:{handler:rt(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=U(e);return r&&(n.mechanism.data.handler=rt(r)),qn(e,n)}))})),t.apply(this,e)}}let Sr=null;function wr(){Sr=n.onerror,n.onerror=function(t,e,n,r,s){return Yn("error",{column:r,error:s,line:n,msg:t,url:e}),!!Sr&&Sr.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let kr=null;function $r(){kr=n.onunhandledrejection,n.onunhandledrejection=function(t){return Yn("unhandledrejection",t),!kr||kr.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Or=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(function(t){!function(e){const n="error";zn(n,(e=>{const{stackParser:n,attachStacktrace:r}=Pr();if(Nt()!==t||Un())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,p=function(t){if(S(t)&&0!==t.length){if(t.startsWith("data:")){const e=t.match(/^data:([^;]+)/);return``}return t}}(e)??N();return 0===c.length&&c.push({colno:u,filename:p,function:V,in_app:!0,lineno:l}),t}(Pn(n,c||s,void 0,r,!1),o,i,a);u.level="error",Dn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})),Wn(n,wr)}()}(t),Tr("onerror")),e.onunhandledrejection&&(function(t){!function(e){const n="unhandledrejection";zn(n,(e=>{const{stackParser:n,attachStacktrace:r}=Pr();if(Nt()!==t||Un())return;const s=function(t){if(k(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),o=k(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Pn(n,s,void 0,r,!0);o.level="error",Dn(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})),Wn(n,$r)}()}(t),Tr("onunhandledrejection"))}}};function Tr(t){gr&&d.log(`Global Handler attached: ${t}`)}function Pr(){const t=Nt();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Ir(t,e,n,r,s,o){if(!s.exception?.values||!o||!P(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=jr(t,e,r,o.originalException,n,s.exception.values,i,0))}function jr(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(P(r[s],Error)){Dr(i,a);const o=t(e,r[s]),u=c.length;Cr(o,s,u,a),c=jr(t,e,n,r[s],s,[o,...c],o,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(P(r,Error)){Dr(i,a);const u=t(e,r),l=c.length;Cr(u,`errors[${o}]`,l,a),c=jr(t,e,n,r,s,[u,...c],u,l)}})),c}function Dr(t,e){t.mechanism={handled:!0,type:"auto.core.linked_errors",...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function Cr(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const Ar=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){Ir(xn,s.getOptions().stackParser,n,e,t,r)}}};function Nr(t,e,n,r){const s={filename:t,function:""===e?V:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const Rr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Lr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mr=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ur=/at (.+?) ?\(data:(.+?),/,qr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Br=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Fr=tt([30,t=>{const e=t.match(Ur);if(e)return{filename:``,function:e[1]};const n=Rr.exec(t);if(n){const[,t,e,r]=n;return Nr(t,V,+e,+r)}const r=Lr.exec(t);if(r){if(r[2]&&0===r[2].indexOf("eval")){const t=Mr.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=Hr(r[1]||V,r[2]);return Nr(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=qr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Br.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]||V;return[n,t]=Hr(n,t),Nr(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]),Hr=(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]:V,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},zr=Symbol.for("SentryBufferFullError");function Wr(t=100){const e=new Set;function n(t){e.delete(t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.sizen(s)),(()=>n(s))),s},drain:function(t){if(!e.size)return Fe(!0);const n=Promise.allSettled(Array.from(e)).then((()=>!0));if(!t)return n;const r=[n,new Promise((e=>setTimeout((()=>e(!1)),t)))];return Promise.race(r)}}}const Yr=6e4;const Gr=64;function Jr(e,n,r=Wr(e.bufferSize||Gr)){let s={};return{send:function(o){const i=[];if(ee(o,((t,n)=>{const r=ie(n);!function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,r)?i.push(t):e.recordDroppedEvent("ratelimit_backoff",r)})),0===i.length)return Promise.resolve({});const a=Qt(o[0],i),c=t=>{ee(a,((n,r)=>{e.recordDroppedEvent(t,ie(r))}))};return r.add((()=>n({body:re(a)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&t&&d.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),s=function(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else i?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)?Yr:r-e}(i,r):429===e&&(s.all=r+6e4);return s}(s,e),e)),(e=>{throw c("network_error"),t&&d.error("Encountered error running transport request:",e),e})))).then((t=>t),(e=>{if(e===zr)return t&&d.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw e}))},flush:t=>r.drain(t)}}const Kr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Xr={};const Vr=40;function Zr(t,e=function(t){const e=Xr[t];if(e)return e;let n=sr[t];if(Kn(n))return Xr[t]=n.bind(sr);const r=sr.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch(e){Kr&&d.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?Xr[t]=n.bind(sr):n}("fetch")){let n=0,r=0;return Jr(t,(async function(s){const o=s.body.length;n+=o,r++;const i={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.url,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(t){throw Xr.fetch=void 0,t}finally{n-=o,r--}}),Wr(t.bufferSize||Vr))}function Qr(e={}){const n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===Ln.window)return!1;const t=Ln;if(t.nw)return!1;const e=t.chrome||t.browser;if(!e?.runtime?.id)return!1;const n=N();return!(Ln===Ln.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some((t=>n.startsWith(`${t}://`))))}()&&(gr&&c((()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})),!0);let r=null==e.defaultIntegrations?[dt(),Ut(),vr(),_r(),Or(),Ar(),qt(),{name:"HttpContext",preprocessEvent(t){if(!Ln.navigator&&!Ln.location&&!Ln.document)return;const e=function(){const t=N(),{referrer:e}=Ln.document||{},{userAgent:n}=Ln.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}},{name:"BrowserSession",setupOnce(){void 0!==Ln.document?(Cn({ignoreDuration:!0}),Rn(),hr((({from:t,to:e})=>{void 0!==t&&t!==e&&(Cn({ignoreDuration:!0}),Rn())}))):gr&&d.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}]:e.defaultIntegrations;const s={...e,enabled:!n&&e.enabled,stackParser:(o=e.stackParser||Fr,Array.isArray(o)?tt(...o):o),integrations:h({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||Zr};var o;return function(e,n){!0===n.debug&&(t?d.enable():c((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Ct().update(n.initialScope);const r=new e(n);return function(t){Ct().setClient(t)}(r),r.init(),r}(Bn,s)}var ts,es,ns=function(){return ns=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&s[s.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]