(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,923288,591401,225304,901020,t=>{"use strict";let e="10.33.0";t.s(["SDK_VERSION",()=>e],591401);let n=globalThis;function r(){return i(n),n}function i(t){let n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e,n[e]=n[e]||{}}function s(t,r,i=n){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[e]=a[e]||{};return o[t]||(o[t]=r())}t.s(["GLOBAL_OBJ",()=>n],225304),t.s(["getGlobalSingleton",()=>s,"getMainCarrier",()=>r,"getSentryCarrier",()=>i],923288);let a="u"a],901020)},62068,t=>{"use strict";var e=t.i(923288),n=t.i(901020),r=t.i(225304);let i=["debug","info","warn","error","log","assert","trace"],s={};function a(t){if(!("console"in r.GLOBAL_OBJ))return t();let e=r.GLOBAL_OBJ.console,n={},i=Object.keys(s);i.forEach(t=>{let r=s[t];n[t]=e[t],e[t]=r});try{return t()}finally{i.forEach(t=>{e[t]=n[t]})}}function o(){return u().enabled}function c(t,...e){n.DEBUG_BUILD&&o()&&a(()=>{r.GLOBAL_OBJ.console[t](`Sentry Logger [${t}]:`,...e)})}function u(){return n.DEBUG_BUILD?(0,e.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let l={enable:function(){u().enabled=!0},disable:function(){u().enabled=!1},isEnabled:o,log:function(...t){c("log",...t)},warn:function(...t){c("warn",...t)},error:function(...t){c("error",...t)}};t.s(["CONSOLE_LEVELS",()=>i,"consoleSandbox",()=>a,"debug",()=>l,"originalConsoleMethods",()=>s])},303798,453288,t=>{"use strict";let e=Object.prototype.toString;function n(t){switch(e.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return g(t,Error)}}function r(t,n){return e.call(t)===`[object ${n}]`}function i(t){return r(t,"ErrorEvent")}function s(t){return r(t,"DOMError")}function a(t){return r(t,"DOMException")}function o(t){return r(t,"String")}function c(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function u(t){return null===t||c(t)||"object"!=typeof t&&"function"!=typeof t}function l(t){return r(t,"Object")}function p(t){return"u">typeof Event&&g(t,Event)}function d(t){return"u">typeof Element&&g(t,Element)}function f(t){return r(t,"RegExp")}function _(t){return!!(t?.then&&"function"==typeof t.then)}function h(t){return l(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t,e){try{return t instanceof e}catch{return!1}}function m(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue||t.__v_isVNode))}function S(t){return"u">typeof Request&&g(t,Request)}t.s(["isDOMError",()=>s,"isDOMException",()=>a,"isElement",()=>d,"isError",()=>n,"isErrorEvent",()=>i,"isEvent",()=>p,"isInstanceOf",()=>g,"isParameterizedString",()=>c,"isPlainObject",()=>l,"isPrimitive",()=>u,"isRegExp",()=>f,"isRequest",()=>S,"isString",()=>o,"isSyntheticEvent",()=>h,"isThenable",()=>_,"isVueViewModel",()=>m],453288);let y=t.i(225304).GLOBAL_OBJ;function b(t,e={}){if(!t)return"";try{let n,r=t,i=[],s=0,a=0,c=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||80;for(;r&&s++<5&&(n=function(t,e){let n=[];if(!t?.tagName)return"";if(y.HTMLElement&&t instanceof HTMLElement&&t.dataset){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}n.push(t.tagName.toLowerCase());let r=e?.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(r?.length)r.forEach(t=>{n.push(`[${t[0]}="${t[1]}"]`)});else{t.id&&n.push(`#${t.id}`);let e=t.className;if(e&&o(e))for(let t of e.split(/\s+/))n.push(`.${t}`)}for(let e of["aria-label","type","name","title","alt"]){let r=t.getAttribute(e);r&&n.push(`[${e}="${r}"]`)}return n.join("")}(r,c),"html"!==n&&(!(s>1)||!(a+3*i.length+n.length>=u)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch{return""}}function E(){try{return y.document.location.href}catch{return""}}function v(t){if(!y.HTMLElement)return null;let e=t;for(let t=0;t<5&&e;t++){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}t.s(["getComponentName",()=>v,"getLocationHref",()=>E,"htmlTreeAsString",()=>b],303798)},662537,951497,111139,936032,821593,682564,605394,341041,318746,373382,821061,301263,250804,519988,602309,10008,170637,776710,339435,132584,304661,373250,473753,728469,45968,67486,454300,869766,804478,14177,541193,580611,571993,213186,t=>{"use strict";let e,n,r,i,s,a,o;var c=t.i(923288),u=t.i(901020),l=t.i(303798),p=t.i(62068),d=t.i(453288);function f(t,e,n){if(!(e in t))return;let r=t[e];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&h(i,r);try{t[e]=i}catch{u.DEBUG_BUILD&&p.debug.log(`Failed to replace method "${e}" in object`,t)}}function _(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{u.DEBUG_BUILD&&p.debug.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function h(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,_(t,"__sentry_original__",e)}catch{}}function g(t){return t.__sentry_original__}function m(t){if((0,d.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...y(t)};if(!(0,d.isEvent)(t))return t;{let e={type:t.type,target:S(t.target),currentTarget:S(t.currentTarget),...y(t)};return"u">typeof CustomEvent&&(0,d.isInstanceOf)(t,CustomEvent)&&(e.detail=t.detail),e}}function S(t){try{return(0,d.isElement)(t)?(0,l.htmlTreeAsString)(t):Object.prototype.toString.call(t)}catch{return""}}function y(t){if("object"!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}function b(t){let e=Object.keys(m(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}t.s(["addNonEnumerableProperty",()=>_,"convertToPlainObject",()=>m,"extractExceptionKeysForMessage",()=>b,"fill",()=>f,"getOriginalFunction",()=>g,"markFunctionWrapped",()=>h],951497);var E=t.i(225304);function v(t){if(void 0!==e)return e?e(t):t();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=E.GLOBAL_OBJ;return n in r&&"function"==typeof r[n]?(e=r[n])(t):(e=null,t())}function T(){return v(()=>Math.random())}function I(){return v(()=>Date.now())}t.s(["safeDateNow",()=>I,"safeMathRandom",()=>T,"withRandomSafeContext",()=>v],111139);let x=/\(error: (.*)\)/,A=/captureMessage|captureException/;function C(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{let i=[],s=t.split("\n");for(let t=n;t1024&&(n=n.slice(0,1024));let a=x.test(n)?n.replace(x,"$1"):n;if(!a.match(/\S*Error: /)){for(let t of e){let e=t(a);if(e){i.push(e);break}}if(i.length>=50+r)break}}var a=i.slice(r);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(O(o).function||"")&&o.pop(),o.reverse(),A.test(O(o).function||"")&&(o.pop(),A.test(O(o).function||"")&&o.pop()),o.slice(0,50).map(t=>({...t,filename:t.filename||O(o).filename,function:t.function||"?"}))}}function D(t){return Array.isArray(t)?C(...t):t}function O(t){return t[t.length-1]||{}}let k="";function N(t){try{if(!t||"function"!=typeof t)return k;return t.name||k}catch{return k}}function w(t){let e=t.exception;if(e){let t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{}}}function L(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function R(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function B(t,e){let n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);let i=Math.max(e-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n=`'{snip} ${n}`),sM(t,e,n))}function $(t=function(){let t=E.GLOBAL_OBJ;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return v(()=>t.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,t=>(t^(15&16*T())>>t/4).toString(16))}function j(t){return t.exception?.values?.[0]}function G(t){let{message:e,event_id:n}=t;if(e)return e;let r=j(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function F(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function J(t,e){let n=j(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r?.data,...e.data};n.mechanism.data=t}}function H(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{_(t,"__sentry_captured__",!0)}catch{}return!1}function V(){return I()/1e3}function Y(){return(r??(r=function(){let{performance:t}=E.GLOBAL_OBJ;if(!t?.now||!t.timeOrigin)return V;let e=t.timeOrigin;return()=>(e+v(()=>t.now()))/1e3}()))()}t.s(["UNKNOWN_FUNCTION",()=>"?","createStackParser",()=>C,"getFramesFromEvent",()=>w,"getFunctionName",()=>N,"getVueInternalName",()=>L,"stackParserFromStackParserOptions",()=>D],936032),t.s(["isMatchingPattern",()=>M,"safeJoin",()=>U,"snipLine",()=>B,"stringMatchesSomePattern",()=>P,"truncate",()=>R],821593),t.s(["addExceptionMechanism",()=>J,"addExceptionTypeValue",()=>F,"checkOrSetAlreadyCaught",()=>H,"getEventDescription",()=>G,"uuid4",()=>$],682564);let z=null;function K(){return null===z&&(z=function(){let{performance:t}=E.GLOBAL_OBJ;if(!t?.now)return;let e=v(()=>t.now()),n=I(),r=t.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+e-n))return r;let i=t.timing?.navigationStart;return"number"==typeof i&&3e5>Math.abs(i+e-n)?i:n-e}()),z}function W(t){let e=Y(),n={sid:$(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var t;return t=n,{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}}}};return t&&q(n,t),n}function q(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||Y(),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:$()),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{let 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 X(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),q(t,n)}function Q(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;let r={...t};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Q(r[t],e[t],n-1));return r}function Z(){return $()}function tt(){return $().substring(16)}t.s(["browserPerformanceTimeOrigin",()=>K,"dateTimestampInSeconds",()=>V,"timestampInSeconds",()=>Y],605394),t.s(["closeSession",()=>X,"makeSession",()=>W,"updateSession",()=>q],341041),t.s(["merge",()=>Q],318746),t.s(["generateSpanId",()=>tt,"generateTraceId",()=>Z],373382);let te="_sentrySpan";function tn(t,e){e?_(t,te,e):delete t[te]}function tr(t){return t[te]}t.s(["_getSpanForScope",()=>tr,"_setSpanForScope",()=>tn],821061);class ti{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Z(),sampleRand:T()}}clone(){let t=new ti;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},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,tn(t,this[te]),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&&q(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})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],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;let e="function"==typeof t?t(this):t,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:o,fingerprint:c=[],propagationContext:u}=(e instanceof ti?e.getScopeData():(0,d.isPlainObject)(e)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),o&&(this._level=o),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,tn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Z(),sampleRand:T()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:V(),...t,message:t.message?R(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,attributes:this._attributes,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:this[te]}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Q(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e?.event_id||$();if(!this._client)return u.DEBUG_BUILD&&p.debug.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){let r=n?.event_id||$();if(!this._client)return u.DEBUG_BUILD&&p.debug.warn("No client configured on scope - will not capture message!"),r;let i=n?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){let n=e?.event_id||$();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):u.DEBUG_BUILD&&p.debug.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)}}class ts{constructor(t,e){let n,r;n=t||new ti,r=e||new ti,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}return(0,d.isThenable)(e)?e.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function ta(){let t=(0,c.getMainCarrier)(),e=(0,c.getSentryCarrier)(t);return e.stack=e.stack||new ts((0,c.getGlobalSingleton)("defaultCurrentScope",()=>new ti),(0,c.getGlobalSingleton)("defaultIsolationScope",()=>new ti))}function to(t){return ta().withScope(t)}function tc(t,e){let n=ta();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tu(t){return ta().withScope(()=>t(ta().getIsolationScope()))}function tl(t){let e=(0,c.getSentryCarrier)(t);return e.acs?e.acs:{withIsolationScope:tu,withScope:to,withSetScope:tc,withSetIsolationScope:(t,e)=>tu(e),getCurrentScope:()=>ta().getScope(),getIsolationScope:()=>ta().getIsolationScope()}}function tp(){return tl((0,c.getMainCarrier)()).getCurrentScope()}function td(){return tl((0,c.getMainCarrier)()).getIsolationScope()}function tf(){return(0,c.getGlobalSingleton)("globalScope",()=>new ti)}function t_(...t){let e=tl((0,c.getMainCarrier)());if(2===t.length){let[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function th(...t){let e=tl((0,c.getMainCarrier)());if(2===t.length){let[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])}function tg(){return tp().getClient()}function tm(t){let{traceId:e,parentSpanId:n,propagationSpanId:r}=t.getPropagationContext(),i={trace_id:e,span_id:r||tt()};return n&&(i.parent_span_id=n),i}t.s(["getAsyncContextStrategy",()=>tl],301263),t.s(["getClient",()=>tg,"getCurrentScope",()=>tp,"getGlobalScope",()=>tf,"getIsolationScope",()=>td,"getTraceContextFromScope",()=>tm,"withIsolationScope",()=>th,"withScope",()=>t_],250804);let tS="sentry.source",ty="sentry.sample_rate",tb="sentry.previous_trace_sample_rate",tE="sentry.op",tv="sentry.origin",tT="sentry.measurement_unit",tI="sentry.measurement_value",tx="sentry.custom_span_name",tA="sentry.profile_id",tC="sentry.exclusive_time";t.s(["SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",()=>tC,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",()=>"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",()=>tA,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",()=>tx,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",()=>"sentry.idle_span_finish_reason","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",()=>tT,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",()=>tI,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tE,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tv,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",()=>tb,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>ty,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tS,"SEMANTIC_ATTRIBUTE_URL_FULL",()=>"url.full","SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",()=>"sentry.link.type"],519988);let tD="sentry-",tO=/^sentry-/;function tk(t){let e=tw(t);if(!e)return;let n=Object.entries(e).reduce((t,[e,n])=>(e.match(tO)&&(t[e.slice(tD.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function tN(t){if(t){var e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${tD}${e}`]=n),t),{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,[e,n],r)=>{let i=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?i:`${t},${i}`;return s.length>8192?(u.DEBUG_BUILD&&p.debug.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},""):void 0}}function tw(t){if(t&&((0,d.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(tL(e)).forEach(([e,n])=>{t[e]=n}),t),{}):tL(t)}function tL(t){return t.split(",").map(t=>{let 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),{})}function tR(t,e,n=()=>{},r=()=>{}){var i,s,a,o;let c;try{c=t()}catch(t){throw e(t),n(),t}return i=c,s=e,a=n,o=r,(0,d.isThenable)(i)?i.then(t=>(a(),o(t),t),t=>{throw s(t),a(),t}):(a(),o(i),i)}function tB(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=t||tg()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}function tU(t){if("boolean"==typeof t)return Number(t);let e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e))&&!(e<0)&&!(e>1))return e}function tM(t,e){t.setAttribute("http.response.status_code",e);let n=function(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(e);"unknown_error"!==n.message&&t.setStatus(n)}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",()=>tD,"baggageHeaderToDynamicSamplingContext",()=>tk,"dynamicSamplingContextToSentryBaggageHeader",()=>tN,"parseBaggageHeader",()=>tw],602309),t.s(["hasSpansEnabled",()=>tB],10008),t.s(["parseSampleRate",()=>tU],170637),t.s(["SPAN_STATUS_ERROR",()=>2,"SPAN_STATUS_OK",()=>1,"SPAN_STATUS_UNSET",()=>0,"setHttpStatus",()=>tM],776710);let tP="_sentryScope",t$="_sentryIsolationScope";function tj(t){return{scope:t[tP],isolationScope:function(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}(t[t$])}}let tG=/^o(\d+)\./,tF=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function tJ(t,e=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function tH(t){let e=tF.exec(t);if(!e)return void(0,p.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});let[n,r,i="",s="",a="",o=""]=e.slice(1),c="",u=o,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return tV({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function tV(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function tY(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(tG),e=t?.[1])}return e}function tz(t){let e="string"==typeof t?tH(t):tV(t);if(e&&function(t){if(!u.DEBUG_BUILD)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(p.debug.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(p.debug.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(p.debug.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(p.debug.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}t.s(["dsnFromString",()=>tH,"dsnToString",()=>tJ,"extractOrgIdFromClient",()=>tY,"makeDsn",()=>tz],339435);let tK=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tW(t,e){let n=function(t){let e;if(!t)return;let n=t.match(tK);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=tk(e);if(!n?.traceId)return{traceId:Z(),sampleRand:T()};let i=function(t,e){let n=tU(e?.sample_rand);if(void 0!==n)return n;let r=tU(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?T()*r:r+T()*(1-r):T()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}}function tq(t=Z(),e=tt(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function tX(t=Z(),e=tt(),n){return`00-${t}-${e}-${n?"01":"00"}`}function tQ(t,e){let n=tY(t);return e&&n&&e!==n?(p.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${e}, SDK options: ${n})`),!1):!t.getOptions().strictTraceContinuation||(!e||!!n)&&(!!e||!n)||(p.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1)}t.s(["TRACEPARENT_REGEXP",()=>tK,"generateSentryTraceHeader",()=>tq,"generateTraceparentHeader",()=>tX,"propagationContextFromHeaders",()=>tW,"shouldContinueTrace",()=>tQ],132584);let tZ=!1;function t0(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=t6(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function t1(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:t6(t).parent_span_id,s=tj(t).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||tt():e,trace_id:n}}function t3(t){let{traceId:e,spanId:n}=t.spanContext();return tq(e,n,t9(t))}function t2(t){let{traceId:e,spanId:n}=t.spanContext();return tX(e,n,t9(t))}function t4(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:i})=>({span_id:t,trace_id:e,sampled:1===n,attributes:i,...r})):void 0}function t8(t){return"number"==typeof t?t5(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?t5(t.getTime()):Y()}function t5(t){return t>0x2540be3ff?t/1e3:t}function t6(t){var e;if("function"==typeof t.getSpanJSON)return t.getSpanJSON();let{spanId:n,traceId:r}=t.spanContext();if((e=t).attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:e,startTime:i,name:s,endTime:a,status:o,links:c}=t;return{span_id:n,trace_id:r,data:e,description:s,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:t8(i),timestamp:t8(a)||void 0,status:t7(o),op:e[tE],origin:e[tv],links:t4(c)}}return{span_id:n,trace_id:r,start_timestamp:0,data:{}}}function t9(t){let{traceFlags:e}=t.spanContext();return 1===e}function t7(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}let et="_sentryChildSpans",ee="_sentryRootSpan";function en(t,e){let n=t[ee]||t;_(e,ee,n),t[et]?t[et].add(e):_(t,et,new Set([e]))}function er(t,e){t[et]&&t[et].delete(e)}function ei(t){let e=new Set;return!function t(n){if(!e.has(n)&&t9(n))for(let r of(e.add(n),n[et]?Array.from(n[et]):[]))t(r)}(t),Array.from(e)}function es(t){return t[ee]||t}function ea(){let t=tl((0,c.getMainCarrier)());return t.getActiveSpan?t.getActiveSpan():tp()[te]}function eo(){tZ||((0,p.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),tZ=!0)}t.s(["TRACE_FLAG_NONE",()=>0,"TRACE_FLAG_SAMPLED",()=>1,"addChildSpanToSpan",()=>en,"convertSpanLinksForEnvelope",()=>t4,"getActiveSpan",()=>ea,"getRootSpan",()=>es,"getSpanDescendants",()=>ei,"getStatusMessage",()=>t7,"removeChildSpanFromSpan",()=>er,"showSpanDropWarning",()=>eo,"spanIsSampled",()=>t9,"spanTimeInputToSeconds",()=>t8,"spanToJSON",()=>t6,"spanToTraceContext",()=>t1,"spanToTraceHeader",()=>t3,"spanToTraceparentHeader",()=>t2,"spanToTransactionTraceContext",()=>t0],304661);let ec="production";t.s(["DEFAULT_ENVIRONMENT",()=>ec],373250);let eu="_frozenDsc";function el(t,e){_(t,eu,e)}function ep(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||ec,release:n.release,public_key:r,trace_id:t,org_id:tY(e)};return e.emit("createDsc",i),i}function ed(t,e){let n=e.getPropagationContext();return n.dsc||ep(n.traceId,t)}function ef(t){let e=tg();if(!e)return{};let n=es(t),r=t6(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[ty]??i[tb];function o(t){return("number"==typeof a||"string"==typeof a)&&(t.sample_rate=`${a}`),t}let c=n[eu];if(c)return o(c);let u=s?.get("sentry.dsc"),l=u&&tk(u);if(l)return o(l);let p=ep(t.spanContext().traceId,e),d=i[tS],f=r.description;return"url"!==d&&f&&(p.transaction=f),tB()&&(p.sampled=String(t9(n)),p.sample_rand=s?.get("sentry.sample_rand")??tj(n).scope?.getPropagationContext().sampleRand.toString()),o(p),e.emit("createDsc",p,n),p}t.s(["freezeDscOnSpan",()=>el,"getDynamicSamplingContextFromScope",()=>ed,"getDynamicSamplingContextFromSpan",()=>ef],473753);class e_{constructor(t={}){this._traceId=t.traceId||Z(),this._spanId=t.spanId||tt()}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}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}function eh(e,n=100,r=Infinity){try{return function e(n,r,i=Infinity,s=Infinity,a=function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){let[o,c]=a;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let u=function(e,n){try{var r;let i;if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(n===t.g)return"[Global]";if("u">typeof window&&n===window)return"[Window]";if("u">typeof document&&n===document)return"[Document]";if((0,d.isVueViewModel)(n))return L(n);if((0,d.isSyntheticEvent)(n))return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${N(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;let s=(r=n,i=Object.getPrototypeOf(r),i?.constructor?i.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}(n,r);if(!u.startsWith("[object "))return u;if(r.__sentry_skip_normalization__)return r;let l="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===l)return u.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,l-1,s,a)}catch{}let p=Array.isArray(r)?[]:{},f=0,_=m(r);for(let t in _){if(!Object.prototype.hasOwnProperty.call(_,t))continue;if(f>=s){p[t]="[MaxProperties ~]";break}let n=_[t];p[t]=e(t,n,l-1,s,a),f++}return c(r),p}("",e,n,r)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function eg(t,e=[]){return[t,e]}function em(t,e){let[n,r]=t;return[n,[...r,e]]}function eS(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function ey(t){let e=(0,c.getSentryCarrier)(E.GLOBAL_OBJ);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function eb(t){let[e,n]=t,r=JSON.stringify(e);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[ey(r),t]:r.push("string"==typeof t?ey(t):t)}for(let t of n){let[e,n]=t;if(i(` ${JSON.stringify(e)} `),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(eh(n))}i(t)}}return"string"==typeof r?r:function(t){let e=new Uint8Array(t.reduce((t,e)=>t+e.length,0)),n=0;for(let r of t)e.set(r,n),n+=r.length;return e}(r)}function eE(t){return[{type:"span"},t]}function ev(t){let e="string"==typeof t.data?ey(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}t.s(["SentryNonRecordingSpan",()=>e_],728469),t.s(["normalize",()=>eh,"normalizeToSize",()=>function t(e,n=3,r=102400){let i=eh(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}],45968);let eT={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 eI(t){return eT[t]}function ex(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function eA(t,e,n,r){let i=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:tJ(r)},...i&&{trace:i}}}function eC(t){p.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function eD(t,e){if(!e?.length||!t.description)return!1;for(let r of e){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(M(t.description,r))return u.DEBUG_BUILD&&eC(t),!0;continue}if(!r.name&&!r.op)continue;let e=!r.name||M(t.description,r.name),i=!r.op||t.op&&M(t.op,r.op);if(e&&i)return u.DEBUG_BUILD&&eC(t),!0}return!1}function eO(t,e){let n=e.parent_span_id,r=e.span_id;if(n)for(let e of t)e.parent_span_id===r&&(e.parent_span_id=n)}function ek(t,e,n,r){let i=ex(n);return eg({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:tJ(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}function eN(t,e,n,r){let i=ex(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return;let 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);let a=eA(t,i,r,e);return delete t.sdkProcessingMetadata,eg(a,[[{type:s},t]])}function ew(t,e){let n=ef(t[0]),r=e?.getDsn(),i=e?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:tJ(r)}},{beforeSendSpan:a,ignoreSpans:o}=e?.getOptions()||{},c=o?.length?t.filter(t=>!eD(t6(t),o)):t,u=t.length-c.length;u&&e?.recordDroppedEvent("before_send","span",u);let l=a?t=>{let e=t6(t),n=a(e);return n||(eo(),e)}:t6,p=[];for(let t of c){let e=l(t);e&&p.push(eE(e))}return eg(s,p)}function eL(t,e,n,r=ea()){let i=r&&es(r);i&&(u.DEBUG_BUILD&&p.debug.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[tI]:e,[tT]:n}))}function eR(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[tT],i=n[tI];"string"==typeof r&&"number"==typeof i&&(e[t.name]={value:i,unit:r})}),e}t.s(["addItemToEnvelope",()=>em,"createAttachmentEnvelopeItem",()=>ev,"createEnvelope",()=>eg,"createEventEnvelopeHeaders",()=>eA,"createSpanEnvelopeItem",()=>eE,"envelopeItemTypeToDataCategory",()=>eI,"forEachEnvelopeItem",()=>eS,"getSdkMetadataForEnvelopeHeader",()=>ex,"serializeEnvelope",()=>eb],67486),t.s(["reparentChildSpans",()=>eO,"shouldIgnoreSpan",()=>eD],454300),t.s(["createEventEnvelope",()=>eN,"createSessionEnvelope",()=>ek,"createSpanEnvelope",()=>ew],869766),t.s(["setMeasurement",()=>eL,"timedEventsToMeasurements",()=>eR],804478);class eB{constructor(t={}){this._traceId=t.traceId||Z(),this._spanId=t.spanId||tt(),this._startTime=t.startTimestamp||Y(),this._links=t.links,this._attributes={},this.setAttributes({[tv]:"manual",[tE]: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()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,e){}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:+!!n}}setAttribute(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(t){this._startTime=t8(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(tS,"custom"),this}end(t){this._endTime||(this._endTime=t8(t),function(t){if(!u.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >"}=t6(t),{spanId:r}=t.spanContext(),i=es(t)===t,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;p.debug.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tE],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:t7(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tv],profile_id:this._attributes[tA],exclusive_time:this._attributes[tC],measurements:eR(this._events),is_segment:this._isStandaloneSpan&&es(this)===this||void 0,segment_id:this._isStandaloneSpan?es(this).spanContext().spanId:void 0,links:t4(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){u.DEBUG_BUILD&&p.debug.log("[Tracing] Adding an event to span:",t);let r=eU(e)?e:n||Y(),i=eU(e)?{}:e||{},s={name:t,time:t8(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=tg();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===es(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=tg();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(ew([this],t)):(u.DEBUG_BUILD&&p.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));let e=this._convertSpanToTransaction();e&&(tj(this).scope||tp()).captureEvent(e)}_convertSpanToTransaction(){if(!eM(t6(this)))return;this._name||(u.DEBUG_BUILD&&p.debug.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:t,isolationScope:e}=tj(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=ei(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof eB&&e.isStandaloneSpan())}).map(t=>t6(t)).filter(eM),i=this._attributes[tS];delete this._attributes[tx],r.forEach(t=>{delete t.data[tx]});let s={contexts:{trace:t0(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,dynamicSamplingContext:ef(this)},request:n,...i&&{transaction_info:{source:i}}},a=eR(this._events);return a&&Object.keys(a).length&&(u.DEBUG_BUILD&&p.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),s.measurements=a),s}}function eU(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function eM(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}t.s(["SentrySpan",()=>eB],14177);let eP="__SENTRY_SUPPRESS_TRACING__";function e$(t,e){let n=eY();if(n.startSpan)return n.startSpan(t,e);let r=eV(t),{forceTransaction:i,parentSpan:s,scope:a}=t;return t_(a?.clone(),()=>eW(s)(()=>{let n=tp(),a=eK(n,s),o=t.onlyIfParent&&!a?new e_:eH({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return tn(n,o),tR(()=>e(o),()=>{let{status:t}=t6(o);o.isRecording()&&(!t||"ok"===t)&&o.setStatus({code:2,message:"internal_error"})},()=>{o.end()})}))}function ej(t,e){let n=eY();if(n.startSpanManual)return n.startSpanManual(t,e);let r=eV(t),{forceTransaction:i,parentSpan:s,scope:a}=t;return t_(a?.clone(),()=>eW(s)(()=>{let n=tp(),a=eK(n,s),o=t.onlyIfParent&&!a?new e_:eH({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return tn(n,o),tR(()=>e(o,()=>o.end()),()=>{let{status:t}=t6(o);o.isRecording()&&(!t||"ok"===t)&&o.setStatus({code:2,message:"internal_error"})})}))}function eG(t){let e=eY();if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=eV(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?e=>t_(t.scope,e):void 0!==i?t=>eF(i,t):t=>t())(()=>{let e=tp(),s=eK(e,i);return t.onlyIfParent&&!s?new e_:eH({parentSpan:s,spanArguments:n,forceTransaction:r,scope:e})})}function eF(t,e){let n=eY();return n.withActiveSpan?n.withActiveSpan(t,e):t_(n=>(tn(n,t||void 0),e(n)))}function eJ(t){return t_(e=>(e.setPropagationContext({traceId:Z(),sampleRand:T()}),u.DEBUG_BUILD&&p.debug.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),eF(null,t)))}function eH({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){var i;let s;if(!tB()){let r=new e_;if(n||!t){let t={sampled:"false",sample_rate:"0",transaction:e.name,...ef(r)};el(r,t)}return r}let a=td();if(t&&!n)s=function(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),s=!e.getScopeData().sdkProcessingMetadata[eP]&&t9(t),a=s?new eB({...n,parentSpanId:r,traceId:i,sampled:s}):new e_({traceId:i});en(t,a);let o=tg();return o&&(o.emit("spanStart",a),n.endTimestamp&&o.emit("spanEnd",a)),a}(t,r,e),en(t,s);else if(t){let n=ef(t),{traceId:i,spanId:a}=t.spanContext(),o=t9(t);el(s=ez({traceId:i,parentSpanId:a,...e},r,o),n)}else{let{traceId:t,dsc:n,parentSpanId:i,sampled:o}={...a.getPropagationContext(),...r.getPropagationContext()};s=ez({traceId:t,parentSpanId:i,...e},r,o),n&&el(s,n)}return!function(t){if(!u.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=t6(t),{spanId:i}=t.spanContext(),s=t9(t),a=es(t),o=a===t,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,l=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!o){let{op:t,description:e}=t6(a);l.push(`root ID: ${a.spanContext().spanId}`),t&&l.push(`root op: ${t}`),e&&l.push(`root description: ${e}`)}p.debug.log(`${c} ${l.join("\n ")}`)}(s),(i=s)&&(_(i,t$,function(t){try{let e=E.GLOBAL_OBJ.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(a)),_(i,tP,r)),s}function eV(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=t8(t.startTime),delete n.startTime,n}return e}function eY(){return tl((0,c.getMainCarrier)())}function ez(t,e,n){let r=tg(),i=r?.getOptions()||{},{name:s=""}=t,a={spanAttributes:{...t.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});let o=a.parentSampled??n,c=a.spanAttributes,l=e.getPropagationContext(),[d,f,_]=e.getScopeData().sdkProcessingMetadata[eP]?[!1]:function(t,e,n){let r,i;if(!tB(t))return[!1];"function"==typeof t.tracesSampler?(r=t.tracesSampler({...e,inheritOrSampleWith:t=>"number"==typeof e.parentSampleRate?e.parentSampleRate:"boolean"==typeof e.parentSampled?Number(e.parentSampled):t}),i=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,i=!0);let s=tU(r);if(void 0===s)return u.DEBUG_BUILD&&p.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return u.DEBUG_BUILD&&p.debug.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,s,i];let a=neF(t,e):t=>t()}function eq(t){return new eQ(e=>{e(t)})}function eX(t){return new eQ((e,n)=>{n(t)})}t.s(["startInactiveSpan",()=>eG,"startNewTrace",()=>eJ,"startSpan",()=>e$,"startSpanManual",()=>ej,"withActiveSpan",()=>eF],541193);class eQ{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new eQ((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 eQ((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;let 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){let e=(t,e)=>{if(0===this._state){if((0,d.isThenable)(e))return void 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 eZ(t,e){var n,r,i,s,a,o,c,u;let l,p,{fingerprint:d,span:f,breadcrumbs:_,sdkProcessingMetadata:h}=e;(function(t,e){let{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(i).length&&(t.user={...i,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),a&&(t.level=a),o&&"transaction"!==t.type&&(t.transaction=o)})(t,e),f&&((n=t).contexts={trace:t1(r=f),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:ef(r),...n.sdkProcessingMetadata},(l=t6(es(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=l)),i=t,s=d,i.fingerprint=i.fingerprint?Array.isArray(i.fingerprint)?i.fingerprint:[i.fingerprint]:[],s&&(i.fingerprint=i.fingerprint.concat(s)),i.fingerprint.length||delete i.fingerprint,a=t,o=_,p=[...a.breadcrumbs||[],...o],a.breadcrumbs=p.length?p:void 0,c=t,u=h,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function e0(t,e){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:p,attachments:d,propagationContext:f,transactionName:_,span:h}=e;e1(t,"extra",n),e1(t,"tags",r),e1(t,"attributes",i),e1(t,"user",s),e1(t,"contexts",a),t.sdkProcessingMetadata=Q(t.sdkProcessingMetadata,c,2),o&&(t.level=o),_&&(t.transactionName=_),h&&(t.span=h),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...f}}function e1(t,e,n){t[e]=Q(t[e],n,1)}function e3(t,e){let n=tf().getScopeData();return t&&e0(n,t.getScopeData()),e&&e0(n,e.getScopeData()),n}function e2(t,e,n,r,c,l){var f,_,h;let g,{normalizeDepth:m=3,normalizeMaxBreadth:S=1e3}=t,y={...e,event_id:e.event_id||n.event_id||$(),timestamp:e.timestamp||V()},b=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:s}=e;t.environment=t.environment||n||ec,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;a?.url&&s&&(a.url=R(a.url,s)),s&&t.exception?.values?.forEach(t=>{t.value&&(t.value=R(t.value,s))})})(y,t),f=y,(_=b).length>0&&(f.sdk=f.sdk||{},f.sdk.integrations=[...f.sdk.integrations||[],..._]),c&&c.emit("applyFrameMetadata",e),void 0===e.type&&(h=y,g=function(t){let e=E.GLOBAL_OBJ._sentryDebugIds,n=E.GLOBAL_OBJ._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],c=n?Object.keys(n):[];if(o&&r.length===s&&c.length===a)return o;s=r.length,a=c.length,o={},i||(i={});let u=(e,n)=>{for(let r of e){let e=n[r],s=i?.[r];if(s&&o&&e)o[s[0]]=e,i&&(i[r]=[s[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t--){let s=n[t],a=s?.filename;if(a&&o&&i){o[a]=e,i[r]=[a,e];break}}}}};return e&&u(r,e),n&&u(c,n),o}(t.stackParser),h.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=g[t.filename])})}));let v=function(t,e){if(!e)return t;let n=t?t.clone():new ti;return n.update(e),n}(r,n.captureContext);n.mechanism&&J(y,n.mechanism);let T=c?c.getEventProcessors():[],I=e3(l,v),x=[...n.attachments||[],...I.attachments];return x.length&&(n.attachments=x),eZ(y,I),(function(t,e,n,r=0){try{let i=function t(e,n,r,i){let s=r[i];if(!e||!s)return e;let a=s({...e},n);return(u.DEBUG_BUILD&&null===a&&p.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,d.isThenable)(a))?a.then(e=>t(e,n,r,i+1)):t(a,n,r,i+1)}(e,n,t,r);return(0,d.isThenable)(i)?i:eq(i)}catch(t){return eX(t)}})([...T,...I.eventProcessors],y,n).then(t=>(t&&function(t){let 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||[];let n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof m&&m>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:eh(t.data,e,n)}}))},...t.user&&{user:eh(t.user,e,n)},...t.contexts&&{contexts:eh(t.contexts,e,n)},...t.extra&&{extra:eh(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=eh(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:eh(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=eh(t.contexts.flags,3,n)),r}(t,m,S):t)}function e4(t){if(t){var e;return(e=t)instanceof ti||"function"==typeof e||Object.keys(t).some(t=>e8.includes(t))?{captureContext:t}:t}}t.s(["rejectedSyncPromise",()=>eX,"resolvedSyncPromise",()=>eq],580611),t.s(["applyScopeDataToEvent",()=>eZ,"getCombinedScopeData",()=>e3],571993);let e8=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function e5(t,e){return tp().captureException(t,e4(e))}function e6(t,e){return tp().captureEvent(t,e)}function e9(t,e){td().setContext(t,e)}function e7(){let t=tg();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function nt(t){td().addEventProcessor(t)}function ne(t){let e=td(),n=tp(),{userAgent:r}=E.GLOBAL_OBJ.navigator||{},i=W({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),s=e.getSession();return s?.status==="ok"&&q(s,{status:"exited"}),nn(),e.setSession(i),i}function nn(){let t=td(),e=tp().getSession()||t.getSession();e&&X(e),nr(),t.setSession()}function nr(){let t=td(),e=tg(),n=t.getSession();n&&e&&e.captureSession(n)}function ni(t=!1){t?nn():nr()}t.s(["parseEventHintOrCaptureContext",()=>e4,"prepareEvent",()=>e2],213186),t.s(["addEventProcessor",()=>nt,"captureEvent",()=>e6,"captureException",()=>e5,"captureSession",()=>ni,"isEnabled",()=>e7,"setContext",()=>e9,"startSession",()=>ne],662537)}]); //# sourceMappingURL=cda5f83749046b8a.js.map