1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ff5fdfe9-9771-56ce-96d4-fbcf7bab2a4e")}catch(e){}}(); 3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,819955,247277,277954,491461,663479,188551,86629,604830,444177,570316,152542,450640,203976,179859,443387,202412,146666,830165,366331,327561,98354,879542,230515,696075,579571,238230,188132,98699,339367,56989,891738,88969,951705,50717,123061,306232,633364,739477,609934,90697,607615,799066,437649,253260,235956,915818,865597,809552,t=>{"use strict";let e,n,r,i,s,a,o,c,u;t.s(["addEventProcessor",()=>rY,"captureCheckIn",()=>rU,"captureEvent",()=>rN,"captureException",()=>rx,"captureMessage",()=>rA,"captureSession",()=>rG,"close",()=>rL,"endSession",()=>rJ,"flush",()=>rj,"isEnabled",()=>rF,"isInitialized",()=>rB,"lastEventId",()=>rD,"setContext",()=>rC,"setConversationId",()=>rP,"setExtra",()=>rk,"setExtras",()=>rR,"setTag",()=>rw,"setTags",()=>rO,"setUser",()=>rM,"startSession",()=>rH],819955),t.s(["getClient",()=>t6,"getCurrentScope",()=>tZ,"getGlobalScope",()=>t1,"getIsolationScope",()=>t0,"getTraceContextFromScope",()=>t5,"hasExternalPropagationContext",()=>tQ,"withIsolationScope",()=>t3,"withScope",()=>t2],879542),t.s(["getAsyncContextStrategy",()=>t$],98354),t.s(["getGlobalSingleton",()=>h,"getMainCarrier",()=>d,"getSentryCarrier",()=>f],491461),t.s(["SDK_VERSION",()=>l],247277);let l="10.60.0";t.s(["GLOBAL_OBJ",()=>p],277954);let p=globalThis;function d(){return f(p),p}function f(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||l,e[l]=e[l]||{}}function h(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,r=n.__SENTRY__=n.__SENTRY__||{},i=r[l]=r[l]||{};return i[t]||(i[t]=e())}t.s(["Scope",()=>tY],327561),t.s(["DEBUG_BUILD",()=>_],663479);let _="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.s(["closeSession",()=>tw,"makeSession",()=>tk,"updateSession",()=>tO],202412),t.s(["addContextToFrame",()=>tT,"addExceptionMechanism",()=>tE,"addExceptionTypeValue",()=>tb,"checkOrSetAlreadyCaught",()=>tI,"getEventDescription",()=>ty,"isAlreadyCaptured",()=>tx,"uuid4",()=>tS],179859),t.s(["addNonEnumerableProperty",()=>B,"convertToPlainObject",()=>H,"extractExceptionKeysForMessage",()=>z,"fill",()=>L,"getOriginalFunction",()=>Y,"markFunctionWrapped",()=>F],604830),t.s(["CONSOLE_LEVELS",()=>g,"consoleSandbox",()=>S,"debug",()=>E,"originalConsoleMethods",()=>m],188551);let g=["debug","info","warn","error","log","assert","trace"],m={};function S(t){if(!("console"in p))return t();let e=p.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 v(){return b().enabled}function y(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];_&&v()&&S(()=>{p.console[t]("".concat("Sentry Logger ","[").concat(t,"]:"),...n)})}function b(){return _?h("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let E={enable:function(){b().enabled=!0},disable:function(){b().enabled=!1},isEnabled:v,log:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];y("log",...e)},warn:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];y("warn",...e)},error:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];y("error",...e)}};t.s(["isDOMError",()=>N,"isDOMException",()=>C,"isError",()=>I,"isErrorEvent",()=>A,"isEvent",()=>M,"isInstanceOf",()=>U,"isParameterizedString",()=>k,"isPlainObject",()=>w,"isPrimitive",()=>O,"isRegExp",()=>P,"isRequest",()=>j,"isString",()=>R,"isThenable",()=>D],86629);let T=Object.prototype.toString;function I(t){switch(T.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return U(t,Error)}}function x(t,e){return T.call(t)==="[object ".concat(e,"]")}function A(t){return x(t,"ErrorEvent")}function N(t){return x(t,"DOMError")}function C(t){return x(t,"DOMException")}function R(t){return x(t,"String")}function k(t){return"object"==typeof t&&null!==t&&"__sentry_template_str
3ing__"in t&&"__sentry_template_values__"in t}function O(t){return null===t||k(t)||"object"!=typeof t&&"function"!=typeof t}function w(t){return x(t,"Object")}function M(t){return"undefined"!=typeof Event&&U(t,Event)}function P(t){return x(t,"RegExp")}function D(t){return!!((null==t?void 0:t.then)&&"function"==typeof t.then)}function U(t,e){try{return t instanceof e}catch(t){return!1}}function j(t){return"undefined"!=typeof Request&&U(t,Request)}function L(t,e,n){if(!(e in t))return;let r=t[e];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&F(i,r);try{t[e]=i}catch(n){_&&E.log('Failed to replace method "'.concat(e,'" in object'),t)}}function B(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){_&&E.log('Failed to add non-enumerable property "'.concat(String(e),'" to object'),t)}}function F(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,B(t,"__sentry_original__",e)}catch(t){}}function Y(t){return t.__sentry_original__}function H(t){if(I(t))return{message:t.message,name:t.name,stack:t.stack,...J(t)};if(M(t)){let{type:e,target:n,currentTarget:r,detail:i}=t;return{type:e,target:n,currentTarget:r,...i?{detail:i}:{},...J(t)}}return t}function J(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}function z(t){let e=Object.keys(H(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}function G(t){if(void 0!==e)return e?e(t):t();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in p&&"function"==typeof p[n]?(e=p[n])(t):(e=null,t())}function K(){return G(()=>Math.random())}function W(){return G(()=>Date.now())}t.s(["safeDateNow",()=>W,"safeMathRandom",()=>K,"withRandomSafeContext",()=>G],444177),t.s(["isMatchingPattern",()=>tg,"safeJoin",()=>t_,"snipLine",()=>th,"stringMatchesSomePattern",()=>tm,"truncate",()=>tf],203976),t.s(["normalize",()=>tp,"normalizeToSize",()=>function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=tp(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i},"setNormalizeStringifier",()=>tl,"stringifyValue",()=>td],450640),t.s(["getNormalizationDepthOverrideHint",()=>Z,"hasSkipNormalizationHint",()=>Q,"setNormalizationDepthOverrideHint",()=>$,"setSkipNormalizationHint",()=>X],570316);let V=Symbol.for("sentry.skipNormalization"),q=Symbol.for("sentry.overrideNormalizationDepth");function X(t){B(t,V,!0)}function $(t,e){B(t,q,e)}function Q(t){return!!t[V]}function Z(t){let e=t[q];return"number"==typeof e?e:void 0}t.s(["UNKNOWN_FUNCTION",()=>tt,"createStackParser",()=>tr,"getFramesFromEvent",()=>tc,"getFunctionName",()=>to,"normalizeStackTracePath",()=>tu,"stackParserFromStackParserOptions",()=>ti],152542);let tt="?",te=/\(error: (.*)\)/,tn=/captureMessage|captureException/;function tr(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],s=t.split("\n");for(let t=e;t<s.length;t++){let e=s[t];e.length>1024&&(e=e.slice(0,1024));let a=te.test(e)?e.replace(te,"$1"):e;if(!a.includes("Error: ")){for(let t of r){let e=t(a);if(e){i.push(e);break}}if(i.length>=50+n)break}}var a=i.slice(n);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(ts(o).function||"")&&o.pop(),o.reverse(),tn.test(ts(o).function||"")&&(o.pop(),tn.test(ts(o).function||"")&&o.pop()),o.slice(0,50).map(t=>({...t,filename:t.filename||ts(o).filename,function:t.function||tt}))}}function ti(t){return Array.isArray(t)?tr(...t):t}function ts(t){return t[t.length-1]||{}}let ta="<anonymous>";function to(t){try{if(!t||"function"!=typeof t)return ta;return t.name||ta}catch(t){return ta}}function tc(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(t){}}}function tu(t){let e=(null==t?void 0:t.startsWith("file://"))?t.slice(7):t;return(null==e?void 0:e.match(/\/[A-Z]:/))&&(e=e.slice(1)),e}function tl(t){n=t}function tp(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return function t(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}(),[a,o]=s;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let c=td(e,n);if(!c.startsWith("[object "))return c;if(Q(n))return n;let u=Z(n),l=void 0!==u?u:r;if(0===l)return c.replace("object ","");if(a(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let e=n.toJSON();return t("",e,l-1,i,s)}catch(t){}let p=Array.isArray(n)?[]:{},d=0,f=H(n);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=i){p[e]="[MaxProperties ~]";break}let n=f[e];p[e]=t(e,n,l-1,i,s),d++}return o(n),p}("",t,e,n)}catch(t){return{ERROR:"**non-serializable** (".concat(t,")")}}}function td(e,r){try{if(n){let t=n(r);if(t)return t}if(r===t.g)return"[Global]";if("number"==typeof r&&!Number.isFinite(r))return"[".concat(r,"]");if("function"==typeof r)return"[Function: ".concat(to(r),"]");if("symbol"==typeof r)return"[".concat(String(r),"]");if("bigint"==typeof r)return"[BigInt: ".concat(String(r),"]");let e=function(t){let e=Object.getPrototypeOf(t);return(null==e?void 0:e.constructor)?e.constructor.name:"null prototype"}(r);return"[object ".concat(e,"]")}catch(t){return"**non-serializable** (".concat(t,")")}}function tf(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}function th(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} ".concat(n)),s<r&&(n+=" {snip}"),n}function t_(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let r=t[e];O(r)?n.push(String(r)):r instanceof Error?n.push(r.message?"".concat(r.name,": ").concat(r.message):r.
3name):n.push(td(void 0,r))}return n.join(e)}function tg(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!R(t)&&(P(e)?e.test(t):R(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function tm(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(let r of e)if(tg(t,r,n))return!0;return!1}function tS(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.crypto||p.msCrypto;try{if(null==t?void 0:t.randomUUID)return G(()=>t.randomUUID()).replace(/-/g,"")}catch(t){}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,t=>(t^(15&16*K())>>t/4).toString(16))}function tv(t){var e,n;return null==(n=t.exception)||null==(e=n.values)?void 0:e[0]}function ty(t){let{message:e,event_id:n}=t;if(e)return e;let r=tv(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function tb(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 tE(t,e){let n=tv(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...null==r?void 0:r.data,...e.data};n.mechanism.data=t}}function tT(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(void 0===e.lineno)return;let r=t.length,i=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,i-n),i).map(t=>th(t,0)),e.context_line=th(t[Math.min(r-1,i)],e.colno||0),e.post_context=t.slice(Math.min(i+1,r),i+1+n).map(t=>th(t,0))}function tI(t){if(tx(t))return!0;try{B(t,"__sentry_captured__",!0)}catch(t){}return!1}function tx(t){try{return t.__sentry_captured__}catch(t){}}function tA(){return W()/1e3}function tN(){return(null!=i?i:i=function(){let{performance:t}=p;if(!(null==t?void 0:t.now)||!t.timeOrigin)return tA;let e=t.timeOrigin;return()=>(e+G(()=>t.now()))/1e3}())()}t.s(["browserPerformanceTimeOrigin",()=>tR,"dateTimestampInSeconds",()=>tA,"timestampInSeconds",()=>tN],443387);let tC=null;function tR(){return null===tC&&(tC=function(){var t;let{performance:e}=p;if(!(null==e?void 0:e.now))return;let n=G(()=>e.now()),r=W(),i=e.timeOrigin;if("number"==typeof i&&3e5>Math.abs(i+n-r))return i;let s=null==(t=e.timing)?void 0:t.navigationStart;return"number"==typeof s&&3e5>Math.abs(s+n-r)?s:r-n}()),tC}function tk(t){let e=tN(),n={sid:tS(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var t;return t=n,{sid:"".concat(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?"".concat(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&&tO(n,t),n}function tO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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||tN(),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:tS()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(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 tw(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),tO(t,n)}function tM(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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]=tM(r[t],e[t],n-1));return r}function tP(){return tS()}function tD(){return tS().substring(16)}function tU(t){try{let e=p.WeakRef;if("function"==typeof e)return new e(t)}catch(t){}return t}function tj(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch(t){return}return t}}t.s(["merge",()=>tM],146666),t.s(["generateSpanId",()=>tD,"generateTraceId",()=>tP],830165),t.s(["_getSpanForScope",()=>tF,"_setSpanForScope",()=>tB],366331);let tL="_sentrySpan";function tB(t,e){e?B(t,tL,tU(e)):delete t[tL]}function tF(t){return tj(t[tL])}class tY{clone(){let t=new tY;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,t._conversationId=this._conversationId,tB(t,tF(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tO(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}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,conversationId:l}=(e instanceof tY?e.getScopeData():w(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),l&&(this._conversationId=l),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,this._conversationId=void 0,tB(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tP(),sampleRand:K()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:tA(),...t,message:t.message?tf(t.message,2048):t.message};if(this._breadcrumbs.push(r),this._breadcrumbs.length>n){var i;this._breadcrumbs=this._breadcrumbs.slice(-n),null==(i=this._client)||i.recordDroppedEvent("buffer_overflow","log_item")}return 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:tF(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=tM(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=(null==e?void 0:e.event_id)||tS();if(!this._client)return _&&E.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){var r;let i=(null==n?void 0:n.event_id)||tS();if(!this._client)return _&&E.warn("No client configured on scope - will not capture message!"),i;let s=null!=(r=null==n?void 0:n.syntheticException)?r:Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:i},this),i}
3captureEvent(t,e){let n=t.event_id||(null==e?void 0:e.event_id)||tS();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):_&&E.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)}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:tP(),sampleRand:K()}}}let tH=t=>t instanceof Promise&&!t[tJ],tJ=Symbol("chained PromiseLike"),tz=(t,e,n)=>{let r=t.then(t=>(e(t),t),t=>{throw n(t),t});return tH(r)&&tH(t)?r:tG(t,r)},tG=(t,e)=>{if(!e)return t;let n=!1;for(let r in t){if(r in e)continue;n=!0;let i=t[r];"function"==typeof i?Object.defineProperty(e,r,{value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.apply(t,n)},enumerable:!0,configurable:!0,writable:!0}):e[r]=i}return n&&Object.assign(e,{[tJ]:!0}),e};class tK{withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}return D(e)?tz(e,()=>this._popScope(),()=>this._popScope()):(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()}constructor(t,e){let n,r;n=t||new tY,r=e||new tY,this._stack=[{scope:n}],this._isolationScope=r}}function tW(){let t=f(d());return t.stack=t.stack||new tK(h("defaultCurrentScope",()=>new tY),h("defaultIsolationScope",()=>new tY))}function tV(t){return tW().withScope(t)}function tq(t,e){let n=tW();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tX(t){return tW().withScope(()=>t(tW().getIsolationScope()))}function t$(t){let e=f(t);return e.acs?e.acs:{withIsolationScope:tX,withScope:tV,withSetScope:tq,withSetIsolationScope:(t,e)=>tX(e),getCurrentScope:()=>tW().getScope(),getIsolationScope:()=>tW().getIsolationScope()}}function tQ(){return void 0!==s}function tZ(){return t$(d()).getCurrentScope()}function t0(){return t$(d()).getIsolationScope()}function t1(){return h("globalScope",()=>new tY)}function t2(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=t$(d());if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function t3(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=t$(d());if(2===e.length){let[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function t6(){return tZ().getClient()}function t5(t){let e=null==s?void 0:s();if(e)return{trace_id:e.traceId,span_id:e.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=t.getPropagationContext(),a={trace_id:n,span_id:i||tD()};return r&&(a.parent_span_id=r),a}t.s(["continueTrace",()=>rt,"startInactiveSpan",()=>n8,"startNewTrace",()=>rr,"startSpan",()=>n4,"startSpanManual",()=>n7,"suppressTracing",()=>rn,"withActiveSpan",()=>re],253260),t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",()=>eb,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",()=>em,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",()=>eS,"SEMANTIC_ATTRIBUTE_PROFILE_ID",()=>eg,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",()=>e_,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",()=>es,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",()=>ee,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",()=>en,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",()=>er,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>t8,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>et,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",()=>t7,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",()=>ei,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>t4,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",()=>el,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",()=>ec,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",()=>eu,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",()=>eo,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",()=>ea,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>t9,"SEMANTIC_ATTRIBUTE_URL_FULL",()=>ev,"SEMANTIC_ATTRIBUTE_USER_EMAIL",()=>ed,"SEMANTIC_ATTRIBUTE_USER_ID",()=>ep,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",()=>ef,"SEMANTIC_ATTRIBUTE_USER_USERNAME",()=>eh,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",()=>ey],230515);let t9="sentry.source",t4="sentry.sample_rate",t7="sentry.previous_trace_sample_rate",t8="sentry.op",et="sentry.origin",ee="sentry.idle_span_finish_reason",en="sentry.measurement_unit",er="sentry.measurement_value",ei="sentry.release",es="sentry.environment",ea="sentry.segment.name",eo="sentry.segment.id",ec="sentry.sdk.name",eu="sentry.sdk.version",el="sentry.sdk.integrations",ep="user.id",ed="user.email",ef="user.ip_address",eh="user.name",e_="sentry.custom_span_name",eg="sentry.profile_id",em="sentry.exclusive_time",eS="http.request.method",ev="url.full",ey="sentry.link.type",eb="gen_ai.conversation.id";t.s(["SENTRY_BAGGAGE_KEY_PREFIX",()=>eE,"baggageHeaderToDynamicSamplingContext",()=>eT,"dynamicSamplingContextToSentryBaggageHeader",()=>eI,"parseBaggageHeader",()=>ex],696075);let eE="sentry-";function eT(t){let e=ex(t);if(!e)return;let n=Object.entries(e).reduce((t,e)=>
3{let[n,r]=e;return n.startsWith(eE)&&(t[n.slice(eE.length)]=r),t},{});return Object.keys(n).length>0?n:void 0}function eI(t){if(t){var e=Object.entries(t).reduce((t,e)=>{let[n,r]=e;return r&&(t["".concat(eE).concat(n)]=r),t},{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,e,n)=>{let[r,i]=e,s="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(i)),a=0===n?s:"".concat(t,",").concat(s);return a.length>8192?(_&&E.warn("Not adding key: ".concat(r," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),t):a},""):void 0}}function ex(t){if(t&&(R(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(eA(e)).forEach(e=>{let[n,r]=e;t[n]=r}),t),{}):eA(t)}function eA(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(t){return}})}).reduce((t,e)=>{let[n,r]=e;return n&&r&&(t[n]=r),t},{})}function eN(t,e){var n,r,i,s;let a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};try{a=t()}catch(t){throw e(t),o(),t}return n=a,r=e,i=o,s=c,D(n)?tz(n,t=>{i(),s(t)},t=>{r(t),i()}):(i(),s(n),n)}function eC(t){var e;if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let n=t||(null==(e=t6())?void 0:e.getOptions());return!!n&&(null!=n.tracesSampleRate||!!n.tracesSampler)}function eR(t){E.log("Ignoring span ".concat(t.op," - ").concat(t.description," because it matches `ignoreSpans`."))}function ek(t,e){if(!(null==e?void 0:e.length))return!1;for(let r of e){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(t.description&&tg(t.description,r))return _&&eR(t),!0;continue}let e=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!e)continue;let i=!r.name||t.description&&tg(t.description,r.name),s=!r.op||t.op&&tg(t.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(e=>{var n;let[r,i]=e;return function(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?tg(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e}(null==(n=t.attributes)?void 0:n[r],i)});if(i&&s&&a)return _&&eR(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 ew(t){return"stream"===t.getOptions().traceLifecycle}function eM(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 eP(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};for(let[r,i]of Object.entries(null!=t?t:{})){let t=function(t,e){var n;let{value:r,unit:i}="object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")?t:{value:t,unit:void 0},s=function(t){if(Array.isArray(t))return{value:t,type:"array"};let e="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(e)return{value:t,type:e}}(r),a=i&&"string"==typeof i?{unit:i}:{};if(s)return{...s,...a};if(!e||"skip-undefined"===e&&void 0===r)return;let o="";try{o=null!=(n=JSON.stringify(r))?n:""}catch(t){}return{value:o,type:"string",...a}}(i,e);t&&(n[r]=t)}return n}function eD(t){if(!t)return 0;let e=0;for(let[i,s]of Object.entries(t)){var n,r;e+=2*i.length,e+=2*s.type.length,e+=(null!=(r=null==(n=s.unit)?void 0:n.length)?r:0)*2;let t=s.value;Array.isArray(t)?e+=eU(t[0])*t.length:O(t)?e+=eU(t):e+=100}return e}function eU(t){return"string"==typeof t?2*t.length:"boolean"==typeof t?4:8*("number"==typeof t)}t.s(["handleCallbackErrors",()=>eN],579571),t.s(["hasSpansEnabled",()=>eC],238230),t.s(["reparentChildSpans",()=>eO,"shouldIgnoreSpan",()=>ek],188132),t.s(["hasSpanStreamingEnabled",()=>ew],98699),t.s(["parseSampleRate",()=>eM],339367),t.s(["INTERNAL_getSegmentSpan",()=>nT,"TRACE_FLAG_NONE",()=>e4,"TRACE_FLAG_SAMPLED",()=>e7,"addChildSpanToSpan",()=>nv,"convertSpanLinksForEnvelope",()=>ni,"getActiveSpan",()=>nI,"getRootSpan",()=>nE,"getSimpleStatusMessage",()=>ng,"getSpanDescendants",()=>nb,"getStatusMessage",()=>n_,"getStreamedSpanLinks",()=>ns,"removeChildSpanFromSpan",()=>ny,"showSpanDropWarning",()=>nx,"spanIsSampled",()=>nh,"spanTimeInputToSeconds",()=>na,"spanToJSON",()=>nc,"spanToStreamedSpanJSON",()=>nu,"spanToTraceContext",()=>ne,"spanToTraceHeader",()=>nn,"spanToTraceparentHeader",()=>nr,"spanToTransactionTraceContext",()=>nt,"streamedSpanJsonToSerializedSpan",()=>np,"updateSpanName",()=>nA],123061),t.s(["estimateTypedAttributesSizeInBytes",()=>eD,"serializeAttributes",()=>eP],56989),t.s(["SPAN_STATUS_ERROR",()=>eB,"SPAN_STATUS_OK",()=>eL,"SPAN_STATUS_UNSET",()=>ej,"getSpanStatusFromHttpCode",()=>eF,"setHttpStatus",()=>eY],891738);let ej=0,eL=1,eB=2;function eF(t){if(t<400&&t>=100)return{code:eL};if(t>=400&&t<500)switch(t){case 401:return{code:eB,message:"unauthenticated"};case 403:return{code:eB,message:"permission_denied"};case 404:return{code:eB,message:"not_found"};case 409:return{code:eB,message:"already_exists"};case 413:return{code:eB,message:"failed_precondition"};case 429:return{code:eB,message:"resource_exhausted"};case 499:return{code:eB,message:"cancelled"};default:return{code:eB,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:eB,message:"unimplemented"};case 503:return{code:eB,message:"unavailable"};case 504:return{code:eB,message:"deadline_exceeded"}}return{code:eB,message:"internal_error"}}function eY(t,e){t.setAttribute("http.response.status_code",e);let n=eF(e);"unknown_error"!==n.message&&t.setStatus(n)}
3t.s(["getCapturedScopesOnSpan",()=>eK,"setCapturedScopesOnSpan",()=>eG,"spanShouldInferOtelSource",()=>eW],88969);let eH="_sentryScope",eJ="_sentryIsolationScope",ez=Symbol.for("sentry.otelSourceInference");function eG(t,e,n){t&&(B(t,eJ,tU(n)),B(t,eH,e))}function eK(t){return{scope:t[eH],isolationScope:tj(t[eJ])}}function eW(t){return!0===t[ez]}t.s(["TRACEPARENT_REGEXP",()=>e1,"extractTraceparentData",()=>e2,"generateSentryTraceHeader",()=>e6,"generateTraceparentHeader",()=>e5,"propagationContextFromHeaders",()=>e3,"shouldContinueTrace",()=>e9],50717),t.s(["dsnFromString",()=>e$,"dsnToString",()=>eX,"extractOrgIdFromClient",()=>eZ,"makeDsn",()=>e0],951705);let eV=/^o(\d+)\./,eq=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function eX(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=t;return"".concat(o,"://").concat(c).concat(e&&i?":".concat(i):"","@").concat(n).concat(s?":".concat(s):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function e$(t){let e=eq.exec(t);if(!e)return void S(()=>{console.error("Invalid Sentry Dsn: ".concat(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 eQ({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function eQ(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eZ(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};return n.orgId?e=String(n.orgId):r&&(e=function(t){let e=t.match(eV);return null==e?void 0:e[1]}(r)),e}function e0(t){let e="string"==typeof t?e$(t):eQ(t);if(e&&function(t){if(!_)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(E.error("Invalid Sentry Dsn: ".concat(e," missing")),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(E.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):!(e&&isNaN(parseInt(e,10)))||(E.error("Invalid Sentry Dsn: Invalid port ".concat(e)),!1):(E.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(e))return e}let e1=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function e2(t){let e;if(!t)return;let n=t.match(e1);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}function e3(t,e){let n=e2(t),r=eT(e);if(!(null==n?void 0:n.traceId))return{traceId:tP(),sampleRand:K()};let i=function(t,e){let n=eM(null==e?void 0:e.sample_rand);if(void 0!==n)return n;let r=eM(null==e?void 0:e.sample_rate);return r&&(null==t?void 0:t.parentSampled)!==void 0?t.parentSampled?K()*r:r+K()*(1-r):K()}(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 e6(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tP(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tD(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(t,"-").concat(e).concat(r)}function e5(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tP(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tD(),n=arguments.length>2?arguments[2]:void 0;return"00-".concat(t,"-").concat(e,"-").concat(n?"01":"00")}function e9(t,e){let n=eZ(t);return e&&n&&e!==n?(E.log("Won't continue trace because org IDs don't match (incoming baggage: ".concat(e,", SDK options: ").concat(n,")")),!1):!t.getOptions().strictTraceContinuation||(!e||!!n)&&(!!e||!n)||(E.log("Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ".concat(e,", Sentry client: ").concat(n,")")),!1)}let e4=0,e7=1,e8=!1;function nt(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=nc(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function ne(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:nc(t).parent_span_id,s=eK(t).scope;return{parent_span_id:i,span_id:r?(null==s?void 0:s.getPropagationContext().propagationSpanId)||tD():e,trace_id:n}}function nn(t){let{traceId:e,spanId:n}=t.spanContext();return e6(e,n,nh(t))}function nr(t){let{traceId:e,spanId:n}=t.spanContext();return e5(e,n,nh(t))}function ni(t){return t&&t.length>0?t.map(t=>{let{context:{spanId:e,traceId:n,traceFlags:r,...i},attributes:s}=t;return{span_id:e,trace_id:n,sampled:r===e7,attributes:s,...i}}):void 0}function ns(t){return(null==t?void 0:t.length)?t.map(t=>{let{context:{spanId:e,traceId:n,traceFlags:r},attributes:i}=t;return{span_id:e,trace_id:n,sampled:r===e7,attributes:i}}):void 0}function na(t){return"number"==typeof t?no(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?no(t.getTime()):tN()}function no(t){return t>0x2540be3ff?t/1e3:t}function nc(t){if(nf(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(nd(t)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:c}=t;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:nl(t),start_timestamp:na(i),timestamp:na(a)||void 0,status:n_(o),op:r[t8],origin:r[et],links:ni(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function nu(t){if(nf(t))return t.getStreamedSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(nd(t)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:c}=t;return{name:s,span_id:e,trace_id:n,parent_span_id:nl(t),start_timestamp:na(i),end_timestamp:na(a),is_segment:t===nT(t),status:ng(o),attributes:r,links:ns(c)}}return{span_id:e,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===nT(t)}}function nl(t){var e;return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?null==(e=t.parentSpanContext)?void 0:e.spanId:void 0}function np(t){var e;return{...t,attributes:eP(t.attributes),links:null==(e=t.links)?void 0:e.map(t=>({...t,attributes:eP(t.attributes)}))}}
3function nd(t){return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function nf(t){return"function"==typeof t.getSpanJSON}function nh(t){let{traceFlags:e}=t.spanContext();return e===e7}function n_(t){if(t&&t.code!==ej)return t.code===eL?"ok":t.message||"internal_error"}function ng(t){return t&&t.code!==eL&&t.code!==ej&&"cancelled"!==t.message?"error":"ok"}let nm="_sentryChildSpans",nS="_sentryRootSpan";function nv(t,e){let n=t[nS]||t;B(e,nS,n),t[nm]?t[nm].add(e):B(t,nm,new Set([e]))}function ny(t,e){t[nm]&&t[nm].delete(e)}function nb(t){let e=new Set;return!function t(n){if(!e.has(n)&&nh(n))for(let r of(e.add(n),n[nm]?Array.from(n[nm]):[]))t(r)}(t),Array.from(e)}let nE=nT;function nT(t){return t[nS]||t}function nI(){let t=t$(d());return t.getActiveSpan?t.getActiveSpan():tF(tZ())}function nx(){e8||(S(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),e8=!0)}function nA(t,e){t.updateName(e),t.setAttributes({[t9]:"custom",[e_]:e})}t.s(["freezeDscOnSpan",()=>nw,"getDynamicSamplingContextFromScope",()=>nP,"getDynamicSamplingContextFromSpan",()=>nD,"spanToBaggageHeader",()=>nU],739477),t.s(["DEFAULT_ENVIRONMENT",()=>nN],306232);let nN="production";t.s(["SentryNonRecordingSpan",()=>nR,"spanIsNonRecordingSpan",()=>nk],633364);let nC=Symbol.for("sentry.nonRecordingSpan");class nR{spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:e4}}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){}constructor(t={}){this._traceId=t.traceId||tP(),this._spanId=t.spanId||tD(),this.dropReason=t.dropReason,B(this,nC,!0)}}function nk(t){return!!t&&!0===t[nC]}let nO="_frozenDsc";function nw(t,e){B(t,nO,e)}function nM(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||nN,release:n.release,public_key:r,trace_id:t,org_id:eZ(e)};return e.emit("createDsc",i),i}function nP(t,e){let n=e.getPropagationContext();return n.dsc||nM(n.traceId,t)}function nD(t){var e,n,r,i,s;let a=t6();if(!a)return{};let o=nE(t),c=nc(o),u=c.data,l=o.spanContext().traceState,p=null!=(n=null!=(e=null==l?void 0:l.get("sentry.sample_rate"))?e:u[t4])?n:u[t7];function d(t){return("number"==typeof p||"string"==typeof p)&&(t.sample_rate="".concat(p)),t}let f=o[nO];if(f)return d(f);if(nk(o)&&!eC(a.getOptions())){let t=eK(o).scope;if(t)return d({...nP(a,t)})}let h=null==l?void 0:l.get("sentry.dsc"),_=h&&eT(h);if(_)return d(_);let g=nM(t.spanContext().traceId,a),m=null!=(r=u[t9])?r:u["sentry.span.source"],S=c.description;return"url"!==m&&S&&(g.transaction=S),eC()&&(g.sampled=String(nh(o)),g.sample_rand=null!=(s=null==l?void 0:l.get("sentry.sample_rand"))?s:null==(i=eK(o).scope)?void 0:i.getPropagationContext().sampleRand.toString()),d(g),a.emit("createDsc",g,o),g}function nU(t){return eI(nD(t))}function nj(t){return B(t,"_streamed",!0),t}function nL(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}function nB(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[t,e]}function nF(t,e){let[n,r]=t;return[n,[...r,e]]}function nY(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function nH(t,e){return nY(t,(t,n)=>e.includes(n))}function nJ(t){let e=f(p);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function nz(t){let[e,n]=t,r=JSON.stringify(e);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[nJ(r),t]:r.push("string"==typeof t?nJ(t):t)}for(let t of n){let[e,n]=t;if(i("\n".concat(JSON.stringify(e),"\n")),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(tp(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 nG(t){let e="string"==typeof t?nJ(t):t;function n(t){let n=e.subarray(0,t);return e=e.subarray(t+1),n}function r(){let t=e.indexOf(10);return t<0&&(t=e.length),JSON.parse(function(t){let e=f(p);return e.decodePolyfill?e.decodePolyfill(t):new TextDecoder().decode(t)}(n(t)))}let i=r(),s=[];for(;e.length;){let t=r(),e="number"==typeof t.length?t.length:void 0;s.push([t,e?n(e):r()])}return[i,s]}function nK(t){return[{type:"span"},t]}function nW(t){let e="string"==typeof t.data?nJ(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}t.s(["SentrySpan",()=>n3],437649),t.s(["createEventEnvelope",()=>nZ,"createSessionEnvelope",()=>nQ,"createSpanEnvelope",()=>n0],607615),t.s(["isStreamedBeforeSendSpanCallback",()=>nL,"withStreamedSpan",()=>nj],609934),t.s(["addItemToEnvelope",()=>nF,"createAttachmentEnvelopeItem",()=>nW,"createEnvelope",()=>nB,"createEventEnvelopeHeaders",()=>n$,"createSpanEnvelopeItem",()=>nK,"envelopeContainsItemType",()=>nH,"envelopeItemTypeToDataCategory",()=>nq,"forEachEnvelopeItem",()=>nY,"getSdkMetadataForEnvelopeHeader",()=>nX,"parseEnvelope",()=>nG,"serializeEnvelope",()=>nz],90697);let nV={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function nq(t){return t in nV?nV[t]:t}function nX(t){if(!(null==t?void 0:t.sdk))return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function n$(t,e,n,r){var i;
3let s=null==(i=t.sdkProcessingMetadata)?void 0:i.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(W()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:eX(r)},...s&&{trace:s}}}function nQ(t,e,n,r){let i=nX(n);return nB({sent_at:new Date(W()).toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:eX(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}function nZ(t,e,n,r){let i=nX(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){var n,r,i,s;if(!e)return;let a=t.sdk||{};t.sdk={...a,name:a.name||e.name,version:a.version||e.version,integrations:[...(null==(n=t.sdk)?void 0:n.integrations)||[],...e.integrations||[]],packages:[...(null==(r=t.sdk)?void 0:r.packages)||[],...e.packages||[]],settings:(null==(i=t.sdk)?void 0:i.settings)||e.settings?{...null==(s=t.sdk)?void 0:s.settings,...e.settings}:void 0}}(t,null==n?void 0:n.sdk);let a=n$(t,i,r,e);return delete t.sdkProcessingMetadata,nB(a,[[{type:s},t]])}function n0(t,e){let n=nD(t[0]),r=null==e?void 0:e.getDsn(),i=null==e?void 0:e.getOptions().tunnel,s={sent_at:new Date(W()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:eX(r)}},{beforeSendSpan:a,ignoreSpans:o}=(null==e?void 0:e.getOptions())||{},c=(null==o?void 0:o.length)?t.filter(t=>{let e=nc(t);return!ek({description:e.description,op:e.op,attributes:e.data},o)}):t,u=t.length-c.length;u&&(null==e||e.recordDroppedEvent("before_send","span",u));let l=a?t=>{let e=nc(t),n=nL(a)?e:a(e);return n||(nx(),e)}:nc,p=[];for(let t of c){let e=l(t);e&&p.push(nK(e))}return nB(s,p)}function n1(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:nI(),i=r&&nE(r);i&&(_&&E.log("[Measurement] Setting measurement on root span: ".concat(t," = ").concat(e," ").concat(n)),i.addEvent(t,{[er]:e,[en]:n}))}function n2(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[en],i=n[er];"string"==typeof r&&"number"==typeof i&&(e[t.name]={value:i,unit:r})}),e}t.s(["setMeasurement",()=>n1,"timedEventsToMeasurements",()=>n2],799066);class n3{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?e7:e4}}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=na(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,eW(this)||this.setAttribute(t9,"custom"),this}end(t){this._endTime||(this._endTime=na(t),function(t){if(!_)return;let{description:e="< unknown name >",op:n="< unknown op >"}=nc(t),{spanId:r}=t.spanContext(),i=nE(t)===t,s='[Tracing] Finishing "'.concat(n,'" ').concat(i?"root ":"",'span "').concat(e,'" with ID ').concat(r);E.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[t8],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:n_(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[et],profile_id:this._attributes[eg],exclusive_time:this._attributes[em],measurements:n2(this._events),is_segment:this._isStandaloneSpan&&nE(this)===this||void 0,segment_id:this._isStandaloneSpan?nE(this).spanContext().spanId:void 0,links:ni(this._links)}}getStreamedSpanJSON(){var t,e;return{name:null!=(t=this._name)?t:"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:null!=(e=this._endTime)?e:this._startTime,is_segment:this._isStandaloneSpan||this===nE(this),status:ng(this._status),attributes:this._attributes,links:ns(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){_&&E.log("[Tracing] Adding an event to span:",t);let r=n6(e)?e:n||tN(),i=n6(e)?{}:e||{},s={name:t,time:na(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=t6();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===nE(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=t6();if(!e)return;let n=t[1];
3if(!n||0===n.length)return e.recordDroppedEvent("before_send","span");e.sendEnvelope(t)}(n0([this],t)):(_&&E.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));if(t&&ew(t))return void t.emit("afterSegmentSpanEnd",this);let e=this._convertSpanToTransaction();e&&(eK(this).scope||tZ()).captureEvent(e)}_convertSpanToTransaction(){var t;if(!n5(nc(this)))return;this._name||(_&&E.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:n}=eK(this),r=null==e||null==(t=e.getScopeData().sdkProcessingMetadata)?void 0:t.normalizedRequest;if(!0!==this._sampled)return;let i=nb(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof n3&&e.isStandaloneSpan())}).map(t=>nc(t)).filter(n5),s=this._attributes[t9];delete this._attributes[e_];let a=!1;i.forEach(t=>{var e;delete t.data[e_],(null==(e=t.op)?void 0:e.startsWith("gen_ai."))&&(a=!0)});let o={contexts:{trace:nt(this)},spans:i.length>1e3?i.sort((t,e)=>t.start_timestamp-e.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:nD(this),hasGenAiSpans:a},request:r,...s&&{transaction_info:{source:s}}},c=n2(this._events);return c&&Object.keys(c).length&&(_&&E.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),o.measurements=c),o}constructor(t={}){this._traceId=t.traceId||tP(),this._spanId=t.spanId||tD(),this._startTime=t.startTimestamp||tN(),this._links=t.links,this._attributes={},this.setAttributes({[et]:"manual",[t8]: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()}}function n6(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function n5(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}let n9="__SENTRY_SUPPRESS_TRACING__";function n4(t,e){let n=ro();if(n.startSpan)return n.startSpan(t,e);let r=ra(t),{forceTransaction:i,parentSpan:s,scope:a}=t;return t2(null==a?void 0:a.clone(),()=>rl(s)(()=>{let n=tZ(),a=ru(n,s),o=t6(),c=t.onlyIfParent&&!a?ri(n,o):rs({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return rp(c)&&a||tB(n,c),eN(()=>e(c),()=>{let{status:t}=nc(c);c.isRecording()&&(!t||"ok"===t)&&c.setStatus({code:eB,message:"internal_error"})},()=>{c.end()})}))}function n7(t,e){let n=ro();if(n.startSpanManual)return n.startSpanManual(t,e);let r=ra(t),{forceTransaction:i,parentSpan:s,scope:a}=t;return t2(null==a?void 0:a.clone(),()=>rl(s)(()=>{let n=tZ(),a=ru(n,s),o=t.onlyIfParent&&!a?ri(n,t6()):rs({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return rp(o)&&a||tB(n,o),eN(()=>e(o,()=>o.end()),()=>{let{status:t}=nc(o);o.isRecording()&&(!t||"ok"===t)&&o.setStatus({code:eB,message:"internal_error"})})}))}function n8(t){let e=ro();if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=ra(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?e=>t2(t.scope,e):void 0!==i?t=>re(i,t):t=>t())(()=>{let e=tZ(),s=ru(e,i),a=t6();return t.onlyIfParent&&!s?ri(e,a):rs({parentSpan:s,spanArguments:n,forceTransaction:r,scope:e})})}let rt=(t,e)=>{let n=t$(d());if(n.continueTrace)return n.continueTrace(t,e);let{sentryTrace:r,baggage:i}=t,s=t6(),a=eT(i);return s&&!e9(s,null==a?void 0:a.org_id)?rr(e):t2(t=>{let n=e3(r,i);return t.setPropagationContext(n),tB(t,void 0),e()})};function re(t,e){let n=ro();return n.withActiveSpan?n.withActiveSpan(t,e):t2(n=>(tB(n,t||void 0),e(n)))}function rn(t){let e=ro();return e.suppressTracing?e.suppressTracing(t):t2(e=>{e.setSDKProcessingMetadata({[n9]:!0});let n=t();return e.setSDKProcessingMetadata({[n9]:void 0}),n})}function rr(t){let e=ro();return e.startNewTrace?e.startNewTrace(t):t2(e=>(e.setPropagationContext({traceId:tP(),sampleRand:K()}
3),_&&E.log("Starting a new trace with id ".concat(e.getPropagationContext().traceId)),re(null,t)))}function ri(t,e){null==e||e.recordDroppedEvent("no_parent_span","span");let n=new nR({traceId:t.getPropagationContext().traceId});return eG(n,t,t0()),n}function rs(t){let e,{parentSpan:n,spanArguments:r,forceTransaction:i,scope:s}=t,a=t0();if(!eC()){let t={...a.getPropagationContext(),...s.getPropagationContext()},e=new nR({traceId:n?n.spanContext().traceId:t.traceId});return n&&!i&&nv(n,e),eG(e,s,a),e}let o=t6();if(function(t,e){var n;let r=null==t?void 0:t.getOptions().ignoreSpans;return!!t&&!!ew(t)&&!!(null==r?void 0:r.length)&&ek({description:e.name||"",op:(null==(n=e.attributes)?void 0:n[t8])||e.op,attributes:e.attributes},r)}(o,r)){var c;rd(s)||null==o||o.recordDroppedEvent("ignored","span");let t=new nR({dropReason:"ignored",traceId:null!=(c=null==n?void 0:n.spanContext().traceId)?c:s.getPropagationContext().traceId});return eG(t,s,a),t}if(n&&!i)e=function(t,e,n,r){let{spanId:i,traceId:s}=t.spanContext(),a=rd(e),o=!a&&nh(t),c=o?new n3({...n,parentSpanId:i,traceId:s,sampled:o}):new nR({traceId:s});nv(t,c),eG(c,e,r);let u=t6();return u&&(ew(u)&&nk(c)&&(nk(t)&&t.dropReason?(c.dropReason=t.dropReason,u.recordDroppedEvent(t.dropReason,"span")):a||(c.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",c),n.endTimestamp&&(u.emit("spanEnd",c),u.emit("afterSpanEnd",c))),c}(n,s,r,a),nv(n,e);else if(n){let t=nD(n),{traceId:i,spanId:o}=n.spanContext(),c=nh(n);nw(e=rc({traceId:i,parentSpanId:o,...r},s,a,c),t)}else{let{traceId:t,dsc:n,parentSpanId:i,sampled:o}={...a.getPropagationContext(),...s.getPropagationContext()};e=rc({traceId:t,parentSpanId:i,...r},s,a,o),n&&nw(e,n)}return!function(t){if(!_)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=nc(t),{spanId:i}=t.spanContext(),s=nh(t),a=nE(t),o=a===t,c="[Tracing] Starting ".concat(s?"sampled":"unsampled"," ").concat(o?"root ":"","span"),u=["op: ".concat(n),"name: ".concat(e),"ID: ".concat(i)];if(r&&u.push("parent ID: ".concat(r)),!o){let{op:t,description:e}=nc(a);u.push("root ID: ".concat(a.spanContext().spanId)),t&&u.push("root op: ".concat(t)),e&&u.push("root description: ".concat(e))}E.log("".concat(c,"\n ").concat(u.join("\n ")))}(e),e}function ra(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=na(t.startTime),delete n.startTime,n}return e}function ro(){return t$(d())}function rc(t,e,n,r){var i,s;let a=t6(),o=(null==a?void 0:a.getOptions())||{},{name:c=""}=t,u={spanAttributes:{...t.attributes},spanName:c,parentSampled:r};null==a||a.emit("beforeSampling",u,{decision:!1});let l=null!=(s=u.parentSampled)?s:r,p=u.spanAttributes,d=e.getPropagationContext(),f=rd(e),[h,g,m]=f?[!1]:function(t,e,n){let r,i;if(!eC(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=eM(r);if(void 0===s)return _&&E.warn("[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(r)," of type ").concat(JSON.stringify(typeof r),".")),[!1];if(!s)return _&&E.log("[Tracing] Discarding transaction because ".concat("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<s;return!a&&_&&E.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),[a,s,i]}(o,{name:c,parentSampled:l,attributes:p,parentSampleRate:eM(null==(i=d.dsc)?void 0:i.sample_rate)},d.sampleRand),S=new n3({...t,attributes:{[t9]:"custom",[t4]:void 0!==g&&m?g:void 0,...p},sampled:h});return h||!a||f||(_&&E.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate",ew(a)?"span":"transaction")),eG(S,e,n),a&&a.emit("spanStart",S),S}function ru(t,e){if(e)return e;if(null===e)return;let n=tF(t);if(!n)return;let r=t6();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?nE(n):n}function rl(t){return void 0!==t?e=>re(t,e):t=>t()}function rp(t){return nk(t)&&"ignored"===t.dropReason}function rd(t){return!0===t.getScopeData().sdkProcessingMetadata[n9]}function rf(t){return new r_(e=>{e(t)})}function rh(t){return new r_((e,n)=>{n(t)})}t.s(["parseEventHintOrCaptureContext",()=>rT,"prepareEvent",()=>rE],809552),t.s(["rejectedSyncPromise",()=>rh,"resolvedSyncPromise",()=>rf],235956);class r_{then(t,e){return new r_((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 r_((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>
3{if(i)return void 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(D(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)}}constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}}function rg(t){let e=p._sentryDebugIds,n=p._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],i=n?Object.keys(n):[];if(u&&r.length===o&&i.length===c)return u;o=r.length,c=i.length,u={},a||(a={});let s=(e,n)=>{for(let r of e){let e=n[r],i=null==a?void 0:a[r];if(i&&u&&e)u[i[0]]=e,a&&(a[r]=[i[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t--){let i=n[t],s=null==i?void 0:i.filename;if(s&&u&&a){u[s]=e,a[r]=[s,e];break}}}}};return e&&s(r,e),n&&s(i,n),u}function rm(t,e){let n=rg(t);if(!n)return[];let r=[];for(let t of e){let e=tu(t);e&&n[e]&&r.push({type:"sourcemap",code_file:t,debug_id:n[e]})}return r}function rS(t,e){var n,r,i,s;let{fingerprint:a,span:o,breadcrumbs:c,sdkProcessingMetadata:u}=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),o&&function(t,e){t.contexts={trace:ne(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:nD(e),...t.sdkProcessingMetadata};let n=nc(nE(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(t,o),n=t,r=a,n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],r&&(n.fingerprint=n.fingerprint.concat(r)),n.fingerprint.length||delete n.fingerprint,function(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,c),i=t,s=u,i.sdkProcessingMetadata={...i.sdkProcessingMetadata,...s}}function rv(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:h,span:_}=e;ry(t,"extra",n),ry(t,"tags",r),ry(t,"attributes",i),ry(t,"user",s),ry(t,"contexts",a),t.sdkProcessingMetadata=tM(t.sdkProcessingMetadata,c,2),o&&(t.level=o),h&&(t.transactionName=h),_&&(t.span=_),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 ry(t,e,n){t[e]=tM(t[e],n,1)}function rb(t,e){let n=t1().getScopeData();return t&&rv(n,t.getScopeData()),e&&rv(n,e.getScopeData()),n}function rE(t,e,n,r,i,s){var a,o;let{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,l={...e,event_id:e.event_id||n.event_id||tS(),timestamp:e.timestamp||tA()},p=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||nN,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;if((null==a?void 0:a.url)&&s&&(a.url=tf(a.url,s)),s){var o,c;null==(c=t.exception)||null==(o=c.values)||o.forEach(t=>{t.value&&(t.value=tf(t.value,s))})}})(l,t),a=l,(o=p).length>0&&(a.sdk=a.sdk||{},a.sdk.integrations=[...a.sdk.integrations||[],...o]),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){var n,r;let i=rg(e);null==(r=t.exception)||null==(n=r.values)||n.forEach(t=>{var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(t=>{t.filename&&(t.debug_id=i[t.filename])})})}(l,t.stackParser);let d=function(t,e){if(!e)return t;let n=t?t.clone():new tY;return n.update(e),n}(r,n.captureContext);n.mechanism&&tE(l,n.mechanism);let f=i?i.getEventProcessors():[],h=rb(s,d),g=[...n.attachments||[],...h.attachments];g.length&&(n.attachments=g),rS(l,h);let m=[...f,...h.eventProcessors];return(n.data&&!0===n.data.__sentry__?rf(l):function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]: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(_&&null===a&&E.log('Event processor "'.concat(s.id||"?",'" dropped event')),D(a))?a.then(e=>t(e,n,r,i+1)):t(a,n,r,i+1)}(e,n,t,r);return D(i)?i:rf(i)}catch(t){return rh(t)}}(m,l,n)).then(t=>(t&&function(t){var e,n;let r={};if(null==(n=t.exception)||null==(e=n.values)||e.forEach(t=>{var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(t=>{t.debug_id&&(t.abs_path?r[t.abs_path]=t.debug_id:t.filename&&(r[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(r).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let i=t.debug_meta.images;Object.entries(r).forEach(t=>{let[e,n]=t;i.push({type:"sourcemap",code_file:e,debug_id:n})})}(t),"number"==typeof c&&c>0)?function(t,e,n){var r,i;if(!t)return null;let s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>
3({...t,...t.data&&{data:tp(t.data,e,n)}}))},...t.user&&{user:tp(t.user,e,n)},...t.contexts&&{contexts:tp(t.contexts,e,n)},...t.extra&&{extra:tp(t.extra,e,n)}};return(null==(r=t.contexts)?void 0:r.trace)&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=tp(t.contexts.trace.data,e,n))),t.spans&&(s.spans=t.spans.map(t=>({...t,...t.data&&{data:tp(t.data,e,n)}}))),(null==(i=t.contexts)?void 0:i.flags)&&s.contexts&&(s.contexts.flags=tp(t.contexts.flags,3,n)),s}(t,c,u):t)}function rT(t){if(t){var e;return(e=t)instanceof tY||"function"==typeof e||Object.keys(t).some(t=>rI.includes(t))?{captureContext:t}:t}}t.s(["getDebugImagesForResources",()=>rm,"getFilenameToDebugIdMap",()=>rg],915818),t.s(["applyScopeDataToEvent",()=>rS,"getCombinedScopeData",()=>rb],865597);let rI=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function rx(t,e){return tZ().captureException(t,rT(e))}function rA(t,e){let n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return tZ().captureMessage(t,n,r)}function rN(t,e){return tZ().captureEvent(t,e)}function rC(t,e){t0().setContext(t,e)}function rR(t){t0().setExtras(t)}function rk(t,e){t0().setExtra(t,e)}function rO(t){t0().setTags(t)}function rw(t,e){t0().setTag(t,e)}function rM(t){t0().setUser(t)}function rP(t){t0().setConversationId(t)}function rD(){return t0().lastEventId()}function rU(t,e){let n=tZ(),r=t6();if(r)if(r.captureCheckIn)return r.captureCheckIn(t,e,n);else _&&E.warn("Cannot capture check-in. Client does not support sending check-ins.");else _&&E.warn("Cannot capture check-in. No client defined.");return tS()}async function rj(t){let e=t6();return e?e.flush(t):(_&&E.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function rL(t){let e=t6();return e?e.close(t):(_&&E.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function rB(){return!!t6()}function rF(){let t=t6();return(null==t?void 0:t.getOptions().enabled)!==!1&&!!(null==t?void 0:t.getTransport())}function rY(t){t0().addEventProcessor(t)}function rH(t){let e=t0(),{user:n}=rb(e,tZ()),{userAgent:r}=p.navigator||{},i=tk({user:n,...r&&{userAgent:r},...t}),s=e.getSession();return(null==s?void 0:s.status)==="ok"&&tO(s,{status:"exited"}),rJ(),e.setSession(i),i}function rJ(){let t=t0(),e=tZ().getSession()||t.getSession();e&&tw(e),rz(),t.setSession()}function rz(){let t=t0(),e=t6(),n=t.getSession();n&&e&&e.captureSession(n)}function rG(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return void rJ();rz()}}]); 4 5//# sourceMappingURL=a36e4e21bf99c028.js.map 6//# debugId=ff5fdfe9-9771-56ce-96d4-fbcf7bab2a4e
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.