1;!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]="f4eb9ffc-9a43-7bcf-adac-d66fa01c2f40")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,381360,t=>{"use strict";t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",0,"gen_ai.conversation.id","SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",0,"sentry.exclusive_time","SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",0,"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",0,"sentry.profile_id","SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",0,"sentry.custom_span_name","SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",0,"sentry.environment","SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",0,"sentry.idle_span_finish_reason","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",0,"sentry.measurement_unit","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",0,"sentry.measurement_value","SEMANTIC_ATTRIBUTE_SENTRY_OP",0,"sentry.op","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,"sentry.origin","SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",0,"sentry.previous_trace_sample_rate","SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",0,"sentry.release","SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,"sentry.sample_rate","SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",0,"sentry.sdk.integrations","SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",0,"sentry.sdk.name","SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",0,"sentry.sdk.version","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",0,"sentry.segment.id","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",0,"sentry.segment.name","SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,"sentry.source","SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",0,"sentry.status.message","SEMANTIC_ATTRIBUTE_URL_FULL",0,"url.full","SEMANTIC_ATTRIBUTE_USER_EMAIL",0,"user.email","SEMANTIC_ATTRIBUTE_USER_ID",0,"user.id","SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",0,"user.ip_address","SEMANTIC_ATTRIBUTE_USER_USERNAME",0,"user.name","SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",0,"sentry.link.type"])},606180,t=>{"use strict";let e=globalThis;t.s(["GLOBAL_OBJ",0,e])},880214,t=>{"use strict";let e;var n=t.i(606180);function r(t){if(void 0!==e)return e?e(t):t();let r=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),i=n.GLOBAL_OBJ;return r in i&&"function"==typeof i[r]?(e=i[r])(t):(e=null,t())}t.s(["safeDateNow",0,function(){return r(()=>Date.now())},"safeMathRandom",0,function(){return r(()=>Math.random())},"withRandomSafeContext",0,r])},406311,t=>{"use strict";let e;var n=t.i(880214),r=t.i(606180);function i(){return(0,n.safeDateNow)()/1e3}let s=null;t.s(["browserPerformanceTimeOrigin",0,function(){return null===s&&(s=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t?.now)return;let e=(0,n.withRandomSafeContext)(()=>t.now()),i=(0,n.safeDateNow)(),s=t.timeOrigin;if("number"==typeof s&&3e5>Math.abs(s+e-i))return s;let a=t.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+e-i)?a:i-e}()),s},"dateTimestampInSeconds",0,i,"timestampInSeconds",0,function(){return(e??(e=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t?.now||!t.timeOrigin)return i;let e=t.timeOrigin;return()=>(e+(0,n.withRandomSafeContext)(()=>t.now()))/1e3}()))()}])},175633,t=>{"use strict";let e="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.s(["DEBUG_BUILD",0,e])},767824,t=>{"use strict";t.s(["SDK_VERSION",0,"10.64.0"])},471480,t=>{"use strict";var e=t.i(767824),n=t.i(606180);function r(t){let n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e.SDK_VERSION,n[e.SDK_VERSION]=n[e.SDK_VERSION]||{}}t.s(["getGlobalSingleton",0,function(t,r,i=n.GLOBAL_OBJ){let s=i.__SENTRY__=i.__SENTRY__||{},a=s[e.SDK_VERSION]=s[e.SDK_VERSION]||{};return a[t]||(a[t]=r())},"getMainCarrier",0,function(){return r(n.GLOBAL_OBJ),n.GLOBAL_OBJ},"getSentryCarrier",0,r])},463336,741397,290362,t=>{"use strict";var e=t.i(175633),n=t.i(471480),r=t.i(606180);let i={};function s(t){if(!("console"in r.GLOBAL_OBJ))return t();let e=r.GLOBAL_OBJ.console,n={},s=Object.keys(i);s.forEach(t=>{let r=i[t];n[t]=e[t],e[t]=r});try{return t()}
2finally{s.forEach(t=>{e[t]=n[t]})}}function a(){return c().enabled}function o(t,...n){e.DEBUG_BUILD&&a()&&s(()=>{r.GLOBAL_OBJ.console[t](`Sentry Logger [${t}]:`,...n)})}function c(){return e.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let u={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:a,log:function(...t){o("log",...t)},warn:function(...t){o("warn",...t)},error:function(...t){o("error",...t)}};t.s(["CONSOLE_LEVELS",0,["debug","info","warn","error","log","assert","trace"],"consoleSandbox",0,s,"debug",0,u,"originalConsoleMethods",0,i],741397);let p=Object.prototype.toString;function l(t){switch(p.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return g(t,Error)}}function d(t,e){return p.call(t)===`[object ${e}]`}function _(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function f(t){return"u">typeof Event&&g(t,Event)}function g(t,e){try{return t instanceof e}catch{return!1}}function h(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e.DEBUG_BUILD&&u.log(`Failed to add non-enumerable property "${String(n)}" to object`,t)}}function S(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,h(t,"__sentry_original__",e)}catch{}}function m(t){if(l(t))return{message:t.message,name:t.name,stack:t.stack,...E(t)};if(f(t)){let{type:e,target:n,currentTarget:r,detail:i}=t;return{type:e,target:n,currentTarget:r,...i?{detail:i}:{},...E(t)}}return t}function E(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}t.s(["isDOMError",0,function(t){return d(t,"DOMError")},"isDOMException",0,function(t){return d(t,"DOMException")},"isError",0,l,"isErrorEvent",0,function(t){return d(t,"ErrorEvent")},"isEvent",0,f,"isInstanceOf",0,g,"isParameterizedString",0,_,"isPlainObject",0,function(t){return d(t,"Object")},"isPrimitive",0,function(t){return null===t||_(t)||"object"!=typeof t&&"function"!=typeof t},"isRegExp",0,function(t){return d(t,"RegExp")},"isRequest",0,function(t){return"u">typeof Request&&g(t,Request)},"isString",0,function(t){return d(t,"String")},"isThenable",0,function(t){return!!(t?.then&&"function"==typeof t.then)}],290362),t.s(["addNonEnumerableProperty",0,h,"convertToPlainObject",0,m,"extractExceptionKeysForMessage",0,function(t){let e=Object.keys(m(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"},"fill",0,function(t,n,r){if(!(n in t))return;let i=t[n];if("function"!=typeof i)return;let s=r(i);"function"==typeof s&&S(s,i);try{t[n]=s}catch{e.DEBUG_BUILD&&u.log(`Failed to replace method "${n}" in object`,t)}},"getOriginalFunction",0,function(t){return t.__sentry_original__},"markFunctionWrapped",0,S],463336)},761161,205983,226749,227479,t=>{"use strict";let e,n;var r=t.i(463336),i=t.i(880214),s=t.i(290362);let a=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth"),c=/\(error: (.*)\)/,u=/captureMessage|captureException/;function p(...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;t<s.length;t++){let n=s[t];n.length>1024&&(n=n.slice(0,1024));let a=c.test(n)?n.replace(c,"$1"):n;if(!a.includes("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(l(o).function||"")&&o.pop(),o.reverse(),u.test(l(o).function||"")&&(o.pop(),u.test(l(o).function||"")&&o.pop()),o.slice(0,50).map(t=>({...t,filename:t.filename||l(o).filename,function:t.function||"?"}))}}function l(t){return t[t.length-1]||{}}let d="<anonymous>";function _(t){try{if(!t||"function"!=typeof t)return d;return t.name||d}catch{return d}}function f(t,e=100,n=1/0){try{return function t(e,n,i=1/0,s=1/0,c=function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){let u,[p,l]=c;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let d=g(e,n);if(!d.startsWith("[object "))return d;if(n[a])return n;let _=(u=n[o],"number"==typeof u?u:void 0),f=void 0!==_?_:i;if(0===f)return d.replace("object ","");if(p(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let e=n.toJSON();return t("",e,f-1,s,c)}catch{}let h=Array.isArray(n)?[]:{},S=0,m=(0,r.convertToPlainObject)(n);for(let e in m){if(!Object.prototype.hasOwnProperty.call(m,e))continue;if(S>=s){h[e]="[MaxProperties ~]";break}let n=m[e];h[e]=t(e,n,f-1,s,c),S++}return l(n),h}("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function g(n,r){try{var i;let n;if(e){let t=e(r);if(t)return t}if(r===t.g)return"[Global]";if("number"==typeof r&&!Number.isFinite(r))return`[${r}]`;if("function"==typeof r)return`[Function: ${_(r)}]`;if("symbol"==typeof r)return`[${String(r)}]`;if("bigint"==typeof r)return`[BigInt: ${String(r)}]`;let s=(i=r,n=Object.getPrototypeOf(i),n?.constructor?n.constructor.name:"null prototype");return`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}function h(t,e,n=!1){return!!(0,s.isString)(t)&&((0,s.isRegExp)(e)?e.test(t):(0,s.isString)(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}t.s(["UNKNOWN_FUNCTION",0,"?","createStackParser",0,p,"getFramesFromEvent",0,function(t){let e=t.exception;if(e){let t=[];
2try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{}}},"getFunctionName",0,_,"normalizeStackTracePath",0,function(t){let e=t?.startsWith("file://")?t.slice(7):t;return e?.match(/\/[A-Z]:/)&&(e=e.slice(1)),e},"stackParserFromStackParserOptions",0,function(t){return Array.isArray(t)?p(...t):t}],205983),t.s(["normalize",0,f,"normalizeToSize",0,function t(e,n=3,r=102400){let i=f(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i},"setNormalizeStringifier",0,function(t){e=t},"stringifyValue",0,g],226749),t.s(["isMatchingPattern",0,h,"safeJoin",0,function(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let r=t[e];(0,s.isPrimitive)(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(g(void 0,r))}return n.join(e)},"snipLine",0,function(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}`),s<r&&(n+=" {snip}"),n},"stringMatchesSomePattern",0,function(t,e=[],n=!1){for(let r of e)if(h(t,r,n))return!0;return!1},"truncate",0,function(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}],227479);var S=t.i(606180);function m(t){return t.exception?.values?.[0]}t.s(["addExceptionMechanism",0,function(t,e){let n=m(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}},"addExceptionTypeValue",0,function(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")},"checkOrSetAlreadyCaught",0,function(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{(0,r.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1},"getEventDescription",0,function(t){let{message:e,event_id:n}=t;if(e)return e;let r=m(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},"uuid4",0,function(t=function(){let t=S.GLOBAL_OBJ;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return(0,i.withRandomSafeContext)(()=>t.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,t=>(t^(15&16*(0,i.safeMathRandom)())>>t/4).toString(16))}],761161)},975208,20572,85975,683697,223681,356589,734022,378527,457230,t=>{"use strict";let e;var n=t.i(471480),r=t.i(175633),i=t.i(761161),s=t.i(406311);function a(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||(0,s.timestampInSeconds)(),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:(0,i.uuid4)()),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)}t.s(["closeSession",0,function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)},"makeSession",0,function(t){let e=(0,s.timestampInSeconds)(),n={sid:(0,i.uuid4)(),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&&a(n,t),n},"updateSession",0,a],20572);var o=t.i(741397),c=t.i(290362);function u(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]=u(r[t],e[t],n-1));return r}function p(){return(0,i.uuid4)()}function l(){return(0,i.uuid4)().substring(16)}t.s(["merge",0,u],85975),t.s(["generateSpanId",0,l,"generateTraceId",0,p],683697);var d=t.i(880214),_=t.i(463336),f=t.i(606180);function g(t){try{let e=f.GLOBAL_OBJ.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}function h(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}t.s(["derefWeakRef",0,h,"makeWeakRef",0,g],223681);let S="_sentrySpan";function m(t,e){e?(0,_.addNonEnumerableProperty)(t,S,g(e)):delete t[S]}function E(t){return h(t[S])}t.s(["_getSpanForScope",0,E,"_setSpanForScope",0,m],356589);var T=t.i(227479);class y{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:p(),sampleRand:(0,d.safeMathRandom)()}}clone(){let t=new y;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,m(t,E(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&&a(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:u=[],propagationContext:p,conversationId:l}=(e instanceof y?e.getScopeData():(0,c.isPlainObject)(e)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),o&&(this._level=o),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),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,m(this,void 0),this._attachments=[],this.setPropagationContext({traceId:p(),sampleRand:(0,d.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,s.dateTimestampInSeconds)(),...t,message:t.message?(0,T.truncate)(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:E(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=u(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}
2captureException(t,e){let n=e?.event_id||(0,i.uuid4)();if(!this._client)return r.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture exception!"),n;let s=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...e,event_id:n},this),n}captureMessage(t,e,n){let s=n?.event_id||(0,i.uuid4)();if(!this._client)return r.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture message!"),s;let a=n?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:a,...n,event_id:s},this),s}captureEvent(t,e){let n=t.event_id||e?.event_id||(0,i.uuid4)();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):r.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}t.s(["Scope",0,y],734022);let I=t=>t instanceof Promise&&!t[b],b=Symbol("chained PromiseLike"),v=(t,e,n)=>{let r=t.then(t=>(e(t),t),t=>{throw n(t),t});return I(r)&&I(t)?r:A(t,r)},A=(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:(...e)=>i.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=i}return n&&Object.assign(e,{[b]:!0}),e};t.s(["chainAndCopyPromiseLike",0,v],378527);class N{constructor(t,e){let n,r;n=t||new y,r=e||new y,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}return(0,c.isThenable)(e)?v(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()}}function R(){let t=(0,n.getMainCarrier)(),e=(0,n.getSentryCarrier)(t);return e.stack=e.stack||new N((0,n.getGlobalSingleton)("defaultCurrentScope",()=>new y),(0,n.getGlobalSingleton)("defaultIsolationScope",()=>new y))}function C(t){return R().withScope(t)}function x(t,e){let n=R();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function O(t){return R().withScope(()=>t(R().getIsolationScope()))}function U(t){let e=(0,n.getSentryCarrier)(t);return e.acs?e.acs:{withIsolationScope:O,withScope:C,withSetScope:x,withSetIsolationScope:(t,e)=>O(e),getCurrentScope:()=>R().getScope(),getIsolationScope:()=>R().getIsolationScope()}}function M(){return U((0,n.getMainCarrier)()).getCurrentScope()}t.s(["getAsyncContextStrategy",0,U],457230),t.s(["getClient",0,function(){return M().getClient()},"getCurrentScope",0,M,"getGlobalScope",0,function(){return(0,n.getGlobalSingleton)("globalScope",()=>new y)},"getIsolationScope",0,function(){return U((0,n.getMainCarrier)()).getIsolationScope()},"getTraceContextFromScope",0,function(t){let n=e?.();if(n)return{trace_id:n.traceId,span_id:n.spanId};let{traceId:r,parentSpanId:i,propagationSpanId:s}=t.getPropagationContext(),a={trace_id:r,span_id:s||l()};return i&&(a.parent_span_id=i),a},"hasExternalPropagationContext",0,function(){return void 0!==e},"withIsolationScope",0,function(...t){let e=U((0,n.getMainCarrier)());if(2===t.length){let[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])},"withScope",0,function(...t){let e=U((0,n.getMainCarrier)());if(2===t.length){let[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}],975208)},311634,313553,773959,666774,437064,967466,89680,703493,174479,942843,275819,898641,21635,955052,314001,535671,586165,551483,89305,189703,970025,280739,337145,11478,846320,t=>{"use strict";let e,n,r,i;var s=t.i(975208),a=t.i(175633),o=t.i(20572),c=t.i(457230),u=t.i(471480),p=t.i(381360),l=t.i(741397),d=t.i(290362);let _="sentry-";function f(t){let e=g(t);if(!e)return;let n=Object.entries(e).reduce((t,[e,n])=>(e.startsWith(_)&&(t[e.slice(_.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function g(t){if(t&&((0,d.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>
2(Object.entries(h(e)).forEach(([e,n])=>{t[e]=n}),t),{}):h(t)}function h(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 S(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=t||(0,s.getClient)()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",0,_,"baggageHeaderToDynamicSamplingContext",0,f,"dynamicSamplingContextToSentryBaggageHeader",0,function(t){if(t){var e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${_}${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?(a.DEBUG_BUILD&&l.debug.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},""):void 0}},"parseBaggageHeader",0,g],313553),t.i(378527),t.s(["hasSpansEnabled",0,S],773959);var m=t.i(227479);function E(t){l.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function T(t,e){if(!e?.length)return!1;for(let r of e){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(t.description&&(0,m.isMatchingPattern)(t.description,r))return a.DEBUG_BUILD&&E(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&&(0,m.isMatchingPattern)(t.description,r.name),s=!r.op||t.op&&(0,m.isMatchingPattern)(t.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([e,n])=>(function(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?(0,m.isMatchingPattern)(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e})(t.attributes?.[e],n));if(i&&s&&o)return a.DEBUG_BUILD&&E(t),!0}return!1}function y(t){return"stream"===t.getOptions().traceLifecycle}function I(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}t.s(["reparentChildSpans",0,function(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)},"shouldIgnoreSpan",0,T],666774),t.s(["hasSpanStreamingEnabled",0,y],437064),t.s(["parseSampleRate",0,I],967466);var b=t.i(683697),v=t.i(880214),A=t.i(356589);function N(t,e=!1){let n={};for(let[r,i]of Object.entries(t??{})){let t=function(t,e){let{value:n,unit:r}="object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")?t:{value:t,unit:void 0},i=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}}(n),s=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...s};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...s}}(i,e);t&&(n[r]=t)}return n}t.s(["serializeAttributes",0,N],89680),t.s(["SPAN_STATUS_ERROR",0,2,"SPAN_STATUS_OK",0,1,"SPAN_STATUS_UNSET",0,0,"setHttpStatus",0,function(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)}],703493);var R=t.i(463336),C=t.i(223681);let x="_sentryScope",O="_sentryIsolationScope",U=Symbol.for("sentry.otelSourceInference"),M=Symbol.for("sentry.otelSourceExplicitlySet"),D=Symbol.for("sentry.tracerProviderSpan");function k(t,e,n){t&&((0,R.addNonEnumerableProperty)(t,O,(0,C.makeWeakRef)(n)),(0,R.addNonEnumerableProperty)(t,x,e))}function B(t){return{scope:t[x],isolationScope:(0,C.derefWeakRef)(t[O])}}function P(t){return!0===t[U]}function L(t){(0,R.addNonEnumerableProperty)(t,M,!0)}function w(t){return!0===t[D]}t.s(["getCapturedScopesOnSpan",0,B,"markSpanSourceAsExplicit",0,L,"setCapturedScopesOnSpan",0,k,"spanIsTracerProviderSpan",0,w,"spanShouldInferOtelSource",0,P],174479);var $=t.i(406311);let G=/^o(\d+)\./,j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Y(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 F(t){let e=j.exec(t);if(!e)return void(0,l.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});let[n,r,i="",s="",a="",o=""]=e.slice(1),c="",u=o,p=u.split("/");if(p.length>1&&(c=p.slice(0,-1).join("/"),u=p.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return J({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function J(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function z(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(G),e=t?.[1])}return e}t.s(["dsnFromString",0,F,"dsnToString",0,Y,"extractOrgIdFromClient",0,z,"makeDsn",0,function(t){let e="string"==typeof t?F(t):J(t);if(e&&function(t){if(!a.DEBUG_BUILD)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(l.debug.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(l.debug.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(l.debug.error(`Invalid Sentry Dsn: Invalid port ${e}
2`),!1):(l.debug.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}],942843);let K=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function V(t=(0,b.generateTraceId)(),e=(0,b.generateSpanId)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function H(t=(0,b.generateTraceId)(),e=(0,b.generateSpanId)(),n){return`00-${t}-${e}-${n?"01":"00"}`}t.s(["TRACEPARENT_REGEXP",0,K,"generateSentryTraceHeader",0,V,"generateTraceparentHeader",0,H,"propagationContextFromHeaders",0,function(t,e){let n=function(t){let e;if(!t)return;let n=t.match(K);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=f(e);if(!n?.traceId)return{traceId:(0,b.generateTraceId)(),sampleRand:(0,v.safeMathRandom)()};let i=function(t,e){let n=I(e?.sample_rand);if(void 0!==n)return n;let r=I(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?(0,v.safeMathRandom)()*r:r+(0,v.safeMathRandom)()*(1-r):(0,v.safeMathRandom)()}(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}},"shouldContinueTrace",0,function(t,e){let n=z(t);return e&&n&&e!==n?(l.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${e}, SDK options: ${n})`),!1):!t.getOptions().strictTraceContinuation||(!e||!!n)&&(!!e||!n)||(l.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1)}],275819);let W=!1;function q(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=tn(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function X(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:tn(t).parent_span_id,s=B(t).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||(0,b.generateSpanId)():e,trace_id:n}}function Q(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 Z(t){return t?.length?t.map(({context:{spanId:t,traceId:e,traceFlags:n},attributes:r})=>({span_id:t,trace_id:e,sampled:1===n,attributes:r})):void 0}function tt(t){return"number"==typeof t?te(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?te(t.getTime()):(0,$.timestampInSeconds)()}function te(t){return t>0x2540be3ff?t/1e3:t}function tn(t){if(ts(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(ti(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:tr(t),start_timestamp:tt(i),timestamp:tt(a)||void 0,status:to(o),op:r[p.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:r[p.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:Q(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function tr(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function ti(t){return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function ts(t){return"function"==typeof t.getSpanJSON}function ta(t){let{traceFlags:e}=t.spanContext();return 1===e}function to(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function tc(t){return t&&1!==t.code&&0!==t.code&&"cancelled"!==t.message?"error":"ok"}function tu(t,e){let n="error"===tc(e)?e?.message:void 0;return{...n&&{[p.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:n},...t}}let tp="_sentryChildSpans",tl="_sentryRootSpan";function td(t,e){let n=t[tl]||t;(0,R.addNonEnumerableProperty)(e,tl,n),t[tp]?t[tp].add(e):(0,R.addNonEnumerableProperty)(t,tp,new Set([e]))}function t_(t){let e=new Set;return!function t(n){if(!e.has(n)&&ta(n))for(let r of(e.add(n),n[tp]?Array.from(n[tp]):[]))t(r)}(t),Array.from(e)}let tf=tg;function tg(t){return t[tl]||t}function th(){let t=(0,u.getMainCarrier)(),e=(0,c.getAsyncContextStrategy)(t);return e.getActiveSpan?e.getActiveSpan():(0,A._getSpanForScope)((0,s.getCurrentScope)())}function tS(){W||((0,l.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),W=!0)}t.s(["INTERNAL_getSegmentSpan",0,tg,"TRACE_FLAG_NONE",0,0,"TRACE_FLAG_SAMPLED",0,1,"addChildSpanToSpan",0,td,"addStatusMessageAttribute",0,tu,"convertSpanLinksForEnvelope",0,Q,"getActiveSpan",0,th,"getRootSpan",0,tf,"getSimpleStatus",0,tc,"getSpanDescendants",0,t_,"getStatusMessage",0,to,"getStreamedSpanLinks",0,Z,"removeChildSpanFromSpan",0,function(t,e){t[tp]&&t[tp].delete(e)},"showSpanDropWarning",0,tS,"spanIsSampled",0,ta,"spanTimeInputToSeconds",0,tt,"spanToJSON",0,tn,"spanToStreamedSpanJSON",0,function(t){if(ts(t))return t.getStreamedSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(ti(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:tr(t),start_timestamp:tt(i),end_timestamp:tt(a),is_segment:t===tg(t),status:tc(o),attributes:tu(r,o),links:Z(c)}}return{span_id:e,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===tg(t)}},"spanToTraceContext",0,X,"spanToTraceHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return V(e,n,ta(t))},"spanToTraceparentHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return H(e,n,ta(t))},"spanToTransactionTraceContext",0,q,"streamedSpanJsonToSerializedSpan",0,function(t){return{...t,attributes:N(t.attributes),links:t.links?.map(t=>({...t,attributes:N(t.attributes)}))}}],898641);let tm="sentry.span.source";t.s(["SENTRY_SPAN_SOURCE",0,tm,"SENTRY_TRACE_LIFECYCLE",0,"sentry.trace_lifecycle"],21635);let tE="production";t.s(["DEFAULT_ENVIRONMENT",0,tE],955052);let tT=Symbol.for("sentry.nonRecordingSpan");class ty{constructor(t={}){this._traceId=t.traceId||(0,b.generateTraceId)(),this._spanId=t.spanId||(0,b.generateSpanId)(),this.dropReason=t.dropReason,(0,R.addNonEnumerableProperty)(this,tT,!0)}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}
2addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}function tI(t){return!!t&&!0===t[tT]}t.s(["SentryNonRecordingSpan",0,ty,"spanIsNonRecordingSpan",0,tI],314001);let tb="_frozenDsc";function tv(t,e){(0,R.addNonEnumerableProperty)(t,tb,e)}function tA(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||tE,release:n.release,public_key:r,trace_id:t,org_id:z(e)};return e.emit("createDsc",i),i}function tN(t,e){let n=e.getPropagationContext();return n.dsc||tA(n.traceId,t)}function tR(t){let e=(0,s.getClient)();if(!e)return{};let n=tf(t),r=tn(n),i=r.data,a=n.spanContext().traceState,o=a?.get("sentry.sample_rate")??i[p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??i[p.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function c(t){return("number"==typeof o||"string"==typeof o)&&(t.sample_rate=`${o}`),t}let u=n[tb];if(u)return c(u);if(tI(n)&&!S(e.getOptions())){let t=B(n).scope;if(t)return c({...tN(e,t)})}let l=a?.get("sentry.dsc"),d=l&&f(l);if(d)return c(d);let _=tA(t.spanContext().traceId,e),g=i[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??i[tm],h=r.description;return"url"!==g&&h&&(_.transaction=h),S()&&(_.sampled=String(ta(n)),_.sample_rand=a?.get("sentry.sample_rand")??B(n).scope?.getPropagationContext().sampleRand.toString()),c(_),e.emit("createDsc",_,n),_}function tC(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}t.s(["freezeDscOnSpan",0,tv,"getDynamicSamplingContextFromScope",0,tN,"getDynamicSamplingContextFromSpan",0,tR],535671),t.s(["isStreamedBeforeSendSpanCallback",0,tC],586165);var tx=t.i(226749),tO=t.i(606180);function tU(t,e=[]){return[t,e]}function tM(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function tD(t){let e=(0,u.getSentryCarrier)(tO.GLOBAL_OBJ);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function tk(t){return[{type:"span"},t]}let tB={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 tP(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function tL(t,e,n,r){let i=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date((0,v.safeDateNow)()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Y(r)},...i&&{trace:i}}}function tw(t,e){let n=tR(t[0]),r=e?.getDsn(),i=e?.getOptions().tunnel,s={sent_at:new Date((0,v.safeDateNow)()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:Y(r)}},{beforeSendSpan:a,ignoreSpans:o}=e?.getOptions()||{},c=o?.length?t.filter(t=>{let e=tn(t);return!T({description:e.description,op:e.op,attributes:e.data},o)}):t,u=t.length-c.length;u&&e?.recordDroppedEvent("before_send","span",u);let p=a?t=>{let e=tn(t),n=tC(a)?e:a(e);return n||(tS(),e)}:tn,l=[];for(let t of c){let e=p(t);e&&l.push(tk(e))}return tU(s,l)}function t$(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[p.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[p.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof i&&(e[t.name]={value:i,unit:r})}),e}function tG(){return(0,u.getSentryCarrier)((0,u.getMainCarrier)()).segmentSpanCaptureStrategy}t.s(["addItemToEnvelope",0,function(t,e){let[n,r]=t;return[n,[...r,e]]},"createAttachmentEnvelopeItem",0,function(t){let e="string"==typeof t.data?tD(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]},"createEnvelope",0,tU,"createEventEnvelopeHeaders",0,tL,"createSpanEnvelopeItem",0,tk,"envelopeContainsItemType",0,function(t,e){return tM(t,(t,n)=>e.includes(n))},"envelopeItemTypeToDataCategory",0,function(t){return t in tB?tB[t]:t},"forEachEnvelopeItem",0,tM,"getSdkMetadataForEnvelopeHeader",0,tP,"serializeEnvelope",0,function(t){let[e,n]=t,r=JSON.stringify(e);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[tD(r),t]:r.push("string"==typeof t?tD(t):t)}for(let t of n){let[e,n]=t;if(i(` 3${JSON.stringify(e)} 4`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify((0,tx.normalize)(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)}],551483),t.s(["createEventEnvelope",0,function(t,e,n,r){let i=tP(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=tL(t,i,r,e);return delete t.sdkProcessingMetadata,tU(a,[[{type:s},t]])},"createSessionEnvelope",0,function(t,e,n,r){let i=tP(n);return tU({sent_at:new Date((0,v.safeDateNow)()).toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:Y(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])},"createSpanEnvelope",0,tw],89305),t.s(["setMeasurement",0,function(t,e,n,r=th()){let i=r&&tf(r);
4i&&(a.DEBUG_BUILD&&l.debug.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[p.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e,[p.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))},"timedEventsToMeasurements",0,t$],189703);class tj{constructor(t={}){this._traceId=t.traceId||(0,b.generateTraceId)(),this._spanId=t.spanId||(0,b.generateSpanId)(),this._startTime=t.startTimestamp||(0,$.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[p.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[p.SEMANTIC_ATTRIBUTE_SENTRY_OP]: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._frozen||(this._links?this._links.push(t):this._links=[t]),this}addLinks(t){return this._frozen||(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 this._frozen||(void 0===e?delete this._attributes[t]:this._attributes[t]=e,t===p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE&&void 0!==e&&P(this)&&L(this)),this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(t){this._frozen||(this._startTime=tt(t))}setStatus(t){return this._frozen||(this._status=t),this}updateName(t){return this._frozen||(this._name=t,P(this)||this.setAttribute(p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom")),this}end(t){if(this._endTime){this._frozen=w(this);return}this._endTime=tt(t),function(t){if(!a.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >"}=tn(t),{spanId:r}=t.spanContext(),i=tf(t)===t,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;l.debug.log(s)}(this),this._onSpanEnded(),this._frozen=w(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[p.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:to(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[p.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[p.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[p.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:t$(this._events),is_segment:this._isStandaloneSpan&&tf(this)===this||void 0,segment_id:this._isStandaloneSpan?tf(this).spanContext().spanId:void 0,links:Q(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===tf(this),status:tc(this._status),attributes:tu(this._attributes,this._status),links:Z(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){if(this._frozen)return this;a.DEBUG_BUILD&&l.debug.log("[Tracing] Adding an event to span:",t);let r=tY(e)?e:n||(0,$.timestampInSeconds)(),i=tY(e)?{}:e||{},s={name:t,time:tt(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=(0,s.getClient)();t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this));let e=tf(this),n=this._isStandaloneSpan||this===e;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=(0,s.getClient)();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(tw([this],t)):(a.DEBUG_BUILD&&l.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));if(!n){let t=tG();if(t){let n=B(this).scope||(0,s.getCurrentScope)();t.onChildSpanEnded(this,e,t=>this._convertSpanToTransaction(t),n)}return}if(t&&y(t))return void t.emit("afterSegmentSpanEnd",this);let r=B(this).scope||(0,s.getCurrentScope)(),i=tG();if(i)i.onSegmentSpanEnded(t=>this._convertSpanToTransaction(t),r);else{let t=this._convertSpanToTransaction();t&&r.captureEvent(t)}}_convertSpanToTransaction(t={}){if(!tF(tn(this)))return;this._name||(a.DEBUG_BUILD&&l.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:n}=B(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;t.onSpanCaptured?.(this);let i=[];for(let e of t_(this)){var s;if(e===this||(s=e)instanceof tj&&s.isStandaloneSpan()||t.isSpanAlreadyCaptured?.(e))continue;let n=tn(e);tF(n)&&(t.onSpanCaptured?.(e),i.push(n))}let o=this._attributes[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[p.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let c=!1;
4i.forEach(t=>{delete t.data[p.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],t.op?.startsWith("gen_ai.")&&(c=!0)});let u={contexts:{trace:q(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:tR(this),hasGenAiSpans:c},request:r,...o&&{transaction_info:{source:o}}},d=t$(this._events);return d&&Object.keys(d).length&&(a.DEBUG_BUILD&&l.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),u.measurements=d),u}}function tY(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function tF(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function tJ(t,e){let n=tK();return n.withActiveSpan?n.withActiveSpan(t,e):(0,s.withScope)(n=>((0,A._setSpanForScope)(n,t||void 0),e(n)))}function tz(t=(0,s.getCurrentScope)()){let e=tK();return e.isTracingSuppressed?e.isTracingSuppressed(t):!0===t.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function tK(){let t=(0,u.getMainCarrier)();return(0,c.getAsyncContextStrategy)(t)}function tV(t,e,n,r){let i=(0,s.getClient)(),o=i?.getOptions()||{},{name:c=""}=t,u={spanAttributes:{...t.attributes},spanName:c,parentSampled:r};i?.emit("beforeSampling",u,{decision:!1});let d=u.parentSampled??r,_=u.spanAttributes,f=e.getPropagationContext(),g=tz(e),[h,m,E]=g?[!1]:function(t,e,n){let r,i;if(!S(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=I(r);if(void 0===s)return a.DEBUG_BUILD&&l.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return a.DEBUG_BUILD&&l.debug.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,i];let o=n<s;return!o&&a.DEBUG_BUILD&&l.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,s,i]}(o,{name:c,parentSampled:d,attributes:_,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:I(f.dsc?.sample_rate)},f.sampleRand),T=new tj({...t,attributes:{[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==m&&E?m:void 0,..._},sampled:h});return h||!i||g||(a.DEBUG_BUILD&&l.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",y(i)?"span":"transaction")),k(T,e,n),i&&i.emit("spanStart",T),T}t.s(["SentrySpan",0,tj],970025),t.s(["startInactiveSpan",0,function(t){let e=tK();return e.startInactiveSpan?e.startInactiveSpan(t):function(t){let e=function(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=tt(t.startTime),delete n.startTime,n}return e}(t),{forceTransaction:n,parentSpan:r}=t;return(t.scope?e=>(0,s.withScope)(t.scope,e):void 0!==r?t=>tJ(r,t):t=>t())(()=>{var i,o;let c,u=(0,s.getCurrentScope)(),d=function(t,e){if(e)return e;if(null===e)return;let n=(0,A._getSpanForScope)(t);if(!n)return;let r=(0,s.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?tf(n):n}(u,r),_=(0,s.getClient)();return t.onlyIfParent&&!d?(i=u,o=_,o?.recordDroppedEvent("no_parent_span","span"),k(c=new ty({traceId:i.getPropagationContext().traceId}),i,(0,s.getIsolationScope)()),c):function({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){var i,o;let c,u,d=(0,s.getIsolationScope)();if(!S()){let e={...d.getPropagationContext(),...r.getPropagationContext()},i=new ty({traceId:t?t.spanContext().traceId:e.traceId});return t&&!n&&td(t,i),k(i,r,d),i}let _=(0,s.getClient)();if(i=_,o=e,c=i?.getOptions().ignoreSpans,i&&y(i)&&c?.length&&T({de
4scription:o.name||"",op:o.attributes?.[p.SEMANTIC_ATTRIBUTE_SENTRY_OP]||o.op,attributes:o.attributes},c)){tz(r)||_?.recordDroppedEvent("ignored","span");let e=new ty({dropReason:"ignored",traceId:t?.spanContext().traceId??r.getPropagationContext().traceId});return k(e,r,d),e}if(t&&!n)u=function(t,e,n,r){let{spanId:i,traceId:a}=t.spanContext(),o=tz(e),c=!o&&ta(t),u=c?new tj({...n,parentSpanId:i,traceId:a,sampled:c}):new ty({traceId:a});td(t,u),k(u,e,r);let p=(0,s.getClient)();return p&&(y(p)&&tI(u)&&(tI(t)&&t.dropReason?(u.dropReason=t.dropReason,p.recordDroppedEvent(t.dropReason,"span")):o||(u.dropReason="sample_rate",p.recordDroppedEvent("sample_rate","span"))),p.emit("spanStart",u),n.endTimestamp&&(p.emit("spanEnd",u),p.emit("afterSpanEnd",u))),u}(t,r,e,d),td(t,u);else if(t){let n=tR(t),{traceId:i,spanId:s}=t.spanContext(),a=ta(t);tv(u=tV({traceId:i,parentSpanId:s,...e},r,d,a),n)}else{let{traceId:t,dsc:n,parentSpanId:i,sampled:s}={...d.getPropagationContext(),...r.getPropagationContext()};u=tV({traceId:t,parentSpanId:i,...e},r,d,s),n&&tv(u,n)}return!function(t){if(!a.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=tn(t),{spanId:i}=t.spanContext(),s=ta(t),o=tf(t),c=o===t,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,p=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&p.push(`parent ID: ${r}`),!c){let{op:t,description:e}=tn(o);p.push(`root ID: ${o.spanContext().spanId}`),t&&p.push(`root op: ${t}`),e&&p.push(`root description: ${e}`)}l.debug.log(`${u} 5 ${p.join("\n ")}`)}(u),u}({parentSpan:d,spanArguments:e,forceTransaction:n,scope:u})})}(t)},"startNewTrace",0,function(t){let e=tK();return e.startNewTrace?e.startNewTrace(t):(0,s.withScope)(e=>(e.setPropagationContext({traceId:(0,b.generateTraceId)(),sampleRand:(0,v.safeMathRandom)()}),a.DEBUG_BUILD&&l.debug.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),tJ(null,t)))},"withActiveSpan",0,tJ],280739);var tH=t.i(761161);function tW(t){return new tX(e=>{e(t)})}function tq(t){return new tX((e,n)=>{n(t)})}class tX{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new tX((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 tX((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){let e=(t,e)=>{if(0===this._state){if((0,d.isThenable)(e))return void e.then(n,r);this._state=t,this._value=e,this._executeHandlers()}},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}t.s(["rejectedSyncPromise",0,tq,"resolvedSyncPromise",0,tW],337145);var tQ=t.i(734022);t.i(205983);var tZ=t.i(85975);function t0(t,e){var n,r,i,s,a,o,c,u;let p,l,{fingerprint:d,span:_,breadcrumbs:f,sdkProcessingMetadata:g}=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),_&&((n=t).contexts={trace:X(r=_),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:tR(r),...n.sdkProcessingMetadata},(p=tn(tf(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=p)),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=f,l=[...a.breadcrumbs||[],...o],a.breadcrumbs=l.length?l:void 0,c=t,u=g,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function t1(t,e){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:l,attachments:d,propagationContext:_,transactionName:f,span:g}=e;t3(t,"extra",n),t3(t,"tags",r),t3(t,"attributes",i),t3(t,"user",s),t3(t,"contexts",a),t.sdkProcessingMetadata=(0,tZ.merge)(t.sdkProcessingMetadata,c,2),o&&(t.level=o),f&&(t.transactionName=f),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,..._}}function t3(t,e,n){t[e]=(0,tZ.merge)(t[e],n,1)}function t2(t,e){let n=(0,s.getGlobalScope)().getScopeData();return t&&t1(n,t.getScopeData()),e&&t1(n,e.getScopeData()),n}function t4(t){if(t){var e;return(e=t)instanceof tQ.Scope||"function"==typeof e||Object.keys(t).some(t=>t6.includes(t))?{captureContext:t}:t}}t.s(["applyScopeDataToEvent",0,t0,"getCombinedScopeData",0,t2],11478);let t6=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function t7(){let t=(0,s.getIsolationScope)(),e=(0,s.getCurrentScope)().getSession()||t.getSession();e&&(0,o.closeSession)(e),t5(),t.setSession()}function t5(){let t=(0,s.getIsolationScope)(),e=(0,s.getClient)(),n=t.getSession();n&&e&&e.captureSession(n)}t.s(["parseEventHintOrCaptureContext",0,t4,"prepareEvent",0,function(t,s,o,c,u,p){var _,f,g;let h,{normalizeDepth:S=3,normalizeMaxBreadth:E=1e3}
5=t,T={...s,event_id:s.event_id||o.event_id||(0,tH.uuid4)(),timestamp:s.timestamp||(0,$.dateTimestampInSeconds)()},y=o.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||tE,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;a?.url&&s&&(a.url=(0,m.truncate)(a.url,s)),s&&t.exception?.values?.forEach(t=>{t.value&&(t.value=(0,m.truncate)(t.value,s))})})(T,t),_=T,(f=y).length>0&&(_.sdk=_.sdk||{},_.sdk.integrations=[..._.sdk.integrations||[],...f]),u&&u.emit("applyFrameMetadata",s),void 0===s.type&&(g=T,h=function(t){let s=tO.GLOBAL_OBJ._sentryDebugIds,a=tO.GLOBAL_OBJ._debugIds;if(!s&&!a)return{};let o=s?Object.keys(s):[],c=a?Object.keys(a):[];if(i&&o.length===n&&c.length===r)return i;n=o.length,r=c.length,i={},e||(e={});let u=(n,r)=>{for(let s of n){let n=r[s],a=e?.[s];if(a&&i&&n)i[a[0]]=n,e&&(e[s]=[a[0],n]);else if(n){let r=t(s);for(let t=r.length-1;t>=0;t--){let a=r[t],o=a?.filename;if(o&&i&&e){i[o]=n,e[s]=[o,n];break}}}}};return s&&u(o,s),a&&u(c,a),i}(t.stackParser),g.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=h[t.filename])})}));let I=function(t,e){if(!e)return t;let n=t?t.clone():new tQ.Scope;return n.update(e),n}(c,o.captureContext);o.mechanism&&(0,tH.addExceptionMechanism)(T,o.mechanism);let b=u?u.getEventProcessors():[],v=t2(p,I),A=[...o.attachments||[],...v.attachments];A.length&&(o.attachments=A),t0(T,v);let N=[...b,...v.eventProcessors];return(o.data&&!0===o.data.__sentry__?tW(T):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 o=s({...e},n);return(a.DEBUG_BUILD&&null===o&&l.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,d.isThenable)(o))?o.then(e=>t(e,n,r,i+1)):t(o,n,r,i+1)}(e,n,t,r);return(0,d.isThenable)(i)?i:tW(i)}catch(t){return tq(t)}}(N,T,o)).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 S&&S>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,tx.normalize)(t.data,e,n)}}))},...t.user&&{user:(0,tx.normalize)(t.user,e,n)},...t.contexts&&{contexts:(0,tx.normalize)(t.contexts,e,n)},...t.extra&&{extra:(0,tx.normalize)(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,tx.normalize)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:(0,tx.normalize)(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,tx.normalize)(t.contexts.flags,3,n)),r}(t,S,E):t)}],846320),t.s(["addEventProcessor",0,function(t){(0,s.getIsolationScope)().addEventProcessor(t)},"captureEvent",0,function(t,e){return(0,s.getCurrentScope)().captureEvent(t,e)},"captureException",0,function(t,e){return(0,s.getCurrentScope)().captureException(t,t4(e))},"captureSession",0,function(t=!1){t?t7():t5()},"isEnabled",0,function(){let t=(0,s.getClient)();return t?.getOptions().enabled!==!1&&!!t?.getTransport()},"setContext",0,function(t,e){(0,s.getIsolationScope)().setContext(t,e)},"startSession",0,function(t){let e=(0,s.getIsolationScope)(),{user:n}=t2(e,(0,s.getCurrentScope)()),{userAgent:r}=tO.GLOBAL_OBJ.navigator||{},i=(0,o.makeSession)({user:n,...r&&{userAgent:r},...t}),a=e.getSession();return a?.status==="ok"&&(0,o.updateSession)(a,{status:"exited"}),t7(),e.setSession(i),i}],311634)}]); 6 7//# debugId=f4eb9ffc-9a43-7bcf-adac-d66fa01c2f40
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.