;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="822032c5-d4e2-b99b-4935-80cd9eba1407")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,778334,t=>{"use strict";let e=globalThis;t.s(["GLOBAL_OBJ",()=>e])},736399,t=>{"use strict";t.s(["SDK_VERSION",()=>"10.32.1"])},890665,601544,559012,222228,138211,391986,939359,495242,321552,80486,631593,795997,212123,229372,221741,92638,905778,602094,457748,864785,540660,345146,505502,92048,721554,840811,704805,866848,310035,134915,529169,948297,488969,538357,831945,646462,295257,61127,t=>{"use strict";let e,n,r,i,s,a,o;var c=t.i(736399),u=t.i(778334);function l(){return p(u.GLOBAL_OBJ),u.GLOBAL_OBJ}function p(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||c.SDK_VERSION,e[c.SDK_VERSION]=e[c.SDK_VERSION]||{}}function d(t,e,n=u.GLOBAL_OBJ){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[c.SDK_VERSION]=r[c.SDK_VERSION]||{};return i[t]||(i[t]=e())}t.s(["getGlobalSingleton",()=>d,"getMainCarrier",()=>l,"getSentryCarrier",()=>p],601544);let f="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.s(["DEBUG_BUILD",()=>f],559012);let _=Object.prototype.toString;function h(t){switch(_.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return N(t,Error)}}function g(t,e){return _.call(t)===`[object ${e}]`}function m(t){return g(t,"ErrorEvent")}function S(t){return g(t,"DOMError")}function y(t){return g(t,"DOMException")}function b(t){return g(t,"String")}function v(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function E(t){return null===t||v(t)||"object"!=typeof t&&"function"!=typeof t}function T(t){return g(t,"Object")}function I(t){return"undefined"!=typeof Event&&N(t,Event)}function x(t){return"undefined"!=typeof Element&&N(t,Element)}function A(t){return g(t,"RegExp")}function O(t){return!!(t?.then&&"function"==typeof t.then)}function k(t){return T(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function N(t,e){try{return t instanceof e}catch{return!1}}function C(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue||t.__v_isVNode))}function w(t){return"undefined"!=typeof Request&&N(t,Request)}t.s(["isDOMError",()=>S,"isDOMException",()=>y,"isElement",()=>x,"isError",()=>h,"isErrorEvent",()=>m,"isEvent",()=>I,"isInstanceOf",()=>N,"isParameterizedString",()=>v,"isPlainObject",()=>T,"isPrimitive",()=>E,"isRegExp",()=>A,"isRequest",()=>w,"isString",()=>b,"isSyntheticEvent",()=>k,"isThenable",()=>O,"isVueViewModel",()=>C],222228);let R=u.GLOBAL_OBJ;function L(t,e={}){if(!t)return"";try{let n,r=t,i=[],s=0,a=0,o=Array.isArray(e)?e:e.keyAttrs,c=!Array.isArray(e)&&e.maxStringLength||80;for(;r&&s++<5&&(n=function(t,e){let n=[];if(!t?.tagName)return"";if(R.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&&b(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,o),"html"!==n&&(!(s>1)||!(a+3*i.length+n.length>=c)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch{return""}}function P(){try{return R.document.location.href}catch{return""}}function $(t){if(!R.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",()=>$,"getLocationHref",()=>P,"htmlTreeAsString",()=>L],138211);let D=["debug","info","warn","error","log","assert","trace"],M={};function j(t){if(!("console"in u.GLOBAL_OBJ))return t();let e=u.GLOBAL_OBJ.console,n={},r=Object.keys(M);r.forEach(t=>{let r=M[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function B(){return F().enabled}function U(t,...e){f&&B()&&j(()=>{u.GLOBAL_OBJ.console[t](`Sentry Logger [${t}]:`,...e)})}function F(){return f?d("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let G={enable:function(){F().enabled=!0},disable:function(){F().enabled=!1},isEnabled:B,log:function(...t){U("log",...t)},warn:function(...t){U("warn",...t)},error:function(...t){U("error",...t)}};function J(t,e,n){if(!(e in t))return;let r=t[e];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&V(i,r);try{t[e]=i}catch{f&&G.log(`Failed to replace method "${e}" in object`,t)}}function H(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{f&&G.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function V(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,H(t,"__sentry_original__",e)}catch{}}function Y(t){return t.__sentry_original__}function K(t){if(h(t))return{message:t.message,name:t.name,stack:t.stack,...W(t)};if(!I(t))return t;{let e={type:t.type,target:z(t.target),currentTarget:z(t.currentTarget),...W(t)};return"undefined"!=typeof CustomEvent&&N(t,CustomEvent)&&(e.detail=t.detail),e}}function z(t){try{return x(t)?L(t):Object.prototype.toString.call(t)}catch{return""}}function W(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 q(t){let e=Object.keys(K(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}t.s(["CONSOLE_LEVELS",()=>D,"consoleSandbox",()=>j,"debug",()=>G,"originalConsoleMethods",()=>M],391986),t.s(["addNonEnumerableProperty",()=>H,"convertToPlainObject",()=>K,"extractExceptionKeysForMessage",()=>q,"fill",()=>J,"getOriginalFunction",()=>Y,"markFunctionWrapped",()=>V],939359);let X=/\(error: (.*)\)/,Q=/captureMessage|captureException/;function Z(...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(te(o).function||"")&&o.pop(),o.reverse(),Q.test(te(o).function||"")&&(o.pop(),Q.test(te(o).function||"")&&o.pop()),o.slice(0,50).map(t=>({...t,filename:t.filename||te(o).filename,function:t.function||"?"}))}}function tt(t){return Array.isArray(t)?Z(...t):t}function te(t){return t[t.length-1]||{}}let tn="";function tr(t){try{if(!t||"function"!=typeof t)return tn;return t.name||tn}catch{return tn}}function ti(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 ts(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function ta(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function to(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}`),stu(t,e,n))}function tp(t=function(){let t=u.GLOBAL_OBJ;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return e||(e="10000000100040008000100000000000"),e.replace(/[018]/g,t=>(t^(15&16*Math.random())>>t/4).toString(16))}function td(t){return t.exception?.values?.[0]}function tf(t){let{message:e,event_id:n}=t;if(e)return e;let r=td(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function t_(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 th(t,e){let n=td(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 tg(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{H(t,"__sentry_captured__",!0)}catch{}return!1}function tm(){return Date.now()/1e3}function tS(){return(n??(n=function(){let{performance:t}=u.GLOBAL_OBJ;if(!t?.now||!t.timeOrigin)return tm;let e=t.timeOrigin;return()=>(e+t.now())/1e3}()))()}function ty(){return r||(r=function(){let{performance:t}=u.GLOBAL_OBJ;if(!t?.now)return[void 0,"none"];let e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,i=t.timing?.navigationStart,s="number"==typeof i?Math.abs(i+e-n):36e5;if(r<36e5||s<36e5)if(r<=s)return[t.timeOrigin,"timeOrigin"];else return[i,"navigationStart"];return[n,"dateNow"]}()),r[0]}function tb(t){let e=tS(),n={sid:tp(),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&&tv(n,t),n}function tv(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||tS(),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:tp()),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 tE(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),tv(t,n)}function tT(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]=tT(r[t],e[t],n-1));return r}function tI(){return tp()}function tx(){return tp().substring(16)}t.s(["UNKNOWN_FUNCTION",()=>"?","createStackParser",()=>Z,"getFramesFromEvent",()=>ti,"getFunctionName",()=>tr,"getVueInternalName",()=>ts,"stackParserFromStackParserOptions",()=>tt],495242),t.s(["isMatchingPattern",()=>tu,"safeJoin",()=>tc,"snipLine",()=>to,"stringMatchesSomePattern",()=>tl,"truncate",()=>ta],321552),t.s(["addExceptionMechanism",()=>th,"addExceptionTypeValue",()=>t_,"checkOrSetAlreadyCaught",()=>tg,"getEventDescription",()=>tf,"uuid4",()=>tp],80486),t.s(["browserPerformanceTimeOrigin",()=>ty,"dateTimestampInSeconds",()=>tm,"timestampInSeconds",()=>tS],631593),t.s(["closeSession",()=>tE,"makeSession",()=>tb,"updateSession",()=>tv],795997),t.s(["merge",()=>tT],212123),t.s(["generateSpanId",()=>tx,"generateTraceId",()=>tI],229372);let tA="_sentrySpan";function tO(t,e){e?H(t,tA,e):delete t[tA]}function tk(t){return t[tA]}t.s(["_getSpanForScope",()=>tk,"_setSpanForScope",()=>tO],221741);class tN{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:tI(),sampleRand:Math.random()}}clone(){let t=new tN;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,tO(t,this[tA]),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&&tv(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 tN?e.getScopeData():T(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,tO(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tI(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:tm(),...t,message:t.message?ta(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[tA]}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=tT(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e?.event_id||tp();if(!this._client)return f&&G.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||tp();if(!this._client)return f&&G.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||tp();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):f&&G.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 tC{constructor(t,e){let n,r;n=t||new tN,r=e||new tN,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 O(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 tw(){let t=p(l());return t.stack=t.stack||new tC(d("defaultCurrentScope",()=>new tN),d("defaultIsolationScope",()=>new tN))}function tR(t){return tw().withScope(t)}function tL(t,e){let n=tw();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tP(t){return tw().withScope(()=>t(tw().getIsolationScope()))}function t$(t){let e=p(t);return e.acs?e.acs:{withIsolationScope:tP,withScope:tR,withSetScope:tL,withSetIsolationScope:(t,e)=>tP(e),getCurrentScope:()=>tw().getScope(),getIsolationScope:()=>tw().getIsolationScope()}}function tD(){return t$(l()).getCurrentScope()}function tM(){return t$(l()).getIsolationScope()}function tj(){return d("globalScope",()=>new tN)}function tB(...t){let e=t$(l());if(2===t.length){let[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function tU(...t){let e=t$(l());if(2===t.length){let[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])}function tF(){return tD().getClient()}function tG(t){let{traceId:e,parentSpanId:n,propagationSpanId:r}=t.getPropagationContext(),i={trace_id:e,span_id:r||tx()};return n&&(i.parent_span_id=n),i}t.s(["getAsyncContextStrategy",()=>t$],92638),t.s(["getClient",()=>tF,"getCurrentScope",()=>tD,"getGlobalScope",()=>tj,"getIsolationScope",()=>tM,"getTraceContextFromScope",()=>tG,"withIsolationScope",()=>tU,"withScope",()=>tB],905778);let tJ="sentry.source",tH="sentry.sample_rate",tV="sentry.previous_trace_sample_rate",tY="sentry.op",tK="sentry.origin",tz="sentry.measurement_unit",tW="sentry.measurement_value",tq="sentry.custom_span_name",tX="sentry.profile_id",tQ="sentry.exclusive_time";t.s(["SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",()=>tQ,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",()=>"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",()=>tX,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",()=>tq,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",()=>"sentry.idle_span_finish_reason","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",()=>tz,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",()=>tW,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tY,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tK,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",()=>tV,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tH,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tJ,"SEMANTIC_ATTRIBUTE_URL_FULL",()=>"url.full","SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",()=>"sentry.link.type"],602094);let tZ="sentry-",t0=/^sentry-/;function t1(t){let e=t5(t);if(!e)return;let n=Object.entries(e).reduce((t,[e,n])=>(e.match(t0)&&(t[e.slice(tZ.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function t2(t){if(t){var e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${tZ}${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?(f&&G.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},""):void 0}}function t5(t){if(t&&(b(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(t4(e)).forEach(([e,n])=>{t[e]=n}),t),{}):t4(t)}function t4(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 t3(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=t||tF()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}function t9(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 t8(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",()=>tZ,"baggageHeaderToDynamicSamplingContext",()=>t1,"dynamicSamplingContextToSentryBaggageHeader",()=>t2,"parseBaggageHeader",()=>t5],457748),t.s(["hasSpansEnabled",()=>t3],864785),t.s(["parseSampleRate",()=>t9],540660),t.s(["SPAN_STATUS_ERROR",()=>2,"SPAN_STATUS_OK",()=>1,"SPAN_STATUS_UNSET",()=>0,"setHttpStatus",()=>t8],345146);let t6="_sentryScope",t7="_sentryIsolationScope";function et(t){return{scope:t[t6],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[t7])}}let ee=/^o(\d+)\./,en=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function er(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 ei(t){let e=en.exec(t);if(!e)return void j(()=>{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 es({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function es(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ea(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(ee),e=t?.[1])}return e}function eo(t){let e="string"==typeof t?ei(t):es(t);if(e&&function(t){if(!f)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(G.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(G.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(G.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(G.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}t.s(["dsnFromString",()=>ei,"dsnToString",()=>er,"extractOrgIdFromClient",()=>ea,"makeDsn",()=>eo],505502);let ec=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function eu(t,e){let n=function(t){let e;if(!t)return;let n=t.match(ec);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=t1(e);if(!n?.traceId)return{traceId:tI(),sampleRand:Math.random()};let i=function(t,e){let n=t9(e?.sample_rand);if(void 0!==n)return n;let r=t9(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(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 el(t=tI(),e=tx(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function ep(t=tI(),e=tx(),n){return`00-${t}-${e}-${n?"01":"00"}`}function ed(t,e){let n=ea(t);return e&&n&&e!==n?(G.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)||(G.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",()=>ec,"generateSentryTraceHeader",()=>el,"generateTraceparentHeader",()=>ep,"propagationContextFromHeaders",()=>eu,"shouldContinueTrace",()=>ed],92048);let ef=!1;function e_(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=ev(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function eh(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:ev(t).parent_span_id,s=et(t).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||tx():e,trace_id:n}}function eg(t){let{traceId:e,spanId:n}=t.spanContext();return el(e,n,eE(t))}function em(t){let{traceId:e,spanId:n}=t.spanContext();return ep(e,n,eE(t))}function eS(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 ey(t){return"number"==typeof t?eb(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?eb(t.getTime()):tS()}function eb(t){return t>0x2540be3ff?t/1e3:t}function ev(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:ey(i),timestamp:ey(a)||void 0,status:eT(o),op:e[tY],origin:e[tK],links:eS(c)}}return{span_id:n,trace_id:r,start_timestamp:0,data:{}}}function eE(t){let{traceFlags:e}=t.spanContext();return 1===e}function eT(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}let eI="_sentryChildSpans",ex="_sentryRootSpan";function eA(t,e){let n=t[ex]||t;H(e,ex,n),t[eI]?t[eI].add(e):H(t,eI,new Set([e]))}function eO(t,e){t[eI]&&t[eI].delete(e)}function ek(t){let e=new Set;return!function t(n){if(!e.has(n)&&eE(n))for(let r of(e.add(n),n[eI]?Array.from(n[eI]):[]))t(r)}(t),Array.from(e)}function eN(t){return t[ex]||t}function eC(){let t=t$(l());return t.getActiveSpan?t.getActiveSpan():tD()[tA]}function ew(){ef||(j(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),ef=!0)}t.s(["TRACE_FLAG_NONE",()=>0,"TRACE_FLAG_SAMPLED",()=>1,"addChildSpanToSpan",()=>eA,"convertSpanLinksForEnvelope",()=>eS,"getActiveSpan",()=>eC,"getRootSpan",()=>eN,"getSpanDescendants",()=>ek,"getStatusMessage",()=>eT,"removeChildSpanFromSpan",()=>eO,"showSpanDropWarning",()=>ew,"spanIsSampled",()=>eE,"spanTimeInputToSeconds",()=>ey,"spanToJSON",()=>ev,"spanToTraceContext",()=>eh,"spanToTraceHeader",()=>eg,"spanToTraceparentHeader",()=>em,"spanToTransactionTraceContext",()=>e_],721554);let eR="production";t.s(["DEFAULT_ENVIRONMENT",()=>eR],840811);let eL="_frozenDsc";function eP(t,e){H(t,eL,e)}function e$(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||eR,release:n.release,public_key:r,trace_id:t,org_id:ea(e)};return e.emit("createDsc",i),i}function eD(t,e){let n=e.getPropagationContext();return n.dsc||e$(n.traceId,t)}function eM(t){let e=tF();if(!e)return{};let n=eN(t),r=ev(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[tH]??i[tV];function o(t){return("number"==typeof a||"string"==typeof a)&&(t.sample_rate=`${a}`),t}let c=n[eL];if(c)return o(c);let u=s?.get("sentry.dsc"),l=u&&t1(u);if(l)return o(l);let p=e$(t.spanContext().traceId,e),d=i[tJ],f=r.description;return"url"!==d&&f&&(p.transaction=f),t3()&&(p.sampled=String(eE(n)),p.sample_rand=s?.get("sentry.sample_rand")??et(n).scope?.getPropagationContext().sampleRand.toString()),o(p),e.emit("createDsc",p,n),p}t.s(["freezeDscOnSpan",()=>eP,"getDynamicSamplingContextFromScope",()=>eD,"getDynamicSamplingContextFromSpan",()=>eM],704805);class ej{constructor(t={}){this._traceId=t.traceId||tI(),this._spanId=t.spanId||tx()}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 eB(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("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(C(n))return ts(n);if(k(n))return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${tr(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)?[]:{},d=0,f=K(r);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(d>=s){p[t]="[MaxProperties ~]";break}let n=f[t];p[t]=e(t,n,l-1,s,a),d++}return c(r),p}("",e,n,r)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function eU(t,e=[]){return[t,e]}function eF(t,e){let[n,r]=t;return[n,[...r,e]]}function eG(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function eJ(t){let e=p(u.GLOBAL_OBJ);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function eH(t){let[e,n]=t,r=JSON.stringify(e);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[eJ(r),t]:r.push("string"==typeof t?eJ(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(eB(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 eV(t){return[{type:"span"},t]}function eY(t){let e="string"==typeof t.data?eJ(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",()=>ej],866848),t.s(["normalize",()=>eB,"normalizeToSize",()=>function t(e,n=3,r=102400){let i=eB(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}],310035);let eK={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 ez(t){return eK[t]}function eW(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function eq(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:er(r)},...i&&{trace:i}}}function eX(t){G.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function eQ(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(tu(t.description,r))return f&&eX(t),!0;continue}if(!r.name&&!r.op)continue;let e=!r.name||tu(t.description,r.name),i=!r.op||t.op&&tu(t.op,r.op);if(e&&i)return f&&eX(t),!0}return!1}function eZ(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 e0(t,e,n,r){let i=eW(n);return eU({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:er(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}function e1(t,e,n,r){let i=eW(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=eq(t,i,r,e);return delete t.sdkProcessingMetadata,eU(a,[[{type:s},t]])}function e2(t,e){let n=eM(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:er(r)}},{beforeSendSpan:a,ignoreSpans:o}=e?.getOptions()||{},c=o?.length?t.filter(t=>!eQ(ev(t),o)):t,u=t.length-c.length;u&&e?.recordDroppedEvent("before_send","span",u);let l=a?t=>{let e=ev(t),n=a(e);return n||(ew(),e)}:ev,p=[];for(let t of c){let e=l(t);e&&p.push(eV(e))}return eU(s,p)}function e5(t,e,n,r=eC()){let i=r&&eN(r);i&&(f&&G.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[tW]:e,[tz]:n}))}function e4(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[tz],i=n[tW];"string"==typeof r&&"number"==typeof i&&(e[t.name]={value:i,unit:r})}),e}t.s(["addItemToEnvelope",()=>eF,"createAttachmentEnvelopeItem",()=>eY,"createEnvelope",()=>eU,"createEventEnvelopeHeaders",()=>eq,"createSpanEnvelopeItem",()=>eV,"envelopeItemTypeToDataCategory",()=>ez,"forEachEnvelopeItem",()=>eG,"getSdkMetadataForEnvelopeHeader",()=>eW,"serializeEnvelope",()=>eH],134915),t.s(["reparentChildSpans",()=>eZ,"shouldIgnoreSpan",()=>eQ],529169),t.s(["createEventEnvelope",()=>e1,"createSessionEnvelope",()=>e0,"createSpanEnvelope",()=>e2],948297),t.s(["setMeasurement",()=>e5,"timedEventsToMeasurements",()=>e4],488969);class e3{constructor(t={}){this._traceId=t.traceId||tI(),this._spanId=t.spanId||tx(),this._startTime=t.startTimestamp||tS(),this._links=t.links,this._attributes={},this.setAttributes({[tK]:"manual",[tY]: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=ey(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(tJ,"custom"),this}end(t){this._endTime||(this._endTime=ey(t),function(t){if(!f)return;let{description:e="< unknown name >",op:n="< unknown op >"}=ev(t),{spanId:r}=t.spanContext(),i=eN(t)===t,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;G.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tY],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:eT(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tK],profile_id:this._attributes[tX],exclusive_time:this._attributes[tQ],measurements:e4(this._events),is_segment:this._isStandaloneSpan&&eN(this)===this||void 0,segment_id:this._isStandaloneSpan?eN(this).spanContext().spanId:void 0,links:eS(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){f&&G.log("[Tracing] Adding an event to span:",t);let r=e9(e)?e:n||tS(),i=e9(e)?{}:e||{},s={name:t,time:ey(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=tF();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===eN(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=tF();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(e2([this],t)):(f&&G.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&&(et(this).scope||tD()).captureEvent(e)}_convertSpanToTransaction(){if(!e8(ev(this)))return;this._name||(f&&G.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:t,isolationScope:e}=et(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=ek(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof e3&&e.isStandaloneSpan())}).map(t=>ev(t)).filter(e8),i=this._attributes[tJ];delete this._attributes[tq],r.forEach(t=>{delete t.data[tq]});let s={contexts:{trace:e_(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:eM(this)},request:n,...i&&{transaction_info:{source:i}}},a=e4(this._events);return a&&Object.keys(a).length&&(f&&G.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),s.measurements=a),s}}function e9(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function e8(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}t.s(["SentrySpan",()=>e3],538357);let e6="__SENTRY_SUPPRESS_TRACING__";function e7(t,e){let n=t$(l());if(n.startSpan)return n.startSpan(t,e);let r=ni(t),{forceTransaction:i,parentSpan:s,scope:a}=t;return tB(a?.clone(),()=>{var n;return(void 0!==(n=s)?t=>ne(n,t):t=>t())(()=>{let n=tD(),a=na(n,s),o=t.onlyIfParent&&!a?new ej:nr({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return tO(n,o),function(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,O(i)?i.then(t=>(a(),o(t),t),t=>{throw s(t),a(),t}):(a(),o(i),i)}(()=>e(o),()=>{let{status:t}=ev(o);o.isRecording()&&(!t||"ok"===t)&&o.setStatus({code:2,message:"internal_error"})},()=>{o.end()})})})}function nt(t){let e=t$(l());if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=ni(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?e=>tB(t.scope,e):void 0!==i?t=>ne(i,t):t=>t())(()=>{let e=tD(),s=na(e,i);return t.onlyIfParent&&!s?new ej:nr({parentSpan:s,spanArguments:n,forceTransaction:r,scope:e})})}function ne(t,e){let n=t$(l());return n.withActiveSpan?n.withActiveSpan(t,e):tB(n=>(tO(n,t||void 0),e(n)))}function nn(t){return tB(e=>(e.setPropagationContext({traceId:tI(),sampleRand:Math.random()}),f&&G.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),ne(null,t)))}function nr({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){var i;let s;if(!t3()){let r=new ej;if(n||!t){let t={sampled:"false",sample_rate:"0",transaction:e.name,...eM(r)};eP(r,t)}return r}let a=tM();if(t&&!n)s=function(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),s=!e.getScopeData().sdkProcessingMetadata[e6]&&eE(t),a=s?new e3({...n,parentSpanId:r,traceId:i,sampled:s}):new ej({traceId:i});eA(t,a);let o=tF();return o&&(o.emit("spanStart",a),n.endTimestamp&&o.emit("spanEnd",a)),a}(t,r,e),eA(t,s);else if(t){let n=eM(t),{traceId:i,spanId:a}=t.spanContext(),o=eE(t);eP(s=ns({traceId:i,parentSpanId:a,...e},r,o),n)}else{let{traceId:t,dsc:n,parentSpanId:i,sampled:o}={...a.getPropagationContext(),...r.getPropagationContext()};s=ns({traceId:t,parentSpanId:i,...e},r,o),n&&eP(s,n)}return!function(t){if(!f)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=ev(t),{spanId:i}=t.spanContext(),s=eE(t),a=eN(t),o=a===t,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!o){let{op:t,description:e}=ev(a);u.push(`root ID: ${a.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}G.log(`${c} ${u.join("\n ")}`)}(s),(i=s)&&(H(i,t7,function(t){try{let e=u.GLOBAL_OBJ.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(a)),H(i,t6,r)),s}function ni(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=ey(t.startTime),delete n.startTime,n}return e}function ns(t,e,n){let r=tF(),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,u=e.getPropagationContext(),[l,p,d]=e.getScopeData().sdkProcessingMetadata[e6]?[!1]:function(t,e,n){let r,i;if(!t3(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=t9(r);if(void 0===s)return f&&G.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 f&&G.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=n{e(t)})}function nc(t){return new nu((e,n)=>{n(t)})}t.s(["startInactiveSpan",()=>nt,"startNewTrace",()=>nn,"startSpan",()=>e7,"withActiveSpan",()=>ne],831945);class nu{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new nu((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 nu((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(O(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 nl(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:eh(r=f),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:eM(r),...n.sdkProcessingMetadata},(l=ev(eN(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 np(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;nd(t,"extra",n),nd(t,"tags",r),nd(t,"attributes",i),nd(t,"user",s),nd(t,"contexts",a),t.sdkProcessingMetadata=tT(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 nd(t,e,n){t[e]=tT(t[e],n,1)}function nf(t,e,n,r,c,l){var p,d,_;let h,{normalizeDepth:g=3,normalizeMaxBreadth:m=1e3}=t,S={...e,event_id:e.event_id||n.event_id||tp(),timestamp:e.timestamp||tm()},y=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||eR,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;a?.url&&s&&(a.url=ta(a.url,s)),s&&t.exception?.values?.forEach(t=>{t.value&&(t.value=ta(t.value,s))})})(S,t),p=S,(d=y).length>0&&(p.sdk=p.sdk||{},p.sdk.integrations=[...p.sdk.integrations||[],...d]),c&&c.emit("applyFrameMetadata",e),void 0===e.type&&(_=S,h=function(t){let e=u.GLOBAL_OBJ._sentryDebugIds,n=u.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 l=(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&&l(r,e),n&&l(c,n),o}(t.stackParser),_.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=h[t.filename])})}));let b=function(t,e){if(!e)return t;let n=t?t.clone():new tN;return n.update(e),n}(r,n.captureContext);n.mechanism&&th(S,n.mechanism);let v=c?c.getEventProcessors():[],E=tj().getScopeData();l&&np(E,l.getScopeData()),b&&np(E,b.getScopeData());let T=[...n.attachments||[],...E.attachments];return T.length&&(n.attachments=T),nl(S,E),(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(f&&null===a&&G.log(`Event processor "${s.id||"?"}" dropped event`),O(a))?a.then(e=>t(e,n,r,i+1)):t(a,n,r,i+1)}(e,n,t,r);return O(i)?i:no(i)}catch(t){return nc(t)}})([...v,...E.eventProcessors],S,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 g&&g>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:eB(t.data,e,n)}}))},...t.user&&{user:eB(t.user,e,n)},...t.contexts&&{contexts:eB(t.contexts,e,n)},...t.extra&&{extra:eB(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=eB(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:eB(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=eB(t.contexts.flags,3,n)),r}(t,g,m):t)}function n_(t){if(t){var e;return(e=t)instanceof tN||"function"==typeof e||Object.keys(t).some(t=>nh.includes(t))?{captureContext:t}:t}}t.s(["rejectedSyncPromise",()=>nc,"resolvedSyncPromise",()=>no],646462),t.s(["applyScopeDataToEvent",()=>nl,"mergeScopeData",()=>np],295257);let nh=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ng(t,e){return tD().captureException(t,n_(e))}function nm(t,e){return tD().captureEvent(t,e)}function nS(t,e){tM().setContext(t,e)}function ny(){let t=tF();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function nb(t){tM().addEventProcessor(t)}function nv(t){let e=tM(),n=tD(),{userAgent:r}=u.GLOBAL_OBJ.navigator||{},i=tb({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),s=e.getSession();return s?.status==="ok"&&tv(s,{status:"exited"}),nE(),e.setSession(i),i}function nE(){let t=tM(),e=tD().getSession()||t.getSession();e&&tE(e),nT(),t.setSession()}function nT(){let t=tM(),e=tF(),n=t.getSession();n&&e&&e.captureSession(n)}function nI(t=!1){t?nE():nT()}t.s(["parseEventHintOrCaptureContext",()=>n_,"prepareEvent",()=>nf],61127),t.s(["addEventProcessor",()=>nb,"captureEvent",()=>nm,"captureException",()=>ng,"captureSession",()=>nI,"isEnabled",()=>ny,"setContext",()=>nS,"startSession",()=>nv],890665)}]); //# debugId=822032c5-d4e2-b99b-4935-80cd9eba1407 //# sourceMappingURL=c8d05afc7dc82bb0.js.map