!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]="bc931cc6-813c-4af5-aa30-4cd4fb65c67e",t._sentryDebugIdIdentifier="sentry-dbid-bc931cc6-813c-4af5-aa30-4cd4fb65c67e")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2.0.482"},(self.webpackChunkrootpage=self.webpackChunkrootpage||[]).push([[2897],{5062:()=>{},1238:(t,e,n)=>{n.d(e,{S:()=>_s});const r="8.7.0",s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,o=globalThis;function i(t,e,n){const s=n||o,i=s.__SENTRY__=s.__SENTRY__||{},a=i[r]=i[r]||{};return a[t]||(a[t]=e())}const a=["debug","info","warn","error","log","assert","trace"],c={};function u(t){if(!("console"in o))return t();const e=o.console,n={},r=Object.keys(c);r.forEach((t=>{const r=c[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const p=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return s?a.forEach((n=>{e[n]=(...e)=>{t&&u((()=>{o.console[n](`Sentry Logger [${n}]:`,...e)}))}})):a.forEach((t=>{e[t]=()=>{}})),e}(),d=Object.prototype.toString;function l(t){switch(d.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return E(t,Error)}}function f(t,e){return d.call(t)===`[object ${e}]`}function h(t){return f(t,"ErrorEvent")}function _(t){return f(t,"DOMError")}function m(t){return f(t,"String")}function g(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function y(t){return null===t||g(t)||"object"!=typeof t&&"function"!=typeof t}function v(t){return f(t,"Object")}function S(t){return"undefined"!=typeof Event&&E(t,Event)}function b(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function E(t,e){try{return t instanceof e}catch(t){return!1}}function x(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const w=o,k=80;function $(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const p=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||k;for(;n&&o++<r&&(u=T(n,p),!("html"===u||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(t){return"<unknown>"}}function T(t,e){const n=t,r=[];let s,o,i,a,c;if(!n||!n.tagName)return"";if(w.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 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&&m(s))for(o=s.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const p=["aria-label","type","name","title","alt"];for(c=0;c<p.length;c++)i=p[c],a=n.getAttribute(i),a&&r.push(`[${i}="${a}"]`);return r.join("")}function I(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function O(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{x(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function D(t,e,n=!1){return!!m(t)&&(f(e,"RegExp")?e.test(t):!!m(e)&&(n?t===e:t.includes(e)))}function N(t,e=[],n=!1){return e.some((e=>D(t,e,n)))}function C(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&P(s,r),t[e]=s}function R(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){s&&p.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function P(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,R(t,"__sentry_original__",e)}catch(t){}}function A(t){return t.__sentry_original__}function j(t){if(l(t))return{message:t.message,name:t.name,stack:t.stack,...M(t)};if(S(t)){const e={type:t.type,target:L(t.target),currentTarget:L(t.currentTarget),...M(t)};return"undefined"!=typeof CustomEvent&&E(t,CustomEvent)&&(e.detail=t.detail),e}return t}function L(t){try{return e=t,"undefined"!=typeof Element&&E(e,Element)?$(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function M(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 U(t){return q(t,new Map)}function q(t,e){if(function(t){if(!v(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]=q(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(q(t,e))})),r}return t}function Y(){const t=o,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 V(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function F(t){const{message:e,event_id:n}=t;if(e)return e;const r=V(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function H(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 B(t,e){const n=V(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 G(t){if(t&&t.__sentry_captured__)return!0;try{R(t,"__sentry_captured__",!0)}catch(t){}return!1}function J(t){return Array.isArray(t)?t:[t]}const W="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function z(){return K(o),o}function K(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||r,e[r]=e[r]||{}}function X(){return{traceId:Y(),spanId:Y().substring(16)}}const Q=1e3;function Z(){return Date.now()/Q}const tt=function(){const{performance:t}=o;if(!t||!t.now)return Z;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/Q}();let et;(()=>{const{performance:t}=o;if(!t||!t.now)return void(et="none");const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):e;i||c<e?s<=c?(et="timeOrigin",t.timeOrigin):et="navigationStart":et="dateNow"})();function nt(t){const e=tt(),n={sid:Y(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return U({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&&rt(n,t),n}function rt(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||tt(),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:Y()),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)}const st="_sentrySpan";function ot(t,e){e?R(t,st,e):delete t[st]}function it(t){return t[st]}class at{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=X()}clone(){const t=new at;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._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._lastEventId=this._lastEventId,ot(t,it(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&&rt(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}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,r]=e instanceof ct?[e.getScopeData(),e.getRequestSession()]:v(e)?[t,t.requestSession]:[],{tags:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:p}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),r&&(this._requestSession=r),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._session=void 0,ot(this,void 0),this._attachments=[],this._propagationContext=X(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:Z(),...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}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:it(this)}}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:Y();if(!this._client)return p.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:Y();if(!this._client)return p.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:Y();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(p.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)}}const ct=at;class ut{constructor(t,e){let n,r;n=t||new ct,r=e||new ct,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 b(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}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function pt(){const t=K(z());return t.stack=t.stack||new ut(i("defaultCurrentScope",(()=>new ct)),i("defaultIsolationScope",(()=>new ct)))}function dt(t){return pt().withScope(t)}function lt(t,e){const n=pt();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function ft(t){return pt().withScope((()=>t(pt().getIsolationScope())))}function ht(t){const e=K(t);return e.acs?e.acs:{withIsolationScope:ft,withScope:dt,withSetScope:lt,withSetIsolationScope:(t,e)=>ft(e),getCurrentScope:()=>pt().getScope(),getIsolationScope:()=>pt().getIsolationScope()}}function _t(){return ht(z()).getCurrentScope()}function mt(){return ht(z()).getIsolationScope()}function gt(...t){const e=ht(z());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function yt(){return _t().getClient()}const vt=[];function St(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?J(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),o=function(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return-1}(s,(t=>"Debug"===t.name));if(-1!==o){const[t]=s.splice(o,1);s.push(t)}return s}function bt(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Et(t,e,n){if(n[e.name])W&&p.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===vt.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),vt.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("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)}W&&p.log(`Integration installed: ${e.name}`)}}const xt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],wt=(t={})=>({name:"InboundFilters",processEvent(e,n,r){const s=r.getOptions(),o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:xt],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],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 W&&p.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${F(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}`));return e}(t).some((t=>N(t,e)))}(t,e.ignoreErrors))return W&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${F(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&N(n,e)}(t,e.ignoreTransactions))return W&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${F(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=kt(t);return!!n&&N(n,e)}(t,e.denyUrls))return W&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${F(t)}.\nUrl: ${kt(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=kt(t);return!n||N(n,e)}(t,e.allowUrls))return W&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${F(t)}.\nUrl: ${kt(t)}`),!0;return!1}(e,o)?null:e}});function kt(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&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return W&&p.error(`Cannot extract url for event ${F(t)}`),null}}let $t;const Tt=new WeakMap,It=()=>({name:"FunctionToString",setupOnce(){$t=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=A(this),n=Tt.has(yt())&&void 0!==e?e:this;return $t.apply(n,t)}}catch(t){}},setup(t){Tt.set(t,!0)}}),Ot=()=>{let t;return{name:"Dedupe",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(!Nt(t,e))return!1;if(!Dt(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Ct(e),r=Ct(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Nt(t,e))return!1;if(!Dt(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return W&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};function Dt(t,e){let n=Rt(t),r=Rt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],s=n[t];if(e.filename!==s.filename||e.lineno!==s.lineno||e.colno!==s.colno||e.function!==s.function)return!1}return!0}function Nt(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Ct(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Rt(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}function Pt(t,e){!0===e.debug&&(W?p.enable():u((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));_t().update(e.initialScope);const n=new t(e);!function(t){_t().setClient(t)}(n),n.init()}const At="production";const jt=50,Lt="?",Mt=/\(error: (.*)\)/,Ut=/captureMessage|captureException/;function qt(...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;t<o.length;t++){const n=o[t];if(n.length>1024)continue;const i=Mt.test(n)?n.replace(Mt,"$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>=jt+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop();e.reverse(),Ut.test(e[e.length-1].function||"")&&(e.pop(),Ut.test(e[e.length-1].function||"")&&e.pop());return e.slice(0,jt).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||Lt})))}(s.slice(r))}}const Yt="<anonymous>";function Vt(t){try{return t&&"function"==typeof t&&t.name||Yt}catch(t){return Yt}}function Ft(t,e=100,n=1/0){try{return Bt("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Ht(t,e=3,n=102400){const r=Ft(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?Ht(t,e-1,n):r;var s}function Bt(t,e,n=1/0,r=1/0,s=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<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[o,i]=s;if(null==e||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(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(x(e))return"[VueViewModel]";if(v(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${Vt(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?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 Bt("",u.toJSON(),c-1,r,s)}catch(t){}const p=Array.isArray(e)?[]:{};let d=0;const l=j(e);for(const t in l){if(!Object.prototype.hasOwnProperty.call(l,t))continue;if(d>=r){p[t]="[MaxProperties ~]";break}const e=l[t];p[t]=Bt(t,e,c-1,r,s),d++}return i(e),p}var Gt;function Jt(t){return new zt((e=>{e(t)}))}function Wt(t){return new zt(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Gt||(Gt={}));class zt{constructor(t){zt.prototype.__init.call(this),zt.prototype.__init2.call(this),zt.prototype.__init3.call(this),zt.prototype.__init4.call(this),this._state=Gt.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new zt(((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 zt(((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(Gt.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Gt.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===Gt.PENDING&&(b(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Gt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Gt.RESOLVED&&t[1](this._value),this._state===Gt.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function Kt(t,e,n,r=0){return new zt(((s,o)=>{const i=t[r];if(null===e||"function"!=typeof i)s(e);else{const a=i({...e},n);W&&i.id&&null===a&&p.log(`Event processor "${i.id}" dropped event`),b(a)?a.then((e=>Kt(t,e,n,r+1).then(s))).then(null,o):Kt(t,a,n,r+1).then(s).then(null,o)}}))}const Xt="sentry.source",Qt="sentry.sample_rate",Zt="sentry.op",te="sentry.origin",ee="sentry.measurement_unit",ne="sentry.measurement_value";new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");const re="_sentryMetrics";function se(t){const e=t[re];if(!e)return;const n={};for(const[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push(U(r));return n}const oe=0,ie=1;const ae=1;function ce(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=le(t);return U({parent_span_id:o,span_id:e,trace_id:n,data:r,op:s,status:i,origin:a})}function ue(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=le(t);return U({parent_span_id:r,span_id:e,trace_id:n})}function pe(t){return"number"==typeof t?de(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?de(t.getTime()):tt()}function de(t){return t>9999999999?t/1e3:t}function le(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{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,parentSpanId:a,status:c}=t;return U({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:pe(s),timestamp:pe(i)||void 0,status:he(c),op:r[Zt],origin:r[te],_metrics_summary:se(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function fe(t){const{traceFlags:e}=t.spanContext();return e===ae}function he(t){if(t&&t.code!==oe)return t.code===ie?"ok":t.message||"unknown_error"}const _e="_sentryChildSpans",me="_sentryRootSpan";function ge(t,e){const n=t[me]||t;R(e,me,n),t[_e]?t[_e].add(e):R(t,_e,new Set([e]))}function ye(t){return t[me]||t}function ve(){const t=ht(z());return t.getActiveSpan?t.getActiveSpan():it(_t())}const Se="_frozenDsc";function be(t,e){R(t,Se,e)}function Ee(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s=U({environment:n.environment||At,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",s),s}function xe(t){const e=yt();if(!e)return{};const n=Ee(le(t).trace_id||"",e),r=ye(t);if(!r)return n;const s=r[Se];if(s)return s;const o=le(r),i=o.data||{},a=i[Qt];null!=a&&(n.sample_rate=`${a}`);const c=i[Xt];return c&&"url"!==c&&(n.transaction=o.description),n.sampled=String(fe(r)),e.emit("createDsc",n),n}function we(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,c=U(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=U(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const p=U(s);p&&Object.keys(p).length&&(t.user={...p,...t.user});const d=U(o);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts});i&&(t.level=i);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:ue(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:xe(e),...t.sdkProcessingMetadata};const n=ye(e),r=le(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?J(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,o)}function ke(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:p,attachments:d,propagationContext:l,transactionName:f,span:h}=e;$e(t,"extra",n),$e(t,"tags",r),$e(t,"user",s),$e(t,"contexts",o),$e(t,"sdkProcessingMetadata",a),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]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...l}}function $e(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])}}function Te(t,e,n,r,s,a){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,p={...e,event_id:e.event_id||n.event_id||Y(),timestamp:e.timestamp||Z()},d=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:At);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==s&&(t.dist=s);t.message&&(t.message=I(t.message,o));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=I(i.value,o));const a=t.request;a&&a.url&&(a.url=I(a.url,o))}(p,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(p,d),void 0===e.type&&function(t,e){const n=o._sentryDebugIds;if(!n)return;let r;const s=Ie.get(e);s?r=s:(r=new Map,Ie.set(e,r));const i=Object.keys(n).reduce(((t,s)=>{let o;const i=r.get(s);i?o=i:(o=e(s),r.set(s,o));for(let e=o.length-1;e>=0;e--){const r=o[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){}}(p,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new ct;return n.update(e),n}(r,n.captureContext);n.mechanism&&B(p,n.mechanism);const f=s?s.getEventProcessors():[],h=i("globalScope",(()=>new ct)).getScopeData();if(a){ke(h,a.getScopeData())}if(l){ke(h,l.getScopeData())}const _=[...n.attachments||[],...h.attachments];_.length&&(n.attachments=_),we(p,h);return Kt([...f,...h.eventProcessors],p,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 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:Ft(t.data,e,n)}})))},...t.user&&{user:Ft(t.user,e,n)},...t.contexts&&{contexts:Ft(t.contexts,e,n)},...t.extra&&{extra:Ft(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=Ft(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:Ft(t.data,e,n)}}))));return r}(t,c,u):t)))}const Ie=new WeakMap;function Oe(t){if(t)return function(t){return t instanceof ct||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>De.includes(t)))}(t)?{captureContext:t}:t}const De=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ne(t,e){return _t().captureException(t,Oe(e))}function Ce(t,e){return _t().captureEvent(t,e)}function Re(t){const e=yt(),n=mt(),r=_t(),{release:s,environment:i=At}=e&&e.getOptions()||{},{userAgent:a}=o.navigator||{},c=nt({release:s,environment:i,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...t}),u=n.getSession();return u&&"ok"===u.status&&rt(u,{status:"exited"}),Pe(),n.setSession(c),r.setSession(c),c}function Pe(){const t=mt(),e=_t(),n=e.getSession()||t.getSession();n&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),rt(t,n)}(n),Ae(),t.setSession(),e.setSession()}function Ae(){const t=mt(),e=_t(),n=yt(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function je(t=!1){t?Pe():Ae()}const Le=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Me(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function Ue(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function qe(t){const e="string"==typeof t?function(t){const e=Le.exec(t);if(!e)return void u((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,s="",o,i="",a]=e.slice(1);let c="",p=a;const d=p.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),p=d.pop()),p){const t=p.match(/^\d+/);t&&(p=t[0])}return Ue({host:o,pass:s,path:c,projectId:p,port:i,protocol:n,publicKey:r})}(t):Ue(t);if(e&&function(t){if(!s)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(p.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(p.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}const Ye="7";function Ve(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Fe(t,e){return n={sentry_key:t.publicKey,sentry_version:Ye,...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function He(t,e,n){return e||`${function(t){return`${Ve(t)}${t.projectId}/envelope/`}(t)}?${Fe(t,n)}`}const Be=o;function Ge(){if(!("fetch"in Be))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Je(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const We={},ze={};function Ke(t,e){We[t]=We[t]||[],We[t].push(e)}function Xe(t,e){ze[t]||(e(),ze[t]=!0)}function Qe(t,e){const n=t&&We[t];if(n)for(const r of n)try{r(e)}catch(e){s&&p.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Vt(r)}\nError:`,e)}}const Ze=o;const tn=o;let en;function nn(t){const e="history";Ke(e,t),Xe(e,rn)}function rn(){if(!function(){const t=Ze.chrome,e=t&&t.app&&t.app.runtime,n="history"in Ze&&!!Ze.history.pushState&&!!Ze.history.replaceState;return!e&&n}())return;const t=tn.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=en,e=String(n);en=e;Qe("history",{from:t,to:e})}return t.apply(this,e)}}tn.onpopstate=function(...e){const n=tn.location.href,r=en;en=n;if(Qe("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},C(tn.history,"pushState",e),C(tn.history,"replaceState",e)}function sn(t,e=[]){return[t,e]}function on(t,e){const[n,r]=t;return[n,[...r,e]]}function an(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function cn(t){return o.__SENTRY__&&o.__SENTRY__.encodePolyfill?o.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function un(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[cn(r),t]:r.push("string"==typeof t?cn(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(e){t=JSON.stringify(Ft(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 pn(t){return[{type:"span"},t]}function dn(t){const e="string"==typeof t.data?cn(t.data):t.data;return[U({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const ln={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 fn(t){return ln[t]}function hn(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}class _n 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 mn(t,e,n,r){const s=hn(n),o=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 i=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:Me(r)},...s&&{trace:U({...s})}}}(t,s,r,e);delete t.sdkProcessingMetadata;return sn(i,[[{type:o},t]])}function gn(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;W&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}const yn="Not capturing exception because it's already been captured.";class vn{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=qe(t.dsn):W&&p.warn("No DSN provided, client will not send events."),this._dsn){const e=He(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){const r=Y();if(G(t))return W&&p.log(yn),r;const s={event_id:r,...e};return this._process(this.eventFromException(t,s).then((t=>this._captureEvent(t,s,n)))),s.event_id}captureMessage(t,e,n,r){const s={event_id:Y(),...n},o=g(t)?t:String(t),i=y(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(t,e,n){const r=Y();if(e&&e.originalException&&G(e.originalException))return W&&p.log(yn),r;const s={event_id:r,...e},o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,o||n)),s.event_id}captureSession(t){"string"!=typeof t.release?W&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),rt(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.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):Jt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];Et(this,t,this._integrations),e||bt(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=mn(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=on(n,dn(t));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=hn(n);return sn({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Me(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}`;W&&p.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}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)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(W&&p.error("Error while sending event:",t),t))):(W&&p.error("Transport disabled"),Jt({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&Et(t,e,n)})),n}(this,t),bt(this,t)}_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 o="ok"===t.status;(o&&0===t.errors||o&&n)&&(rt(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new zt((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=mt()){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Te(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:n,spanId:r,parentSpanId:s,dsc:o}=e;t.contexts={trace:U({trace_id:n,span_id:r,parent_span_id:s}),...t.contexts};const i=o||Ee(n,this);t.sdkProcessingMetadata={dynamicSamplingContext:i,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(W){const e=t;"log"===e.logLevel?p.log(e.message):p.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,o=bn(t),i=Sn(t),a=t.type||"error",c=`before send for type \`${a}\``,u=void 0===s?void 0:gn(s);if(i&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),Wt(new _n(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const p="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",p,t),new _n("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,beforeSendSpan:o}=t;if(Sn(e)&&r)return r(e,n);if(bn(e)){if(e.spans&&o){const t=[];for(const n of e.spans){const e=o(n);e&&t.push(e)}e.spans=t}if(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(b(t))return t.then((t=>{if(!v(t)&&null!==t)throw new _n(n);return t}),(t=>{throw new _n(`${e} rejected with ${t}`)}));if(!v(t)&&null!==t)throw new _n(n);return t}(s,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",p,t),new _n(`${c} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!o&&s&&this._updateSessionFromEvent(s,r);const i=r.transaction_info;if(o&&i&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...i,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof _n)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new _n(`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.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function Sn(t){return void 0===t.type}function bn(t){return"transaction"===t.type}const En="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function xn(t,e){const n=$n(t,e),r={type:e&&e.name,value:In(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function wn(t,e,n,r){const s=yt(),o=s&&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}return}(e),a={__serialized__:Ht(e,o)};if(i)return{exception:{values:[xn(t,i)]},extra:a};const c={exception:{values:[{type:S(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Nn(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=$n(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}function kn(t,e){return{exception:{values:[xn(t,e)]}}}function $n(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&Tn.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch(t){}return[]}const Tn=/Minified React error #\d+;/i;function In(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function On(t,e,n,r,s){let o;if(h(e)&&e.error){return kn(t,e.error)}if(_(e)||f(e,"DOMException")){const s=e;if("stack"in e)o=kn(t,e);else{const e=s.name||(_(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=Dn(t,i,n,r),H(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}if(l(e))return kn(t,e);if(v(e)||S(e)){return o=wn(t,e,n,s),B(o,{synthetic:!0}),o}return o=Dn(t,e,n,r),H(o,`${e}`,void 0),B(o,{synthetic:!0}),o}function Dn(t,e,n,r){const s={};if(r&&n){const r=$n(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}if(g(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 Nn(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(j(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return I(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:I(r,e)}return""}(t),r=e?"promise rejection":"exception";if(h(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(S(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 Cn=o;let Rn=0;function Pn(){return Rn>0}function An(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(A(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=>An(t,e)));return t.apply(this,s)}catch(t){throw Rn++,setTimeout((()=>{Rn--})),gt((n=>{n.addEventProcessor((t=>(e.mechanism&&(H(t,void 0,void 0),B(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),Ne(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}P(r,t),R(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}class jn extends vn{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,e,n=[e],s="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${s}:@sentry/${t}`,version:r}))),version:r}),t._metadata=o}(e,"browser",["browser"],Cn.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Cn.document&&Cn.document.addEventListener("visibilitychange",(()=>{"hidden"===Cn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const s=On(t,e,n&&n.syntheticException||void 0,r);return B(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Jt(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=Dn(t,e,r&&r.syntheticException||void 0,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Jt(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(En&&p.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:Me(r)}},o=function(t){return[{type:"user_report"},t]}(t);return sn(s,[o])}(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(En&&p.log("No outcomes to send"));if(!this._dsn)return void(En&&p.log("No dsn provided, will not send outcomes"));En&&p.log("Sending outcomes:",t);const e=(n=t,sn((r=this._options.tunnel&&Me(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:s||Z(),discarded_events:n}]]));var n,r,s;this.sendEnvelope(e)}}const Ln=1e3;let Mn,Un,qn;function Yn(){if(!tn.document)return;const t=Qe.bind(null,"dom"),e=Vn(t,!0);tn.document.addEventListener("click",e,!1),tn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=tn[e]&&tn[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(C(n,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=o[n]=o[n]||{refCount:0};if(!i.handler){const r=Vn(t);i.handler=r,e.call(this,n,r,s)}i.refCount++}catch(t){}return e.call(this,n,r,s)}})),C(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},o=s[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.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 Vn(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;R(n,"_sentryCaptured",!0),r&&!r._sentryId&&R(r,"_sentryId",Y());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Un)return!1;try{if(!t.target||t.target._sentryId!==qn)return!1}catch(t){}return!0}(n)){t({event:n,name:s,global:e}),Un=n.type,qn=r?r._sentryId:void 0}clearTimeout(Mn),Mn=tn.setTimeout((()=>{qn=void 0,Un=void 0}),Ln)}}const Fn="__sentry_xhr_v3__";function Hn(){if(!tn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;C(t,"open",(function(t){return function(...e){const n=1e3*tt(),r=m(e[0])?e[0].toUpperCase():void 0,s=function(t){if(m(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!r||!s)return t.apply(this,e);this[Fn]={method:r,url:s,request_headers:{}},"POST"===r&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const t=this[Fn];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}Qe("xhr",{endTimestamp:1e3*tt(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?C(this,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(this,e)}})):this.addEventListener("readystatechange",o),C(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,s=this[Fn];return s&&m(n)&&m(r)&&(s.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),C(t,"send",(function(t){return function(...e){const n=this[Fn];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);return Qe("xhr",{startTimestamp:1e3*tt(),xhr:this}),t.apply(this,e)}}))}const Bn=100;function Gn(t,e){const n=yt(),r=mt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Bn}=n.getOptions();if(o<=0)return;const i={timestamp:Z(),...t},a=s?u((()=>s(i,e))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function Jn(){"console"in o&&a.forEach((function(t){t in o.console&&C(o.console,t,(function(e){return c[t]=e,function(...e){Qe("console",{args:e,level:t});const n=c[t];n&&n.apply(o.console,e)}}))}))}function Wn(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Ge())return!1;if(Je(Be.fetch))return!0;let t=!1;const e=Be.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=Je(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){s&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&C(o,"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:Kn(e),method:zn(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Kn(e),method:zn(e,"method")?String(e.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:1e3*tt()};return Qe("fetch",{...s}),t.apply(o,e).then((t=>(Qe("fetch",{...s,endTimestamp:1e3*tt(),response:t}),t)),(t=>{throw Qe("fetch",{...s,endTimestamp:1e3*tt(),error:t}),t}))}}))}function zn(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Kn(t){return"string"==typeof t?t:t?zn(t,"url")?t.url:t.toString?t.toString():"":""}const Xn=["fatal","error","warning","log","info","debug"];function Qn(t){return"warn"===t?"warning":Xn.includes(t)?t:"log"}function Zn(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 tr=1024,er=(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";Ke(e,t),Xe(e,Jn)}(function(t){return function(e){if(yt()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Qn(e.level),message:O(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${O(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Gn(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(yt()!==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>tr&&(En&&p.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=tr),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=$(e,{keyAttrs:o,maxStringLength:i}),s=function(t){if(!w.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(t){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),Gn(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Ke("dom",n),Xe("dom",Yn)),e.xhr&&function(t){Ke("xhr",t),Xe("xhr",Hn)}(function(t){return function(e){if(yt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[Fn];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s;Gn({category:"xhr",data:{method:o,url:i,status_code:a},type:"http"},{xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(t)),e.fetch&&function(t){const e="fetch";Ke(e,t),Xe(e,Wn)}(function(t){return function(e){if(yt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){Gn({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r})}else{const t=e.response;Gn({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:r})}}}(t)),e.history&&nn(function(t){return function(e){if(yt()!==t)return;let n=e.from,r=e.to;const s=Zn(Cn.location.href);let o=n?Zn(n):void 0;const i=Zn(r);o&&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),Gn({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){yt()===t&&Gn({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:F(e)},{event:e})}}(t))}}};const nr=["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"],rr=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&C(Cn,"setTimeout",sr),e.setInterval&&C(Cn,"setInterval",sr),e.requestAnimationFrame&&C(Cn,"requestAnimationFrame",or),e.XMLHttpRequest&&"XMLHttpRequest"in Cn&&C(XMLHttpRequest.prototype,"send",ir);const t=e.eventTarget;if(t){(Array.isArray(t)?t:nr).forEach(ar)}}}};function sr(t){return function(...e){const n=e[0];return e[0]=An(n,{mechanism:{data:{function:Vt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function or(t){return function(e){return t.apply(this,[An(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Vt(t)},handled:!1,type:"instrument"}})])}}function ir(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&C(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Vt(e)},handled:!1,type:"instrument"}},r=A(e);return r&&(n.mechanism.data.handler=Vt(r)),An(e,n)}))})),t.apply(this,e)}}function ar(t){const e=Cn,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(C(n,"addEventListener",(function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=An(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Vt(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,An(r,{mechanism:{data:{function:"addEventListener",handler:Vt(r),target:t},handled:!1,type:"instrument"}}),s])}})),C(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)}})))}let cr=null;function ur(){cr=o.onerror,o.onerror=function(t,e,n,r,s){return Qe("error",{column:r,error:s,line:n,msg:t,url:e}),!(!cr||cr.__SENTRY_LOADER__)&&cr.apply(this,arguments)},o.onerror.__SENTRY_INSTRUMENTED__=!0}let pr=null;function dr(){pr=o.onunhandledrejection,o.onunhandledrejection=function(t){return Qe("unhandledrejection",t),!(pr&&!pr.__SENTRY_LOADER__)||pr.apply(this,arguments)},o.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const lr=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";Ke(e,t),Xe(e,ur)}((e=>{const{stackParser:n,attachStacktrace:r}=hr();if(yt()!==t||Pn())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=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,d=m(e)&&e.length>0?e:function(){try{return w.document.location.href}catch(t){return""}}();0===c.length&&c.push({colno:u,filename:d,function:Lt,in_app:!0,lineno:p});return t}(On(n,c||s,void 0,r,!1),o,i,a);u.level="error",Ce(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(t),fr("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";Ke(e,t),Xe(e,dr)}((e=>{const{stackParser:n,attachStacktrace:r}=hr();if(yt()!==t||Pn())return;const s=function(t){if(y(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(e),o=y(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:On(n,s,void 0,r,!0);o.level="error",Ce(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),fr("onunhandledrejection"))}}};function fr(t){En&&p.log(`Global Handler attached: ${t}`)}function hr(){const t=yt();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const _r=()=>({name:"HttpContext",preprocessEvent(t){if(!Cn.navigator&&!Cn.location&&!Cn.document)return;const e=t.request&&t.request.url||Cn.location&&Cn.location.href,{referrer:n}=Cn.document||{},{userAgent:r}=Cn.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:s};t.request=o}});function mr(t,e,n=250,r,s,o,i){if(!(o.exception&&o.exception.values&&i&&E(i.originalException,Error)))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var c,u;a&&(o.exception.values=(c=gr(t,e,s,i.originalException,r,o.exception.values,a,0),u=n,c.map((t=>(t.value&&(t.value=I(t.value,u)),t)))))}function gr(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(E(r[s],Error)){yr(i,a);const o=t(e,r[s]),u=c.length;vr(o,s,u,a),c=gr(t,e,n,r[s],s,[o,...c],o,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(E(r,Error)){yr(i,a);const u=t(e,r),p=c.length;vr(u,`errors[${o}]`,p,a),c=gr(t,e,n,r,s,[u,...c],u,p)}})),c}function yr(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 vr(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 Sr=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){const o=s.getOptions();mr(xn,o.stackParser,o.maxValueLength,n,e,t,r)}}};function br(t,e,n,r){const s={filename:t,function:"<anonymous>"===e?Lt:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const Er=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,xr=/\((\S*)(?::(\d+))(?::(\d+))\)/,wr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,kr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$r=qt(...[[30,t=>{const e=Er.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=xr.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Tr(e[1]||Lt,e[2]);return br(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=wr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=kr.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]||Lt;return[n,t]=Tr(n,t),br(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),Tr=(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]:Lt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Ir="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Or={};function Dr(t){const e=Or[t];if(e)return e;let n=tn[t];if(Je(n))return Or[t]=n.bind(tn);const r=tn.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&&s[t]&&(n=s[t]),r.head.removeChild(e)}catch(e){Ir&&p.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?Or[t]=n.bind(tn):n}function Nr(t){Or[t]=void 0}function Cr(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return Wt(new _n("Not adding Promise because buffer limit was reached."));const s=r();return-1===e.indexOf(s)&&e.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new zt(((n,r)=>{let s=e.length;if(!s)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{Jt(t).then((()=>{--s||(clearTimeout(o),n(!0))}),r)}))}))}}}const Rr=6e4;function Pr(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},o=n&&n["x-sentry-rate-limits"],i=n&&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)?Rr:r-e}(i,r):429===e&&(s.all=r+6e4);return s}const Ar=64;function jr(t,e,n=Cr(t.bufferSize||Ar)){let r={};return{send:function(s){const o=[];if(an(s,((e,n)=>{const s=fn(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=Lr(e,n);t.recordDroppedEvent("ratelimit_backoff",s,r)}else o.push(e)})),0===o.length)return Jt({});const i=sn(s[0],o),a=e=>{an(i,((n,r)=>{const s=Lr(n,r);t.recordDroppedEvent(e,fn(r),s)}))};return n.add((()=>e({body:un(i)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&W&&p.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Pr(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof _n)return W&&p.error("Skipped sending event because buffer is full."),a("queue_overflow"),Jt({});throw t}))},flush:t=>n.drain(t)}}function Lr(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function Mr(t,e=Dr("fetch")){let n=0,r=0;return jr(t,(function(s){const o=s.body.length;n+=o,r++;const i={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return Nr("fetch"),Wt("No fetch implementation available");try{return e(t.url,i).then((t=>(n-=o,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 Nr("fetch"),n-=o,r--,Wt(t)}}))}function Ur(t){return[wt(),It(),rr(),er(),lr(),Sr(),Ot(),_r()]}function qr(t={}){const e=function(t={}){return{defaultIntegrations:Ur(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Cn.SENTRY_RELEASE&&Cn.SENTRY_RELEASE.id?Cn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...t}}(t);if(function(){const t=Cn[Cn.chrome?"chrome":"browser"],e=t&&t.runtime&&t.runtime.id,n=Cn.location&&Cn.location.href||"",r=!!e&&Cn===Cn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some((t=>n.startsWith(`${t}//`)));return!!e&&!r}())return void u((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));En&&(Ge()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...e,stackParser:(r=e.stackParser||$r,Array.isArray(r)?qt(...r):r),integrations:St(e),transport:e.transport||Mr};var r;Pt(jn,n),e.autoSessionTracking&&function(){if(void 0===Cn.document)return void(En&&p.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Re({ignoreDuration:!0}),je(),nn((({from:t,to:e})=>{void 0!==t&&t!==e&&(Re({ignoreDuration:!0}),je())}))}()}function Yr(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||function(){const t=yt();return t&&t.getOptions()}();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}const Vr=["activate","mount","update"],Fr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Hr=/(?:^|[-_])(\w)/g,Br="<Anonymous>",Gr=(t,e)=>{if(!t)return Br;if(t.$root===t)return"<Root>";if(!t.$options)return Br;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?`<${o=r,o.replace(Hr,(t=>t.toUpperCase())).replace(/[-_]/g,"")}>`:Br)+(s&&!1!==e?` at ${s}`:"");var o},Jr=(t,e)=>{const{errorHandler:n,warnHandler:r,silent:s}=t.config;t.config.errorHandler=(o,i,a)=>{const c=Gr(i,!1),p=i?(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(r)))+(Array.isArray(t)?`${Gr(t[0])}... (${t[1]} recursive calls)`:Gr(t))}`;var n,r})).join("\n");return`\n\nfound in\n\n${r}`}return`\n\n(found in ${Gr(t)})`})(i):"",d={componentName:c,lifecycleHook:a,trace:p};if(e.attachProps&&i&&(i.$options&&i.$options.propsData?d.propsData=i.$options.propsData:i.$props&&(d.propsData=i.$props)),setTimeout((()=>{Ne(o,{captureContext:{contexts:{vue:d}},mechanism:{handled:!1}})})),"function"==typeof n&&n.call(t,o,i,a),e.logErrors){const t="undefined"!=typeof console,e=`Error in ${a}: "${o&&o.toString()}"`;r?r.call(null,e,i,p):t&&!s&&u((()=>{console.error(`[Vue warn]: ${e}${p}`)}))}}};class Wr{constructor(t={}){this._traceId=t.traceId||Y(),this._spanId=t.spanId||Y().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}}function zr(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},r=n[ee],s=n[ne];"string"==typeof r&&"number"==typeof s&&(e[t.name]={value:s,unit:r})})),e}const Kr="_sentryScope",Xr="_sentryIsolationScope";function Qr(t){return{scope:t[Kr],isolationScope:t[Xr]}}class Zr{constructor(t={}){this._traceId=t.traceId||Y(),this._spanId=t.spanId||Y().substring(16),this._startTime=t.startTimestamp||tt(),this._attributes={},this.setAttributes({[te]:"manual",[Zt]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?ae:0}}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])))}updateStartTime(t){this._startTime=pe(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=pe(t),function(t){if(!W)return;const{description:e="< unknown name >",op:n="< unknown op >"}=le(t),{spanId:r}=t.spanContext(),s=`[Tracing] Finishing "${n}" ${ye(t)===t?"root ":""}span "${e}" with ID ${r}`;p.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return U({data:this._attributes,description:this._name,op:this._attributes[Zt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:he(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[te],_metrics_summary:se(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes["sentry.exclusive_time"],measurements:zr(this._events),is_segment:this._isStandaloneSpan&&ye(this)===this||void 0,segment_id:this._isStandaloneSpan?ye(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){W&&p.log("[Tracing] Adding an event to span:",t);const r=ts(e)?e:n||tt(),s=ts(e)?{}:e||{},o={name:t,time:pe(r),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=yt();t&&t.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===ye(this)))return;if(this._isStandaloneSpan)return void function(t){const e=yt();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");const r=e.getTransport();r&&r.send(t).then(null,(t=>{W&&p.error("Error while sending span:",t)}))}(function(t,e){const n=xe(t[0]),r=e&&e.getDsn(),s=e&&e.getOptions().tunnel,o={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n},...!!s&&r&&{dsn:Me(r)}},i=e&&e.getOptions().beforeSendSpan,a=i?t=>i(le(t)):t=>le(t),c=[];for(const e of t){const t=a(e);t&&c.push(pn(t))}return sn(o,c)}([this],t));const e=this._convertSpanToTransaction();if(e){(Qr(this).scope||_t()).captureEvent(e)}}_convertSpanToTransaction(){if(!es(le(this)))return;this._name||(W&&p.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:e}=Qr(this),n=(t||_t()).getClient()||yt();if(!0!==this._sampled)return W&&p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=function(t){const e=new Set;return function t(n){if(!e.has(n)&&fe(n)){e.add(n);const r=n[_e]?Array.from(n[_e]):[];for(const e of r)t(e)}}(t),Array.from(e)}(this).filter((t=>t!==this&&!function(t){return t instanceof Zr&&t.isStandaloneSpan()}(t))).map((t=>le(t))).filter(es),s=this._attributes[Xt],o={contexts:{trace:ce(this)},spans:r.length>1e3?r.sort(((t,e)=>t.start_timestamp-e.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,...U({dynamicSamplingContext:xe(this)})},_metrics_summary:se(this),...s&&{transaction_info:{source:s}}},i=zr(this._events);return i&&Object.keys(i).length&&(W&&p.log("[Measurements] Adding measurements to transaction",JSON.stringify(i,void 0,2)),o.measurements=i),o}}function ts(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function es(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const ns="__SENTRY_SUPPRESS_TRACING__";function rs(t){const e=is();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=os(t),r=t.scope||_t(),s=cs(r);return t.onlyIfParent&&!s?new Wr:ss({parentSpan:s,spanContext:n,forceTransaction:t.forceTransaction,scope:r})}function ss({parentSpan:t,spanContext:e,forceTransaction:n,scope:r}){if(!Yr())return new Wr;const s=mt();let o;if(t&&!n)o=function(t,e,n){const{spanId:r,traceId:s}=t.spanContext(),o=!e.getScopeData().sdkProcessingMetadata[ns]&&fe(t),i=o?new Zr({...n,parentSpanId:r,traceId:s,sampled:o}):new Wr({traceId:s});ge(t,i);const a=yt();a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i));return i}(t,r,e),ge(t,o);else if(t){const n=xe(t),{traceId:s,spanId:i}=t.spanContext(),a=fe(t);o=as({traceId:s,parentSpanId:i,...e},r,a),be(o,n)}else{const{traceId:t,dsc:n,parentSpanId:i,sampled:a}={...s.getPropagationContext(),...r.getPropagationContext()};o=as({traceId:t,parentSpanId:i,...e},r,a),n&&be(o,n)}return function(t){if(!W)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=le(t),{spanId:s}=t.spanContext(),o=fe(t),i=ye(t),a=i===t,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:t,description:e}=le(i);u.push(`root ID: ${i.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}p.log(`${c}\n  ${u.join("\n  ")}`)}(o),function(t,e,n){t&&(R(t,Xr,n),R(t,Kr,e))}(o,r,s),o}function os(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=pe(t.startTime),delete n.startTime,n}return e}function is(){return ht(z())}function as(t,e,n){const r=yt(),s=r&&r.getOptions()||{},{name:o="",attributes:i}=t,[a,c]=e.getScopeData().sdkProcessingMetadata[ns]?[!1]:function(t,e){if(!Yr(t))return[!1];let n;n="function"==typeof t.tracesSampler?t.tracesSampler(e):void 0!==e.parentSampled?e.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;const r=gn(n);return void 0===r?(W&&p.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(W&&p.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(W&&p.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(s,{name:o,parentSampled:n,attributes:i,transactionContext:{name:o,parentSampled:n}}),u=new Zr({...t,attributes:{[Xt]:"custom",...t.attributes},sampled:a});return void 0!==c&&u.setAttribute(Qt,c),r&&r.emit("spanStart",u),u}function cs(t){const e=it(t);if(!e)return;const n=yt();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?ye(e):e}const us="ui.vue",ps={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};const ds=t=>{const e=(t.hooks||[]).concat(Vr).filter(((t,e,n)=>n.indexOf(t)===e)),n={};for(const r of e){const e=ps[r];if(e)for(const s of e)n[s]=function(){const n=this.$root===this;if(n){ve()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||rs({name:"Application Render",op:`${us}.render`,attributes:{[te]:"auto.ui.vue"}}))}const o=Gr(this,!1),i=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(o)>-1:t.trackComponents;var a,c,u;if(n||i)if(this.$_sentrySpans=this.$_sentrySpans||{},s==e[0]){if(this.$root&&this.$root.$_sentryRootSpan||ve()){const t=this.$_sentrySpans[r];t&&t.end(),this.$_sentrySpans[r]=rs({name:`Vue <${o}>`,op:`${us}.${r}`,attributes:{[te]:"auto.ui.vue"}})}}else{const e=this.$_sentrySpans[r];if(!e)return;e.end(),a=this,c=tt(),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 Fr&&p.warn(`Unknown hook: ${r}`)}return n},ls={Vue:o.Vue,attachProps:!0,logErrors:!0,hooks:Vr,timeout:2e3,trackComponents:!1},fs=(t={})=>({name:"Vue",setup(e){!function(t,e){const n={...ls,...t.getOptions(),...e};if(!n.Vue&&!n.app)return void u((()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")}));if(n.app){J(n.app).forEach((t=>hs(t,n)))}else n.Vue&&hs(n.Vue,n)}(e,t)}});const hs=(t,e)=>{if(Fr){const e=t;!0===(e._instance&&e._instance.isMounted)&&u((()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}))}Jr(t,e),Yr(e)&&t.mixin(ds({...e,...e.tracingOptions}))};function _s(t={}){qr({_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:r}],version:r}},defaultIntegrations:[...Ur(),fs()],...t})}}}]);
//# sourceMappingURL=sentry.0d86db8ab9862e5136d7.js.map