1import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{p as t}from"./vendor-dnd-BCseSc7C.js";var n=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,r=globalThis,i=`10.48.0`;function a(){return o(r),r}function o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.48.0`,t[i]=t[`10.48.0`]||{}}function s(e,t,n=r){let a=n.__SENTRY__=n.__SENTRY__||{},o=a[i]=a[`10.48.0`]||{};return o[e]||(o[e]=t())}var c=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],l=`Sentry Logger `,u={};function d(e){if(!(`console`in r))return e();let t=r.console,n={},i=Object.keys(u);i.forEach(e=>{let r=u[e];n[e]=t[e],t[e]=r});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}function f(){re().enabled=!0}function p(){re().enabled=!1}function m(){return re().enabled}function h(...e){ne(`log`,...e)}function ee(...e){ne(`warn`,...e)}function te(...e){ne(`error`,...e)}function ne(e,...t){n&&m()&&d(()=>{r.console[e](`${l}[${e}]:`,...t)})}function re(){return n?s(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var g={enable:f,disable:p,isEnabled:m,log:h,warn:ee,error:te},ie=50,ae=/\(error: (.*)\)/,oe=/captureMessage|captureException/;function se(...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=ae.test(n)?n.replace(ae,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=ie+r)break}}return le(i.slice(r))}}function ce(e){return Array.isArray(e)?se(...e):e}function le(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(ue(t).function||``)&&t.pop(),t.reverse(),oe.test(ue(t).function||``)&&(t.pop(),oe.test(ue(t).function||``)&&t.pop()),t.slice(0,ie).map(e=>({...e,filename:e.filename||ue(t).filename,function:e.function||`?`}))}function ue(e){return e[e.length-1]||{}}var de=`<anonymous>`;function fe(e){try{return!e||typeof e!=`function`?de:e.name||de}catch{return de}}function pe(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}}}function me(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var he=Object.prototype.toString;function ge(e){switch(he.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return b(e,Error)}}function _(e,t){return he.call(e)===`[object ${t}]`}function _e(e){return _(e,`ErrorEvent`)}function ve(e){return _(e,`DOMError`)}function ye(e){return _(e,`DOMException`)}function v(e){return _(e,`String`)}function be(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function xe(e){return e===null||be(e)||typeof e!=`object`&&typeof e!=`function`}function Se(e){return _(e,`Object`)}function Ce(e){return typeof Event<`u`&&b(e,Event)}function we(e){return typeof Element<`u`&&b(e,Element)}function Te(e){return _(e,`RegExp`)}function y(e){return!!(e?.then&&typeof e.then==`function`)}function Ee(e){return Se(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function b(e,t){try{return e instanceof t}catch{return!1}}function De(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Oe(e){return typeof Request<`u`&&b(e,Request)}var ke=r,Ae=80;function je(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Ae;for(;n&&i++<5&&(o=Me(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Me(e,t){let n=e,r=[];if(!n?.tagName)return``;if(ke.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&v(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Ne(){try{return ke.document.location.href}catch{return``}}function Pe(e){if(!ke.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Fe(e,t,r){if(!(t in e))return;let i=e[t];if(typeof i!=`function`)return;let a=r(i);typeof a==`function`&&Ie(a,i);try{e[t]=a}catch{n&&g.log(`Failed to replace method "${t}" in object`,e)}}function x(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n&&g.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ie(e,t){try{e.prototype=t.prototype=t.prototype||{},x(e,`__sentry_original__`,t)}catch{}}function Le(e){return e.__sentry_original__}function Re(e){if(ge(e))return{message:e.message,name:e.name,stack:e.stack,...Be(e)};if(Ce(e)){let t={type:e.type,target:ze(e.target),currentTarget:ze(e.currentTarget),...Be(e)};return typeof CustomEvent<`u`&&b(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ze(e){try{return we(e)?je(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Be(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function Ve(e){let t=Object.keys(Re(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var S;function C(e){if(S!==void 0)return S?S(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=r;return t in n&&typeof n[t]==`function`?(S=n[t],S(e)):(S=null,e())}function w(){return C(()=>Math.random())}function He(){return C(()=>Date.now())}function Ue(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function We(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{De(r)?n.push(me(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function Ge(e,t,n=!1){return v(e)?Te(t)?t.test(e):v(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function Ke(e,t=[],n=!1){return t.some(t=>Ge(e,t,n))}function qe(){let e=r;return e.crypto||e.msCrypto}var Je;function Ye(){return w()*16}function T(e=qe()){try{if(e?.randomUUID)return C(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Je||=`10000000100040008000100000000000`,Je.replace(/[018]/g,e=>(e^(Ye()&15)>>e/4).toString(16))}function Xe(e){return e.exception?.values?.[0]}function Ze(e){let{message:t,event_id:n}=e;if(t)return t;let r=Xe(e);return r?r.type&&r.value?`${r.type}: ${r.value}
2`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Qe(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 $e(e,t){let n=Xe(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 et(e){if(tt(e))return!0;try{x(e,`__sentry_captured__`,!0)}catch{}return!1}function tt(e){try{return e.__sentry_captured__}catch{}}var nt=1e3;function rt(){return He()/nt}function it(){let{performance:e}=r;if(!e?.now||!e.timeOrigin)return rt;let t=e.timeOrigin;return()=>(t+C(()=>e.now()))/nt}var at;function E(){return(at??=it())()}var ot=null;function st(){let{performance:e}=r;if(!e?.now)return;let t=3e5,n=C(()=>e.now()),i=He(),a=e.timeOrigin;if(typeof a==`number`&&Math.abs(a+n-i)<t)return a;let o=e.timing?.navigationStart;return typeof o==`number`&&Math.abs(o+n-i)<t?o:i-n}function ct(){return ot===null&&(ot=st()),ot}function lt(e){let t=E(),n={sid:T(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>dt(n)};return e&&D(n,e),n}function D(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||E(),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:T()),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 ut(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),D(e,n)}function dt(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==`number`||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 O(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]=O(r[e],t[e],n-1));return r}function k(){return T()}function A(){return T().substring(16)}var ft=`_sentrySpan`;function pt(e,t){t?x(e,ft,t):delete e[ft]}function mt(e){return e[ft]}var ht=100,j=class e{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:k(),sampleRand:w()}}clone(){let t=new e;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,pt(t,mt(this)),t}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&&D(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(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Se(n)?t: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,pt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:k(),sampleRand:w()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:ht;if(n<=0)return this;let r={timestamp:rt(),...e,message:e.message?Ue(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:mt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=O(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||T();if(!this._client)return n&&g.warn(`No client configured on scope - will not capture exception!`),r;let i=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||T();if(!this._client)return n&&g.warn(`No client configured on scope - will not capture message!`),i;let a=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},this),i}captureEvent(e,t){let r=e.event_id||t?.event_id||T();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(n&&g.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 gt(){return s(`defaultCurrentScope`,()=>new j)}function _t(){return s(`defaultIsolationScope`,()=>new j)}var vt=e=>e instanceof Promise&&!e[yt],yt=Symbol(`chained PromiseLike`),bt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return vt(r)&&vt(e)?r:xt(e,r)},xt=(e,t)=>{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,{[yt]:!0}),t},St=class{constructor(e,t){let n;n=e||new j;let r;r=t||new j,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 y(n)?bt(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 M(){let e=o(a());return e.stack=e.stack||new St(gt(),_t())}function Ct(e){return M().withScope(e)}function wt(e,t){let n=M();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Tt(e){return M().withScope(()=>e(M().getIsolationScope()))}function Et(){return{withIsolationScope:Tt,withScope:Ct,withSetScope:wt,withSetIsolationScope:(e,t)=>Tt(t),getCurrentScope:()=>M().getScope(),getIsolationScope:()=>M().getIsolationScope()}}function N(e){let t=o(e);return t.acs?t.acs:Et()}var Dt;function Ot(){return Dt?.()}function kt(){return Dt!==void 0}function P(){return N(a()).getCurrentScope()}function F(){return N(a()).getIsolationScope()}function At(){return s(`globalScope`,()=>new j)}function jt(...e){let t=N(a());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function I(){return P().getClient()}function Mt(e){let t=Ot();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||A()};return r&&(a.parent_span_id=r),a}var Nt=`sentry.source`,Pt=`sentry.sample_rate`,Ft=`sentry.previous_trace_sample_rate`,It=`sentry.op`,L=`sentry.origin`,Lt=`sentry.idle_span_finish_reason`,Rt=`sentry.measurement_unit`,zt=`sentry.measurement_value`,Bt=`sentry.custom_span_name`,Vt=`sentry.profile_id`,Ht=`sentry.exclusive_time`,Ut=`sentry.link.type`,Wt=`gen_ai.conversation.id`;function Gt(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){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(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Kt(e,t){e.setAttribute(`http.response.status_code`,t);let n=Gt(t);n.message!==`unknown_error`&&e.setStatus(n)}var qt=`_sentryScope`,Jt=`_sentryIsolationScope`;function Yt(e){try{let t=r.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Xt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}function Zt(e,t,n){e&&(x(e,Jt,Yt(n)),x(e,qt,t))}function R(e){let t=e;return{scope:t[qt],isolationScope:Xt(t[Jt])}}var Qt=`sentry-`;function $t(e){let t=tn(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 en(e){if(e)return rn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Qt}${t}`]=n),e),{}))}function tn(e){if(!(!e||!v(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
2{let n=nn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):nn(e)}function nn(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),{})}function rn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,r],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,o=i===0?a:`${e},${a}`;return o.length>8192?(n&&g.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},``)}var an=/^o(\d+)\./,on=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function sn(e){return e===`http`||e===`https`}function z(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 cn(e){let t=on.exec(e);if(!t){d(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return ln({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function ln(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function un(e){if(!n)return!0;let{port:t,projectId:r,protocol:i}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(g.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:r.match(/^\d+$/)?sn(i)?t&&isNaN(parseInt(t,10))?(g.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(g.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(g.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function dn(e){return e.match(an)?.[1]}function fn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=dn(n)),r}function pn(e){let t=typeof e==`string`?cn(e):ln(e);if(!(!t||!un(t)))return t}function B(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var mn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function hn(e){if(!e)return;let t=e.match(mn);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function gn(e,t){let n=hn(e),r=$t(t);if(!n?.traceId)return{traceId:k(),sampleRand:w()};let i=yn(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function _n(e=k(),t=A(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function vn(e=k(),t=A(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function yn(e,t){let n=B(t?.sample_rand);if(n!==void 0)return n;let r=B(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?w()*r:r+w()*(1-r):w()}var bn=!1;function xn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=H(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Sn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:H(e).parent_span_id,a=R(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||A():t,trace_id:n}}function Cn(e){let{traceId:t,spanId:n}=e.spanContext();return _n(t,n,U(e))}function wn(e){let{traceId:t,spanId:n}=e.spanContext();return vn(t,n,U(e))}function Tn(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 En(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function V(e){return typeof e==`number`?Dn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Dn(e.getTime()):E()}function Dn(e){return e>9999999999?e/1e3:e}function H(e){if(An(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(kn(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:On(e),start_timestamp:V(i),timestamp:V(o)||void 0,status:jn(s),op:r[It],origin:r[L],links:Tn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function On(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function kn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function An(e){return typeof e.getSpanJSON==`function`}function U(e){let{traceFlags:t}=e.spanContext();return t===1}function jn(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function Mn(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}var W=`_sentryChildSpans`,Nn=`_sentryRootSpan`;function Pn(e,t){x(t,Nn,e[Nn]||e),e[W]?e[W].add(t):x(e,W,new Set([t]))}function Fn(e,t){e[W]&&e[W].delete(t)}function In(e){let t=new Set;function n(e){if(!t.has(e)&&U(e)){t.add(e);let r=e[W]?Array.from(e[W]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var G=Ln;function Ln(e){return e[Nn]||e}function Rn(){let e=N(a());return e.getActiveSpan?e.getActiveSpan():mt(P())}function zn(){bn||=(d(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function Bn(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||I()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Vn(e){g.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Hn(e,t){if(!t?.length||!e.description)return!1;for(let r of t){if(Wn(r)){if(Ge(e.description,r))return n&&Vn(e),!0;continue}if(!r.name&&!r.op)continue;let t=r.name?Ge(e.description,r.name):!0,i=r.op?e.op&&Ge(e.op,r.op):!0;if(t&&i)return n&&Vn(e),!0}return!1}function Un(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Wn(e){return typeof e==`string`||e instanceof RegExp}var Gn=`production`,Kn=`_frozenDsc`;function qn(e,t){x(e,Kn,t)}function Jn(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:fn(t)};return t.emit(`createDsc`,i),i}function Yn(e,t){let n=t.getPropagationContext();return n.dsc||Jn(n.traceId,e)}function K(e){let t=I();if(!t)return{};let n=G(e),r=H(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[Kn];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&$t(l);if(u)return s(u);let d=Jn(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),Bn()&&(d.sampled=String(U(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??R(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var q=class{constructor(e={}){this._traceId=e.traceId||k(),this._spanId=e.spanId||A(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
2addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function Xn(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function J(e,t=100,n=1/0){try{return Qn(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Zn(e,t=3,n=100*1024){let r=J(e,t);return nr(r)>n?Zn(e,t-1,n):r}function Qn(e,t,n=1/0,r=1/0,i=rr()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=$n(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Qn(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Re(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Qn(e,t,c-1,r,i),d++}return o(t),u}function $n(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(De(t))return me(t);if(Ee(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${fe(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=er(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function er(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function tr(e){return~-encodeURI(e).split(/%..|./).length}function nr(e){return tr(JSON.stringify(e))}function rr(){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 ir(e,t=[]){return[e,t]}function ar(e,t){let[n,r]=e;return[n,[...r,t]]}function or(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function sr(e,t){return or(e,(e,n)=>t.includes(n))}function cr(e){let t=o(r);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function lr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[cr(r),e]:r.push(typeof e==`string`?cr(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(J(n))}i(e)}}return typeof r==`string`?r:ur(r)}function ur(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function dr(e){return[{type:`span`},e]}function fr(e){let t=typeof e.data==`string`?cr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var pr={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 mr(e){return e in pr}function hr(e){return mr(e)?pr[e]:e}function gr(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function _r(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:z(r)},...i&&{trace:i}}}function vr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function yr(e,t,n,r){let i=gr(n);return ir({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:z(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function br(e,t,n,r){let i=gr(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;vr(e,n?.sdk);let o=_r(e,i,r,t);return delete e.sdkProcessingMetadata,ir(o,[[{type:a},e]])}function xr(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=K(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:z(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!Hn(H(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=H(e);return(Xn(s)?t:s(t))||(zn(),t)}:H,f=[];for(let e of l){let t=d(e);t&&f.push(dr(t))}return ir(o,f)}function Sr(e){if(!n)return;let{description:t=`< unknown name >`,op:r=`< unknown op >`,parent_span_id:i}=H(e),{spanId:a}=e.spanContext(),o=U(e),s=G(e),c=s===e,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(i&&u.push(`parent ID: ${i}`),!c){let{op:e,description:t}=H(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}g.log(`${l} 3 ${u.join(` 4 `)}`)}function Cr(e){if(!n)return;let{description:t=`< unknown name >`,op:r=`< unknown op >`}=H(e),{spanId:i}=e.spanContext(),a=`[Tracing] Finishing "${r}" ${G(e)===e?`root `:``}span "${t}" with ID ${i}`;g.log(a)}function wr(e,t,r,i=Rn()){let a=i&&G(i);a&&(n&&g.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),a.addEvent(e,{[zt]:t,[Rt]:r}))}function Tr(e){if(!e||e.length===0)return;let t={};
4return e.forEach(e=>{let n=e.attributes||{},r=n[Rt],i=n[zt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Y(e){return e.getOptions().traceLifecycle===`stream`}var Er=1e3,Dr=class{constructor(e={}){this._traceId=e.traceId||k(),this._spanId=e.spanId||A(),this._startTime=e.startTimestamp||E(),this._links=e.links,this._attributes={},this.setAttributes({[L]:`manual`,[It]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=V(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Nt,`custom`),this}end(e){this._endTime||(this._endTime=V(e),Cr(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[It],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:jn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[L],profile_id:this._attributes[Vt],exclusive_time:this._attributes[Ht],measurements:Tr(this._events),is_segment:this._isStandaloneSpan&&G(this)===this||void 0,segment_id:this._isStandaloneSpan?G(this).spanContext().spanId:void 0,links:Tn(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===G(this),status:Mn(this._status),attributes:this._attributes,links:En(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){n&&g.log(`[Tracing] Adding an event to span:`,e);let i=Or(t)?t:r||E(),a=Or(t)?{}:t||{},o={name:e,time:V(i),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=I();if(e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this)),!(this._isStandaloneSpan||this===G(this)))return;if(this._isStandaloneSpan){this._sampled?jr(xr([this],e)):(n&&g.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}else if(e&&Y(e)){e.emit(`afterSegmentSpanEnd`,this);return}let t=this._convertSpanToTransaction();t&&(R(this).scope||P()).captureEvent(t)}_convertSpanToTransaction(){if(!kr(H(this)))return;this._name||=(n&&g.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=R(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=In(this).filter(e=>e!==this&&!Ar(e)).map(e=>H(e)).filter(kr),a=this._attributes[Nt];delete this._attributes[Bt],i.forEach(e=>{delete e.data[Bt]});let o={contexts:{trace:xn(this)},spans:i.length>Er?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Er):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:K(this)},request:r,...a&&{transaction_info:{source:a}}},s=Tr(this._events);return s&&Object.keys(s).length&&(n&&g.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(s,void 0,2)),o.measurements=s),o}};function Or(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function kr(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Ar(e){return e instanceof Dr&&e.isStandaloneSpan()}function jr(e){let t=I();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Mr(e,t,r){if(!Bn(e))return[!1];let i,a;typeof e.tracesSampler==`function`?(a=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),i=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(a=e.tracesSampleRate,i=!0):a=t.parentSampled;let o=B(a);if(o===void 0)return n&&g.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!o)return n&&g.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,o,i];let s=r<o;return s||n&&g.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[s,o,i]}var Nr=`__SENTRY_SUPPRESS_TRACING__`;function Pr(e){let t=Rr();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Lr(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>jt(e.scope,t):i===void 0?e=>e():e=>Fr(i,e))(()=>{let t=P(),a=Vr(t,i);return e.onlyIfParent&&!a?new q:Ir({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function Fr(e,t){let n=Rr();return n.withActiveSpan?n.withActiveSpan(e,t):jt(n=>(pt(n,e||void 0),t(n)))}function Ir({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Bn()){let r=new q;return(n||!e)&&qn(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...K(r)}),r}let i=I();if(Hr(i,t))return Ur(r)||i?.recordDroppedEvent(`ignored`,`span`),new q({dropReason:`ignored`,traceId:e?.
4spanContext().traceId??r.getPropagationContext().traceId});let a=F(),o;if(e&&!n)o=Br(e,r,t),Pn(e,o);else if(e){let n=K(e),{traceId:i,spanId:a}=e.spanContext(),s=U(e);o=zr({traceId:i,parentSpanId:a,...t},r,s),qn(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=zr({traceId:e,parentSpanId:i,...t},r,s),n&&qn(o,n)}return Sr(o),Zt(o,r,a),o}function Lr(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=V(e.startTime),delete n.startTime,n}return t}function Rr(){return N(a())}function zr(e,t,r){let i=I(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=Ur(t),[f,p,m]=d?[!1]:Mr(a,{name:o,parentSampled:c,attributes:l,parentSampleRate:B(u.dsc?.sample_rate)},u.sampleRand),h=new Dr({...e,attributes:{[Nt]:`custom`,[Pt]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(n&&g.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,Y(i)?`span`:`transaction`)),i&&i.emit(`spanStart`,h),h}function Br(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=Ur(t),o=a?!1:U(e),s=o?new Dr({...n,parentSpanId:r,traceId:i,sampled:o}):new q({traceId:i});Pn(e,s);let c=I();return c?(Y(c)&&s instanceof q&&(e instanceof q&&e.dropReason?(s.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,`span`)):a||(s.dropReason=`sample_rate`,c.recordDroppedEvent(`sample_rate`,`span`))),c.emit(`spanStart`,s),n.endTimestamp&&(c.emit(`spanEnd`,s),c.emit(`afterSpanEnd`,s)),s):s}function Vr(e,t){if(t)return t;if(t===null)return;let n=mt(e);if(!n)return;let r=I();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?G(n):n}function Hr(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Y(e)||!n?.length?!1:Hn({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op},n)}function Ur(e){return e.getScopeData().sdkProcessingMetadata[Nr]===!0}function Wr(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;qr(e,t),r&&Xr(e,r),Zr(e,n),Jr(e,i),Yr(e,a)}function Gr(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;X(e,`extra`,n),X(e,`tags`,r),X(e,`attributes`,i),X(e,`user`,a),X(e,`contexts`,o),e.sdkProcessingMetadata=O(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 X(e,t,n){e[t]=O(e[t],n,1)}function Kr(e,t){let n=At().getScopeData();return e&&Gr(n,e.getScopeData()),t&&Gr(n,t.getScopeData()),n}function qr(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 Jr(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Yr(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Xr(e,t){e.contexts={trace:Sn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:K(t),...e.sdkProcessingMetadata};let n=H(G(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Zr(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 Qr=0,$r=1,ei=2;function ti(e){return new ri(t=>{t(e)})}function ni(e){return new ri((t,n)=>{n(e)})}var ri=class e{constructor(e){this._state=Qr,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
4{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===Qr)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===$r&&e[1](this._value),this._state===ei&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Qr){if(y(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t($r,e)},r=e=>{t(ei,e)};try{e(n,r)}catch(e){r(e)}}};function ii(e,t,n,r=0){try{let i=ai(t,n,e,r);return y(i)?i:ti(i)}catch(e){return ni(e)}}function ai(e,t,r,i){let a=r[i];if(!e||!a)return e;let o=a({...e},t);return n&&o===null&&g.log(`Event processor "${a.id||`?`}" dropped event`),y(o)?o.then(e=>ai(e,t,r,i+1)):ai(o,t,r,i+1)}var Z,oi,si,Q;function ci(e){let t=r._sentryDebugIds,n=r._debugIds;if(!t&&!n)return{};let i=t?Object.keys(t):[],a=n?Object.keys(n):[];if(Q&&i.length===oi&&a.length===si)return Q;oi=i.length,si=a.length,Q={},Z||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=Z?.[r];if(i&&Q&&t)Q[i[0]]=t,Z&&(Z[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&&Z){Q[i]=t,Z[r]=[i,t];break}}}}};return t&&o(i,t),n&&o(a,n),Q}function li(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||T(),timestamp:t.timestamp||rt()},l=n.integrations||e.integrations.map(e=>e.name);ui(c,e),pi(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&di(c,e.stackParser);let u=hi(r,n.captureContext);n.mechanism&&$e(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Kr(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Wr(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?ti(c):ii(m,c,n)).then(e=>(e&&fi(e),typeof o==`number`&&o>0?mi(e,o,s):e))}function ui(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=Ue(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=Ue(e.value,a)})}function di(e,t){let n=ci(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function fi(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 pi(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function mi(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:J(e.data,t,n)}}))},...e.user&&{user:J(e.user,t,n)},...e.contexts&&{contexts:J(e.contexts,t,n)},...e.extra&&{extra:J(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=J(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:J(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=J(e.contexts.flags,3,n)),r}function hi(e,t){if(!t)return e;let n=e?e.clone():new j;return n.update(t),n}function gi(e){if(e)return _i(e)||yi(e)?{captureContext:e}:e}function _i(e){return e instanceof j||typeof e==`function`}var vi=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function yi(e){return Object.keys(e).some(e=>vi.includes(e))}function bi(e,t){return P().captureException(e,gi(t))}function xi(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return P().captureMessage(e,n,r)}function Si(e,t){return P().captureEvent(e,t)}function Ci(e,t){F().setContext(e,t)}function $(e,t){F().setTag(e,t)}function wi(e){F().setUser(e)}function Ti(){return F().lastEventId()}function Ei(){let e=I();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Di(e){F().addEventProcessor(e)}function Oi(e){let t=F(),{user:n}=Kr(t,P()),{userAgent:i}=r.navigator||{},a=lt({user:n,...i&&{userAgent:i},...e}),o=t.getSession();return o?.status===`ok`&&D(o,{status:`exited`}),ki(),t.setSession(a),a}function ki(){let e=F(),t=P().getSession()||e.getSession();t&&ut(t),Ai(),e.setSession()}function Ai(){let e=F(),t=I(),n=e.getSession();n&&t&&t.captureSession(n)}function ji(e=!1){if(e){ki();return}Ai()}var Mi=e(t(),1),Ni=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({}
4,t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Pi=(e=>e?Ni(e):Ni),Fi=e=>e;function Ii(e,t=Fi){let n=Mi.useSyncExternalStore(e.subscribe,Mi.useCallback(()=>t(e.getState()),[e,t]),Mi.useCallback(()=>t(e.getInitialState()),[e,t]));return Mi.useDebugValue(n),n}var Li=e=>{let t=Pi(e),n=e=>Ii(t,e);return Object.assign(n,t),n},Ri=(e=>e?Li(e):Li);function zi(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var Bi=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return Bi(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return Bi(t)(e)}}}},Vi=(e,t)=>(n,r,i)=>{let a={storage:zi(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return Bi(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},Hi={instanceId:null,role:null,plan:null,freeTrialEnd:null,guestUser:null,guestToken:null,isIframe:!1,parentOrigin:null,companyIds:null},Ui=Ri()(Vi(e=>({...Hi,setInstance:(t,n,r=null,i=null)=>{e({instanceId:t,role:n,plan:r,freeTrialEnd:i}),$(`instanceId`,t?String(t):null),$(`role`,n??null)},setGuest:(t,n)=>e({guestUser:t,guestToken:n}),clearGuest:()=>e({guestUser:null,guestToken:null}),setIframe:t=>{e({isIframe:t}),$(`isIframe`,t)},setParentOrigin:t=>e({parentOrigin:t}),setCompanyIds:t=>e({companyIds:t}),reset:()=>{e(Hi),$(`instanceId`,null),$(`role`,null),$(`isIframe`,!1)}}),{name:`odashboard-session`,storage:zi(()=>sessionStorage)})),Wi=e=>e.role,Gi=e=>e.isIframe,Ki=e=>!!e.guestUser,qi=e=>e.plan!==`freemium`||!e.freeTrialEnd?!1:new Date(e.freeTrialEnd)<new Date;export{zn as $,Fe as $t,fr as A,Mt as At,Xn as B,rt as Bt,Fr as C,g as Cn,Ft as Ct,br as D,i as Dn,I as Dt,wr as E,a as En,Ut as Et,or as F,A as Ft,Gn as G,Ze as Gt,qn as H,$e as Ht,gr as I,k as It,Bn as J,Ke as Jt,Un as K,T as Kt,lr as L,O as Lt,_r as M,jt as Mt,sr as N,N as Nt,yr as O,r as On,P as Ot,hr as P,pt as Pt,Fn as Q,Ve as Qt,J as R,D as Rt,Pr as S,d as Sn,L as St,Y as T,s as Tn,Nt as Tt,Yn as U,Qe as Ut,q as V,E as Vt,K as W,et as Wt,G as X,w as Xt,Rn as Y,He as Yt,In as Z,x as Zt,wi as _,se as _n,Vt as _t,Ui as a,ve as an,mn as at,ni as b,ce as bn,zt as bt,Ri as c,_e as cn,gn as ct,bi as d,be as dn,pn as dt,Le as en,U as et,xi as f,Se as fn,Qt as ft,Ci as g,y as gn,Ht as gt,Ti as h,v as hn,Wt as ht,Wi as i,je as in,wn as it,ir as j,kt as jt,ar as k,n as kn,F as kt,Di as l,Ce as ln,B as lt,Ei as m,Oe as mn,Kt as mt,Ki as n,Pe as nn,H as nt,zi as o,ye as on,_n as ot,ji as p,xe as pn,en as pt,Hn as q,We as qt,Gi as r,Ne as rn,Cn as rt,Vi as s,ge as sn,vn as st,qi as t,Ie as tn,V as tt,Si as u,b as un,z as ut,Oi as v,pe as vn,Lt as vt,Dr as w,u as wn,Pt as wt,ti as x,c as xn,It as xt,li as y,fe as yn,Rt as yt,Zn as z,ct as zt};
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.