1var e=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,t=globalThis,n=`10.75.2`;function r(){return i(t),t}function i(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.75.2`,t[n]=t[`10.75.2`]||{}}function a(e,r,i=t){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[n]=a[`10.75.2`]||{};return o[e]||(o[e]=r())}var o=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],s=`Sentry Logger `,c={};function l(e){if(!(`console`in t))return e();let n=t.console,r={},i=Object.keys(c);i.forEach(e=>{let t=c[e];r[e]=n[e],n[e]=t});try{return e()}finally{i.forEach(e=>{n[e]=r[e]})}}function u(){_().enabled=!0}function d(){_().enabled=!1}function f(){return _().enabled}function p(...e){g(`log`,...e)}function m(...e){g(`warn`,...e)}function h(...e){g(`error`,...e)}function g(n,...r){e&&f()&&l(()=>{t.console[n](`${s}[${n}]:`,...r)})}function _(){return e?a(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var v={enable:u,disable:d,isEnabled:f,log:p,warn:m,error:h},ee=50,te=/\(error: (.*)\)/,ne=/captureMessage|captureException/;function re(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(` 2`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=te.test(n)?n.replace(te,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=ee+r)break}}return ae(i.slice(r))}}function ie(e){return Array.isArray(e)?re(...e):e}function ae(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(y(t).function||``)&&t.pop(),t.reverse(),ne.test(y(t).function||``)&&(t.pop(),ne.test(y(t).function||``)&&t.pop()),t.slice(0,ee).map(e=>({...e,filename:e.filename||y(t).filename,function:e.function||`?`}))}function y(e){return e[e.length-1]||{}}var b=`<anonymous>`;function oe(e){try{return!e||typeof e!=`function`?b:e.name||b}catch{return b}}function se(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var ce=Object.prototype.toString;function le(e){switch(ce.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return w(e,Error)}}function x(e,t){return ce.call(e)===`[object ${t}]`}function ue(e){return x(e,`ErrorEvent`)}function de(e){return x(e,`DOMError`)}function fe(e){return x(e,`DOMException`)}function S(e){return x(e,`String`)}function pe(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function me(e){return e===null||pe(e)||typeof e!=`object`&&typeof e!=`function`}function he(e){return x(e,`Object`)}function ge(e){return typeof e==`object`&&!!e}function _e(e){return typeof Event<`u`&&w(e,Event)}function ve(e){return x(e,`RegExp`)}function C(e){return!!(e?.then&&typeof e.then==`function`)}function w(e,t){try{return e instanceof t}catch{return!1}}function ye(e){return typeof Request<`u`&&w(e,Request)}function be(t,n,r){if(!(n in t))return;let i=t[n];if(typeof i!=`function`)return;let a=r(i);typeof a==`function`&&xe(a,i);try{t[n]=a}catch{e&&v.log(`Failed to replace method "${n}" in object`,t)}}function T(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e&&v.log(`Failed to add non-enumerable property "${String(n)}" to object`,t)}}function xe(e,t){try{e.prototype=t.prototype=t.prototype||{},T(e,`__sentry_original__`,t)}catch{}}function Se(e){return e.__sentry_original__}function Ce(e){if(le(e))return{message:e.message,name:e.name,stack:e.stack,...we(e)};if(_e(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...we(e)}}return e}function we(e){return ge(e)?Object.fromEntries(Object.entries(e)):{}}function Te(e){let t=Object.keys(Ce(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var E;function D(e){if(E!==void 0)return E?E(e):e();let n=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),r=t;return n in r&&typeof r[n]==`function`?(E=r[n],E(e)):(E=null,e())}function O(){return D(()=>Math.random())}function Ee(){return D(()=>Date.now())}var De=Symbol.for(`sentry.skipNormalization`),Oe=Symbol.for(`sentry.overrideNormalizationDepth`);function ke(e){return!!e[De]}function Ae(e){let t=e[Oe];return typeof t==`number`?t:void 0}var k;function je(e){k=e}function A(e,t=100,n=1/0){try{return j(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Me(e,t=3,n=102400){let r=A(e,t);return Ie(r)>n?Me(e,t-1,n):r}
2function j(e,t,n=1/0,r=1/0,i=Le()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Ne(e,t);if(!s.startsWith(`[object `))return s;if(ke(t))return t;let c=Ae(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return j(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Ce(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=j(e,t,l-1,r,i),f++}return o(t),d}function Ne(e,t){try{if(k){let e=k(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${oe(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Pe(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Pe(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Fe(e){return~-encodeURI(e).split(/%..|./).length}function Ie(e){return Fe(JSON.stringify(e))}function Le(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function M(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Re(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];me(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Ne(void 0,r))}return n.join(t)}function ze(e,t,n=!1){return S(e)?ve(t)?t.test(e):S(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function Be(e,t=[],n=!1){for(let r of t)if(ze(e,r,n))return!0;return!1}function Ve(){let e=t;return e.crypto||e.msCrypto}var He;function Ue(){return O()*16}function N(e=Ve()){try{if(e?.randomUUID)return D(()=>e.randomUUID()).replace(/-/g,``)}catch{}return He||=`10000000100040008000100000000000`,He.replace(/[018]/g,e=>(e^(Ue()&15)>>e/4).toString(16))}function We(e){return e.exception?.values?.[0]}function Ge(e){let{message:t,event_id:n}=e;if(t)return t;let r=We(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Ke(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function qe(e,t){let n=We(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Je(e){if(Ye(e))return!0;try{T(e,`__sentry_captured__`,!0)}catch{}return!1}function Ye(e){try{return e.__sentry_captured__}catch{}}var Xe=1e3;function P(){return Ee()/Xe}function Ze(){let{performance:e}=t;if(!e?.now||!e.timeOrigin)return P;let n=e.timeOrigin;return()=>(n+D(()=>e.now()))/Xe}var Qe;function F(){return(Qe??=Ze())()}function $e(e){let t=F(),n={sid:N(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>tt(n)};return e&&I(n,e),n}function I(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||F(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:N()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function et(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),I(e,n)}function tt(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`
2number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function L(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=L(r[e],t[e],n-1));return r}function nt(){return N()}function rt(){return N().substring(16)}function it(e){try{let n=t.WeakRef;if(typeof n==`function`)return new n(e)}catch{}return e}function at(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var R=`_sentrySpan`;function ot(e,t){t?T(e,R,it(t)):delete e[R]}function st(e){return at(e[R])}var ct=100,z=class t{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:nt(),sampleRand:O()}}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,ot(e,st(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&I(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e==`function`?e(this):e,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof t?n.getScopeData():he(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),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,ot(this,void 0),this._attachments=[],this.setPropagationContext({traceId:nt(),sampleRand:O()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:ct;if(n<=0)return this;let r={timestamp:P(),...e,message:e.message?M(e.message,2048):e.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(e){return this._attachments.push(e),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:st(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=L(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||N();if(!this._client)return e&&v.warn(`No client configured on scope - will not capture exception!`),r;let i=Error(`Sentry syntheticException`);return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){let i=r?.event_id||N();if(!this._client)return e&&v.warn(`No client configured on scope - will not capture message!`),i;let a=r?.syntheticException??Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){let r=t.event_id||n?.event_id||N();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(e&&v.warn(`No client configured on scope - will not capture event!`),r)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function lt(){return a(`defaultCurrentScope`,()=>new z)}function ut(){return a(`defaultIsolationScope`,()=>new z)}var dt=e=>e instanceof Promise&&!e[ft],ft=Symbol(`chained PromiseLike`),pt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return dt(r)&&dt(e)?r:mt(e,r)},mt=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[ft]:!0}),t},ht=class{constructor(e,t){let n;n=e||new z;let r;r=t||new z,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return C(n)?pt(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function B(){let e=i(r());return e.stack=e.stack||new ht(lt(),ut())}function gt(e){return B().withScope(e)}function _t(e,t){let n=B();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function vt(e){return B().withScope(()=>e(B().getIsolationScope()))}function yt(){return{withIsolationScope:vt,withScope:gt,withSetScope:_t,withSetIsolationScope:(e,t)=>vt(t),getCurrentScope:()=>B().getScope(),getIsolationScope:()=>B().getIsolationScope()}}function V(e){let t=i(e);return t.acs?t.acs:yt()}function bt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function xt(e,t){let{value:n,unit:r}=bt(e)?e:{value:e,unit:void 0},i=Ct(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function St(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=xt(i,t);e&&(n[r]=e)}return n}function Ct(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function H(){return V(r()).getCurrentScope()}function U(){return V(r()).getIsolationScope()}function wt(){return a(`globalScope`,()=>new z)}function Tt(...e){let t=V(r());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function W(){return H().getClient()}function Et(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||rt()};return n&&(i.parent_span_id=n),i}var Dt=`sentry.op`,Ot=`sentry.origin`,kt=`sentry.profile_id`,At=`sentry.exclusive_time`,jt=`gen_ai.conversation.id`,Mt=`_sentryScope`,Nt=`_sentryIsolationScope`;function G(e){let t=e;return{scope:t[Mt],isolationScope:at(t[Nt])}}function Pt(e){let t=Ft(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Ft(e){if(e&&(S(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=It(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):It(e)}function It(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Lt=/^o(\d+)\./,Rt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function zt(e){return e===`http`||e===`https`}function Bt(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Vt(e){let t=Rt.exec(e);if(!t){l(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,u=s,d=u.split(`/`);if(d.length>1&&(c=d.slice(0,-1).join(`/`),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return Ht({host:a,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Ht(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Ut(t){if(!e)return!0;let{port:n,projectId:r,protocol:i}=t;return[`protocol`,`publicKey`,`host`,`projectId`].find(e=>!t[e]&&(v.error(`Invalid Sentry Dsn: ${e} missing`),!0))?!1:r.match(/^\d+$/)?zt(i)?n&&isNaN(parseInt(n,10))?(v.error(`Invalid Sentry Dsn: Invalid port ${n}`),!1):!0:(v.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(v.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Wt(e){return e.match(Lt)?.[1]}function Gt(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Wt(n)),r}function Kt(e){let t=typeof e==`string`?Vt(e):Ht(e);
2if(t&&Ut(t))return t}var qt=!1;function Jt(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:K(e).parent_span_id,a=G(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||rt():t,trace_id:n}}function Yt(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Xt(e){return typeof e==`number`?Zt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Zt(e.getTime()):F()}function Zt(e){return e>9999999999?e/1e3:e}function K(e){if(tn(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(en(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Qt(e),start_timestamp:Xt(i),timestamp:Xt(o)||void 0,status:rn(s),op:r[Dt],origin:r[Ot],links:Yt(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Qt(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function $t(e){return{...e,attributes:St(e.attributes),links:e.links?.map(e=>({...e,attributes:St(e.attributes)}))}}function en(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function tn(e){return typeof e.getSpanJSON==`function`}function nn(e){let{traceFlags:t}=e.spanContext();return t===1}function rn(e){if(e&&e.code!==0)return e.code===1?`ok`:e.message||`internal_error`}var an=`_sentryRootSpan`,on=sn;function sn(e){return e[an]||e}function cn(){qt||=(l(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function ln(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||W()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var un=Symbol.for(`sentry.nonRecordingSpan`);function dn(e){return!!e&&e[un]===!0}var fn=`production`,pn=`_frozenDsc`;function mn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Gt(t)};return t.emit(`createDsc`,i),i}function hn(e,t){let n=t.getPropagationContext();return n.dsc||mn(n.traceId,e)}function gn(e){let t=W();if(!t)return{};let n=on(e),r=K(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[pn];if(c)return s(c);let l=dn(n),u=l&&n.dropReason===`ignored`;if(l&&(!ln(t.getOptions())||u)){let e=G(n).scope;if(e){let n={...hn(t,e)};return u&&(n.sampled=`false`),s(n)}}let d=a?.get(`sentry.dsc`),f=d&&Pt(d);if(f)return s(f);let p=mn(e.spanContext().traceId,t),m=i[`sentry.source`]??i[`sentry.segment.name.source`],h=r.description;return m!==`url`&&h&&(p.transaction=h),ln()&&(p.sampled=String(nn(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??G(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function _n(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;yn(e,t),r&&Sn(e,r),Cn(e,n),bn(e,i),xn(e,a)}function vn(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;q(e,`extra`,n),q(e,`tags`,r),q(e,`attributes`,i),q(e,`user`,a),q(e,`contexts`,o),e.sdkProcessingMetadata=L(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function q(e,t,n){e[t]=L(e[t],n,1)}function J(e,t){let n=wt().getScopeData();return e&&vn(n,e.getScopeData()),t&&vn(n,t.getScopeData()),n}function yn(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function bn(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function xn(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Sn(e,t){e.contexts={trace:Jt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:gn(t),...e.sdkProcessingMetadata};let n=K(on(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Cn(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var Y=0,wn=1,Tn=2;function X(e){return new Dn(t=>{t(e)})}function En(e){return new Dn((t,n)=>{n(e)})}var Dn=class e{constructor(e){this._state=Y,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
2{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Y)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===wn&&e[1](this._value),this._state===Tn&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Y){if(C(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(wn,e)},r=e=>{t(Tn,e)};try{e(n,r)}catch(e){r(e)}}};function On(e,t,n,r=0){try{let i=Z(t,n,e,r);return C(i)?i:X(i)}catch(e){return En(e)}}function Z(t,n,r,i){let a=r[i];if(!t||!a)return t;let o=a({...t},n);return e&&o===null&&v.log(`Event processor "${a.id||`?`}" dropped event`),C(o)?o.then(e=>Z(e,n,r,i+1)):Z(o,n,r,i+1)}var Q,kn,An,$;function jn(e){let n=t._sentryDebugIds,r=t._debugIds;if(!n&&!r)return{};let i=n?Object.keys(n):[],a=r?Object.keys(r):[];if($&&i.length===kn&&a.length===An)return $;kn=i.length,An=a.length,$={},Q||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=Q?.[r];if(i&&$&&t)$[i[0]]=t,Q&&(Q[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&$&&Q){$[i]=t,Q[r]=[i,t];break}}}}};return n&&o(i,n),r&&o(a,r),$}function Mn(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||N(),timestamp:t.timestamp||P()},l=n.integrations||e.integrations.map(e=>e.name);Nn(c,e),In(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Pn(c,e.stackParser);let u=Rn(r,n.captureContext);n.mechanism&&qe(c,n.mechanism);let d=i?i.getEventProcessors():[],f=J(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),_n(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?X(c):On(m,c,n)).then(e=>(e&&Fn(e),typeof o==`number`&&o>0?Ln(e,o,s):e))}function Nn(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=M(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=M(e.value,a)})}function Pn(e,t){let n=jn(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Fn(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function In(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Ln(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:A(e.data,t,n)}}))},...e.user&&{user:A(e.user,t,n)},...e.contexts&&{contexts:A(e.contexts,t,n)},...e.extra&&{extra:A(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=A(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:A(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=A(e.contexts.flags,3,n)),r}function Rn(e,t){if(!t)return e;let n=e?e.clone():new z;return n.update(t),n}function zn(e){if(e)return Bn(e)||Hn(e)?{captureContext:e}:e}function Bn(e){return e instanceof z||typeof e==`function`}var Vn=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Hn(e){return Object.keys(e).some(e=>Vn.includes(e))}function Un(e,t){return H().captureException(e,zn(t))}function Wn(e,t){return H().captureEvent(e,t)}function Gn(e,t){U().setTag(e,t)}function Kn(e){let n=U(),{user:r}=J(n,H()),{userAgent:i}=t.navigator||{},a=$e({user:r,...i&&{userAgent:i},...e}
2),o=n.getSession();return o?.status===`ok`&&I(o,{status:`exited`}),qn(),n.setSession(a),a}function qn(){let e=U(),t=H().getSession()||e.getSession();t&&et(t),Jn(),e.setSession()}function Jn(){let e=U(),t=W(),n=e.getSession();n&&t&&t.captureSession(n)}function Yn(e=!1){if(e){qn();return}Jn()}export{he as $,Je as A,O as B,Tt as C,F as D,P as E,Be as F,xe as G,Te as H,A as I,le as J,de as K,Me as L,N as M,ze as N,qe as O,Re as P,pe as Q,je as R,Et as S,I as T,be as U,T as V,Se as W,_e as X,ue as Y,ge as Z,At as _,Kn as a,se as at,H as b,X as c,o as ct,cn as d,c as dt,me as et,K as f,a as ft,jt as g,e as gt,Kt as h,t as ht,Gn as i,re as it,Ge as j,Ke as k,hn as l,l as lt,Bt as m,n as mt,Un as n,S as nt,Mn as o,oe as ot,$t as p,i as pt,fe as q,Yn as r,C as rt,En as s,ie as st,Wn as t,ye as tt,fn as u,v as ut,kt as v,L as w,U as x,W as y,Ee as z};
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.