1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`e3d1b1435265063faa39368d0dffdf4e7222ee27`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9ebd0aa2-9845-46a2-b634-cae38ae70dd1`,e._sentryDebugIdIdentifier=`sentry-dbid-9ebd0aa2-9845-46a2-b634-cae38ae70dd1`)}catch{}})();var e=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,t=globalThis,n=`10.51.0`;function r(){return i(t),t}function i(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.51.0`,t[n]=t[`10.51.0`]||{}}function a(e,r,i=t){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[n]=a[`10.51.0`]||{};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(oe(t).function||``)&&t.pop(),t.reverse(),ne.test(oe(t).function||``)&&(t.pop(),ne.test(oe(t).function||``)&&t.pop()),t.slice(0,ee).map(e=>({...e,filename:e.filename||oe(t).filename,function:e.function||`?`}))}function oe(e){return e[e.length-1]||{}}var se=`<anonymous>`;function y(e){try{return!e||typeof e!=`function`?se:e.name||se}catch{return se}}function ce(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 le(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var ue={},de={};function b(e,t){return ue[e]=ue[e]||[],ue[e].push(t),()=>{let n=ue[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function x(t,n){if(!de[t]){de[t]=!0;try{n()}catch(n){e&&v.error(`Error while instrumenting ${t}`,n)}}}function S(t,n){let r=t&&ue[t];if(r)for(let i of r)try{i(n)}catch(n){e&&v.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${y(i)}\nError:`,n)}}var fe=null;function pe(e){let t=`error`;b(t,e),x(t,me)}function me(){fe=t.onerror,t.onerror=function(e,t,n,r,i){return S(`error`,{column:r,error:i,line:n,msg:e,url:t}),fe?fe.apply(this,arguments):!1},t.onerror.__SENTRY_INSTRUMENTED__=!0}var he=null;function ge(e){let t=`unhandledrejection`;b(t,e),x(t,_e)}function _e(){he=t.onunhandledrejection,t.onunhandledrejection=function(e){return S(`unhandledrejection`,e),!he||he.apply(this,arguments)},t.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ve=Object.prototype.toString;function ye(e){switch(ve.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return w(e,Error)}}function be(e,t){return ve.call(e)===`[object ${t}]`}function xe(e){return be(e,`ErrorEvent`)}function Se(e){return be(e,`DOMError`)}function Ce(e){return be(e,`DOMException`)}function C(e){return be(e,`String`)}function we(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Te(e){return e===null||we(e)||typeof e!=`object`&&typeof e!=`function`}function Ee(e){return be(e,`Object`)}function De(e){return typeof Event<`u`&&w(e,Event)}function Oe(e){return typeof Element<`u`&&w(e,Element)}function ke(e){return be(e,`RegExp`)}function Ae(e){return!!(e?.then&&typeof e.then==`function`)}function je(e){return Ee(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function w(e,t){try{return e instanceof t}catch{return!1}}function Me(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Ne(e){return typeof Request<`u`&&w(e,Request)}var Pe=t,Fe=80;function T(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||Fe;for(;n&&i++<5&&(o=Ie(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 Ie(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Pe.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;
2if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&C(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 Le(){try{return Pe.document.location.href}catch{return``}}function Re(e,t=5){if(!Pe.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function E(t,n,r){if(!(n in t))return;let i=t[n];if(typeof i!=`function`)return;let a=r(i);typeof a==`function`&&ze(a,i);try{t[n]=a}catch{e&&v.log(`Failed to replace method "${n}" in object`,t)}}function D(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 ze(e,t){try{e.prototype=t.prototype=t.prototype||{},D(e,`__sentry_original__`,t)}catch{}}function Be(e){return e.__sentry_original__}function Ve(e){if(ye(e))return{message:e.message,name:e.name,stack:e.stack,...Ue(e)};if(De(e)){let t={type:e.type,target:He(e.target),currentTarget:He(e.currentTarget),...Ue(e)};return typeof CustomEvent<`u`&&w(e,CustomEvent)&&(t.detail=e.detail),t}return e}function He(e){try{return Oe(e)?T(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Ue(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function We(e){let t=Object.keys(Ve(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var Ge;function Ke(e){if(Ge!==void 0)return Ge?Ge(e):e();let n=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),r=t;return n in r&&typeof r[n]==`function`?(Ge=r[n],Ge(e)):(Ge=null,e())}function qe(){return Ke(()=>Math.random())}function Je(){return Ke(()=>Date.now())}function Ye(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Xe(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Me(r)?n.push(le(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function Ze(e,t,n=!1){return C(e)?ke(t)?t.test(e):C(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function Qe(e,t=[],n=!1){return t.some(t=>Ze(e,t,n))}function $e(){let e=t;return e.crypto||e.msCrypto}var et;function tt(){return qe()*16}function O(e=$e()){try{if(e?.randomUUID)return Ke(()=>e.randomUUID()).replace(/-/g,``)}catch{}return et||=`10000000100040008000100000000000`,et.replace(/[018]/g,e=>(e^(tt()&15)>>e/4).toString(16))}function nt(e){return e.exception?.values?.[0]}function rt(e){let{message:t,event_id:n}=e;if(t)return t;let r=nt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function it(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 at(e,t){let n=nt(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 ot(e){if(st(e))return!0;try{D(e,`__sentry_captured__`,!0)}catch{}return!1}function st(e){try{return e.__sentry_captured__}catch{}}var ct=1e3;function lt(){return Je()/ct}function ut(){let{performance:e}=t;if(!e?.now||!e.timeOrigin)return lt;let n=e.timeOrigin;return()=>(n+Ke(()=>e.now()))/ct}var dt;function k(){return(dt??=ut())()}var ft=null;function pt(){let{performance:e}=t;if(!e?.now)return;let n=3e5,r=Ke(()=>e.now()),i=Je(),a=e.timeOrigin;if(typeof a==`number`&&Math.abs(a+r-i)<n)return a;let o=e.timing?.navigationStart;return typeof o==`number`&&Math.abs(o+r-i)<n?o:i-r}function A(){return ft===null&&(ft=pt()),ft}function mt(e){let t=k(),n={sid:O(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>_t(n)};return e&&ht(n,e),n}function ht(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||k(),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:O()),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),t
2ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function gt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),ht(e,n)}function _t(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 vt(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]=vt(r[e],t[e],n-1));return r}function j(){return O()}function M(){return O().substring(16)}var yt=`_sentrySpan`;function bt(e,t){t?D(e,yt,t):delete e[yt]}function xt(e){return e[yt]}var St=100,Ct=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:j(),sampleRand:qe()}}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,bt(e,xt(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&&ht(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():Ee(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,bt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:j(),sampleRand:qe()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:St;if(n<=0)return this;let r={timestamp:lt(),...e,message:e.message?Ye(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:xt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=vt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||O();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||O();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||O();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 wt(){return a(`defaultCurrentScope`,()=>new Ct)}function Tt(){return a(`defaultIsolationScope`,()=>new Ct)}var Et=e=>e instanceof Promise&&!e[Dt],Dt=Symbol(`chained PromiseLike`),Ot=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Et(r)&&Et(e)?r:kt(e,r)},kt=(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,{[Dt]:!0}),t},At=class{constructor(e,t){let n;n=e||new Ct;let r;r=t||new Ct,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 Ae(n)?Ot(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 jt(){let e=i(r());return e.stack=e.stack||new At(wt(),Tt())}function Mt(e){return jt().withScope(e)}function Nt(e,t){let n=jt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Pt(e){return jt().withScope(()=>e(jt().getIsolationScope()))}function Ft(){return{withIsolationScope:Pt,withScope:Mt,withSetScope:Nt,withSetIsolationScope:(e,t)=>Pt(t),getCurrentScope:()=>jt().getScope(),getIsolationScope:()=>jt().getIsolationScope()}}function It(e){let t=i(e);return t.acs?t.acs:Ft()}function Lt(){return!1}function N(){return It(r()).getCurrentScope()}function P(){return It(r()).getIsolationScope()}function Rt(){return a(`globalScope`,()=>new Ct)}function zt(...e){let t=It(r());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function F(){return N().getClient()}function Bt(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||M()};return n&&(i.parent_span_id=n),i}var I=`sentry.source`,Vt=`sentry.sample_rate`,Ht=`sentry.previous_trace_sample_rate`,L=`sentry.op`,R=`sentry.origin`,Ut=`sentry.idle_span_finish_reason`,Wt=`sentry.measurement_unit`,Gt=`sentry.measurement_value`,Kt=`sentry.custom_span_name`,qt=`sentry.profile_id`,Jt=`sentry.exclusive_time`,Yt=`sentry.link.type`,Xt=`gen_ai.conversation.id`;function Zt(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 Qt(e,t){e.setAttribute(`http.response.status_code`,t);let n=Zt(t);n.message!==`unknown_error`&&e.setStatus(n)}function $t(e){try{let n=t.WeakRef;if(typeof n==`function`)return new n(e)}catch{}return e}function en(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var tn=`_sentryScope`,nn=`_sentryIsolationScope`;function rn(e,t,n){e&&(D(e,nn,$t(n)),D(e,tn,t))}function an(e){let t=e;return{scope:t[tn],isolationScope:en(t[nn])}}var on=`sentry-`;function sn(e){let t=ln(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 cn(e){if(e)return dn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${on}${t}`]=n),e),{}))}function ln(e){if(e&&(C(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
2{let n=un(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):un(e)}function un(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 dn(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((t,[n,r],i)=>{let a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?a:`${t},${a}`;return o.length>8192?(e&&v.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},``)}var fn=/^o(\d+)\./,pn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function mn(e){return e===`http`||e===`https`}function hn(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 gn(e){let t=pn.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 _n({host:a,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function _n(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function vn(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+$/)?mn(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 yn(e){return e.match(fn)?.[1]}function bn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=yn(n)),r}function xn(e){let t=typeof e==`string`?gn(e):_n(e);if(t&&vn(t))return t}function Sn(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 Cn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function wn(e){if(!e)return;let t=e.match(Cn);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 Tn(e,t){let n=wn(e),r=sn(t);if(!n?.traceId)return{traceId:j(),sampleRand:qe()};let i=On(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 En(e=j(),t=M(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function Dn(e=j(),t=M(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function On(e,t){let n=Sn(t?.sample_rand);if(n!==void 0)return n;let r=Sn(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?qe()*r:r+qe()*(1-r):qe()}var kn=!1;function An(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=B(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function jn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:B(e).parent_span_id,a=an(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||M():t,trace_id:n}}function Mn(e){let{traceId:t,spanId:n}=e.spanContext();return En(t,n,Vn(e))}function Nn(e){let{traceId:t,spanId:n}=e.spanContext();return Dn(t,n,Vn(e))}function Pn(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 Fn(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 z(e){return typeof e==`number`?In(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?In(e.getTime()):k()}function In(e){return e>9999999999?e/1e3:e}function B(e){if(Bn(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(zn(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:Rn(e),start_timestamp:z(i),timestamp:z(o)||void 0,status:Hn(s),op:r[L],origin:r[R],links:Pn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Ln(e){if(Bn(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(zn(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Rn(e),start_timestamp:z(i),end_timestamp:z(o),is_segment:e===Yn(e),status:Un(s),attributes:r,links:Fn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===Yn(e)}}function Rn(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function zn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Bn(e){return typeof e.getSpanJSON==`function`}function Vn(e){let{traceFlags:t}=e.spanContext();return t===1}function Hn(e){if(e&&e.code!==0)return e.code===1?`ok`:e.message||`internal_error`}function Un(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}var Wn=`_sentryChildSpans`,Gn=`_sentryRootSpan`;function Kn(e,t){D(t,Gn,e[Gn]||e),e[Wn]?e[Wn].add(t):D(e,Wn,new Set([t]))}function qn(e,t){e[Wn]&&e[Wn].delete(t)}function Jn(e){let t=new Set;function n(e){if(!t.has(e)&&Vn(e)){t.add(e);let r=e[Wn]?Array.from(e[Wn]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var V=Yn;function Yn(e){return e[Gn]||e}function H(){let e=It(r());return e.getActiveSpan?e.getActiveSpan():xt(N())}function Xn(){kn||=(l(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}var Zn=!1;function Qn(){if(Zn)return;function t(){let t=H(),n=t&&V(t);if(n){let t=`internal_error`;e&&v.log(`[Tracing] Root span: ${t} -> Global error occurred`),n.setStatus({code:2,message:t})}}t.tag=`sentry_tracingErrorCallback`,Zn=!0,pe(t),ge(t)}function U(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||F()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function $n(e){v.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function er(t,n){if(!n?.length)return!1;for(let r of n){if(rr(r)){if(t.description&&Ze(t.description,r))return e&&$n(t),!0;continue}let n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;let i=!r.name||t.description&&Ze(t.description,r.name),a=!r.op||t.op&&Ze(t.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([e,n])=>tr(t.attributes?.[e],n));if(i&&a&&o)return e&&$n(t),!0}return!1}function tr(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?Ze(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function nr(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 rr(e){return typeof e==`string`||e instanceof RegExp}var ir=`production`,ar=`_frozenDsc`;function or(e,t){D(e,ar,t)}function sr(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:bn(t)};return t.emit(`createDsc`,i),i}function cr(e,t){let n=t.getPropagationContext();return n.dsc||sr(n.traceId,e)}function lr(e){let t=F();if(!t)return{};let n=V(e),r=B(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[ar];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&sn(l);if(u)return s(u);let d=sr(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),U()&&(d.sampled=String(Vn(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??an(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var W=class{constructor(e={}){this._traceId=e.traceId||j(),this._spanId=e.spanId||M(),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 ur(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}var dr=Symbol.for(`sentry.skipNormalization`),fr=Symbol.for(`sentry.overrideNormalizationDepth`);function pr(e){return!!e[dr]}function mr(e){let t=e[fr];return typeof t==`number`?t:void 0}function G(e,t=100,n=1/0){try{return gr(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function hr(e,t=3,n=102400){let r=G(e,t);return br(r)>n?hr(e,t-1,n):r}function gr(e,t,n=1/0,r=1/0,i=xr()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=_r(e,t);if(!s.startsWith(`[object `))return s;if(pr(t))return t;let c=mr(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 gr(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Ve(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]=gr(e,t,l-1,r,i),f++}return o(t),d}function _r(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(Me(t))return le(t);if(je(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${y(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=vr(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function vr(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function yr(e){return~-encodeURI(e).split(/%..|./).length}function br(e){return yr(JSON.stringify(e))}function xr(){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 Sr(e,t=[]){return[e,t]}function Cr(e,t){let[n,r]=e;return[n,[...r,t]]}function wr(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 Tr(e,t){return wr(e,(e,n)=>t.includes(n))}function Er(e){let n=i(t);return n.encodePolyfill?n.encodePolyfill(e):new TextEncoder().encode(e)}function Dr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Er(r),e]:r.push(typeof e==`string`?Er(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(G(n))}i(e)}}return typeof r==`string`?r:Or(r)}function Or(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 kr(e){return[{type:`span`},e]}function Ar(e){let t=typeof e.data==`string`?Er(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var jr={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 jr}function Nr(e){return Mr(e)?jr[e]:e}function Pr(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Fr(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:hn(r)},...i&&{trace:i}}}function Ir(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 Lr(e,t,n,r){let i=Pr(n);return Sr({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:hn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Rr(e,t,n,r){let i=Pr(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Ir(e,n?.sdk);let o=Fr(e,i,r,t);return delete e.sdkProcessingMetadata,Sr(o,[[{type:a},e]])}function zr(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=lr(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:hn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=B(e);return!er({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=B(e);return(ur(s)?t:s(t))||(Xn(),t)}:B,f=[];for(let e of l){let t=d(e);t&&f.push(kr(t))}return Sr(o,f)}function Br(t){if(!e)return;let{description:n=`< unknown name >`,op:r=`< unknown op >`,parent_span_id:i}=B(t),{spanId:a}=t.spanContext(),o=Vn(t),s=V(t),c=s===t,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${r}`,`name: ${n}`,`ID: ${a}`];if(i&&u.push(`parent ID: ${i}`),!c){let{op:e,description:t}=B(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}v.log(`${l} 3 ${u.join(` 4 `)}`)}function Vr(t){if(!e)return;let{description:n=`< unknown name >`,op:r=`< unknown op >`}=B(t),{spanId:i}=t.spanContext(),a=`[Tracing] Finishing "${r}" ${V(t)===t?`root `:``}span "${n}" with ID ${i}`;v.log(a)}function Hr(t,n,r,i=H()){let a=i&&V(i);a&&(e&&v.log(`[Measurement] Setting measurement on root span: ${t} = ${n} ${r}`),a.addEvent(t,{[Gt]:n,[Wt]:r}))}function Ur(e){if(!e||e.length===0)return;let t={};
4return e.forEach(e=>{let n=e.attributes||{},r=n[Wt],i=n[Gt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Wr(e){return e.getOptions().traceLifecycle===`stream`}var Gr=1e3,Kr=class{constructor(e={}){this._traceId=e.traceId||j(),this._spanId=e.spanId||M(),this._startTime=e.startTimestamp||k(),this._links=e.links,this._attributes={},this.setAttributes({[R]:`manual`,[L]: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=z(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(I,`custom`),this}end(e){this._endTime||(this._endTime=z(e),Vr(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[L],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Hn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[R],profile_id:this._attributes[qt],exclusive_time:this._attributes[Jt],measurements:Ur(this._events),is_segment:this._isStandaloneSpan&&V(this)===this||void 0,segment_id:this._isStandaloneSpan?V(this).spanContext().spanId:void 0,links:Pn(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===V(this),status:Un(this._status),attributes:this._attributes,links:Fn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){e&&v.log(`[Tracing] Adding an event to span:`,t);let i=qr(n)?n:r||k(),a=qr(n)?{}:n||{},o={name:t,time:z(i),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=F();if(t&&(t.emit(`spanEnd`,this),this._isStandaloneSpan||t.emit(`afterSpanEnd`,this)),!(this._isStandaloneSpan||this===V(this)))return;if(this._isStandaloneSpan){this._sampled?Xr(zr([this],t)):(e&&v.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),t&&t.recordDroppedEvent(`sample_rate`,`span`));return}if(t&&Wr(t)){t.emit(`afterSegmentSpanEnd`,this);return}let n=this._convertSpanToTransaction();n&&(an(this).scope||N()).captureEvent(n)}_convertSpanToTransaction(){if(!Jr(B(this)))return;this._name||=(e&&v.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=an(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=Jn(this).filter(e=>e!==this&&!Yr(e)).map(e=>B(e)).filter(Jr),a=this._attributes[I];delete this._attributes[Kt],i.forEach(e=>{delete e.data[Kt]});let o={contexts:{trace:An(this)},spans:i.length>Gr?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Gr):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:lr(this)},request:r,...a&&{transaction_info:{source:a}}},s=Ur(this._events);return s&&Object.keys(s).length&&(e&&v.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(s,void 0,2)),o.measurements=s),o}};function qr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Jr(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Yr(e){return e instanceof Kr&&e.isStandaloneSpan()}function Xr(e){let t=F();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Zr(t,n,r){if(!U(t))return[!1];let i,a;typeof t.tracesSampler==`function`?(a=t.tracesSampler({...n,inheritOrSampleWith:e=>typeof n.parentSampleRate==`number`?n.parentSampleRate:typeof n.parentSampled==`boolean`?Number(n.parentSampled):e}),i=!0):n.parentSampled===void 0?t.tracesSampleRate!==void 0&&(a=t.tracesSampleRate,i=!0):a=n.parentSampled;let o=Sn(a);if(o===void 0)return e&&v.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 e&&v.log(`[Tracing] Discarding transaction because ${typeof t.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||e&&v.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[s,o,i]}var Qr=`__SENTRY_SUPPRESS_TRACING__`;function $r(e){let t=ri();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=ni(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>zt(e.scope,t):i===void 0?e=>e():e=>ei(i,e))(()=>{let t=N(),a=oi(t,i),o=F();return e.onlyIfParent&&!a?(o?.recordDroppedEvent(`no_parent_span`,`span`),new W):ti({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function ei(e,t){let n=ri();return n.withActiveSpan?n.withActiveSpan(e,t):zt(n=>(bt(n,e||void 0),t(n)))}function ti({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!U()){let r=new W;return(n||!e)&&or(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...lr(r)}),r}let i=F();if(si(i,t))return ci(r)||i?.recordDroppedEvent(`ignored`,`span`),new W({dropReason:`ignored`,traceId:e?.
4spanContext().traceId??r.getPropagationContext().traceId});let a=P(),o;if(e&&!n)o=ai(e,r,t),Kn(e,o);else if(e){let n=lr(e),{traceId:i,spanId:a}=e.spanContext(),s=Vn(e);o=ii({traceId:i,parentSpanId:a,...t},r,s),or(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=ii({traceId:e,parentSpanId:i,...t},r,s),n&&or(o,n)}return Br(o),rn(o,r,a),o}function ni(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=z(e.startTime),delete n.startTime,n}return t}function ri(){return It(r())}function ii(t,n,r){let i=F(),a=i?.getOptions()||{},{name:o=``}=t,s={spanAttributes:{...t.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=n.getPropagationContext(),d=ci(n),[f,p,m]=d?[!1]:Zr(a,{name:o,parentSampled:c,attributes:l,parentSampleRate:Sn(u.dsc?.sample_rate)},u.sampleRand),h=new Kr({...t,attributes:{[I]:`custom`,[Vt]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(e&&v.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,Wr(i)?`span`:`transaction`)),i&&i.emit(`spanStart`,h),h}function ai(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=ci(t),o=!a&&Vn(e),s=o?new Kr({...n,parentSpanId:r,traceId:i,sampled:o}):new W({traceId:i});Kn(e,s);let c=F();return c?(Wr(c)&&s instanceof W&&(e instanceof W&&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 oi(e,t){if(t)return t;if(t===null)return;let n=xt(e);if(!n)return;let r=F();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?V(n):n}function si(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Wr(e)||!n?.length?!1:er({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function ci(e){return e.getScopeData().sdkProcessingMetadata[Qr]===!0}var li={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},ui=`heartbeatFailed`,di=`idleTimeout`,fi=`finalTimeout`,pi=`externalFinish`;function mi(t,n={}){let r=new Map,i=!1,a,o=pi,s=!n.disableAutoFinish,c=[],{idleTimeout:l=li.idleTimeout,finalTimeout:u=li.finalTimeout,childSpanTimeout:d=li.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=n,m=F();if(!m||!U()){let e=new W;return or(e,{sample_rate:`0`,sampled:`false`,...lr(e)}),e}let h=N(),g=H(),_=hi(t);_.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),t instanceof W)return;let[r,...i]=n,a=z(r||k()),o=Jn(_).filter(e=>e!==_),s=B(_);if(!o.length||!p)return ae(a),Reflect.apply(e,t,[a,...i]);let c=m.getOptions().ignoreSpans,l=o?.reduce((e,t)=>{let n=B(t);return!n.timestamp||c&&er({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,h=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return ae(h),Reflect.apply(e,t,[h,...i])}});function ee(){a&&=(clearTimeout(a),void 0)}function te(e){ee(),a=setTimeout(()=>{!i&&r.size===0&&s&&(o=di,_.end(e))},l)}function ne(e){a=setTimeout(()=>{!i&&s&&(o=ui,_.end(e))},d)}function re(e){ee(),r.set(e,!0),ne(k()+d/1e3)}function ie(e){r.has(e)&&r.delete(e),r.size===0&&te(k()+l/1e3)}function ae(t){i=!0,r.clear(),c.forEach(e=>e()),bt(h,g);let n=B(_),{start_timestamp:a}=n;if(!a)return;n.data[`sentry.idle_span_finish_reason`]||_.setAttribute(Ut,o);let s=n.status;(!s||s===`unknown`)&&_.setStatus({code:1}),v.log(`[Tracing] Idle span "${n.op}" finished`);let d=Jn(_).filter(e=>e!==_),f=0;d.forEach(n=>{n.isRecording()&&(n.setStatus({code:2,message:`cancelled`}),n.end(t),e&&v.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(n,void 0,2)));let{timestamp:r=0,start_timestamp:i=0}=B(n),a=i<=t,o=(u+l)/1e3,s=r-i<=o;if(e){let e=JSON.stringify(n,void 0,2);a?s||v.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):v.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!s||!a)&&(qn(_,n),f++)}),f>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,f)}return c.push(m.on(`spanStart`,e=>{i||e===_||B(e).timestamp||e instanceof Kr&&e.isStandaloneSpan()||Jn(_).includes(e)&&re(e.spanContext().spanId)})),c.push(m.on(`spanEnd`,e=>
4{i||ie(e.spanContext().spanId)})),c.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(s=!0,te(),r.size&&ne())})),n.disableAutoFinish||te(),setTimeout(()=>{i||(_.setStatus({code:2,message:`deadline_exceeded`}),o=fi,_.end())},u),_}function hi(t){let n=$r(t);return bt(N(),n),e&&v.log(`[Tracing] Started span is an idle span`),n}function gi(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;bi(e,t),r&&Ci(e,r),wi(e,n),xi(e,i),Si(e,a)}function _i(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;vi(e,`extra`,n),vi(e,`tags`,r),vi(e,`attributes`,i),vi(e,`user`,a),vi(e,`contexts`,o),e.sdkProcessingMetadata=vt(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 vi(e,t,n){e[t]=vt(e[t],n,1)}function yi(e,t){let n=Rt().getScopeData();return e&&_i(n,e.getScopeData()),t&&_i(n,t.getScopeData()),n}function bi(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 xi(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Si(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ci(e,t){e.contexts={trace:jn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:lr(t),...e.sdkProcessingMetadata};let n=B(V(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function wi(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}function Ti(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Ei=0,Di=1,Oi=2;function ki(e){return new ji(t=>{t(e)})}function Ai(e){return new ji((t,n)=>{n(e)})}var ji=class e{constructor(e){this._state=Ei,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{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===Ei)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Di&&e[1](this._value),this._state===Oi&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Ei){if(Ae(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Di,e)},r=e=>{t(Oi,e)};try{e(n,r)}catch(e){r(e)}}};function Mi(e,t,n,r=0){try{let i=Ni(t,n,e,r);return Ae(i)?i:ki(i)}catch(e){return Ai(e)}}function Ni(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`),Ae(o)?o.then(e=>Ni(e,n,r,i+1)):Ni(o,n,r,i+1)}var Pi,Fi,Ii,Li;function Ri(e){let n=t._sentryDebugIds,r=t._debugIds;if(!n&&!r)return{};let i=n?Object.keys(n):[],a=r?Object.keys(r):[];if(Li&&i.length===Fi&&a.length===Ii)return Li;Fi=i.length,Ii=a.length,Li={},Pi||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=Pi?.[r];if(i&&Li&&t)Li[i[0]]=t,Pi&&(Pi[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&&Li&&Pi){Li[i]=t,Pi[r]=[i,t];break}}}}};return n&&o(i,n),r&&o(a,r),Li}function zi(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||O(),timestamp:t.timestamp||lt()},l=n.integrations||e.integrations.map(e=>e.name);Bi(c,e),Ui(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Vi(c,e.stackParser);let u=Gi(r,n.captureContext);n.mechanism&&at(c,n.mechanism);let d=i?i.getEventProcessors():[],f=yi(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),gi(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?ki(c):Mi(m,c,n)).then(e=>(e&&Hi(e),typeof o==`number`&&o>0?Wi(e,o,s):e))}function Bi(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=Ye(o.url,a)),a&&e.exception?.values?.forEach(e
4=>{e.value&&=Ye(e.value,a)})}function Vi(e,t){let n=Ri(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Hi(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 Ui(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Wi(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:G(e.data,t,n)}}))},...e.user&&{user:G(e.user,t,n)},...e.contexts&&{contexts:G(e.contexts,t,n)},...e.extra&&{extra:G(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=G(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:G(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=G(e.contexts.flags,3,n)),r}function Gi(e,t){if(!t)return e;let n=e?e.clone():new Ct;return n.update(t),n}function Ki(e){if(e)return qi(e)||Yi(e)?{captureContext:e}:e}function qi(e){return e instanceof Ct||typeof e==`function`}var Ji=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Yi(e){return Object.keys(e).some(e=>Ji.includes(e))}function Xi(e,t){return N().captureException(e,Ki(t))}function Zi(e,t){return N().captureEvent(e,t)}function Qi(){let e=F();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function $i(e){let n=P(),{user:r}=yi(n,N()),{userAgent:i}=t.navigator||{},a=mt({user:r,...i&&{userAgent:i},...e}),o=n.getSession();return o?.status===`ok`&&ht(o,{status:`exited`}),ea(),n.setSession(a),a}function ea(){let e=P(),t=N().getSession()||e.getSession();t&>(t),ta(),e.setSession()}function ta(){let e=P(),t=F(),n=e.getSession();n&&t&&t.captureSession(n)}function na(e=!1){if(e){ea();return}ta()}function ra(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function ia(e){return`${ra(e)}${e.projectId}/envelope/`}function aa(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function oa(e,t,n){return t||`${ia(e)}?${aa(e,n)}`}var sa=[];function ca(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function la(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return ca(r)}function ua(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&fa(e,t,n)}),n}function da(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function fa(t,n,r){if(r[n.name]){e&&v.log(`Integration skipped because it was already installed: ${n.name}`);return}if(r[n.name]=n,!sa.includes(n.name)&&typeof n.setupOnce==`function`&&(n.setupOnce(),sa.push(n.name)),n.setup&&typeof n.setup==`function`&&n.setup(t),typeof n.preprocessEvent==`function`){let e=n.preprocessEvent.bind(n);t.on(`preprocessEvent`,(n,r)=>e(n,r,t))}if(typeof n.processEvent==`function`){let e=n.processEvent.bind(n),r=Object.assign((n,r)=>e(n,r,t),{id:n.name});t.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(e=>{let r=n[e];typeof r==`function`&&t.on(e,e=>r.call(n,e,t))}),e&&v.log(`Integration installed: ${n.name}`)}function K(e){return e}function pa(e){return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{items:e}]}function ma(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=hn(r)),Sr(i,[pa(e)])}function ha(e,t){let n=t??ga(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ma(n,r._metadata,r.tunnel,e.getDsn());_a().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function ga(e){return _a().get(e)}function _a(){return a(`clientToLogBufferMap`,()=>new WeakMap)}function va(e){return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{items:e}]}function ya(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=hn(r)),Sr(i,[va(e)])}function ba(e,t){let n=t??xa(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ya(n,r._metadata,r.tunnel,e.getDsn());Sa().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function xa(e){return Sa().get(e)}function Sa(){return a(`clientToMetricBufferMap`,()=>new WeakMap)}function Ca(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var wa=Symbol.for(`SentryBufferFullError`);function Ta(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Ai(wa);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return ki(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Ca(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Ea=6e4;function Da(e,t=Je()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Ea:r-t}function Oa(e,t){return e[t]||e.all||0}function ka(e,t,n=Je()){return Oa(e,t)>n}function Aa(e,{statusCode:t,headers:n},r=Je()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Da(o,r):t===429&&(i.all=r+6e4);return i}function ja(t,n,r=Ta(t.bufferSize||64)){let i={},a=e=>r.drain(e);function o(a){let o=[];if(wr(a,(e,n)=>{let r=Nr(n);ka(i,r)?t.recordDroppedEvent(`ratelimit_backoff`,r):o.push(e)}),o.length===0)return Promise.resolve({});let s=Sr(a[0],o),c=n=>{if(Tr(s,[`client_report`])){e&&v.warn(`Dropping client report. Will not send outcomes (reason: ${n}).`);return}wr(s,(e,r)=>{t.recordDroppedEvent(n,Nr(r))})};return r.add(()=>n({body:Dr(s)}).then(t=>t.statusCode===413?(e&&v.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),t):(e&&t.statusCode!==void 0&&(t.statusCode<200||t.statusCode>=300)&&v.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),i=Aa(i,t),t),t=>{throw c(`network_error`),e&&v.error(`Encountered error running transport request:`,t),t})).then(e=>e,t=>{if(t===wa)return e&&v.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw t})}return{send:o,flush:a}}
4function Ma(e,t,n){let r=[{type:`client_report`},{timestamp:n||lt(),discarded_events:e}];return Sr(t?{dsn:t}:{},[r])}function Na(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Pa(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[qt],exclusive_time:o?.[Jt],measurements:e.measurements,is_segment:!0}}function Fa(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Ia=`Not capturing exception because it's already been captured.`,La=`Discarded session because of missing or non-string release`,Ra=Symbol.for(`SentryInternalError`),za=Symbol.for(`SentryDoNotSendEventError`),Ba=5e3;function Va(e){return{message:e,[Ra]:!0}}function Ha(e){return{message:e,[za]:!0}}function Ua(e){return!!e&&typeof e==`object`&&Ra in e}function Wa(e){return!!e&&typeof e==`object`&&za in e}function Ga(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=Ca(setTimeout(()=>{i(e)},Ba)))}),e.on(`flush`,()=>{i(e)})}var Ka=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ta(t.transportOptions?.bufferSize??64),t.dsn?this._dsn=xn(t.dsn):e&&v.warn(`No DSN provided, client will not send events.`),this._dsn){let e=oa(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Ga(this,`afterCaptureLog`,`flushLogs`,$a,ha),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Ga(this,`afterCaptureMetric`,`flushMetrics`,Qa,ba)}captureException(t,n,r){let i=O();if(ot(t))return e&&v.log(Ia),i;let a={event_id:i,...n};return this._process(()=>this.eventFromException(t,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:O(),...n},a=we(e)?e:String(e),o=Te(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(t,n,r){let i=O();if(n?.originalException&&ot(n.originalException))return e&&v.log(Ia),i;let a={event_id:i,...n},o=t.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=qa(t.type);return this._process(()=>this._captureEvent(t,a,s||r,c),l),a.event_id}captureSession(e){this.sendSession(e),ht(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit(`flush`);let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){ha(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),fa(this,e,this._integrations),t||da(this,[e])}sendEvent(e,t={}
4){this.emit(`beforeSendEvent`,e,t);let n=Rr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=Cr(n,Ar(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(t){let{release:n,environment:r=ir}=this._options;if(`aggregates`in t){let i=t.attrs||{};if(!i.release&&!n){e&&v.warn(La);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){e&&v.warn(La);return}t.release=t.release||n,t.environment=t.environment||r}this.emit(`beforeSendSession`,t);let i=Lr(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let i=`${t}:${n}`;e&&v.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(t){if(this.emit(`beforeEnvelope`,t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(t){return e&&v.error(`Error while sending envelope:`,t),{}}return e&&v.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=ua(this,e),da(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ht(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),zi(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Bt(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:cr(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(t,n={},r=N(),i=P()){return e&&Xa(t)&&v.log(`Captured error event \`${Na(t)[0]||`<unknown>`}\``),this._processEvent(t,n,r,i).then(e=>e.event_id,t=>{e&&(Wa(t)?v.log(t.message):Ua(t)?v.warn(t.message):v.warn(t))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Za(e),s=Xa(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:Sn(a);if(s&&typeof l==`number`&&qe()>l)return this.recordDroppedEvent(`sample_rate`,`error`),Ai(Ha(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=qa(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Ha("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:Ja(Ya(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Ha(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Wa(e)||Ua(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Va(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===wa&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){e&&v.log(`Flushing outcomes...`);let t=this._clearOutcomes();if(t.length===0){e&&v.log(`No outcomes to send`);return}if(!this._dsn){e&&v.log(`No dsn provided, will not send outcomes`);return}e&&v.log(`Sending outcomes:`,t);let n=Ma(t,this._options.tunnel&&hn(this._dsn));this.sendEnvelope(n)}};
4function qa(e){return e===`replay_event`?`replay`:e||`error`}function Ja(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Ae(e))return e.then(e=>{if(!Ee(e)&&e!==null)throw Va(n);return e},e=>{throw Va(`${t} rejected with ${e}`)});if(!Ee(e)&&e!==null)throw Va(n);return e}function Ya(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!ur(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(Xa(c)&&i)return i(c,r);if(Za(c)){if(s||o){let t=Pa(c);if(o?.length&&er({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=vt(n,Fa(e)):Xn()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&er({description:e.description,op:e.op,attributes:e.data},o)){nr(n,e);continue}if(s){let n=s(e);n?t.push(n):(Xn(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function Xa(e){return e.type===void 0}function Za(e){return e.type===`transaction`}function Qa(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+eo(e.attributes)}function $a(e){let t=0;return e.message&&(t+=e.message.length*2),t+eo(e.attributes)}function eo(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*to(e[0]):Te(e)?t+=to(e):t+=100}),t}function to(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function no(e){return ye(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function ro(e){return no(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function io(t,n){n.debug===!0&&(e?v.enable():l(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),N().update(n.initialScope);let r=new t(n);return ao(r),r.init(),r}function ao(e){N().setClient(e)}var oo=`thismessage:/`;function so(e){return`isRelative`in e}function co(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?oo:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function lo(e){if(so(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function uo(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function fo(e){return e.split(/[?#]/,1)[0]}function po(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function mo(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function ho(e,t,r=[t],i=`npm`){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${i}:@sentry/${e}`,version:n})),a.version=n)}function go(e={}){let t=e.client||F();if(!Qi()||!t)return{};let n=It(r());if(n.getTraceData)return n.getTraceData(e);let i=e.scope||N(),a=e.span||H();if(!a&&Lt())return{};let o=a?Mn(a):_o(i),s=cn(a?lr(a):cr(t,i));if(!Cn.test(o))return v.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let c={"sentry-trace":o,baggage:s};return e.propagateTraceparent&&(c.traceparent=a?Nn(a):vo(i)),c}function _o(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return En(t,r,n)}function vo(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Dn(t,r,n)}var yo=100;function bo(e,t){let n=F(),r=P();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=yo}=n.getOptions();if(a<=0)return;let o={timestamp:lt(),...e}
4,s=i?l(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var xo,So=`FunctionToString`,Co=new WeakMap,wo=K((()=>({name:So,setupOnce(){xo=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Be(this),n=Co.has(F())&&t!==void 0?t:this;return xo.apply(n,e)}}catch{}},setup(e){Co.set(e,!0)}}))),To=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Eo=`EventFilters`,Do=K((e={})=>{let t;return{name:Eo,setup(n){t=ko(e,n.getOptions())},processEvent(n,r,i){return t||=ko(e,i.getOptions()),Ao(n,t)?null:n}}}),Oo=K(((e={})=>({...Do(e),name:`InboundFilters`})));function ko(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:To],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ao(t,n){if(!t.type){if(jo(t,n.ignoreErrors))return e&&v.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${rt(t)}`),!0;if(Lo(t))return e&&v.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${rt(t)}`),!0;if(No(t,n.denyUrls))return e&&v.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${rt(t)}.\nUrl: ${Io(t)}`),!0;if(!Po(t,n.allowUrls))return e&&v.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${rt(t)}.\nUrl: ${Io(t)}`),!0}else if(t.type===`transaction`&&Mo(t,n.ignoreTransactions))return e&&v.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${rt(t)}`),!0;return!1}function jo(e,t){return t?.length?Na(e).some(e=>Qe(e,t)):!1}function Mo(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Qe(n,t):!1}function No(e,t){if(!t?.length)return!1;let n=Io(e);return n?Qe(n,t):!1}function Po(e,t){if(!t?.length)return!0;let n=Io(e);return!n||Qe(n,t)}function Fo(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Io(t){try{let e=[...t.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return e?Fo(e):null}catch{return e&&v.error(`Cannot extract url for event ${rt(t)}`),null}}function Lo(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Ro(e,t,n,r,i,a){if(!i.exception?.values||!a||!w(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=zo(e,t,r,a.originalException,n,i.exception.values,o,0))}function zo(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(w(r[i],Error)){Vo(o,s,r);let a=e(t,r[i]),l=c.length;Ho(a,i,l,s),c=zo(e,t,n,r[i],i,[a,...c],a,l)}return Bo(r)&&r.errors.forEach((a,l)=>{if(w(a,Error)){Vo(o,s,r);let u=e(t,a),d=c.length;Ho(u,`errors[${l}]`,d,s),c=zo(e,t,n,a,i,[u,...c],u,d)}}),c}function Bo(e){return Array.isArray(e.errors)}function Vo(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Bo(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Ho(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var Uo=new Map,Wo=new Set;function Go(e){if(t._sentryModuleMetadata)for(let n of Object.keys(t._sentryModuleMetadata)){let r=t._sentryModuleMetadata[n];if(Wo.has(n))continue;Wo.add(n);let i=e(n);for(let e of i.reverse())if(e.filename){Uo.set(e.filename,r);break}}}function Ko(e,t){return Go(e),Uo.get(t)}function qo(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=Ko(e,t.filename);n&&(t.module_metadata=n)})})}
4function Jo(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}function Yo(e){let t=`console`,n=b(t,e);return x(t,Xo),n}function Xo(){`console`in t&&o.forEach(function(e){e in t.console&&E(t.console,e,function(n){return c[e]=n,function(...n){S(`console`,{args:n,level:e}),c[e]?.apply(t.console,n)}})})}function Zo(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Qo=`Dedupe`,$o=K((()=>{let t;return{name:Qo,processEvent(n){if(n.type)return n;try{if(es(n,t))return e&&v.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return t=n}}}));function es(e,t){return t?!!(ts(e,t)||ns(e,t)):!1}function ts(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!is(e,t)||!rs(e,t))}function ns(e,t){let n=as(t),r=as(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!is(e,t)||!rs(e,t))}function rs(e,t){let n=ce(e),r=ce(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function is(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function as(e){return e.exception?.values?.[0]}var os=K(e=>({name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{wr(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Jo(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;qo(n,t)})},processEvent(t){let n=cs(t,e.ignoreSentryInternalFrames);if(n&&n[e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`apply-tag-if-contains-third-party-frames`?`some`:`every`](t=>!t.some(t=>e.filterKeys.includes(t)))){if(e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`drop-error-if-exclusively-contains-third-party-frames`)return null;t.tags={...t.tags,third_party_code:!0}}return t}}));function ss(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes(`sentry`)||!e.filename.includes(`helpers`)||!e.context_line.includes(ds))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(us))return!0}return!1}function cs(e,t){let n=ce(e);if(n)return n.filter((e,n)=>!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:!t||!ss(e,n)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(ls)).map(e=>e.slice(ls.length)):[])}var ls=`_sentryBundlerPluginAppKey:`,us=`Attempt to invoke user-land function`,ds=`fn.apply(this, wrappedArguments)`,fs=`ConversationId`,ps=K((()=>({name:fs,setup(e){e.on(`spanStart`,e=>{let t=N().getScopeData(),n=P().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=B(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(Xt,r)}})}})));function ms(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=U()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(_s(n,e),hs(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=F(),d=!!H(),f=s&&d?$r(xs(o,a,c)):new W;if(s&&!d&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=gs(t,n,U()&&d?f:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,f,t)}return f}function hs(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function gs(e,t,n,r){let i=go({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(Ne(e)?e.headers:void 0);if(!c)return{...i};if(ys(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?vs(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if(bs(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&vs(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>vs(e)):vs(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0});return r&&s&&!t&&(u.traceparent=s),u}}function _s(e,t){if(t.response){Qt(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function vs(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(on))}function ys(e){return typeof Headers<`u`&&w(e,Headers)}function bs(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function xs(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${po(e)}`,attributes:Ss(e,void 0,t,n)};let r=co(e);return{name:`${t} ${r?lo(r):e}`,attributes:Ss(e,r,t,n)}}function Ss(e,t,n,r){let i={url:po(e),type:`fetch`,"http.method":n,[R]:r,[L]:`http.client`};return t&&(so(t)||(i[`http.url`]=po(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function Cs(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function ws(){return`npm`}function Ts(){return!Cs()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Es(){return typeof window<`u`&&(!Ts()||Ds())}function Ds(){return t.process?.type===`renderer`}function Os(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var ks=t;function As(){return`history`in ks&&!!ks.history}function js(){if(!(`fetch`in ks))return!1;
4try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Ms(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ns(){if(typeof EdgeRuntime==`string`)return!0;if(!js())return!1;if(Ms(ks.fetch))return!0;let t=!1,n=ks.document;if(n&&typeof n.createElement==`function`)try{let e=n.createElement(`iframe`);e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=Ms(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){e&&v.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,t)}return t}function Ps(e,t){let n=`fetch`,r=b(n,e);return x(n,()=>Is(void 0,t)),r}function Fs(e){let t=`fetch-body-resolved`,n=b(t,e);return x(t,()=>Is(Rs)),n}function Is(e,n=!1){(!n||Ns())&&E(t,`fetch`,function(n){return function(...r){let i=Error(),{method:a,url:o}=Vs(r),s={args:r,fetchData:{method:a,url:o},startTimestamp:k()*1e3,virtualError:i,headers:Hs(r)};return e||S(`fetch`,{...s}),n.apply(t,r).then(async t=>(e?e(t):S(`fetch`,{...s,endTimestamp:k()*1e3,response:t}),t),e=>{S(`fetch`,{...s,endTimestamp:k()*1e3,error:e}),ye(e)&&e.stack===void 0&&(e.stack=i.stack,D(e,`framesToPop`,1));let t=F()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(s.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:D(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function Ls(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Rs(e){let t;try{t=e.clone()}catch{return}Ls(t,()=>{S(`fetch-body-resolved`,{endTimestamp:k()*1e3,response:e})})}function zs(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Bs(e){return typeof e==`string`?e:e?zs(e,`url`)?e.url:e.toString?e.toString():``:``}function Vs(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Bs(t),method:zs(n,`method`)?String(n.method).toUpperCase():Ne(t)&&zs(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Bs(t),method:zs(t,`method`)?String(t.method).toUpperCase():`GET`}}function Hs(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Ne(t))return new Headers(t.headers)}catch{}}var q=t,Us=0;function Ws(){return Us>0}function Gs(){Us++,setTimeout(()=>{Us--})}function Ks(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Be(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>Ks(e,t));return e.apply(this,r)}catch(e){throw Gs(),zt(r=>{r.addEventProcessor(e=>(t.mechanism&&(it(e,void 0,void 0),at(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Xi(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}ze(r,e),D(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function qs(){let e=Le(),{referrer:t}=q.document||{},{userAgent:n}=q.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Js(e,t){let n=Zs(e,t),r={type:nc(t),value:rc(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ys(e,t,n,r){let i=F()?.getOptions().normalizeDepth,a=uc(t),o={__serialized__:hr(t,i)};if(a)return{exception:{values:[Js(e,a)]},extra:o};let s={exception:{values:[{type:De(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:cc(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Zs(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Xs(e,t){return{exception:{values:[Js(e,t)]}}}function Zs(e,t){let n=t.stacktrace||t.stack||``,r=$s(t),i=ec(t);try{return e(n,r,i)}catch{}return[]}var Qs=/Minified React error #\d+;/i;function $s(e){return e&&Qs.test(e.message)?1:0}function ec(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function tc(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function nc(e){let t=e?.name;return!t&&tc(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function rc(e){let t=e?.message;return tc(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?ro(t.error):ro(e):`No error message`}function ic(e,t,n,r){let i=oc(e,t,n?.syntheticException||void 0,r);
4return at(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),ki(i)}function ac(e,t,n=`info`,r,i){let a=sc(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ki(a)}function oc(e,t,n,r,i){let a;if(xe(t)&&t.error)return Xs(e,t.error);if(Se(t)||Ce(t)){let i=t;if(`stack`in t)a=Xs(e,t);else{let t=i.name||(Se(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=sc(e,o,n,r),it(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return ye(t)?Xs(e,t):Ee(t)||De(t)?(a=Ys(e,t,n,i),at(a,{synthetic:!0}),a):(a=sc(e,t,n,r),it(a,`${t}`,void 0),at(a,{synthetic:!0}),a)}function sc(e,t,n,r){let i={};if(r&&n){let r=Zs(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),at(i,{synthetic:!0})}if(we(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function cc(e,{isUnhandledRejection:t}){let n=We(e),r=t?`promise rejection`:`exception`;return xe(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:De(e)?`Event \`${lc(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function lc(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function uc(e){return Object.values(e).find(e=>e instanceof Error)}
4var dc=class extends Ka{constructor(e){let t=fc(e);ho(t,`browser`,[`browser`],q.SENTRY_SDK_SOURCE||ws()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;q.document&&(r||i||s)&&q.document.addEventListener(`visibilitychange`,()=>{q.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&ha(this),s&&ba(this))}),n&&this.on(`beforeSendSession`,mo)}eventFromException(e,t){return ic(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return ac(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function fc(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var pc=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,J=t,mc=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,hc=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=mc(t.value,n),e(t)))}},gc=(e=!0)=>{let t=J.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},_c=()=>gc()?.activationStart??0;function vc(e,t,n){J.document&&J.addEventListener(e,t,n)}function yc(e,t,n){J.document&&J.removeEventListener(e,t,n)}var bc=-1,xc=new Set,Sc=()=>J.document?.visibilityState===`hidden`&&!J.document?.prerendering?0:1/0,Cc=e=>{if(Tc(e)&&bc>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of xc)e();isFinite(bc)||(bc=e.type===`visibilitychange`?e.timeStamp:0,yc(`prerenderingchange`,Cc,!0))}},wc=()=>{if(J.document&&bc<0){let e=_c();bc=(J.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??Sc(),vc(`visibilitychange`,Cc,!0),vc(`pagehide`,Cc,!0),vc(`prerenderingchange`,Cc,!0)}return{get firstHiddenTime(){return bc},onHidden(e){xc.add(e)}}};function Tc(e){return e.type===`pagehide`||J.document?.visibilityState===`hidden`}var Ec=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+0xe8d4a51000}`,Dc=(e,t=-1)=>{let n=gc(),r=`navigate`;return n&&(J.document?.prerendering||_c()>0?r=`prerender`:J.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:Ec(),navigationType:r}},Oc=new WeakMap;function kc(e,t){try{return Oc.get(e)||Oc.set(e,new t),Oc.get(e)}catch{return new t}}var Ac=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},jc=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Mc=e=>{let t=!1;return()=>{t||=(e(),!0)}},Nc=e=>{J.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},Pc=[1800,3e3],Fc=(e,t={})=>{Nc(()=>{let n=wc(),r=Dc(`FCP`),i,a=jc(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-_c(),0),r.entries.push(t),i(!0)))});a&&(i=hc(e,r,Pc,t.reportAllChanges))})},Ic=[.1,.25],Lc=(e,t={})=>{Fc(Mc(()=>{let n=Dc(`CLS`,0),r,i=wc(),a=kc(t,Ac),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=jc(`layout-shift`,o);s&&(r=hc(e,n,Ic,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),J?.setTimeout?.(r))}))},Rc=0,zc=1/0,Bc=0,Vc=e=>
4{e.forEach(e=>{e.interactionId&&(zc=Math.min(zc,e.interactionId),Bc=Math.max(Bc,e.interactionId),Rc=Bc?(Bc-zc)/7+1:0)})},Hc,Uc=()=>Hc?Rc:performance.interactionCount||0,Wc=()=>{`interactionCount`in performance||Hc||(Hc=jc(`event`,Vc,{type:`event`,buffered:!0,durationThreshold:0}))},Gc=10,Kc=0,qc=()=>Uc()-Kc,Jc=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Kc=Uc(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(qc()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Gc||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>Gc){let e=this._longestInteractionList.splice(Gc);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},Yc=e=>{let t=J.requestIdleCallback||J.setTimeout;J.document?.visibilityState===`hidden`?e():(e=Mc(e),vc(`visibilitychange`,e,{once:!0,capture:!0}),vc(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),yc(`visibilitychange`,e,{capture:!0}),yc(`pagehide`,e,{capture:!0})}))},Xc=[200,500],Zc=40,Qc=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=wc();Nc(()=>{Wc();let r=Dc(`INP`),i,a=kc(t,Jc),o=e=>{Yc(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=jc(`event`,o,{durationThreshold:t.durationThreshold??Zc});i=hc(e,r,Xc,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},$c=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},el=[2500,4e3],tl=(e,t={})=>{Nc(()=>{let n=wc(),r=Dc(`LCP`),i,a=kc(t,$c),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-_c(),0),r.entries=[t],i())},s=jc(`largest-contentful-paint`,o);if(s){i=hc(e,r,el,t.reportAllChanges);let n=Mc(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(Yc(n),yc(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])vc(e,a,{capture:!0})}})},nl=[800,1800],rl=e=>{J.document?.prerendering?Nc(()=>rl(e)):J.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>rl(e),!0)},il=(e,t={})=>{let n=Dc(`TTFB`),r=hc(e,n,nl,t.reportAllChanges);rl(()=>{let e=gc();e&&(n.value=Math.max(e.responseStart-_c(),0),n.entries=[e],r(!0))})},al={},ol={},sl,cl,ll,ul;function dl(e,t=!1){return xl(`cls`,e,_l,sl,t)}function fl(e,t=!1){return xl(`lcp`,e,vl,cl,t)}function pl(e){return xl(`ttfb`,e,yl,ll)}function ml(e){return xl(`inp`,e,bl,ul)}function hl(e,t){return Cl(e,t),ol[e]||(Sl(e),ol[e]=!0),wl(e,t)}function gl(e,t){let n=al[e];if(n?.length)for(let r of n)try{r(t)}catch(t){pc&&v.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${y(r)}\nError:`,t)}}function _l(){return Lc(e=>{gl(`cls`,{metric:e}),sl=e},{reportAllChanges:!0})}function vl(){return tl(e=>{gl(`lcp`,{metric:e}),cl=e},{reportAllChanges:!0})}function yl(){return il(e=>{gl(`ttfb`,{metric:e}),ll=e})}function bl(){return Qc(e=>{gl(`inp`,{metric:e}),ul=e})}function xl(e,t,n,r,i=!1){Cl(e,t);let a;return ol[e]||(a=n(),ol[e]=!0),r&&t({metric:r}),wl(e,t,i?a:void 0)}function Sl(e){let t={};e===`event`&&(t.durationThreshold=0),jc(e,t=>{gl(e,{entries:t})},t)}function Cl(e,t){al[e]=al[e]||[],al[e].push(t)}function wl(e,t,n){return()=>{n&&n();let r=al[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Tl(e){return`duration`in e}var El=e=>{let t=t=>{(t.type===`pagehide`||J.document?.visibilityState===`hidden`)&&e(t)};vc(`visibilitychange`,t,{capture:!0,once:!0}),vc(`pagehide`,t,{capture:!0,once:!0})};function Dl(e){return typeof e==`number`&&isFinite(e)}function Ol(e,t,n,{...r}){let i=B(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),ei(e,()=>{let e=$r({startTime:t,...r});return e&&e.end(n),e})}function kl(e){let t=F();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=N(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return $r({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":J.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function Al(){return J.addEventListener&&J.performance}function Y(e){return e/1e3}function jl(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}
4return r===e&&(t=r),{name:t,version:n}}function Ml(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Nl(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}El(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function Pl(e){let t=0,n;if(!Ml(`layout-shift`))return;let r=dl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Nl(e,(e,i)=>{Fl(t,n,i,e),r()})}function Fl(e,t,n,r){pc&&v.log(`Sending CLS span (${e})`);let i=t?Y((A()||0)+t.startTime):k(),a=N().getScopeData().transactionName,o=t?T(t.sources[0]?.node):`Layout shift`,s={[R]:`auto.http.browser.cls`,[L]:`ui.webvital.cls`,[Jt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=T(e.node)});let c=kl({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[Wt]:``,[Gt]:e}),c.end(i))}function Il(e){return e!=null&&e>0&&e<=6e4}function Ll(e){let t=0,n;if(!Ml(`largest-contentful-paint`))return;let r=fl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&Il(e.value)&&(t=e.value,n=r)},!0);Nl(e,(e,i)=>{Rl(t,n,i,e),r()})}function Rl(e,t,n,r){if(!Il(e))return;pc&&v.log(`Sending LCP span (${e})`);let i=Y((A()||0)+(t?.startTime||0)),a=N().getScopeData().transactionName,o=t?T(t.element):`Largest contentful paint`,s={[R]:`auto.http.browser.lcp`,[L]:`ui.webvital.lcp`,[Jt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=T(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=kl({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[Wt]:`millisecond`,[Gt]:e}),c.end(i))}function X(e){return e&&((A()||performance.timeOrigin)+e)/1e3}function zl(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=jl(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return A()||Al()?.timeOrigin?Bl({...t,"http.request.redirect_start":X(e.redirectStart),"http.request.redirect_end":X(e.redirectEnd),"http.request.worker_start":X(e.workerStart),"http.request.fetch_start":X(e.fetchStart),"http.request.domain_lookup_start":X(e.domainLookupStart),"http.request.domain_lookup_end":X(e.domainLookupEnd),"http.request.connect_start":X(e.connectStart),"http.request.secure_connection_start":X(e.secureConnectionStart),"http.request.connection_end":X(e.connectEnd),"http.request.request_start":X(e.requestStart),"http.request.response_start":X(e.responseStart),"http.request.response_end":X(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function Bl(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Vl=2147483647,Hl=0,Z={},Q,Ul;function Wl({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Al();if(r&&A()){r.mark&&J.performance.mark(`sentry-tracing-init`);let i=t?Ll(n):t===!1?Yl():void 0,a=e?Pl(n):e===!1?Jl():void 0,o=Xl();return()=>{o(),i?.(),a?.()}}return()=>void 0}function Gl(){hl(`longtask`,({entries:e})=>{let t=H();if(!t)return;let{op:n,start_timestamp:r}=B(t);for(let i of e){let e=Y(A()+i.startTime),a=Y(i.duration);n===`navigation`&&r&&e<r||Ol(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[R]:`auto.ui.browser.metrics`}})}})}function Kl(){new PerformanceObserver(e=>{let t=H();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=Y(A()+n.startTime),{start_timestamp:r,op:i}=B(t);if(i===`navigation`&&r&&e<r)continue;let a=Y(n.duration),o={[R]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Ol(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function ql(){hl(`event`,({entries:e})=>{let t=H();if(t){for(let n of e)if(n.name===`click`){let e=Y(A()+n.startTime),r=Y(n.duration),i={name:T(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[R]:`auto.ui.browser.metrics`}},a=Re(n.target);a&&(i.attributes[`ui.component_name`]=a),Ol(t,e,e+r,i)}}})}function Jl(){return dl(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Z.cls={value:e.value,unit:``},Ul=t)},!0)}function Yl(){return fl(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&Il(e.value)&&(Z.lcp={value:e.value,unit:`millisecond`},Q=t)},!0)}function Xl(){return pl(({metric:e})=>{e.entries[e.entries.length-1]&&(Z.ttfb={value:e.value,unit:`millisecond`})})}function Zl(e,t){let n=Al(),r=A();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o,recordClsOnPageloadSpan:s,recordLcpOnPageloadSpan:c}=t,l=Y(r),u=n.getEntries(),{op:d,start_timestamp:f}=B(e);if(u.slice(Hl).forEach(t=>{let n=Y(t.startTime),r=Y(Math.max(0,t.duration));if(!(d===`navigation`&&f&&l+n<f))switch(t.entryType){case`navigation`:tu(e,t,l);break;case`mark`:case`paint`:case`measure`:{$l(e,t,n,r,l,a);let i=wc(),o=t.startTime<i.firstHiddenTime;t.name===`first-paint`&&o&&(Z.fp={value:t.startTime,unit:`millisecond`}),t.name===`first-contentful-paint`&&o&&(Z.fcp={value:t.startTime,unit:`millisecond`});break}case`resource`:au(e,t,t.name,n,r,l,o)}}),Hl=Math.max(u.length-1,0),ou(e,i),d===`pageload`){if(lu(Z),i){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),pc&&v.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};
4[`ttfb`,`fp`,`fcp`].forEach(e=>{Z[e]&&t(e,Z[e].value)}),Z[`ttfb.requestTime`]&&t(`ttfb.requestTime`,Z[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else s||delete Z.cls,c||delete Z.lcp,Object.entries(Z).forEach(([e,t])=>{Hr(e,t.value,t.unit)}),su(e,t);e.setAttribute(i?`browser.performance.time_origin`:`performance.timeOrigin`,l),e.setAttribute(i?`browser.performance.navigation.activation_start`:`performance.activationStart`,_c())}Q=void 0,Ul=void 0,Z={}}function Ql(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components â`}catch{return}}function $l(e,t,n,r,i,a){if(Ql(t)||[`mark`,`measure`].includes(t.entryType)&&Qe(t.name,a))return;let o=gc(!1),s=Y(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[R]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),eu(d,t),c<=u&&Ol(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function eu(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Te(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Te(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function tu(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{nu(e,t,r,n)}),nu(e,t,`secureConnection`,n,`TLS/SSL`),nu(e,t,`fetch`,n,`cache`),nu(e,t,`domainLookup`,n,`DNS`),iu(e,t,n)}function nu(e,t,n,r,i=n){let a=t[ru(n)],o=t[`${n}Start`];o&&a&&Ol(e,r+Y(o),r+Y(a),{op:`browser.${i}`,name:t.name,attributes:{[R]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function ru(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function iu(e,t,n){let r=n+Y(t.requestStart),i=n+Y(t.responseEnd),a=n+Y(t.responseStart);t.responseEnd&&(Ol(e,r,i,{op:`browser.request`,name:t.name,attributes:{[R]:`auto.ui.browser.metrics`}}),Ol(e,a,i,{op:`browser.response`,name:t.name,attributes:{[R]:`auto.ui.browser.metrics`}}))}function au(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[R]:`auto.resource.browser.metrics`},l=uo(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(J.location.origin),cu(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...zl(t)},d=a+r;Ol(e,d,d+i,{name:n.replace(J.location.origin,``),op:s,attributes:u})}function ou(e,t){let n=J.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),Dl(r.rtt)&&(Z[`connection.rtt`]={value:r.rtt,unit:`millisecond`},t&&e.setAttribute(`network.connection.rtt`,r.rtt))),Dl(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),Dl(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function su(e,t){Q&&t.recordLcpOnPageloadSpan&&(Q.element&&e.setAttribute(`lcp.element`,T(Q.element)),Q.id&&e.setAttribute(`lcp.id`,Q.id),Q.url&&e.setAttribute(`lcp.url`,Q.url.trim().slice(0,200)),Q.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Q.loadTime),Q.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Q.renderTime),e.setAttribute(`lcp.size`,Q.size)),Ul?.sources&&t.recordClsOnPageloadSpan&&Ul.sources.forEac
4h((t,n)=>e.setAttribute(`cls.source.${n+1}`,T(t.node)))}function cu(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Vl||typeof i==`string`)&&(t[r]=i)})}function lu(e){let t=gc(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var uu=[],du=new Map,fu=new Map;function pu(){if(Al()&&A()){let e=hu();return()=>{e()}}return()=>void 0}var mu={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function hu(){return ml(gu)}var gu=({metric:e})=>{if(e.value==null)return;let t=Y(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&mu[t.name]);if(!n)return;let{interactionId:r}=n,i=mu[n.name],a=Y(A()+n.startTime),o=H(),s=o?V(o):void 0,c=r==null?void 0:du.get(r),l=c?.span||s,u=l?B(l).description:N().getScopeData().transactionName,d=kl({name:c?.elementName||T(n.target),transaction:u,attributes:{[R]:`auto.http.browser.inp`,[L]:`ui.interaction.${i}`,[Jt]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[Wt]:`millisecond`,[Gt]:e.value}),d.end(a+t))};function _u(e){return e==null?void 0:du.get(e)}function vu(){let e=Object.keys(mu);Es()&&e.forEach(e=>{J.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=T(t),r=Math.round(e.timeStamp);if(fu.set(r,n),fu.size>50){let e=fu.keys().next().value;e!==void 0&&fu.delete(e)}}function n(e){let t=Math.round(e.startTime),n=fu.get(t);if(!n)for(let e=-5;e<=5;e++){let r=fu.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=H(),r=t&&V(t);e.forEach(e=>{if(!Tl(e))return;let t=e.interactionId;if(t==null||du.has(t))return;let i=e.target?T(e.target):n(e);if(uu.length>10){let e=uu.shift();du.delete(e)}uu.push(t),du.set(t,{span:r,elementName:i})})};hl(`event`,r),hl(`first-input`,r)}function yu(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=N().getScopeData().transactionName,f={[R]:r,[L]:n,[Jt]:0,[`browser.web_vital.${i}.value`]:a,"sentry.transaction":d,"user_agent.original":J.navigator?.userAgent,...o};s&&Ln(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=$r({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function bu(e){let t=0,n;if(!Ml(`largest-contentful-paint`))return;let r=fl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&Il(e.value)&&(t=e.value,n=r)},!0);Nl(e,(e,i,a)=>{xu(t,n,a,e),r()})}function xu(e,t,n,r){if(!Il(e))return;pc&&v.log(`Sending LCP span (${e})`);let i=A()||0,a=Y(i),o=Y(i+(t?.startTime||0)),s=t?T(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=T(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),yu({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function Su(e){let t=0,n;if(!Ml(`layout-shift`))return;let r=dl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Nl(e,(e,i,a)=>{Cu(t,n,a,e),r()})}function Cu(e,t,n,r){pc&&v.log(`Sending CLS span (${e})`);let i=t?Y((A()||0)+t.startTime):k(),a=t?T(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=T(e.node)}),yu({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function wu(){Al()&&A()&&ml(({metric:e})=>
4{if(e.value==null||Y(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&mu[t.name]);t&&Tu(e.value,t)})}function Tu(e,t){pc&&v.log(`Sending INP span (${e})`);let n=Y(A()+t.startTime),r=Y(e),i=mu[t.name],a=_u(t.interactionId),o=H(),s=o?V(o):void 0,c=a?.span||s,l=c?Ln(c).name:N().getScopeData().transactionName;yu({name:a?.elementName||T(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[Jt]:t.duration,"sentry.transaction":l},startTime:n,endTime:n+r,parentSpan:c})}var Eu=1e3,Du,Ou,ku;function Au(e){b(`dom`,e),x(`dom`,ju)}function ju(){if(!J.document)return;let e=S.bind(null,`dom`),t=Pu(e,!0);J.document.addEventListener(`click`,t,!1),J.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=J[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(E(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=Pu(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),E(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Mu(e){if(e.type!==Ou)return!1;try{if(!e.target||e.target._sentryId!==ku)return!1}catch{}return!0}function Nu(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function Pu(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Fu(n);if(Nu(n.type,r))return;D(n,`_sentryCaptured`,!0),r&&!r._sentryId&&D(r,`_sentryId`,O());let i=n.type===`keypress`?`input`:n.type;Mu(n)||(e({event:n,name:i,global:t}),Ou=n.type,ku=r?r._sentryId:void 0),clearTimeout(Du),Du=J.setTimeout(()=>{ku=void 0,Ou=void 0},Eu)}}function Fu(e){try{return e.target}catch{return null}}var Iu;function Lu(e){let t=`history`;b(t,e),x(t,Ru)}function Ru(){if(J.addEventListener(`popstate`,()=>{let e=J.location.href,t=Iu;Iu=e,t!==e&&S(`history`,{from:t,to:e})}),!As())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Iu,i=zu(String(n));if(Iu=i,r===i)return e.apply(this,t);S(`history`,{from:r,to:i})}return e.apply(this,t)}}E(J.history,`pushState`,e),E(J.history,`replaceState`,e)}function zu(e){try{return new URL(e,J.location.origin).toString()}catch{return e}}var Bu={};function Vu(e){let t=Bu[e];if(t)return t;let n=J[e];if(Ms(n))return Bu[e]=n.bind(J);let r=J.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){pc&&v.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Bu[e]=n.bind(J))}function Hu(e){Bu[e]=void 0}var Uu=`__sentry_xhr_v3__`;function Wu(e){b(`xhr`,e),x(`xhr`,Gu)}function Gu(){if(!J.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=k()*1e3,a=C(n[0])?n[0].toUpperCase():void 0,o=Ku(n[1]);if(!a||!o)return e.apply(t,n);t[Uu]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Uu];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}S(`xhr`,{endTimestamp:k()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Uu];return a&&C(r)&&C(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Uu];return r?(n[0]!==void 0&&(r.body=n[0]),S(`xhr`,{startTimestamp:k()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Ku(e){if(C(e))return e;try{return e.toString()}catch{}}function qu(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return pc&&v.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r 5`).reduce((e,t)=>
5{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}var Ju=40;function Yu(e,t=Vu(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw Hu(`fetch`),e}finally{n-=a,r--}}return ja(e,i,Ta(e.bufferSize||Ju))}var $=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Xu=30,Zu=50;function Qu(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var $u=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ed=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,td=/\((\S*)(?::(\d+))(?::(\d+))\)/,nd=/at (.+?) ?\(data:(.+?),/,rd=[Xu,e=>{let t=e.match(nd);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=$u.exec(e);if(n){let[,e,t,r]=n;return Qu(e,`?`,+t,+r)}let r=ed.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=td.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=sd(r[1]||`?`,r[2]);return Qu(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],id=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ad=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,od=re(rd,[Zu,e=>{let t=id.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=ad.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=sd(n,e),Qu(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),sd=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},cd=1024,ld=`Breadcrumbs`,ud=K(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ld,setup(e){t.console&&Yo(pd(e)),t.dom&&Au(fd(e,t.dom)),t.xhr&&Wu(md(e)),t.fetch&&Ps(hd(e)),t.history&&Lu(gd(e)),t.sentry&&e.on(`beforeSendEvent`,dd(e))}}}));function dd(e){return function(t){F()===e&&bo({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:rt(t)},{event:t})}}function fd(e,t){return function(n){if(F()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>cd&&($&&v.warn(`\`dom.maxStringLength\` cannot exceed ${cd}, but a value of ${o} was configured. Sentry will use ${cd} instead.`),o=cd),typeof a==`string`&&(a=[a]);try{let e=n.event,t=_d(e)?e.target:e;r=T(t,{keyAttrs:a,maxStringLength:o}),i=Re(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),bo(s,{event:n.event,name:n.name,global:n.global})}}function pd(e){return function(t){if(F()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Zo(t.level),message:Xe(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${Xe(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}bo(n,{input:t.args,level:t.level})}}function md(e){return function(t){if(F()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Uu];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Os(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),bo(d,u)}}function hd(e){return function(t){if(F()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),bo(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Os(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),bo(s,o)}}}}function gd(e){return function(t){if(F()!==e)return;let n=t.from,r=t.to,i=uo(q.location.href),a=n?uo(n):void 0,o=uo(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),bo({category:`navigation`,data:{from:n,to:r}})}}function _d(e){return!!e&&!!e.target}var vd=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
5Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),yd=`BrowserApiErrors`,bd=K(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:yd,setupOnce(){t.setTimeout&&E(q,`setTimeout`,xd),t.setInterval&&E(q,`setInterval`,xd),t.requestAnimationFrame&&E(q,`requestAnimationFrame`,Sd),t.XMLHttpRequest&&`XMLHttpRequest`in q&&E(XMLHttpRequest.prototype,`send`,Cd);let e=t.eventTarget;e&&(Array.isArray(e)?e:vd).forEach(e=>wd(e,t))}}}));function xd(e){return function(...t){let n=t[0];return t[0]=Ks(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${y(e)}`}}),e.apply(this,t)}}function Sd(e){return function(t){return e.apply(this,[Ks(t,{mechanism:{data:{handler:y(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Cd(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&E(n,e,function(t){let n={mechanism:{data:{handler:y(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Be(t);return r&&(n.mechanism.data.handler=y(r)),Ks(t,n)})}),e.apply(this,t)}}function wd(e,t){let n=q[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(E(n,`addEventListener`,function(n){return function(r,i,a){try{Td(i)&&(i.handleEvent=Ks(i.handleEvent,{mechanism:{data:{handler:y(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Ed(this,r,i),n.apply(this,[r,Ks(i,{mechanism:{data:{handler:y(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),E(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Td(e){return typeof e.handleEvent==`function`}function Ed(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Dd=K((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(q.document===void 0){$&&v.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}$i({ignoreDuration:!0}),na();let e=P(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();
5(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(na(),n=t)}),t===`route`&&Lu(({from:e,to:t})=>{e!==t&&($i({ignoreDuration:!0}),na())})}}}),Od=`CultureContext`,kd=K((()=>({name:Od,preprocessEvent(e){let t=Ad();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Ad();t&&Ti(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Ad(){try{let e=q.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var jd=`GlobalHandlers`,Md=K(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:jd,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Nd(e),Rd(`onerror`)),t.onunhandledrejection&&(Pd(e),Rd(`onunhandledrejection`))}}}));function Nd(e){pe(t=>{let{stackParser:n,attachStacktrace:r}=zd();if(F()!==e||Ws())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Ld(oc(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Zi(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Pd(e){ge(t=>{let{stackParser:n,attachStacktrace:r}=zd();if(F()!==e||Ws())return;let i=Fd(t),a=Te(i)?Id(i):oc(n,i,void 0,r,!0);a.level=`error`,Zi(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Fd(e){if(Te(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Id(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ld(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Bd(t)??Le(),function:`?`,in_app:!0}),e}function Rd(e){$&&v.log(`Global Handler attached: ${e}`)}function zd(){return F()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Bd(e){if(C(e)&&e.length!==0)return e.startsWith(`data:`)?`<${po(e,!1)}>`:e}var Vd=K(()=>({name:`HttpContext`,preprocessEvent(e){if(!q.navigator&&!q.location&&!q.document)return;let t=qs(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!q.navigator&&!q.location&&!q.document)return;let t=qs();Ti(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),Hd=`cause`,Ud=5,Wd=`LinkedErrors`,Gd=K(((e={})=>{let t=e.limit||Ud,n=e.key||Hd;return{name:Wd,preprocessEvent(e,r,i){Ro(Js,i.getOptions().stackParser,n,t,e,r)}}}));function Kd(){return qd()?($&&l(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function qd(){if(q.window===void 0)return!1;let e=q;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Le();return!(q===q.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Jd(e){return[Oo(),wo(),ps(),bd(),ud(),Md(),Gd(),$o(),Vd(),kd(),Dd()]}function Yd(e={}){let t=!e.skipBrowserExtensionCheck&&Kd(),n=e.defaultIntegrations==null?Jd():e.defaultIntegrations;return io(dc,{...e,enabled:!t&&e.enabled,stackParser:ie(e.stackParser||od),integrations:la({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Yu})}function Xd(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function Zd(e){try{return new URL(e,q.location.origin).href}catch{return}}function Qd(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function $d(e){try{return new Headers(e)}catch{return}}var ef=new WeakMap,tf=new Map,nf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function rf(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:c,onRequestSpanEnd:l}={...nf,...t},u=typeof a==`function`?a:e=>!0,d=e=>sf(e,s),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>
5(e.type===`transaction`&&e.spans&&e.spans.forEach(e=>{if(e.op===`http.client`){let t=tf.get(e.span_id);t&&(e.timestamp=t/1e3,tf.delete(e.span_id))}}),e)),i&&Fs(e=>{if(e.response){let t=ef.get(e.response);t&&e.endTimestamp&&tf.set(t,e.endTimestamp)}}),Ps(t=>{let n=ms(t,u,d,f,{propagateTraceparent:p,onRequestSpanEnd:l});if(t.response&&t.fetchData.__span&&ef.set(t.response,t.fetchData.__span),n){let r=Zd(t.fetchData.url),i=r?uo(r).host:void 0;n.setAttributes({"http.url":r?po(r):void 0,"server.address":i}),o&&of(n,e),c?.(n,{headers:t.headers})}})),r&&Wu(t=>{let n=cf(t,u,d,f,p,l);n&&(o&&of(n,e),c?.(n,{headers:$d(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var af=300;function of(e,t){let{url:n}=B(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(Wr(t)){let t=e.end.bind(e);e.end=e=>{let n=e??k(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,af)}}let i=hl(`resource`,({entries:t})=>{t.forEach(t=>{Qd(t)&&t.name.endsWith(n)&&(e.setAttributes(zl(t)),r())})})}function sf(e,t){let n=Le();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?Qe(r.toString(),t)||a&&Qe(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?Qe(e,t):n}}function cf(e,t,n,r,i,a){let o=e.xhr,s=o?.[Uu];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=U()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(Qt(n,s.status_code),n.end(),a?.(n,{headers:$d(qu(o)),error:e.error})),delete r[t]);return}let d=Zd(c),f=uo(d||c),p=po(fo(c)),m=F(),h=!!H(),g=u&&h?$r({name:`${l} ${p}`,attributes:{url:po(c),type:`xhr`,"http.method":l,"http.url":d?po(d):void 0,"server.address":f?.host,[R]:`auto.http.browser`,[L]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new W;return u&&!h&&m?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=g.spanContext().spanId,r[o.__sentry_xhr_span_id__]=g,n(c)&&lf(o,U()&&h?g:void 0,i),m&&m.emit(`beforeOutgoingRequestSpan`,g,e),g}function lf(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=go({span:t,propagateTraceparent:n});r&&uf(e,r,i,a)}function uf(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.[`sentry-trace`]&&e.setRequestHeader)try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!Xd(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}function df(){q.document?q.document.addEventListener(`visibilitychange`,()=>{let e=H();if(!e)return;let t=V(e);if(q.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=B(t);$&&v.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):$&&v.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var ff=`sentry_previous_trace`,pf=`sentry.previous_trace`;function mf(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?_f():void 0;e.on(`spanStart`,e=>{if(V(e)!==e)return;let t=N().getPropagationContext();i=hf(i,e,t),r&&gf(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=N(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(vf(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=vf(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[Ht]:i.sampleRate}})}function hf(e,t,n){let r=B(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[`sentry.sample_rate`])}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&($&&v.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Yt]:`previous_trace`}}),t.setAttribute(pf,`${o.traceId}-${o.spanId}-${+!!vf(o)}`)),a)}function gf(e){try{q.sessionStorage.setItem(ff,JSON.stringify(e))}catch(e){$&&v.warn(`Could not store previous trace in sessionStorage`,e)}}function _f(){try{let e=q.sessionStorage?.getItem(ff);return JSON.parse(e)}catch{return}}function vf(e){return e.traceFlags===1}
5var yf=`BrowserTracing`,bf=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function xf(){let e=q.navigator;return e?.userAgent?bf.test(e.userAgent):!1}var Sf={...li,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...nf},Cf=((e={})=>{`enableElementTiming`in e&&l(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let n={name:void 0,source:void 0},r=q.document,{enableInp:i,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:ee,shouldCreateSpanForRequest:te,enableHTTPTimings:ne,ignoreResourceSpans:re,ignorePerformanceApiSpans:ie,instrumentPageLoad:ae,instrumentNavigation:oe,detectRedirects:se,linkPreviousTrace:y,consistentTraceSampling:ce,enableReportPageLoaded:le,onRequestSpanStart:ue,onRequestSpanEnd:de}={...Sf,...e},b=xf(),x,S,fe;function pe(e,t,i=!0){let a=t.op===`pageload`,o=t.name,s=d?d(t):t,l=s.attributes||{};if(o!==s.name&&(l[I]=`custom`,s.attributes=l),!i){let e=lt();$r({...s,startTime:e}).end(e);return}n.name=s.name,n.source=l[I];let h=mi(s,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:a,beforeSpanEnd:t=>{x?.();let n=Wr(e);Zl(t,{recordClsOnPageloadSpan:!n&&!c,recordLcpOnPageloadSpan:!n&&!u,ignoreResourceSpans:re,ignorePerformanceApiSpans:ie,spanStreamingEnabled:n}),jf(e,void 0);let r=N(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:h.spanContext().traceId,sampled:Vn(h),dsc:lr(t)}),a&&(fe=void 0)},trimIdleSpanEndTimestamp:!le});a&&le&&(fe=h),jf(e,h);function g(){r&&[`interactive`,`complete`].includes(r.readyState)&&e.emit(`idleSpanEnableAutoFinish`,h)}a&&!le&&r&&(r.addEventListener(`readystatechange`,()=>{g()}),g())}return{name:yf,setup(e){if(b){$&&v.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}Qn();let n=Wr(e);if(x=Wl({recordClsStandaloneSpans:n?void 0:c||!1,recordLcpStandaloneSpans:n?void 0:u||!1,client:e}),n?(bu(e),Su(e),i&&wu()):i&&pu(),o&&t.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?Kl():a&&Gl(),s&&ql(),se&&r){let e=()=>{S=k()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function l(){let t=Af(e);t&&!B(t).timestamp&&($&&v.log(`[Tracing] Finishing current active span with op: ${B(t).op}`),t.setAttribute(Ut,`cancelled`),t.end())}e.on(`startNavigationSpan`,(t,n)=>{if(F()!==e)return;if(n?.isRedirect){$&&v.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),pe(e,{op:`navigation.redirect`,...t},!1);return}S=void 0,l(),P().setPropagationContext({traceId:j(),sampleRand:Math.random(),propagationSpanId:U()?void 0:M()});let r=N();r.setPropagationContext({traceId:j(),sampleRand:Math.random(),propagationSpanId:U()?void 0:M()}),r.setSDKProcessingMetadata({normalizedRequest:void 0}),pe(e,{op:`navigation`,...t,parentSpan:null,forceTransaction:!0})}),e.on(`startPageLoadSpan`,(t,n={})=>{if(F()!==e)return;l();let r=Tn(n.sentryTrace||Ef(`sentry-trace`)||Df(`sentry-trace`),n.baggage||Ef(`baggage`)||Df(`baggage`)),i=N();i.setPropagationContext(r),U()||(i.getPropagationContext().propagationSpanId=M()),i.setSDKProcessingMetadata({normalizedRequest:qs()}),pe(e,{op:`pageload`,...t})}),e.on(`endPageloadSpan`,()=>{le&&fe&&(fe.setAttribute(Ut,`reportPageLoaded`),fe.end())})},afterAllSetup(e){if(b)return;let t=Le();if(y!==`off`&&mf(e,{linkPreviousTrace:y,consistentTraceSampling:ce}),q.location){if(ae){let t=A();wf(e,{name:q.location.pathname,startTime:t?t/1e3:void 0,attributes:{[I]:`url`,[R]:`auto.pageload.browser`}})}oe&&Lu(({to:n,from:r})=>{if(r===void 0&&t?.indexOf(n)!==-1){t=void 0;return}t=void 0;let i=co(n),a=Af(e),o=a&&se&&Nf(a,S);Tf(e,{name:i?.pathname||q.location.pathname,attributes:{[I]:`url`,[R]:`auto.navigation.browser`}},{url:n,isRedirect:o})})}
5h&&df(),s&&Of(e,f,p,m,n),i&&vu(),rf(e,{traceFetch:g,traceXHR:_,trackFetchStreamPerformance:ee,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:te,enableHTTPTimings:ne,onRequestSpanStart:ue,onRequestSpanEnd:de})}}});function wf(e,t,n){e.emit(`startPageLoadSpan`,t,n),N().setTransactionName(t.name);let r=Af(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function Tf(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=N();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...qs(),url:r}}),Af(e)}function Ef(e){return(q.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function Df(e){return(q.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function Of(e,t,n,r,i){let a=q.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=Af(e);if(s){let e=B(s).op;if([`navigation`,`pageload`].includes(e)){$&&v.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(Ut,`interactionInterrupted`),o.end(),void 0),!i.name){$&&v.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=mi({name:i.name,op:a,attributes:{[I]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var kf=`_sentry_idleSpan`;function Af(e){return e[kf]}function jf(e,t){D(e,kf,t)}var Mf=1.5;function Nf(e,t){let n=B(e),r=lt();return!(r-n.start_timestamp>Mf||t&&r-t<=Mf)}var Pf=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Ff(e){return(q.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function If(e={}){let t=Cf({...e,instrumentPageLoad:!1});return{...t,afterAllSetup(n){if(t.afterAllSetup?.(n),q.location&&e.instrumentPageLoad!=0){let e=A(),{name:t,source:r}=Lf();wf(n,{name:t,startTime:e?e/1e3:void 0,attributes:{[I]:r,[R]:`auto.pageload.astro`}})}}}}function Lf(){try{let e=Ff(`sentry-route-name`);if(e){let t=decodeURIComponent(e);return Pf&&v.log(`[Tracing] Using route name from Sentry HTML meta-tag: ${t}`),{name:t,source:`route`}}}catch{}return{name:q.location.pathname,source:`url`}}function Rf(e){let t={defaultIntegrations:zf(e),...e};return ho(t,`astro`,[`astro`,`browser`]),Yd(t)}function zf(e){return typeof __SENTRY_TRACING__>`u`||__SENTRY_TRACING__?[...Jd(e),If()]:Jd(e)}var Bf=`https://www.googletagmanager.com/gtm.js,https://cdn.cookielaw.org/scripttemplates,https://geolocation.onetrust.com,https://cdn.heapanalytics.com/js,https://bite.australiarevival.com,https://spider.australiarevival.com/,https://tracking.g2crowd.com/,https://bat.bing.com/bat.js,https://ara.paa-reporting-advertising.amazon,https://static.klaviyo.com/onsite,/onsite/js/,https://js.qualified.com,https://assets.qualified.com,https://player.vimeo.com,https://f.vimeocdn.com,https://cdn.pdst.fm,https://www.redditstatic.com/,https://ct.capterra.com/,https://client-registry.mutinycdn.com/,https://extend.vimeocdn.com/,https://d41.co/,https://tracking.intentsify.io,https://js.adsrvr.org/,https://insight.adsrvr.org/,https://js.hs-scripts.com,https://js.hs-analytics.net,https://js.hs-banner.com,https://track.hubspot.com`.split(`,`),Vf=[`Cannot read properties of undefined (reading`,`Cannot read properties of null (reading`,`Cannot read property `,`must be called from a top-level browsing context or allowed by the permission policy`,/^Load failed$/,`We couldn't load`,`The user denied permission to access the database`,`Access is denied for this document`,`undefined is not an object (evaluating`,`Object Not Found Matching Id:`,`Can't find variable: Chartboost`,`Chartboost`,`AbortError: AbortError`,`ReferenceError: Can't find variable: __`,`Failed to execute 'importScripts' on 'WorkerGlobalScope'`,`Object captured as promise rejection with keys:`,`not found. Not rendering React`,`Qualified: `,`vimeo`,`enumerateDevices() failed`,`this.shouldEnforce is not a function`,`WeakMap keys must be objects or non-registered symbols`,`Invalid property. 'value' present on property with getter or setter.`,`Failed to get a ServiceWorkerRegistration`,`Receiving end does not exist`,`Invalid call to runtime.sendMessage()`,`Non-Error promise rejection captured with value: unauthorized`,`Non-Error promise rejection captured with value: undefined`,`Non-Error promise rejection captured with value: invalid_request`,`Non-Error promise rejection captured with value: Handshake Timeout Reached`,`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The operation was aborted`],Hf=e=>Bf.some(t=>e?.startsWith(t)),Uf=[`chrome-extension://`,`moz-extension://`,`safari-extension://`,`safari-web-extension://`],Wf=e=>Uf.some(t=>e?.startsWith(t)),Gf=e=>e.exception?.values?.flatMap(e=>e.stacktrace?.frames??[])??[];Rf({beforeSend(e){let t=Gf(e);return t.some(e=>Hf(e.filename))||t.some(e=>Wf(e.filename))?null:e},beforeSendTransaction(e){return e.spans?.some(e=>Hf(e.description))?null:e},dsn:`https://[email protected]/4508292743495680`,environment:`production`,ignoreErrors:Vf,sampleRate:.5,tracesSampleRate:.1,integrations:[os({filterKeys:[`marketing-site`],behaviour:`drop-error-if-exclusively-contains-third-party-frames`})]});
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.