vendor: 16,519 bytes, lines 1-5
1(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"3391f16264704e4dc7174547c61d3ab323eb167c"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c06cb327-243c-4afc-83ad-85ab84b80399",t._sentryDebugIdIdentifier="sentry-dbid-c06cb327-243c-4afc-83ad-85ab84b80399")})()}catch{}const h=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,I=globalThis,wt="10.14.0";function Ot(){return Ye(I),I}function Ye(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||wt,e[wt]=e[wt]||{}}function ce(t,e,n=I){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[wt]=r[wt]||{};return s[t]||(s[t]=e())}const Yi=["debug","info","warn","error","log","assert","trace"],Xi="Sentry Logger ",Fe={};function St(t){if(!("console"in I))return t();const e=I.console,n={},r=Object.keys(Fe);r.forEach(s=>{const i=Fe[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function Ji(){Bn().enabled=!0}function Ki(){Bn().enabled=!1}function hs(){return Bn().enabled}function Zi(...t){Un("log",...t)}function Qi(...t){Un("warn",...t)}function to(...t){Un("error",...t)}function Un(t,...e){h&&hs()&&St(()=>{I.console[t](`${Xi}[${t}]:`,...e)})}function Bn(){return h?ce("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const m={enable:Ji,disable:Ki,isEnabled:hs,log:Zi,warn:Qi,error:to},_s=50,Nt="?",pr=/\(error: (.*)\)/,mr=/captureMessage|captureException/;function Ss(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(` 2`);for(let c=r;c<o.length;c++){let a=o[c];a.length>1024&&(a=a.slice(0,1024));const u=pr.test(a)?a.replace(pr,"$1"):a;if(!u.match(/\S*Error: /)){for(const f of e){const d=f(u);if(d){i.push(d);break}}if(i.length>=_s+s)break}}return no(i.slice(s))}}function eo(t){return Array.isArray(t)?Ss(...t):t}function no(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(be(e).function||"")&&e.pop(),e.reverse(),mr.test(be(e).function||"")&&(e.pop(),mr.test(be(e).function||"")&&e.pop()),e.slice(0,_s).map(n=>({...n,filename:n.filename||be(e).filename,function:n.function||Nt}))}function be(t){return t[t.length-1]||{}}const sn="<anonymous>";function ut(t){try{return!t||typeof t!="function"?sn:t.name||sn}catch{return sn}}function gr(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Ne={},hr={};function yt(t,e){Ne[t]=Ne[t]||[],Ne[t].push(e)}function Et(t,e){if(!hr[t]){hr[t]=!0;try{e()}catch(n){h&&m.error(`Error while instrumenting ${t}`,n)}}}function z(t,e){const n=t&&Ne[t];if(n)for(const r of n)try{r(e)}catch(s){h&&m.error(`Error while triggering instrumentation handler. 3Type: ${t} 4Name: ${ut(r)} 5Error:`,s)}}let on=null;function ys(t){const e="error";yt(e,t),Et(e,ro)}function ro(){on=I.onerror,I.onerror=function(t,e,n,r,s){return z("error",{column:r,error:s,line:n,msg:t,url:e}),on?on.apply(this,arguments):!1},I.onerror.__SENTRY_INSTRUMENTED__=!0}let an=null;function Es(t){const e="unhandledrejection";yt(e,t),Et(e,so)}function so(){an=I.onunhandledrejection,I.onunhandledrejection=function(t){return z("unhandledrejection",t),an?an.apply(this,arguments):!0},I.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const bs=Object.prototype.toString;function jn(t){switch(bs.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return dt(t,Error)}}function Wt(t,e){return bs.call(t)===`[object ${e}]`}function Ts(t){return Wt(t,"ErrorEvent")}function _r(t){return Wt(t,"DOMError")}function io(t){return Wt(t,"DOMException")}function at(t){return Wt(t,"String")}function qn(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function ne(t){return t===null||qn(t)||typeof t!="object"&&typeof t!="function"}function re(t){return Wt(t,"Object")}function Xe(t){return typeof Event<"u"&&dt(t,Event)}function oo(t){return typeof Element<"u"&&dt(t,Element)}function ao(t){return Wt(t,"RegExp")}function Vt(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function co(t){return re(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function dt(t,e){try{return t instanceof e}catch{return!1}}function Is(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function vs(t){return typeof Request<"u"&&dt(t,Request)}const Gn=I,uo=80;function Q(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const c=" > ",a=c.length;let u;const f=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||uo;for(;n&&i++<r&&(u=fo(n,f),!(u==="html"||i>1&&o+s.length*a+u.length>=d));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(c)}catch{return"<unknown>"}}function fo(t,e){const n=t,r=[];if(!(n!=null&&n.tagName))return"";if(Gn.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());const s=e!=null&&e.length?e.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s!=null&&s.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&at(o)){const c=o.split(/\s+/);for(const a of c)r.push(`.${a}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const c=n.getAttribute(o);c&&r.push(`[${o}="${c}"]`)}return r.join("")}function ue(){try{return Gn.document.location.href}catch{return""}}function Rs(t){if(!Gn.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function He(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Sr(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{Is(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Pe(t,e,n=!1){return at(t)?ao(e)?e.test(t):at(e)?n?t===e:t.includes(e):!1:!1}function pt(t,e=[],n=!1){return e.some(r=>Pe(t,r,n))}function B(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&ws(s,r);try{t[e]=s}catch{h&&m.log(`Failed to replace method "${e}" in object`,t)}}function q(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{h&&m.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function ws(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,q(t,"__sentry_original__",e)}catch{}}function Wn(t){return t.__sentry_original__}function As(t){if(jn(t))return{message:t.message,name:t.name,stack:t.stack,...Er(t)};if(Xe(t)){const e={type:t.type,target:yr(t.target),currentTarget:yr(t.currentTarget),...Er(t)};return typeof CustomEvent<"u"&&dt(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function yr(t){try{return oo(t)?Q(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Er(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function lo(t,e=40){const n=Object.keys(As(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return He(r,e);for(let s=n.length;s>0;s--){const i=n.slice(0,s).join(", ");if(!(i.length>e))return s===n.length?i:He(i,e)}return""}function po(){const t=I;return t.crypto||t.msCrypto}function Y(t=po()){let e=()=>Math.random()*16;try{if(t!=null&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t!=null&&t.getRandomValues&&(e=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(e()&15)>>n/4).toString(16))}function ks(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function Rt(t){const{message:e,event_id:n}=t;if(e)return e;const r=ks(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function bn(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Ft(t,e){const n=ks(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const i={...s==null?void 0:s.data,...e.data};n.mechanism.data=i}}function br(t){if(mo(t))return!0;try{q(t,"__sentry_captured__",!0)}catch{}return!1}function mo(t){try{return t.__sentry_captured__}catch{}}const Cs=1e3;function Lt(){return Date.now()/Cs}function go(){const{performance:t}=I;if(!(t!=null&&t.now)||!t.timeOrigin)return Lt;const e=t.timeOrigin;return()=>(e+t.now())/Cs}let Tr;function O(){return(Tr??(Tr=go()))()}let cn;function ho(){var f;const{performance:t}=I;if(!(t!=null&&t.now))return[void 0,"none"];const e=3600*1e3,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,o=(f=t.timing)==null?void 0:f.navigationStart,a=typeof o=="number"?Math.abs(o+n-r):e,u=a<e;return i||u?s<=a?[t.timeOrigin,"timeOrigin"]:[o,"navigationStart"]:[r,"dateNow"]}function G(){return cn||(cn=ho()),cn[0]}function _o(t){const e=O(),n={sid:Y(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>yo(n)};return t&&Ht(n,t),n}function Ht(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||O(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Y()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function So(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Ht(t,n)}function yo(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function de(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=de(r[s],e[s],n-1));return r}function ft(){return Y()}function ct(){return Y().substring(16)}const Tn="_sentrySpan";function Ut(t,e){e?q(t,Tn,e):delete t[Tn]}function Ue(t){return t[Tn]}const Eo=100;class tt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ft(),sampleRand:Math.random()}}clone(){const e=new tt;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},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,Ut(e,Ue(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}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},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,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,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;const n=typeof e=="function"?e(this):e,r=n instanceof tt?n.getScopeData():re(n)?e:void 0,{tags:s,extra:i,user:o,contexts:c,level:a,fingerprint:u=[],propagationContext:f}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},o&&Object.keys(o).length&&(this._user=o),a&&(this._level=a),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Ut(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ft(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){var i;const r=typeof n=="number"?n:Eo;if(r<=0)return this;const s={timestamp:Lt(),...e,message:e.message?He(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(i=this._client)==null||i.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,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:Ue(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=de(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=(n==null?void 0:n.event_id)||Y();if(!this._client)return h&&m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=(r==null?void 0:r.event_id)||Y();if(!this._client)return h&&m.warn("No client configured on scope - will not capture message!"),s;const i=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){const r=(n==null?void 0:n.event_id)||Y();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(h&&m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
5h(e=>{e(this)}),this._notifyingListeners=!1)}}function bo(){return ce("defaultCurrentScope",()=>new tt)}function To(){return ce("defaultIsolationScope",()=>new tt)}class Io{constructor(e,n){let r;e?r=e:r=new tt;let s;n?s=n:s=new tt,this._stack=[{scope:r}],this._isolationScope=s}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(s){throw this._popScope(),s}return Vt(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const 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 Bt(){const t=Ot(),e=Ye(t);return e.stack=e.stack||new Io(bo(),To())}function vo(t){return Bt().withScope(t)}function Ro(t,e){const n=Bt();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Ir(t){return Bt().withScope(()=>t(Bt().getIsolationScope()))}function wo(){return{withIsolationScope:Ir,withScope:vo,withSetScope:Ro,withSetIsolationScope:(t,e)=>Ir(e),getCurrentScope:()=>Bt().getScope(),getIsolationScope:()=>Bt().getIsolationScope()}}function zt(t){const e=Ye(t);return e.acs?e.acs:wo()}function R(){const t=Ot();return zt(t).getCurrentScope()}function xt(){const t=Ot();return zt(t).getIsolationScope()}function Ao(){return ce("globalScope",()=>new tt)}function Je(...t){const e=Ot(),n=zt(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function w(){return R().getClient()}function ko(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||ct()};return r&&(i.parent_span_id=r),i}const j="sentry.source",Vn="sentry.sample_rate",Ns="sentry.previous_trace_sample_rate",lt="sentry.op",C="sentry.origin",se="sentry.idle_span_finish_reason",fe="sentry.measurement_unit",le="sentry.measurement_value",vr="sentry.custom_span_name",zn="sentry.profile_id",Yt="sentry.exclusive_time",Co="sentry.link.type",No=0,Ps=1,x=2;function Po(t){if(t<400&&t>=100)return{code:Ps};if(t>=400&&t<500)switch(t){case 401:return{code:x,message:"unauthenticated"};case 403:return{code:x,message:"permission_denied"};case 404:return{code:x,message:"not_found"};case 409:return{code:x,message:"already_exists"};case 413:return{code:x,message:"failed_precondition"};case 429:return{code:x,message:"resource_exhausted"};case 499:return{code:x,message:"cancelled"};default:return{code:x,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:x,message:"unimplemented"};case 503:return{code:x,message:"unavailable"};case 504:return{code:x,message:"deadline_exceeded"};default:return{code:x,message:"internal_error"}}return{code:x,message:"unknown_error"}}function Os(t,e){t.setAttribute("http.response.status_code",e);const n=Po(e);n.message!=="unknown_error"&&t.setStatus(n)}const Ls="_sentryScope",xs="_sentryIsolationScope";function Oo(t){try{const e=I.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function Lo(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function xo(t,e,n){t&&(q(t,xs,Oo(n)),q(t,Ls,e))}function Be(t){const e=t;return{scope:e[Ls],isolationScope:Lo(e[xs])}}const Yn="sentry-",$o=/^sentry-/,Mo=8192;function $s(t){const e=Fo(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,i])=>{if(s.match($o)){const o=s.slice(Yn.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Do(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${Yn}${r}`]=s),n),{});return Ho(e)}function Fo(t){if(!(!t||!at(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Rr(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):Rr(t)}function Rr(t){return t.split(",").map(e=>e.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function Ho(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${e},${i}`;return o.length>Mo?(h&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const Uo=/^o(\d+)\./,Bo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jo(t){return t==="http"||t==="https"}function pe(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=t;return`${c}://${a}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function qo(t){const e=Bo.exec(t);if(!e){St(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i="",o="",c=""]=e.slice(1);let a="",u=c;const f=u.split("/");if(f.length>1&&(a=f.slice(0,-1).join("/"),u=f.pop()),u){const d=u.match(/^\d+/);
5d&&(u=d[0])}return Ms({host:i,pass:s,path:a,projectId:u,port:o,protocol:n,publicKey:r})}function Ms(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Go(t){if(!h)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(m.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?jo(r)?e&&isNaN(parseInt(e,10))?(m.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Wo(t){const e=t.match(Uo);return e==null?void 0:e[1]}function Vo(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=Wo(n)),r}function zo(t){const e=typeof t=="string"?qo(t):Ms(t);if(!(!e||!Go(e)))return e}function ie(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const Ds=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Yo(t){if(!t)return;const e=t.match(Ds);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function Xo(t,e){const n=Yo(t),r=$s(e);if(!(n!=null&&n.traceId))return{traceId:ft(),sampleRand:Math.random()};const s=Jo(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:c}=n;return{traceId:i,parentSpanId:o,sampled:c,dsc:r||{},sampleRand:s}}function Fs(t=ft(),e=ct(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function Hs(t=ft(),e=ct(),n){return`00-${t}-${e}-${n?"01":"00"}`}function Jo(t,e){const n=ie(e==null?void 0:e.sample_rand);if(n!==void 0)return n;const r=ie(e==null?void 0:e.sample_rate);return r&&(t==null?void 0:t.parentSampled)!==void 0?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const Us=0,Xn=1;let wr=!1;function Ko(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:c,links:a}=E(t);return{parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:c,links:a}}function Zo(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:E(t).parent_span_id,i=Be(t).scope,o=r?(i==null?void 0:i.getPropagationContext().propagationSpanId)||ct():e;return{parent_span_id:s,span_id:o,trace_id:n}}function Qo(t){const{traceId:e,spanId:n}=t.spanContext(),r=bt(t);return Fs(e,n,r)}function ta(t){const{traceId:e,spanId:n}=t.spanContext(),r=bt(t);return Hs(e,n,r)}function Bs(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:e,trace_id:n,sampled:r===Xn,attributes:i,...s}))}function At(t){return typeof t=="number"?Ar(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ar(t.getTime()):O()}function Ar(t){return t>9999999999?t/1e3:t}function E(t){var r;if(na(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(ea(t)){const{attributes:s,startTime:i,name:o,endTime:c,status:a,links:u}=t,f="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(r=t.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:e,trace_id:n,data:s,description:o,parent_span_id:f,start_timestamp:At(i),timestamp:At(c)||void 0,status:js(a),op:s[lt],origin:s[C],links:Bs(u)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function ea(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function na(t){return typeof t.getSpanJSON=="function"}function bt(t){const{traceFlags:e}=t.spanContext();return e===Xn}function js(t){if(!(!t||t.code===No))return t.code===Ps?"ok":t.message||"unknown_error"}const kt="_sentryChildSpans",In="_sentryRootSpan";function qs(t,e){const n=t[In]||t;q(e,In,n),t[kt]?t[kt].add(e):q(t,kt,new Set([e]))}function ra(t,e){t[kt]&&t[kt].delete(e)}function Oe(t){const e=new Set;function n(r){if(!e.has(r)&&bt(r)){e.add(r);const s=r[kt]?Array.from(r[kt]):[];for(const i of s)n(i)}}return n(t),Array.from(e)}function D(t){return t[In]||t}function F(){const t=Ot(),e=zt(t);return e.getActiveSpan?e.getActiveSpan():Ue(R())}function vn(){wr||(St(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),wr=!0)}let kr=!1;function sa(){if(kr)return;function t(){const e=F(),n=e&&D(e);if(n){const r="internal_error";h&&m.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:x,message:r})}}t.tag="sentry_tracingErrorCallback",kr=!0,ys(t),Es(t)}function X(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||((n=w())==null?void 0:n.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Cr(t){m.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function je(t,e){if(!(e!=null&&e.length)||!t.description)return!1;
5for(const n of e){if(oa(n)){if(Pe(t.description,n))return h&&Cr(t),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Pe(t.description,n.name):!0,s=n.op?t.op&&Pe(t.op,n.op):!0;if(r&&s)return h&&Cr(t),!0}return!1}function ia(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function oa(t){return typeof t=="string"||t instanceof RegExp}const Jn="production",Gs="_frozenDsc";function Le(t,e){q(t,Gs,e)}function Ws(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||Jn,release:n.release,public_key:r,trace_id:t,org_id:Vo(e)};return e.emit("createDsc",s),s}function Vs(t,e){const n=e.getPropagationContext();return n.dsc||Ws(n.traceId,t)}function mt(t){var g;const e=w();if(!e)return{};const n=D(t),r=E(n),s=r.data,i=n.spanContext().traceState,o=(i==null?void 0:i.get("sentry.sample_rate"))??s[Vn]??s[Ns];function c(y){return(typeof o=="number"||typeof o=="string")&&(y.sample_rate=`${o}`),y}const a=n[Gs];if(a)return c(a);const u=i==null?void 0:i.get("sentry.dsc"),f=u&&$s(u);if(f)return c(f);const d=Ws(t.spanContext().traceId,e),p=s[j],l=r.description;return p!=="url"&&l&&(d.transaction=l),X()&&(d.sampled=String(bt(n)),d.sample_rand=(i==null?void 0:i.get("sentry.sample_rand"))??((g=Be(n).scope)==null?void 0:g.getPropagationContext().sampleRand.toString())),c(d),e.emit("createDsc",d,n),d}class gt{constructor(e={}){this._traceId=e.traceId||ft(),this._spanId=e.spanId||ct()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Us}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}}function ot(t,e=100,n=1/0){try{return Rn("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function zs(t,e=3,n=100*1024){const r=ot(t,e);return da(r)>n?zs(t,e-1,n):r}function Rn(t,e,n=1/0,r=1/0,s=fa()){const[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const c=aa(t,e);if(!c.startsWith("[object "))return c;if(e.__sentry_skip_normalization__)return e;const a=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(a===0)return c.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const l=u.toJSON();return Rn("",l,a-1,r,s)}catch{}const f=Array.isArray(e)?[]:{};let d=0;const p=As(e);for(const l in p){if(!Object.prototype.hasOwnProperty.call(p,l))continue;if(d>=r){f[l]="[MaxProperties ~]";break}const g=p[l];f[l]=Rn(l,g,a-1,r,s),d++}return o(e),f}function aa(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Is(e))return"[VueViewModel]";if(co(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${ut(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=ca(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ca(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function ua(t){return~-encodeURI(t).split(/%..|./).length}function da(t){return ua(JSON.stringify(t))}function fa(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function Xt(t,e=[]){return[t,e]}function la(t,e){const[n,r]=t;return[n,[...r,e]]}function Nr(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function wn(t){const e=Ye(I);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function pa(t){const[e,n]=t;let r=JSON.stringify(e);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[wn(r),i]:r.push(typeof i=="string"?wn(i):i)}for(const i of n){const[o,c]=i;if(s(` 6${JSON.stringify(o)} 7`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let a;try{a=JSON.stringify(c)}catch{a=JSON.stringify(ot(c))}s(a)}}return typeof r=="string"?r:ma(r)}function ma(t){const e=t.reduce((s,i)=>s+i.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function ga(t){return[{type:"span"},t]}
7function ha(t){const e=typeof t.data=="string"?wn(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const _a={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function Pr(t){return _a[t]}function Ys(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Sa(t,e,n,r){var i;const s=(i=t.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:pe(r)},...s&&{trace:s}}}function ya(t,e){var r,s,i,o;if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...((r=t.sdk)==null?void 0:r.integrations)||[],...e.integrations||[]],packages:[...((s=t.sdk)==null?void 0:s.packages)||[],...e.packages||[]],settings:(i=t.sdk)!=null&&i.settings||e.settings?{...(o=t.sdk)==null?void 0:o.settings,...e.settings}:void 0},t}function Ea(t,e,n,r){const s=Ys(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:pe(e)}},o="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Xt(i,[o])}function ba(t,e,n,r){const s=Ys(n),i=t.type&&t.type!=="replay_event"?t.type:"event";ya(t,n==null?void 0:n.sdk);const o=Sa(t,s,r,e);return delete t.sdkProcessingMetadata,Xt(o,[[{type:i},t]])}function Ta(t,e){function n(l){return!!l.trace_id&&!!l.public_key}const r=mt(t[0]),s=e==null?void 0:e.getDsn(),i=e==null?void 0:e.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:pe(s)}},{beforeSendSpan:c,ignoreSpans:a}=(e==null?void 0:e.getOptions())||{},u=a!=null&&a.length?t.filter(l=>!je(E(l),a)):t,f=t.length-u.length;f&&(e==null||e.recordDroppedEvent("before_send","span",f));const d=c?l=>{const g=E(l),y=c(g);return y||(vn(),g)}:E,p=[];for(const l of u){const g=d(l);g&&p.push(ga(g))}return Xt(o,p)}function Ia(t){if(!h)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=E(t),{spanId:s}=t.spanContext(),i=bt(t),o=D(t),c=o===t,a=`[Tracing] Starting ${i?"sampled":"unsampled"} ${c?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!c){const{op:f,description:d}=E(o);u.push(`root ID: ${o.spanContext().spanId}`),f&&u.push(`root op: ${f}`),d&&u.push(`root description: ${d}`)}m.log(`${a} 8 ${u.join(` 9 `)}`)}function va(t){if(!h)return;const{description:e="< unknown name >",op:n="< unknown op >"}=E(t),{spanId:r}=t.spanContext(),i=D(t)===t,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;m.log(o)}function Ra(t,e,n,r=F()){const s=r&&D(r);s&&(h&&m.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),s.addEvent(t,{[le]:e,[fe]:n}))}function Or(t){if(!t||t.length===0)return;const e={};return t.forEach(n=>{const r=n.attributes||{},s=r[fe],i=r[le];typeof s=="string"&&typeof i=="number"&&(e[n.name]={value:i,unit:s})}),e}const Lr=1e3;class Ke{constructor(e={}){this._traceId=e.traceId||ft(),this._spanId=e.spanId||ct(),this._startTime=e.startTimestamp||O(),this._links=e.links,this._attributes={},this.setAttributes({[C]:"manual",[lt]: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,n){}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?Xn:Us}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=At(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(j,"custom"),this}end(e){this._endTime||(this._endTime=At(e),va(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[lt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:js(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[C],profile_id:this._attributes[zn],exclusive_time:this._attributes[Yt],measurements:Or(this._events),is_segment:this._isStandaloneSpan&&D(this)===this||void 0,segment_id:this._isStandaloneSpan?D(this).spanContext().spanId:void 0,links:Bs(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){h&&m.log("[Tracing] Adding an event to span:",e);const s=xr(n)?n:r||O(),i=xr(n)?{}:n||{},o={name:e,time:At(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=w();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===D(this)))return;if(this._isStandaloneSpan){this._sampled?Aa(Ta([this],e)):(h&&m.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Be(this).scope||R()).captureEvent(r)}_convertSpanToTransaction(){var f;if(!$r(E(this)))return;this._name||(h&&m.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:n}=Be(this),r=(f=e==null?void 0:e.getScopeData().sdkProcessingMetadata)==null?void 0:f.normalizedRequest;if(this._sampled!==!0)return;const i=Oe(this).filter(d=>d!==this&&!wa(d)).map(d=>E(d)).filter($r),o=this._attributes[j];
9delete this._attributes[vr],i.forEach(d=>{delete d.data[vr]});const c={contexts:{trace:Ko(this)},spans:i.length>Lr?i.sort((d,p)=>d.start_timestamp-p.start_timestamp).slice(0,Lr):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:mt(this)},request:r,...o&&{transaction_info:{source:o}}},a=Or(this._events);return a&&Object.keys(a).length&&(h&&m.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),c.measurements=a),c}}function xr(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function $r(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function wa(t){return t instanceof Ke&&t.isStandaloneSpan()}function Aa(t){const e=w();if(!e)return;const n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}function ka(t,e,n=()=>{},r=()=>{}){let s;try{s=t()}catch(i){throw e(i),n(),i}return Ca(s,e,n,r)}function Ca(t,e,n,r){return Vt(t)?t.then(s=>(n(),r(s),s),s=>{throw e(s),n(),s}):(n(),r(t),t)}function Na(t,e,n){if(!X(t))return[!1];let r,s;typeof t.tracesSampler=="function"?(s=t.tracesSampler({...e,inheritOrSampleWith:c=>typeof e.parentSampleRate=="number"?e.parentSampleRate:typeof e.parentSampled=="boolean"?Number(e.parentSampled):c}),r=!0):e.parentSampled!==void 0?s=e.parentSampled:typeof t.tracesSampleRate<"u"&&(s=t.tracesSampleRate,r=!0);const i=ie(s);if(i===void 0)return h&&m.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(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!i)return h&&m.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,i,r];const o=n<i;return o||h&&m.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[o,i,r]}const Xs="__SENTRY_SUPPRESS_TRACING__";function Pa(t,e){const n=Zn();if(n.startSpan)return n.startSpan(t,e);const r=Ks(t),{forceTransaction:s,parentSpan:i,scope:o}=t,c=o==null?void 0:o.clone();return Je(c,()=>La(i)(()=>{const u=R(),f=Zs(u,i),p=t.onlyIfParent&&!f?new gt:Js({parentSpan:f,spanArguments:r,forceTransaction:s,scope:u});return Ut(u,p),ka(()=>e(p),()=>{const{status:l}=E(p);p.isRecording()&&(!l||l==="ok")&&p.setStatus({code:x,message:"internal_error"})},()=>{p.end()})}))}function ht(t){const e=Zn();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=Ks(t),{forceTransaction:r,parentSpan:s}=t;return(t.scope?o=>Je(t.scope,o):s!==void 0?o=>Kn(s,o):o=>o())(()=>{const o=R(),c=Zs(o,s);return t.onlyIfParent&&!c?new gt:Js({parentSpan:c,spanArguments:n,forceTransaction:r,scope:o})})}function Kn(t,e){const n=Zn();return n.withActiveSpan?n.withActiveSpan(t,e):Je(r=>(Ut(r,t||void 0),e(r)))}function Js({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!X()){const o=new gt;if(n||!t){const c={sampled:"false",sample_rate:"0",transaction:e.name,...mt(o)};Le(o,c)}return o}const s=xt();let i;if(t&&!n)i=Oa(t,r,e),qs(t,i);else if(t){const o=mt(t),{traceId:c,spanId:a}=t.spanContext(),u=bt(t);i=Mr({traceId:c,parentSpanId:a,...e},r,u),Le(i,o)}else{const{traceId:o,dsc:c,parentSpanId:a,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};i=Mr({traceId:o,parentSpanId:a,...e},r,u),c&&Le(i,c)}return Ia(i),xo(i,r,s),i}function Ks(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const r={...n};return r.startTimestamp=At(t.startTime),delete r.startTime,r}return n}function Zn(){const t=Ot();return zt(t)}function Mr(t,e,n){var g;const r=w(),s=(r==null?void 0:r.getOptions())||{},{name:i=""}=t,o={spanAttributes:{...t.attributes},spanName:i,parentSampled:n};r==null||r.emit("beforeSampling",o,{decision:!1});const c=o.parentSampled??n,a=o.spanAttributes,u=e.getPropagationContext(),[f,d,p]=e.getScopeData().sdkProcessingMetadata[Xs]?[!1]:Na(s,{name:i,parentSampled:c,attributes:a,parentSampleRate:ie((g=u.dsc)==null?void 0:g.sample_rate)},u.sampleRand),l=new Ke({...t,attributes:{[j]:"custom",[Vn]:d!==void 0&&p?d:void 0,...a},sampled:f});return!f&&r&&(h&&m.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",l),l}function Oa(t,e,n){const{spanId:r,traceId:s}=t.spanContext(),i=e.getScopeData().sdkProcessingMetadata[Xs]?!1:bt(t),o=i?new Ke({...n,parentSpanId:r,traceId:s,sampled:i}):new gt({traceId:s});qs(t,o);const c=w();
9return c&&(c.emit("spanStart",o),n.endTimestamp&&c.emit("spanEnd",o)),o}function Zs(t,e){if(e)return e;if(e===null)return;const n=Ue(t);if(!n)return;const r=w();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?D(n):n}function La(t){return t!==void 0?e=>Kn(t,e):e=>e()}const xe={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},xa="heartbeatFailed",$a="idleTimeout",Ma="finalTimeout",Da="externalFinish";function Qs(t,e={}){const n=new Map;let r=!1,s,i=Da,o=!e.disableAutoFinish;const c=[],{idleTimeout:a=xe.idleTimeout,finalTimeout:u=xe.finalTimeout,childSpanTimeout:f=xe.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:p=!0}=e,l=w();if(!l||!X()){const T=new gt,$={sample_rate:"0",sampled:"false",...mt(T)};return Le(T,$),T}const g=R(),y=F(),_=Fa(t);_.end=new Proxy(_.end,{apply(T,$,$t){if(d&&d(_),$ instanceof gt)return;const[Ee,...nt]=$t,It=Ee||O(),P=At(It),Z=Oe(_).filter(k=>k!==_),rt=E(_);if(!Z.length||!p)return ye(P),Reflect.apply(T,$,[P,...nt]);const st=l.getOptions().ignoreSpans,A=Z==null?void 0:Z.reduce((k,W)=>{const M=E(W);return!M.timestamp||st&&je(M,st)?k:k?Math.max(k,M.timestamp):M.timestamp},void 0),L=rt.start_timestamp,v=Math.min(L?L+u/1e3:1/0,Math.max(L||-1/0,Math.min(P,A||1/0)));return ye(v),Reflect.apply(T,$,[v,...nt])}});function U(){s&&(clearTimeout(s),s=void 0)}function et(T){U(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=$a,_.end(T))},a)}function Tt(T){s=setTimeout(()=>{!r&&o&&(i=xa,_.end(T))},f)}function nn(T){U(),n.set(T,!0);const $=O();Tt($+f/1e3)}function rn(T){if(n.has(T)&&n.delete(T),n.size===0){const $=O();et($+a/1e3)}}function ye(T){r=!0,n.clear(),c.forEach(P=>P()),Ut(g,y);const $=E(_),{start_timestamp:$t}=$;if(!$t)return;$.data[se]||_.setAttribute(se,i),m.log(`[Tracing] Idle span "${$.op}" finished`);const nt=Oe(_).filter(P=>P!==_);let It=0;nt.forEach(P=>{P.isRecording()&&(P.setStatus({code:x,message:"cancelled"}),P.end(T),h&&m.log("[Tracing] Cancelling span since span ended early",JSON.stringify(P,void 0,2)));const Z=E(P),{timestamp:rt=0,start_timestamp:st=0}=Z,A=st<=T,L=(u+a)/1e3,v=rt-st<=L;if(h){const k=JSON.stringify(P,void 0,2);A?v||m.log("[Tracing] Discarding span since it finished after idle span final timeout",k):m.log("[Tracing] Discarding span since it happened after idle span was finished",k)}(!v||!A)&&(ra(_,P),It++)}),It>0&&_.setAttribute("sentry.idle_span_discarded_spans",It)}return c.push(l.on("spanStart",T=>{if(r||T===_||E(T).timestamp||T instanceof Ke&&T.isStandaloneSpan())return;Oe(_).includes(T)&&nn(T.spanContext().spanId)})),c.push(l.on("spanEnd",T=>{r||rn(T.spanContext().spanId)})),c.push(l.on("idleSpanEnableAutoFinish",T=>{T===_&&(o=!0,et(),n.size&&Tt())})),e.disableAutoFinish||et(),setTimeout(()=>{r||(_.setStatus({code:x,message:"deadline_exceeded"}),i=Ma,_.end())},u),_}function Fa(t){const e=ht(t);return Ut(R(),e),h&&m.log("[Tracing] Started span is an idle span"),e}const un=0,Dr=1,Fr=2;function Ze(t){return new jt(e=>{e(t)})}function Qn(t){return new jt((e,n)=>{n(t)})}class jt{constructor(e){this._state=un,this._handlers=[],this._runExecutor(e)}then(e,n){return new jt((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new jt((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===un)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Dr&&n[1](this._value),this._state===Fr&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(i,o)=>{if(this._state===un){if(Vt(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Dr,i)},s=i=>{n(Fr,i)};try{e(r,s)}catch(i){s(i)}}}function Ha(t,e,n,r=0){try{const s=An(e,n,t,r);return Vt(s)?s:Ze(s)}catch(s){return Qn(s)}}function An(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return h&&i===null&&m.log(`Event processor "${s.id||"?"}" dropped event`),Vt(i)?i.then(o=>An(o,e,n,r+1)):An(i,e,n,r+1)}function Ua(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;Ba(t,e),r&&Ga(t,r),Wa(t,n),ja(t,s),qa(t,i)}function Hr(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:c,breadcrumbs:a,fingerprint:u,eventProcessors:f,attachments:d,propagationContext:p,transactionName:l,span:g}=e;Te(t,"extra",n),Te(t,"tags",r),Te(t,"user",s),Te(t,"contexts",i),t.sdkProcessingMetadata=de(t.sdkProcessingMetadata,c,2),o&&(t.level=o),l&&(t.transactionName=l),g&&(t.span=g),a.length&&(t.breadcrumbs=[...t.breadcrumbs,...a]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...p}}function Te(t,e,n){t[e]=de(t[e],n,1)}function Ba(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(i).length&&(t.contexts={...i,...t.contexts}),o&&(t.level=o),c&&t.type!=="transaction"&&(t.transaction=c)}function ja(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function qa(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Ga(t,e){t.contexts={trace:Zo(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:mt(e),...t.sdkProcessingMetadata};const n=D(e),r=E(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Wa(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}let Ie,Ur,ve;function Va(t){const e=I._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return ve&&n.length===Ur||(Ur=n.length,ve=n.reduce((r,s)=>{Ie||(Ie={});const i=Ie[s];if(i)r[i[0]]=i[1];else{const o=t(s);for(let c=o.length-1;c>=0;c--){const a=o[c],u=a==null?void 0:a.filename,f=e[s];if(u&&f){r[u]=f,Ie[s]=[u,f];break}}}return r},{})),ve}function za(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,a={...e,event_id:e.event_id||n.event_id||Y(),timestamp:e.timestamp||Lt()},u=n.integrations||t.integrations.map(_=>_.name);Ya(a,t),Ka(a,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&Xa(a,t.stackParser);const f=Qa(r,n.captureContext);n.mechanism&&Ft(a,n.mechanism);const d=s?s.getEventProcessors():[],p=Ao().getScopeData();if(i){const _=i.getScopeData();Hr(p,_)}if(f){const _=f.getScopeData();Hr(p,_)}const l=[...n.attachments||[],...p.attachments];l.length&&(n.attachments=l),Ua(a,p);const g=[...d,...p.eventProcessors];return Ha(g,a,n).then(_=>(_&&Ja(_),typeof o=="number"&&o>0?Za(_,o,c):_))}function Ya(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;t.environment=t.environment||n||Jn,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const o=t.request;o!=null&&o.url&&(o.url=He(o.url,i))}function Xa(t,e){var r,s;const n=Va(e);
9(s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,c;(c=(o=i.stacktrace)==null?void 0:o.frames)==null||c.forEach(a=>{a.filename&&(a.debug_id=n[a.filename])})})}function Ja(t){var r,s;const e={};if((s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,c;(c=(o=i.stacktrace)==null?void 0:o.frames)==null||c.forEach(a=>{a.debug_id&&(a.abs_path?e[a.abs_path]=a.debug_id:a.filename&&(e[a.filename]=a.debug_id),delete a.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function Ka(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Za(t,e,n){var s,i;if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:ot(o.data,e,n)}}))},...t.user&&{user:ot(t.user,e,n)},...t.contexts&&{contexts:ot(t.contexts,e,n)},...t.extra&&{extra:ot(t.extra,e,n)}};return(s=t.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ot(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(o=>({...o,...o.data&&{data:ot(o.data,e,n)}}))),(i=t.contexts)!=null&&i.flags&&r.contexts&&(r.contexts.flags=ot(t.contexts.flags,3,n)),r}function Qa(t,e){if(!e)return t;const n=t?t.clone():new tt;return n.update(e),n}function tc(t){if(t)return ec(t)?{captureContext:t}:rc(t)?{captureContext:t}:t}function ec(t){return t instanceof tt||typeof t=="function"}const nc=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function rc(t){return Object.keys(t).some(e=>nc.includes(e))}function tr(t,e){return R().captureException(t,tc(e))}function ti(t,e){return R().captureEvent(t,e)}function sc(){const t=w();return(t==null?void 0:t.getOptions().enabled)!==!1&&!!(t!=null&&t.getTransport())}function Br(t){const e=xt(),n=R(),{userAgent:r}=I.navigator||{},s=_o({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),i=e.getSession();return(i==null?void 0:i.status)==="ok"&&Ht(i,{status:"exited"}),ei(),e.setSession(s),s}function ei(){const t=xt(),n=R().getSession()||t.getSession();n&&So(n),ni(),t.setSession()}function ni(){const t=xt(),e=w(),n=t.getSession();n&&e&&e.captureSession(n)}function jr(t=!1){if(t){ei();return}ni()}const ic="7";function oc(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function ac(t){return`${oc(t)}${t.projectId}/envelope/`}function cc(t,e){const n={sentry_version:ic};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function uc(t,e,n){return e||`${ac(t)}?${cc(t,n)}`}const qr=[];function dc(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function fc(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const s=n(e);r=Array.isArray(s)?s:[s]}else r=e;return dc(r)}function lc(t,e){const n={};return e.forEach(r=>{r&&ri(t,r,n)}),n}function Gr(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function ri(t,e,n){if(n[e.name]){h&&m.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,qr.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),qr.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,i)=>r(s,i,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((i,o)=>r(i,o,t),{id:e.name});t.addEventProcessor(s)}h&&m.log(`Integration installed: ${e.name}`)}function pc(t,e,n){const r=[{type:"client_report"},{timestamp:Lt(),discarded_events:t}];return Xt(e?{dsn:e}:{},[r])}function si(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n!=null&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function mc(t){var a;const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:c}=((a=t.contexts)==null?void 0:a.trace)??{};return{data:o??{},description:t.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:o==null?void 0:o[zn],exclusive_time:o==null?void 0:o[Yt],measurements:t.measurements,is_segment:!0}}function gc(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[zn]:t.profile_id},...t.exclusive_time&&{[Yt]:t.exclusive_time}}}},measurements:t.measurements}}const Wr="Not capturing exception because it's already been captured.",Vr="Discarded session because of missing or non-string release",ii=Symbol.for("SentryInternalError"),oi=Symbol.for("SentryDoNotSendEventError");function $e(t){return{message:t,[ii]:!0}}function dn(t){return{message:t,[oi]:!0}}function zr(t){return!!t&&typeof t=="object"&&ii in t}function Yr(t){return!!t&&typeof t=="object"&&oi in t}class hc{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=zo(e.dsn):h&&m.warn("No DSN provided, client will not send events."),this._dsn){const n=uc(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){const s=Y();if(br(e))return h&&m.log(Wr),s;const i={event_id:s,...n};return this._process(this.eventFromException(e,i).then(o=>this._captureEvent(o,i,r))),i.event_id}captureMessage(e,n,r,s){const i={event_id:Y(),...r},o=qn(e)?e:String(e),c=ne(e)?this.eventFromMessage(o,n,i):this.eventFromException(e,i);return this._process(c.then(a=>
9this._captureEvent(a,i,s))),i.event_id}captureEvent(e,n,r){const s=Y();if(n!=null&&n.originalException&&br(n.originalException))return h&&m.log(Wr),s;const i={event_id:s,...n},o=e.sdkProcessingMetadata||{},c=o.capturedSpanScope,a=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,c||r,a)),i.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){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),s=await n.flush(e);return r&&s}async close(e){const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}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){const n=this._integrations[e.name];ri(this,e,this._integrations),n||Gr(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=ba(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=la(r,ha(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",e,s))}sendSession(e){const{release:n,environment:r=Jn}=this._options;if("aggregates"in e){const i=e.attrs||{};if(!i.release&&!n){h&&m.warn(Vr);return}i.release=i.release||n,i.environment=i.environment||r,e.attrs=i}else{if(!e.release&&!n){h&&m.warn(Vr);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const s=Ea(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const s=`${e}:${n}`;h&&m.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(s=>s(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(n){return h&&m.error("Error while sending envelope:",n),{}}return h&&m.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=lc(this,e),Gr(this,e)}_updateSessionFromEvent(e,n){var a;let r=n.level==="fatal",s=!1;const i=(a=n.exception)==null?void 0:a.values;if(i){s=!0;for(const u of i){const f=u.mechanism;if((f==null?void 0:f.handled)===!1){r=!0;break}}}const o=e.status==="ok";(o&&e.errors===0||o&&r)&&(Ht(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&(o!=null&&o.length)&&(n.integrations=o),this.emit("preprocessEvent",e,n),e.type||s.setLastEventId(e.event_id||n.event_id),za(i,e,n,r,this,s).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:ko(r),...c.contexts};const a=Vs(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:a,...c.sdkProcessingMetadata},c})}_captureEvent(e,n={},r=R(),s=xt()){return h&&kn(e)&&m.log(`Captured error event \`${si(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,s).then(i=>i.event_id,i=>{h&&(Yr(i)?m.log(i.message):zr(i)?m.warn(i.message):m.warn(i))})}_processEvent(e,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,c=ai(e),a=kn(e),u=e.type||"error",f=`before send for type \`${u}\``,d=typeof o>"u"?void 0:ie(o);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error"),Qn(dn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p=u==="replay_event"?"replay":u;return this._prepareEvent(e,n,r,s).then(l=>{if(l===null)throw this.recordDroppedEvent("event_processor",p),dn("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return l;const y=Sc(this,i,l,n);return _c(y,f)}).then(l=>{var _;
9if(l===null){if(this.recordDroppedEvent("before_send",p),c){const et=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",et)}throw dn(`${f} returned \`null\`, will not send event.`)}const g=r.getSession()||s.getSession();if(a&&g&&this._updateSessionFromEvent(g,l),c){const U=((_=l.sdkProcessingMetadata)==null?void 0:_.spanCountBeforeProcessing)||0,et=l.spans?l.spans.length:0,Tt=U-et;Tt>0&&this.recordDroppedEvent("before_send","span",Tt)}const y=l.transaction_info;if(c&&y&&l.transaction!==e.transaction){const U="custom";l.transaction_info={...y,source:U}}return this.sendEvent(l,n),l}).then(null,l=>{throw Yr(l)||zr(l)?l:(this.captureException(l,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:l}),$e(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 10Reason: ${l}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){h&&m.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){h&&m.log("No outcomes to send");return}if(!this._dsn){h&&m.log("No dsn provided, will not send outcomes");return}h&&m.log("Sending outcomes:",e);const n=pc(e,this._options.tunnel&&pe(this._dsn));this.sendEnvelope(n)}}function _c(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Vt(t))return t.then(r=>{if(!re(r)&&r!==null)throw $e(n);return r},r=>{throw $e(`${e} rejected with ${r}`)});if(!re(t)&&t!==null)throw $e(n);return t}function Sc(t,e,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:c}=e;let a=n;if(kn(a)&&s)return s(a,r);if(ai(a)){if(o||c){const u=mc(a);if(c!=null&&c.length&&je(u,c))return null;if(o){const f=o(u);f?a=de(n,gc(f)):vn()}if(a.spans){const f=[],d=a.spans;for(const l of d){if(c!=null&&c.length&&je(l,c)){ia(d,l);continue}if(o){const g=o(l);g?f.push(g):(vn(),f.push(l))}else f.push(l)}const p=a.spans.length-f.length;p&&t.recordDroppedEvent("before_send","span",p),a.spans=f}}if(i){if(a.spans){const u=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(a,r)}}return a}function kn(t){return t.type===void 0}function ai(t){return t.type==="transaction"}function yc(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function Ec(t,e,n,r){const s={};return e!=null&&e.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=pe(r)),Xt(s,[yc(t)])}function fn(t,e){const n=bc(t)??[];if(n.length===0)return;const r=t.getOptions(),s=Ec(n,r._metadata,r.tunnel,t.getDsn());ci().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function bc(t){return ci().get(t)}function ci(){return ce("clientToLogBufferMap",()=>new WeakMap)}function Tc(t,e){e.debug===!0&&(h?m.enable():St(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),R().update(e.initialScope);const r=new t(e);return Ic(r),r.init(),r}function Ic(t){R().setClient(t)}const ui=Symbol.for("SentryBufferFullError");function vc(t){const e=[];function n(){return t===void 0||e.length<t}function r(o){return e.splice(e.indexOf(o),1)[0]||Promise.resolve(void 0)}function s(o){if(!n())return Qn(ui);const c=o();return e.indexOf(c)===-1&&e.push(c),c.then(()=>r(c)).then(null,()=>r(c).then(null,()=>{})),c}function i(o){return new jt((c,a)=>{let u=e.length;if(!u)return c(!0);const f=setTimeout(()=>{o&&o>0&&c(!1)},o);e.forEach(d=>{Ze(d).then(()=>{--u||(clearTimeout(f),c(!0))},a)})})}return{$:e,add:s,drain:i}}const Rc=60*1e3;function wc(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Rc:r-e}function Ac(t,e){return t[e]||t.all||0}function kc(t,e,n=Date.now()){return Ac(t,e)>n}function Cc(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},i=n==null?void 0:n["x-sentry-rate-limits"],o=n==null?void 0:n["retry-after"];if(i)for(const c of i.trim().split(",")){const[a,u,,,f]=c.split(":",5),d=parseInt(a,10),p=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+p;else for(const l of u.split(";"))l==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[l]=r+p):s[l]=r+p}else o?s.all=r+wc(o,r):e===429&&(s.all=r+60*1e3);return s}const Nc=64;function Pc(t,e,n=vc(t.bufferSize||Nc)){let r={};const s=o=>n.drain(o);function i(o){const c=[];if(Nr(o,(d,p)=>{const l=Pr(p);kc(r,l)?t.recordDroppedEvent("ratelimit_backoff",l):c.push(d)}),c.length===0)return Promise.resolve({});
10const a=Xt(o[0],c),u=d=>{Nr(a,(p,l)=>{t.recordDroppedEvent(d,Pr(l))})},f=()=>e({body:pa(a)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&h&&m.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Cc(r,d),d),d=>{throw u("network_error"),h&&m.error("Encountered error running transport request:",d),d});return n.add(f).then(d=>d,d=>{if(d===ui)return h&&m.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:s}}const Oc="thismessage:/";function di(t){return"isRelative"in t}function fi(t,e){const n=t.indexOf("://")<=0&&t.indexOf("//")!==0,r=n?Oc:void 0;try{if("canParse"in URL&&!URL.canParse(t,r))return;const s=new URL(t,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function Lc(t){if(di(t))return t.pathname;const e=new URL(t);return e.search="",e.hash="",["80","443"].includes(e.port)&&(e.port=""),e.password&&(e.password="%filtered%"),e.username&&(e.username="%filtered%"),e.toString()}function Ct(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function xc(t){return t.split(/[?#]/,1)[0]}function $c(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function li(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:wt})),version:wt}),t._metadata=s}function pi(t={}){const e=t.client||w();if(!sc()||!e)return{};const n=Ot(),r=zt(n);if(r.getTraceData)return r.getTraceData(t);const s=t.scope||R(),i=t.span||F(),o=i?Qo(i):Mc(s),c=i?mt(i):Vs(e,s),a=Do(c);if(!Ds.test(o))return m.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const f={"sentry-trace":o,baggage:a};if(t.propagateTraceparent){const d=i?ta(i):Dc(s);d&&(f.traceparent=d)}return f}function Mc(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return Fs(e,r,n)}function Dc(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return Hs(e,r,n)}const Fc=100;function Pt(t,e){const n=w(),r=xt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=Fc}=n.getOptions();if(i<=0)return;const c={timestamp:Lt(),...t},a=s?St(()=>s(c,e)):c;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,i))}let Xr;const Hc="FunctionToString",Jr=new WeakMap,Uc=()=>({name:Hc,setupOnce(){Xr=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Wn(this),n=Jr.has(w())&&e!==void 0?e:this;return Xr.apply(n,t)}}catch{}},setup(t){Jr.set(t,!0)}}),Bc=Uc,jc=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],qc="EventFilters",Gc=(t={})=>{let e;return{name:qc,setup(n){const r=n.getOptions();e=Kr(t,r)},processEvent(n,r,s){if(!e){const i=s.getOptions();e=Kr(t,i)}return Vc(n,e)?null:n}}},Wc=(t={})=>({...Gc(t),name:"InboundFilters"});function Kr(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:jc],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Vc(t,e){if(t.type){if(t.type==="transaction"&&Yc(t,e.ignoreTransactions))return h&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 11Event: ${Rt(t)}`),!0}else{if(zc(t,e.ignoreErrors))return h&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 12Event: ${Rt(t)}`),!0;if(Zc(t))return h&&m.warn(`Event dropped due to not having an error message, error type or stacktrace. 13Event: ${Rt(t)}`),!0;if(Xc(t,e.denyUrls))return h&&m.warn(`Event dropped due to being matched by \`denyUrls\` option. 14Event: ${Rt(t)}. 15Url: ${qe(t)}`),!0;if(!Jc(t,e.allowUrls))return h&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option. 16Event: ${Rt(t)}. 17Url: ${qe(t)}`),!0}return!1}function zc(t,e){return e!=null&&e.length?si(t).some(n=>pt(n,e)):!1}function Yc(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?pt(n,e):!1}function Xc(t,e){if(!(e!=null&&e.length))return!1;const n=qe(t);return n?pt(n,e):!1}
17function Jc(t,e){if(!(e!=null&&e.length))return!0;const n=qe(t);return n?pt(n,e):!0}function Kc(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function qe(t){var e,n;try{const r=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(i=>{var o,c,a;return((o=i.mechanism)==null?void 0:o.parent_id)===void 0&&((a=(c=i.stacktrace)==null?void 0:c.frames)==null?void 0:a.length)}),s=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return s?Kc(s):null}catch{return h&&m.error(`Cannot extract url for event ${Rt(t)}`),null}}function Zc(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function Qc(t,e,n,r,s,i){var c;if(!((c=s.exception)!=null&&c.values)||!i||!dt(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Cn(t,e,r,i.originalException,n,s.exception.values,o,0))}function Cn(t,e,n,r,s,i,o,c){if(i.length>=n+1)return i;let a=[...i];if(dt(r[s],Error)){Zr(o,c);const u=t(e,r[s]),f=a.length;Qr(u,s,f,c),a=Cn(t,e,n,r[s],s,[u,...a],u,f)}return Array.isArray(r.errors)&&r.errors.forEach((u,f)=>{if(dt(u,Error)){Zr(o,c);const d=t(e,u),p=a.length;Qr(d,`errors[${f}]`,p,c),a=Cn(t,e,n,u,s,[d,...a],d,p)}}),a}function Zr(t,e){t.mechanism={handled:!0,type:"auto.core.linked_errors",...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function Qr(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function tu(t){const e="console";yt(e,t),Et(e,eu)}function eu(){"console"in I&&Yi.forEach(function(t){t in I.console&&B(I.console,t,function(e){return Fe[t]=e,function(...n){z("console",{args:n,level:t});const s=Fe[t];s==null||s.apply(I.console,n)}})})}function nu(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const ru="Dedupe",su=()=>{let t;return{name:ru,processEvent(e){if(e.type)return e;try{if(ou(e,t))return h&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},iu=su;function ou(t,e){return e?!!(au(t,e)||cu(t,e)):!1}function au(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!gi(t,e)||!mi(t,e))}function cu(t,e){const n=ts(e),r=ts(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!gi(t,e)||!mi(t,e))}function mi(t,e){let n=gr(t),r=gr(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function gi(t,e){let n=t.fingerprint,r=e.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 ts(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function uu(t,e,n,r,s){if(!t.fetchData)return;const{method:i,url:o}=t.fetchData,c=X()&&e(o);if(t.endTimestamp&&c){const l=t.fetchData.__span;if(!l)return;const g=r[l];g&&(fu(g,t),delete r[l]);return}const{spanOrigin:a="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},f=!!F(),d=c&&f?ht(pu(o,i,a)):new gt;if(t.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(t.fetchData.url)){const l=t.args[0],g=t.args[1]||{},y=du(l,g,X()&&f?d:void 0,u);y&&(t.args[1]=g,g.headers=y)}const p=w();if(p){const l={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,l)}return d}function du(t,e,n,r){const s=pi({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,c=s.traceparent;if(!i)return;const a=e.headers||(vs(t)?t.headers:void 0);if(a)if(lu(a)){const u=new Headers(a);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&c&&!u.get("traceparent")&&u.set("traceparent",c),o){const f=u.get("baggage");f?Re(f)||u.set("baggage",`${f},${o}`):u.set("baggage",o)}return u}else if(Array.isArray(a)){const u=[...a];a.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&c&&!a.find(d=>d[0]==="traceparent")&&u.push(["traceparent",c]);const f=a.find(d=>d[0]==="baggage"&&Re(d[1]));return o&&!f&&u.push(["baggage",o]),u}else{const u="sentry-trace"in a?a["sentry-trace"]:void 0,f="traceparent"in a?a.traceparent:void 0,d="baggage"in a?a.baggage:void 0,p=d?Array.isArray(d)?[...d]:[d]:[],l=d&&(Array.isArray(d)?d.find(y=>Re(y)):Re(d));o&&!l&&p.push(o);const g={...a,"sentry-trace":u??i,baggage:p.length>0?p.join(","):void 0};return r&&c&&!f&&(g.traceparent=c),g}else return{...s}}function fu(t,e){var n,r;if(e.response){Os(t,e.response.status);const s=(r=(n=e.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(s){const i=parseInt(s);i>0&&t.setAttribute("http.response_content_length",i)}}else e.error&&t.setStatus({code:x,message:"internal_error"});t.end()}function Re(t){return t.split(",").some(e=>e.trim().startsWith(Yn))}function lu(t){return typeof Headers<"u"&&dt(t,Headers)}function pu(t,e,n){const r=fi(t);return{name:r?`${e} ${Lc(r)}`:e,attributes:mu(t,r,e,n)}}function mu(t,e,n,r){const s={url:t,type:"fetch","http.method":n,[C]:r,[lt]:"http.client"};return e&&(di(e)||(s["http.url"]=e.href,s["server.address"]=e.host),e.search&&(s["http.query"]=e.search),e.hash&&(s["http.fragment"]=e.hash)),s}function hi(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const oe=I;function gu(){return"history"in oe&&!!oe.history}function hu(){if(!("fetch"in oe))return!1;
vendor: 5,713 bytes, line 17
17try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Nn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function _u(){var n;if(typeof EdgeRuntime=="string")return!0;if(!hu())return!1;if(Nn(oe.fetch))return!0;let t=!1;const e=oe.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(t=Nn(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){h&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function _i(t,e){const n="fetch";yt(n,t),Et(n,()=>Si(void 0,e))}function Su(t){const e="fetch-body-resolved";yt(e,t),Et(e,()=>Si(Eu))}function Si(t,e=!1){e&&!_u()||B(I,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=bu(r),c={args:r,fetchData:{method:i,url:o},startTimestamp:O()*1e3,virtualError:s,headers:Tu(r)};return t||z("fetch",{...c}),n.apply(I,r).then(async a=>(t?t(a):z("fetch",{...c,endTimestamp:O()*1e3,response:a}),a),a=>{if(z("fetch",{...c,endTimestamp:O()*1e3,error:a}),jn(a)&&a.stack===void 0&&(a.stack=s.stack,q(a,"framesToPop",1)),a instanceof TypeError&&(a.message==="Failed to fetch"||a.message==="Load failed"||a.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(c.fetchData.url);a.message=`${a.message} (${u.host})`}catch{}throw a})}})}async function yu(t,e){if(t!=null&&t.body){const n=t.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(o),c&&(e(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Eu(t){let e;try{e=t.clone()}catch{return}yu(e,()=>{z("fetch-body-resolved",{endTimestamp:O()*1e3,response:t})})}function Pn(t,e){return!!t&&typeof t=="object"&&!!t[e]}function es(t){return typeof t=="string"?t:t?Pn(t,"url")?t.url:t.toString?t.toString():"":""}function bu(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:es(n),method:Pn(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:es(e),method:Pn(e,"method")?String(e.method).toUpperCase():"GET"}}function Tu(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(vs(e))return new Headers(e.headers)}catch{}}function Iu(){return"npm"}const b=I;let On=0;function yi(){return On>0}function vu(){On++,setTimeout(()=>{On--})}function qt(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{const s=t.__sentry_wrapped__;if(s)return typeof s=="function"?s:t;if(Wn(t))return t}catch{return t}const r=function(...s){try{const i=s.map(o=>qt(o,e));return t.apply(this,i)}catch(i){throw vu(),Je(o=>{o.addEventProcessor(c=>(e.mechanism&&(bn(c,void 0),Ft(c,e.mechanism)),c.extra={...c.extra,arguments:s},c)),tr(i)}),i}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}ws(r,t),q(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function er(){const t=ue(),{referrer:e}=b.document||{},{userAgent:n}=b.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function nr(t,e){const n=rr(t,e),r={type:Cu(e),value:Nu(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ru(t,e,n,r){const s=w(),i=s==null?void 0:s.getOptions().normalizeDepth,o=$u(e),c={__serialized__:zs(e,i)};if(o)return{exception:{values:[nr(t,o)]},extra:c};const a={exception:{values:[{type:Xe(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Lu(e,{isUnhandledRejection:r})}]},extra:c};if(n){const u=rr(t,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function ln(t,e){return{exception:{values:[nr(t,e)]}}}function rr(t,e){const n=e.stacktrace||e.stack||"",r=Au(e),s=ku(e);try{return t(n,r,s)}catch{}return[]}const wu=/Minified React error #\d+;/i;function Au(t){return t&&wu.test(t.message)?1:0}function ku(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Ei(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Cu(t){const e=t==null?void 0:t.name;return!e&&Ei(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Nu(t){const e=t==null?void 0:t.message;return Ei(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Pu(t,e,n,r){const s=(n==null?void 0:n.syntheticException)||void 0,i=sr(t,e,s,r);return Ft(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Ze(i)}function Ou(t,e,n="info",r,s){const i=(r==null?void 0:r.syntheticException)||void 0,o=Ln(t,e,i,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),Ze(o)}function sr(t,e,n,r,s){let i;if(Ts(e)&&e.error)return ln(t,e.error);if(_r(e)||io(e)){const o=e;if("stack"in e)i=ln(t,e);else{const c=o.name||(_r(o)?"DOMError":"DOMException"),a=o.message?`${c}: ${o.message}`:c;i=Ln(t,a,n,r),bn(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return jn(e)?ln(t,e):re(e)||Xe(e)?(i=Ru(t,e,n,s),Ft(i,{synthetic:!0}),i):(i=Ln(t,e,n,r),bn(i,`${e}`),Ft(i,{synthetic:!0}),i)}function Ln(t,e,n,r){const s={};if(r&&n){const i=rr(t,n);i.length&&(s.exception={values:[{value:e,stacktrace:{frames:i}}]}),Ft(s,{synthetic:!0})}
17if(qn(e)){const{__sentry_template_string__:i,__sentry_template_values__:o}=e;return s.logentry={message:i,params:o},s}return s.message=e,s}function Lu(t,{isUnhandledRejection:e}){const n=lo(t),r=e?"promise rejection":"exception";return Ts(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Xe(t)?`Event \`${xu(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function xu(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function $u(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}const Mu=5e3;class Du extends hc{constructor(e){var c;const n=Fu(e),r=b.SENTRY_SDK_SOURCE||Iu();li(n,"browser",["browser"],r),(c=n._metadata)!=null&&c.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o}=this._options;b.document&&(i||o)&&b.document.addEventListener("visibilitychange",()=>{b.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&fn(this))}),o&&(this.on("flush",()=>{fn(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{fn(this)},Mu)})),s&&this.on("beforeSendSession",$c)}eventFromException(e,n){return Pu(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Ou(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,s){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,s)}}function Fu(t){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=b.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const Qe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,S=I,Hu=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",me=(t,e,n,r)=>{let s,i;return o=>{e.value>=0&&(o||r)&&(i=e.value-(s??0),(i||s===void 0)&&(s=e.value,e.delta=i,e.rating=Hu(e.value,n),t(e)))}},Uu=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ge=(t=!0)=>{var n,r;const e=(r=(n=S.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},Jt=()=>{const t=ge();return(t==null?void 0:t.activationStart)??0},he=(t,e=-1)=>{var i,o;const n=ge();let r="navigate";return n&&((i=S.document)!=null&&i.prerendering||Jt()>0?r="prerender":(o=S.document)!=null&&o.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:Uu(),navigationType:r}},pn=new WeakMap;function ir(t,e){return pn.get(t)||pn.set(t,new e),pn.get(t)}class Ge{constructor(){Ge.prototype.__init.call(this),Ge.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){var s;if(e.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),(s=this._onAfterProcessingUnexpectedShift)==null||s.call(this,e)}}const Kt=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{e(s.getEntries())})});return r.observe({type:t,buffered:!0,...n}),r}}catch{}},or=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let Qt=-1;const Bu=()=>{var t,e;return((t=S.document)==null?void 0:t.visibilityState)==="hidden"&&!((e=S.document)!=null&&e.prerendering)?0:1/0},We=t=>{S.document.visibilityState==="hidden"&&Qt>-1&&(Qt=t.type==="visibilitychange"?t.timeStamp:0,qu())},ju=()=>{addEventListener("visibilitychange",We,!0),addEventListener("prerenderingchange",We,!0)},qu=()=>{removeEventListener("visibilitychange",We,!0),removeEventListener("prerenderingchange",We,!0)},ar=()=>{var t;if(S.document&&Qt<0){const e=Jt();Qt=(S.document.prerendering||(t=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>e)[0])==null?void 0:t.startTime)??Bu(),ju()}return{get firstHiddenTime(){return Qt}}},tn=t=>{var e;(e=S.document)!=null&&e.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},Gu=[1800,3e3],Wu=(t,e={})=>{tn(()=>{const n=ar(),r=he("FCP");let s;const o=Kt("paint",c=>{for(const a of c)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<n.firstHiddenTime&&(r.value=Math.max(a.startTime-Jt(),0),r.entries.push(a),s(!0)))});o&&(s=me(t,r,Gu,e.reportAllChanges))})},Vu=[.1,.25],zu=(t,e={})=>{Wu(or(()=>{var c,a;const n=he("CLS",0);let r;const s=ir(e,Ge),i=u=>{for(const f of u)s._processEntry(f);s._sessionValue>
17n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},o=Kt("layout-shift",i);o&&(r=me(t,n,Vu,e.reportAllChanges),(c=S.document)==null||c.addEventListener("visibilitychange",()=>{var u;((u=S.document)==null?void 0:u.visibilityState)==="hidden"&&(i(o.takeRecords()),r(!0))}),(a=S==null?void 0:S.setTimeout)==null||a.call(S,r))}))};let bi=0,mn=1/0,we=0;const Yu=t=>{t.forEach(e=>{e.interactionId&&(mn=Math.min(mn,e.interactionId),we=Math.max(we,e.interactionId),bi=we?(we-mn)/7+1:0)})};let xn;const Ti=()=>xn?bi:performance.interactionCount||0,Xu=()=>{"interactionCount"in performance||xn||(xn=Kt("event",Yu,{type:"event",buffered:!0,durationThreshold:0}))},gn=10;let Ii=0;const Ju=()=>Ti()-Ii;class Ve{constructor(){Ve.prototype.__init.call(this),Ve.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Ii=Ti(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(Ju
17()/50));return this._longestInteractionList[e]}_processEntry(e){var s,i;if((s=this._onBeforeProcessingEntry)==null||s.call(this,e),!(e.interactionId||e.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<gn||e.duration>n._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((o,c)=>c._latency-o._latency),this._longestInteractionList.length>gn){const o=this._longestInteractionList.splice(gn);for(const c of o)this._longestInteractionMap.delete(c.id)}(i=this._onAfterProcessingINPCandidate)==null||i.call(this,r)}}}const cr=t=>{const e=n=>{var r;(n.type==="pagehide"||((r=S.document)==null?void 0:r.visibilityState)==="hidden")&&t(n)};S.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},vi=t=>{var n;const e=S.requestIdleCallback||S.setTimeout;((n=S.document)==null?void 0:n.visibilityState)==="hidden"?t():(t=or(t),e(t),cr(t))},Ku=[200,500],Zu=40,Qu=(t,e={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&tn(()=>{Xu();const n=he("INP");let r;const s=ir(e,Ve),i=c=>{vi(()=>{for(const u of c)s._processEntry(u);const a=s._estimateP98LongestInteraction();a&&a._latency!==n.value&&(n.value=a._latency,n.entries=a.entries,r())})},o=Kt("event",i,{durationThreshold:e.durationThreshold??Zu});r=me(t,n,Ku,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),cr(()=>{i(o.takeRecords()),r(!0)}))})};class td{_processEntry(e){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,e)}}const ed=[2500,4e3],nd=(t,e={})=>{tn(()=>{const n=ar(),r=he("LCP");let s;const i=ir(e,td),o=a=>{e.reportAllChanges||(a=a.slice(-1));for(const u of a)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Jt(),0),r.entries=[u],s())},c=Kt("largest-contentful-paint",o);if(c){s=me(t,r,ed,e.reportAllChanges);const a=or(()=>{o(c.takeRecords()),c.disconnect(),s(!0)});for(const u of["keydown","click","visibilitychange"])S.document&&addEventListener(u,()=>vi(a),{capture:!0,once:!0})}})},rd=[800,1800],$n=t=>{var e,n;(e=S.document)!=null&&e.prerendering?tn(()=>$n(t)):((n=S.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>$n(t),!0):setTimeout(t)},sd=(t,e={})=>{const n=he("TTFB"),r=me(t,n,rd,e.reportAllChanges);$n(()=>{const s=ge();s&&(n.value=Math.max(s.responseStart-Jt(),0),n.entries=[s],r(!0))})},te={},ze={};let Ri,wi,Ai,ki;function Ci(t,e=!1){return en("cls",t,ad,Ri,e)}function Ni(t,e=!1){return en("lcp",t,cd,wi,e)}function id(t){return en("ttfb",t,ud,Ai)}function od(t){return en("inp",t,dd,ki)}function Gt(t,e){return Pi(t,e),ze[t]||(fd(t),ze[t]=!0),Oi(t,e)}function _e(t,e){const n=te[t];if(n!=null&&n.length)for(const r of n)try{r(e)}catch(s){Qe&&m.error(`Error while triggering instrumentation handler. 18Type: ${t} 19Name: ${ut(r)} 20Error:`,s)}}function ad(){return zu(t=>{_e("cls",{metric:t}),Ri=t},{reportAllChanges:!0})}function cd(){return nd(t=>{_e("lcp",{metric:t}),wi=t},{reportAllChanges:!0})}function ud(){return sd(t=>{_e("ttfb",{metric:t}),Ai=t})}function dd(){return Qu(t=>{_e("inp",{metric:t}),ki=t})}function en(t,e,n,r,s=!1){Pi(t,e);let i;return ze[t]||(i=n(),ze[t]=!0),r&&e({metric:r}),Oi(t,e,s?i:void 0)}function fd(t){const e={};t==="event"&&(e.durationThreshold=0),Kt(t,n=>{_e(t,{entries:n})},e)}function Pi(t,e){te[t]=te[t]||[],te[t].push(e)}function Oi(t,e,n){return()=>{n&&n();const r=te[t];if(!r)return;const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}function ld(t){return"duration"in t}function hn(t){return typeof t=="number"&&isFinite(t)}function _t(t,e,n,{...r}){const s=E(t).start_timestamp;return s&&s>e&&typeof t.updateStartTime=="function"&&t.updateStartTime(e),Kn(t,()=>{const i=ht({startTime:e,...r});return i&&i.end(n),i})}function ur(t){var _;const e=w();if(!e)return;const{name:n,transaction:r,attributes:s,startTime:i}=t,{release:o,environment:c,sendDefaultPii:a}=e.getOptions(),u=e.getIntegrationByName("Replay"),f=u==null?void 0:u.getReplayId(),d=R(),p=d.getUser(),l=p!==void 0?p.email||p.id||p.ip_address:void 0;let g;
20try{g=d.getScopeData().contexts.profile.profile_id}catch{}const y={release:o,environment:c,user:l||void 0,profile_id:g||void 0,replay_id:f||void 0,transaction:r,"user_agent.original":(_=S.navigator)==null?void 0:_.userAgent,"client.address":a?"{{auto}}":void 0,...s};return ht({name:n,attributes:y,startTime:i,experimental:{standalone:!0}})}function Se(){return S.addEventListener&&S.performance}function N(t){return t/1e3}function pd(t){let e="unknown",n="unknown",r="";for(const s of t){if(s==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=s}return r===t&&(e=r),{name:e,version:n}}function Li(t){try{return PerformanceObserver.supportedEntryTypes.includes(t)}catch{return!1}}function xi(t,e){let n,r=!1;function s(c){!r&&n&&e(c,n),r=!0}cr(()=>{s("pagehide")});const i=t.on("beforeStartNavigationSpan",(c,a)=>{a!=null&&a.isRedirect||(s("navigation"),i(),o())}),o=t.on("afterStartPageLoadSpan",c=>{n=c.spanContext().spanId,o()})}function md(t){let e=0,n;if(!Li("layout-shift"))return;const r=Ci(({metric:s})=>{const i=s.entries[s.entries.length-1];
20i&&(e=s.value,n=i)},!0);xi(t,(s,i)=>{gd(e,n,i,s),r()})}function gd(t,e,n,r){var u;Qe&&m.log(`Sending CLS span (${t})`);const s=N((G()||0)+((e==null?void 0:e.startTime)||0)),i=R().getScopeData().transactionName,o=e?Q((u=e.sources[0])==null?void 0:u.node):"Layout shift",c={[C]:"auto.http.browser.cls",[lt]:"ui.webvital.cls",[Yt]:(e==null?void 0:e.duration)||0,"sentry.pageload.span_id":n,"sentry.report_event":r};e!=null&&e.sources&&e.sources.forEach((f,d)=>{c[`cls.source.${d+1}`]=Q(f.node)});const a=ur({name:o,transaction:i,attributes:c,startTime:s});a&&(a.addEvent("cls",{[fe]:"",[le]:t}),a.end(s))}function hd(t){let e=0,n;if(!Li("largest-contentful-paint"))return;const r=Ni(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(e=s.value,n=i)},!0);xi(t,(s,i)=>{_d(e,n,i,s),r()})}function _d(t,e,n,r){Qe&&m.log(`Sending LCP span (${t})`);const s=N((G()||0)+((e==null?void 0:e.startTime)||0)),i=R().getScopeData().transactionName,o=e?Q(e.element):"Largest contentful paint",c={[C]:"auto.http.browser.lcp",[lt]:"ui.webvital.lcp",[Yt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};e&&(e.element&&(c["lcp.element"]=Q(e.element)),e.id&&(c["lcp.id"]=e.id),e.url&&(c["lcp.url"]=e.url.trim().slice(0,200)),e.loadTime!=null&&(c["lcp.loadTime"]=e.loadTime),e.renderTime!=null&&(c["lcp.renderTime"]=e.renderTime),e.size!=null&&(c["lcp.size"]=e.size));const a=ur({name:o,transaction:i,attributes:c,startTime:s});a&&(a.addEvent("lcp",{[fe]:"millisecond",[le]:t}),a.end(s))}function V(t=0){return((G()||performance.timeOrigin)+t)/1e3}function $i(t){var n;const e={};if(t.nextHopProtocol!=null){const{name:r,version:s}=pd(t.nextHopProtocol);e["network.protocol.version"]=s,e["network.protocol.name"]=r}return G()||(n=Se())!=null&&n.timeOrigin?{...e,"http.request.redirect_start":V(t.redirectStart),"http.request.redirect_end":V(t.redirectEnd),"http.request.worker_start":V(t.workerStart),"http.request.fetch_start":V(t.fetchStart),"http.request.domain_lookup_start":V(t.domainLookupStart),"http.request.domain_lookup_end":V(t.domainLookupEnd),"http.request.connect_start":V(t.connectStart),"http.request.secure_connection_start":V(t.secureConnectionStart),"http.request.connection_end":V(t.connectEnd),"http.request.request_start":V(t.requestStart),"http.request.response_start":V(t.responseStart),"http.request.response_end":V(t.responseEnd),"http.request.time_to_first_byte":(t.responseStart??0)/1e3}:e}const Sd=2147483647;let ns=0,K={},H,Mt;function yd({recordClsStandaloneSpans:t,recordLcpStandaloneSpans:e,client:n}){const r=Se();if(r&&G()){r.mark&&S.performance.mark("sentry-tracing-init");const s=e?hd(n):vd(),i=Rd(),o=t?md(n):Id();return()=>{s==null||s(),i(),o==null||o()}}return()=>{}}function Ed(){Gt("longtask",({entries:t})=>{const e=F();if(!e)return;const{op:n,start_timestamp:r}=E(e);for(const s of t){const i=N(G()+s.startTime),o=N(s.duration);n==="navigation"&&r&&i<r||_t(e,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[C]:"auto.ui.browser.metrics"}})}})}function bd(){new PerformanceObserver(e=>{const n=F();if(n)for(const r of e.getEntries()){if(!r.scripts[0])continue;const s=N(G()+r.startTime),{start_timestamp:i,op:o}=E(n);if(o==="navigation"&&i&&s<i)continue;const c=N(r.duration),a={[C]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:f,invokerType:d,sourceURL:p,sourceFunctionName:l,sourceCharPosition:g}=u;a["browser.script.invoker"]=f,a["browser.script.invoker_type"]=d,p&&(a["code.filepath"]=p),l&&(a["code.function"]=l),g!==-1&&(a["browser.script.source_char_position"]=g),_t(n,s,s+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0})}function Td(){Gt("event",({entries:t})=>{const e=F();if(e){for(const n of t)if(n.name==="click"){const r=N(G()+n.startTime),s=N(n.duration),i={name:Q(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[C]:"auto.ui.browser.metrics"}},o=Rs(n.target);o&&(i.attributes["ui.component_name"]=o),_t(e,r,r+s,i)}}})}function Id(){return Ci(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(K.cls={value:t.value,unit:""},Mt=e)},!0)}function vd(){return Ni(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(K.lcp={value:t.value,unit:"millisecond"},H=e)},!0)}function Rd(){return id(({metric:t})=>{t.entries[t.entries.length-1]&&(K.ttfb={value:t.value,unit:"millisecond"})})}function wd(t,e){const n=Se(),r=G();if(!(n!=null&&n.getEntries)||!r)return;const s=N(r),i=n.getEntries(),{op:o,start_timestamp:c}=E(t);
20i.slice(ns).forEach(a=>{const u=N(a.startTime),f=N(Math.max(0,a.duration));if(!(o==="navigation"&&c&&s+u<c))switch(a.entryType){case"navigation":{Cd(t,a,s);break}case"mark":case"paint":case"measure":{Ad(t,a,u,f,s,e.ignorePerformanceApiSpans);const d=ar(),p=a.startTime<d.firstHiddenTime;a.name==="first-paint"&&p&&(K.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&p&&(K.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{Od(t,a,a.name,u,f,s,e.ignoreResourceSpans);break}}}),ns=Math.max(i.length-1,0),Ld(t),o==="pageload"&&(Md(K),e.recordClsOnPageloadSpan||delete K.cls,e.recordLcpOnPageloadSpan||delete K.lcp,Object.entries(K).forEach(([a,u])=>{Ra(a,u.value,u.unit)}),t.setAttribute("performance.timeOrigin",s),t.setAttribute("performance.activationStart",Jt()),xd(t,e)),H=void 0,Mt=void 0,K={}}function Ad(t,e,n,r,s,i){if(["mark","measure"].includes(e.entryType)&&pt(e.name,i))return;const o=ge(!1),c=N(o?o.requestStart:0),a=s+Math.max(n,c),u=s+n,f=u+r,d={[C]:"auto.resource.browser.metrics"};a!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a),kd(d,e),a<=f&&_t(t,a,f,{name:e.name,op:e.entryType,attributes:d})}function kd(t,e){try{const n=e.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&ne(s))t[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{t[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(ne(n)){t["sentry.browser.measure.detail"]=n;return}try{t["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Cd(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Ae(t,e,r,n)}),Ae(t,e,"secureConnection",n,"TLS/SSL"),Ae(t,e,"fetch",n,"cache"),Ae(t,e,"domainLookup",n,"DNS"),Pd(t,e,n)}function Ae(t,e,n,r,s=n){const i=Nd(n),o=e[i],c=e[`${n}Start`];!c||!o||_t(t,r+N(c),r+N(o),{op:`browser.${s}`,name:e.name,attributes:{[C]:"auto.ui.browser.metrics",...n==="redirect"&&e.redirectCount!=null?{"http.redirect_count":e.redirectCount}:{}}})}function Nd(t){return t==="secureConnection"?"connectEnd":t==="fetch"?"domainLookupStart":`${t}End`}function Pd(t,e,n){const r=n+N(e.requestStart),s=n+N(e.responseEnd),i=n+N(e.responseStart);e.responseEnd&&(_t(t,r,s,{op:"browser.request",name:e.name,attributes:{[C]:"auto.ui.browser.metrics"}}),_t(t,i,s,{op:"browser.response",name:e.name,attributes:{[C]:"auto.ui.browser.metrics"}}))}function Od(t,e,n,r,s,i,o){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const c=e.initiatorType?`resource.${e.initiatorType}`:"resource.other";if(o!=null&&o.includes(c))return;const a={[C]:"auto.resource.browser.metrics"},u=Ct(n);u.protocol&&(a["url.scheme"]=u.protocol.split(":").pop()),u.host&&(a["server.address"]=u.host),a["url.same_origin"]=n.includes(S.location.origin),$d(e,a,[["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"]]);const f={...a,...$i(e)},d=i+r,p=d+s;_t(t,d,p,{name:n.replace(S.location.origin,""),op:c,attributes:f})}function Ld(t){const e=S.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),hn(n.rtt)&&(K["connection.rtt"]={value:n.rtt,unit:"millisecond"})),hn(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),hn(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}function xd(t,e){H&&e.recordLcpOnPageloadSpan&&(H.element&&t.setAttribute("lcp.element",Q(H.element)),H.id&&t.setAttribute("lcp.id",H.id),H.url&&t.setAttribute("lcp.url",H.url.trim().slice(0,200)),H.loadTime!=null&&t.setAttribute("lcp.loadTime",H.loadTime),H.renderTime!=null&&t.setAttribute("lcp.renderTime",H.renderTime),t.setAttribute("lcp.size",H.size)),Mt!=null&&Mt.sources&&e.recordClsOnPageloadSpan&&Mt.sources.forEac
20h((n,r)=>t.setAttribute(`cls.source.${r+1}`,Q(n.node)))}function $d(t,e,n){n.forEach(([r,s])=>{const i=t[r];i!=null&&(typeof i=="number"&&i<Sd||typeof i=="string")&&(e[s]=i)})}function Md(t){const e=ge(!1);if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Dd(){return Se()&&G()?Gt("element",Fd):()=>{}}const Fd=({entries:t})=>{const e=F(),n=e?D(e):void 0,r=n?E(n).description:R().getScopeData().transactionName;t.forEach(s=>{var l,g;const i=s;if(!i.identifier)return;const o=i.name,c=i.renderTime,a=i.loadTime,[u,f]=a?[N(a),"load-time"]:c?[N(c),"render-time"]:[O(),"entry-emission"],d=o==="image-paint"?N(Math.max(0,(c??0)-(a??0))):0,p={[C]:"auto.ui.browser.elementtiming",[lt]:"ui.elementtiming",[j]:"component","sentry.span_start_time_source":f,"sentry.transaction_name":r,"element.id":i.id,"element.type":((g=(l=i.element)==null?void 0:l.tagName)==null?void 0:g.toLowerCase())||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":a,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":o};Pa({name:`element[${i.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},y=>{y.end(u+d)})})},Hd=1e3;let rs,Mn,Dn;function Ud(t){const e="dom";yt(e,t),Et(e,Bd)}function Bd(){if(!S.document)return;const t=z.bind(null,"dom"),e=ss(t,!0);S.document.addEventListener("click",e,!1),S.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var i,o;const s=(i=S[n])==null?void 0:i.prototype;(o=s==null?void 0:s.hasOwnProperty)!=null&&o.call(s,"addEventListener")&&(B(s,"addEventListener",function(c){return function(a,u,f){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},p=d[a]=d[a]||{refCount:0};if(!p.handler){const l=ss(t);p.handler=l,c.call(this,a,l,f)}p.refCount++}catch{}return c.call(this,a,u,f)}}),B(s,"removeEventListener",function(c){return function(a,u,f){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},p=d[a];p&&(p.refCount--,p.refCount<=0&&(c.call(this,a,p.handler,f),p.handler=void 0,delete d[a]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,a,u,f)}}))})}function jd(t){if(t.type!==Mn)return!1;try{if(!t.target||t.target._sentryId!==Dn)return!1}catch{}return!0}function qd(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function ss(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Gd(n);if(qd(n.type,r))return;q(n,"_sentryCaptured",!0),r&&!r._sentryId&&q(r,"_sentryId",Y());
20const s=n.type==="keypress"?"input":n.type;jd(n)||(t({event:n,name:s,global:e}),Mn=n.type,Dn=r?r._sentryId:void 0),clearTimeout(rs),rs=S.setTimeout(()=>{Dn=void 0,Mn=void 0},Hd)}}function Gd(t){try{return t.target}catch{return null}}let ke;function dr(t){const e="history";yt(e,t),Et(e,Wd)}function Wd(){if(S.addEventListener("popstate",()=>{const e=S.location.href,n=ke;if(ke=e,n===e)return;z("history",{from:n,to:e})}),!gu())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=ke,i=Vd(String(r));if(ke=i,s===i)return e.apply(this,n);z("history",{from:s,to:i})}return e.apply(this,n)}}B(S.history,"pushState",t),B(S.history,"replaceState",t)}function Vd(t){try{return new URL(t,S.location.origin).toString()}catch{return t}}const Me={};function zd(t){const e=Me[t];if(e)return e;let n=S[t];if(Nn(n))return Me[t]=n.bind(S);const r=S.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i!=null&&i[t]&&(n=i[t]),r.head.removeChild(s)}catch(s){Qe&&m.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(Me[t]=n.bind(S))}function Yd(t){Me[t]=void 0}const Dt="__sentry_xhr_v3__";function Mi(t){const e="xhr";yt(e,t),Et(e,Xd)}function Xd(){if(!S.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const s=new Error,i=O()*1e3,o=at(r[0])?r[0].toUpperCase():void 0,c=Jd(r[1]);if(!o||!c)return e.apply(n,r);n[Dt]={method:o,url:c,request_headers:{}},o==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const u=n[Dt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:O()*1e3,startTimestamp:i,xhr:n,virtualError:s};z("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,d){return a(),u.apply(f,d)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,d){const[p,l]=d,g=f[Dt];return g&&at(p)&&at(l)&&(g.request_headers[p.toLowerCase()]=l),u.apply(f,d)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[Dt];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:O()*1e3,xhr:n};return z("xhr",i),e.apply(n,r)}})}function Jd(t){if(at(t))return t;try{return t.toString()}catch{}}const _n=[],De=new Map,Kd=60;function Zd(){if(Se()&&G()){const e=Qd();return()=>{e()}}return()=>{}}const is={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 Qd(){return od(tf)}const tf=({metric:t})=>{if(t.value==null)return;const e=N(t.value);if(e>Kd)return;const n=t.entries.find(g=>g.duration===t.value&&is[g.name]);if(!n)return;const{interactionId:r}=n,s=is[n.name],i=N(G()+n.startTime),o=F(),c=o?D(o):void 0,u=(r!=null?De.get(r):void 0)||c,f=u?E(u).description:R().getScopeData().transactionName,d=Q(n.target),p={[C]:"auto.http.browser.inp",[lt]:`ui.interaction.${s}`,[Yt]:n.duration},l=ur({name:d,transaction:f,attributes:p,startTime:i});l&&(l.addEvent("inp",{[fe]:"millisecond",[le]:t.value}),l.end(i+e))};function ef(){const t=({entries:e})=>{const n=F(),r=n&&D(n);e.forEach(s=>{if(!ld(s)||!r)return;const i=s.interactionId;if(i!=null&&!De.has(i)){if(_n.length>10){const o=_n.shift();De.delete(o)}_n.push(i),De.set(i,r)}})};Gt("event",t),Gt("first-input",t)}function nf(t,e=zd("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const a=await e(t.url,c);return{statusCode:a.status,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")}}}catch(a){throw Yd("fetch"),a}finally{n-=o,r--}}return Pc(t,s)}const rf=30,sf=50;function Fn(t,e,n,r){const s={filename:t,function:e==="<anonymous>"?Nt:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const of=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,af=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,cf=/\((\S*)(?::(\d+))(?::(\d+))\)/,uf=/at (.+?) ?\(data:(.+?),/,df=t=>{const e=t.match(uf);
vendor: 6,289 bytes, line 20
20if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=of.exec(t);if(n){const[,s,i,o]=n;return Fn(s,Nt,+i,+o)}const r=af.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const c=cf.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[i,o]=Di(r[1]||Nt,r[2]);return Fn(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},ff=[rf,df],lf=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,pf=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mf=t=>{const e=lf.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const i=pf.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let r=e[3],s=e[1]||Nt;return[s,r]=Di(s,r),Fn(r,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},gf=[sf,mf],hf=[ff,gf],_f=Ss(...hf),Di=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Nt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},J=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ce=1024,Sf="Breadcrumbs",yf=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Sf,setup(n){e.console&&tu(If(n)),e.dom&&Ud(Tf(n,e.dom)),e.xhr&&Mi(vf(n)),e.fetch&&_i(Rf(n)),e.history&&dr(wf(n)),e.sentry&&n.on("beforeSendEvent",bf(n))}}},Ef=yf;function bf(t){return function(n){w()===t&&Pt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Rt(n)},{event:n})}}function Tf(t,e){return function(r){if(w()!==t)return;let s,i,o=typeof e=="object"?e.serializeAttribute:void 0,c=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;c&&c>Ce&&(J&&m.warn(`\`dom.maxStringLength\` cannot exceed ${Ce}, but a value of ${c} was configured. Sentry will use ${Ce} instead.`),c=Ce),typeof o=="string"&&(o=[o]);try{const u=r.event,f=Af(u)?u.target:u;s=Q(f,{keyAttrs:o,maxStringLength:c}),i=Rs(f)}catch{s="<unknown>"}if(s.length===0)return;const a={category:`ui.${r.name}`,message:s};i&&(a.data={"ui.component_name":i}),Pt(a,{event:r.event,name:r.name,global:r.global})}}function If(t){return function(n){if(w()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:nu(n.level),message:Sr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Sr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Pt(r,{input:n.args,level:n.level})}}function vf(t){return function(n){if(w()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[Dt];if(!r||!s||!i)return;const{method:o,url:c,status_code:a,body:u}=i,f={method:o,url:c,status_code:a},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},p={category:"xhr",data:f,type:"http",level:hi(a)};t.emit("beforeOutgoingRequestBreadcrumb",p,d),Pt(p,d)}}function Rf(t){return function(n){if(w()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",c,o),Pt(c,o)}else{const i=n.response,o={...n.fetchData,status_code:i==null?void 0:i.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i==null||i.status;const c={input:n.args,response:i,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:o,type:"http",level:hi(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,c),Pt(a,c)}}}function wf(t){return function(n){if(w()!==t)return;let r=n.from,s=n.to;const i=Ct(b.location.href);let o=r?Ct(r):void 0;const c=Ct(s);o!=null&&o.path||(o=i),i.protocol===c.protocol&&i.host===c.host&&(s=c.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Pt({category:"navigation",data:{from:r,to:s}})}}function Af(t){return!!t&&!!t.target}const kf=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Cf="BrowserApiErrors",Nf=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:Cf,setupOnce(){e.setTimeout&&B(b,"setTimeout",os),e.setInterval&&B(b,"setInterval",os),e.requestAnimationFrame&&B(b,"requestAnimationFrame",Of),e.XMLHttpRequest&&"XMLHttpRequest"in b&&B(XMLHttpRequest.prototype,"send",Lf);const n=e.eventTarget;n&&(Array.isArray(n)?n:kf).forEach(s=>xf(s,e))}}},Pf=Nf;function os(t){return function(...e){const n=e[0];return e[0]=qt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ut(t)}`}}),t.apply(this,e)}}function Of(t){return function(e){return t.apply(this,[qt(e,{mechanism:{data:{handler:ut(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Lf(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&B(n,s,function(i){const o={mechanism:{data:{handler:ut(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},c=Wn(i);return c&&(o.mechanism.data.handler=ut(c)),qt(i,o)})}),t.apply(this,e)}}function xf(t,e){var s,i;const r=(s=b[t])==null?void 0:s.prototype;(i=r==null?void 0:r.hasOwnProperty)!=null&&i.call(r,"addEventListener")&&(B(r,"addEventListener",function(o){return function(c,a,u){try{$f(a)&&(a.handleEvent=qt(a.handleEvent,{mechanism:{data:{handler:ut(a),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&Mf(this,c,a),o.apply(this,[c,qt(a,{mechanism:{data:{handler:ut(a),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),u])}}),B(r,"removeEventListener",function(o){return function(c,a,u){try{const f=a.__sentry_wrapped__;f&&o.call(this,c,f,u)}catch{}return o.call(this,c,a,u)}}
20))}function $f(t){return typeof t.handleEvent=="function"}function Mf(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const Df=()=>({name:"BrowserSession",setupOnce(){if(typeof b.document>"u"){J&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Br({ignoreDuration:!0}),jr(),dr(({from:t,to:e})=>{t!==void 0&&t!==e&&(Br({ignoreDuration:!0}),jr())})}}),Ff="GlobalHandlers",Hf=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Ff,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Bf(n),as("onerror")),e.onunhandledrejection&&(jf(n),as("onunhandledrejection"))}}},Uf=Hf;function Bf(t){ys(e=>{const{stackParser:n,attachStacktrace:r}=Fi();if(w()!==t||yi())return;const{msg:s,url:i,line:o,column:c,error:a}=e,u=Wf(sr(n,a||s,void 0,r,!1),i,o,c);u.level="error",ti(u,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function jf(t){Es(e=>{const{stackParser:n,attachStacktrace:r}=Fi();if(w()!==t||yi())return;const s=qf(e),i=ne(s)?Gf(s):sr(n,s,void 0,r,!0);i.level="error",ti(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function qf(t){if(ne(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Gf(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Wf(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},c=o.stacktrace=o.stacktrace||{},a=c.frames=c.frames||[],u=r,f=n,d=Vf(e)??ue();return a.length===0&&a.push({colno:u,filename:d,function:Nt,in_app:!0,lineno:f}),t}function as(t){J&&m.log(`Global Handler attached: ${t}`)}function Fi(){const t=w();return(t==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Vf(t){if(!(!at(t)||t.length===0)){if(t.startsWith("data:")){const e=t.match(/^data:([^;]+)/),n=e?e[1]:"text/javascript",r=t.includes("base64,");return`<data:${n}${r?",base64":""}>`}return t.slice(0,1024)}}const zf=()=>({name:"HttpContext",preprocessEvent(t){var r;if(!b.navigator&&!b.location&&!b.document)return;const e=er(),n={...e.headers,...(r=t.request)==null?void 0:r.headers};t.request={...e,...t.request,headers:n}}}),Yf="cause",Xf=5,Jf="LinkedErrors",Kf=(t={})=>{const e=t.limit||Xf,n=t.key||Yf;return{name:Jf,preprocessEvent(r,s,i){const o=i.getOptions();Qc(nr,o.stackParser,n,e,r,s)}}},Zf=Kf;function Qf(){return tl()?(J&&St(()=>{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 tl(){var i;if(typeof b.window>"u")return!1;const t=b;if(t.nw)return!1;const e=t.chrome||t.browser;if(!((i=e==null?void 0:e.runtime)!=null&&i.id))return!1;const n=ue(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(b===b.top&&r.some(o=>n.startsWith(`${o}://`)))}function Hi(t){return[Wc(),Bc(),Pf(),Ef(),Uf(),Zf(),iu(),zf(),Df()]}function el(t={}){const e=!t.skipBrowserExtensionCheck&&Qf(),n={...t,enabled:e?!1:t.enabled,stackParser:eo(t.stackParser||_f),integrations:fc({integrations:t.integrations,defaultIntegrations:t.defaultIntegrations==null?Hi():t.defaultIntegrations}),transport:t.transport||nf};return Tc(Du,n)}const cs=new WeakMap,Sn=new Map,Ui={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function nl(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:c,onRequestSpanStart:a}={...Ui,...e},u=typeof i=="function"?i:l=>!0,f=l=>sl(l,c),d={},p=t.getOptions().propagateTraceparent;n&&(t.addEventProcessor(l=>(l.type==="transaction"&&l.spans&&l.spans.forEach(g=>{if(g.op==="http.client"){const y=Sn.get(g.span_id);y&&(g.timestamp=y/1e3,Sn.delete(g.span_id))}}),l)),s&&Su(l=>{if(l.response){const g=cs.get(l.response);g&&l.endTimestamp&&Sn.set(g,l.endTimestamp)}}),_i(l=>{const g=uu(l,u,f,d,{propagateTraceparent:p});if(l.response&&l.fetchData.__span&&cs.set(l.response,l.fetchData.__span),g){const y=Bi(l.fetchData.url),_=y?Ct(y).host:void 0;g.setAttributes({"http.url":y,"server.address":_}),o&&us(g),a==null||a(g,{headers:l.headers})}})),r&&Mi(l=>{var y;const g=il(l,u,f,d,p);if(g){o&&us(g);let _;try{_=new Headers((y=l.xhr.__sentry_xhr_v3__)==null?void 0:y.request_headers)}catch{}a==null||a(g,{headers:_})}})}function rl(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function us(t){const{url:e}=E(t).data;if(!e||typeof e!="string")return;const n=Gt("resource",({entries:r})=>{r.forEach(s=>{rl(s)&&s.name.endsWith(e)&&(t.setAttributes($i(s)),setTimeout(n))})})}
20function sl(t,e){const n=ue();if(n){let r,s;try{r=new URL(t,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return e?pt(r.toString(),e)||i&&pt(r.pathname,e):i}else{const r=!!t.match(/^\/(?!\/)/);return e?pt(t,e):r}}function il(t,e,n,r,s){const i=t.xhr,o=i==null?void 0:i[Dt];if(!i||i.__sentry_own_request__||!o)return;const{url:c,method:a}=o,u=X()&&e(c);if(t.endTimestamp&&u){const _=i.__sentry_xhr_span_id__;if(!_)return;const U=r[_];U&&o.status_code!==void 0&&(Os(U,o.status_code),U.end(),delete r[_]);return}const f=Bi(c),d=Ct(f||c),p=xc(c),l=!!F(),g=u&&l?ht({name:`${a} ${p}`,attributes:{url:c,type:"xhr","http.method":a,"http.url":f,"server.address":d==null?void 0:d.host,[C]:"auto.http.browser",[lt]:"http.client",...(d==null?void 0:d.search)&&{"http.query":d==null?void 0:d.search},...(d==null?void 0:d.hash)&&{"http.fragment":d==null?void 0:d.hash}}}):new gt;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(c)&&ol(i,X()&&l?g:void 0,s);const y=w();return y&&y.emit("beforeOutgoingRequestSpan",g,t),g}function ol(t,e,n){const{"sentry-trace":r,baggage:s,traceparent:i}=pi({span:e,propagateTraceparent:n});r&&al(t,r,s,i)}function al(t,e,n,r){var i;const s=(i=t.__sentry_xhr_v3__)==null?void 0:i.request_headers;if(!(s!=null&&s["sentry-trace"]||!t.setRequestHeader))try{if(t.setRequestHeader("sentry-trace",e),r&&!(s!=null&&s.traceparent)&&t.setRequestHeader("traceparent",r),n){const o=s==null?void 0:s.baggage;(!o||!cl(o))&&t.setRequestHeader("baggage",n)}}catch{}}function cl(t){return t.split(",").some(e=>e.trim().startsWith("sentry-"))}function Bi(t){try{return new URL(t,b.location.origin).href}catch{return}}function ul(){b.document?b.document.addEventListener("visibilitychange",()=>{const t=F();if(!t)return;const e=D(t);if(b.document.hidden&&e){const n="cancelled",{op:r,status:s}=E(e);J&&m.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||e.setStatus({code:x,message:n}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):J&&m.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const dl=3600,ji="sentry_previous_trace",fl="sentry.previous_trace";function ll(t,{linkPreviousTrace:e,consistentTraceSampling:n}){const r=e==="session-storage";let s=r?gl():void 0;t.on("spanStart",o=>{if(D(o)!==o)return;const c=R().getPropagationContext();s=pl(s,o,c),r&&ml(s)});let i=!0;n&&t.on("beforeSampling",o=>{if(!s)return;const c=R(),a=c.getPropagationContext();if(i&&a.parentSpanId){i=!1;return}c.setPropagationContext({...a,dsc:{...a.dsc,sample_rate:String(s.sampleRate),sampled:String(Hn(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=Hn(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[Ns]:s.sampleRate}})}function pl(t,e,n){const r=E(e);function s(){var c,a;try{return Number((c=n.dsc)==null?void 0:c.sample_rate)??Number((a=r.data)==null?void 0:a[Vn])}catch{return 0}}const i={spanContext:e.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!t)return i;const o=t.spanContext;return o.traceId===r.trace_id?t:(Date.now()/1e3-t.startTimestamp<=dl&&(J&&m.log(`Adding previous_trace ${o} link to span ${{op:r.op,...e.spanContext()}}`),e.addLink({context:o,attributes:{[Co]:"previous_trace"}}),e.setAttribute(fl,`${o.traceId}-${o.spanId}-${Hn(o)?1:0}`)),i)}function ml(t){try{b.sessionStorage.setItem(ji,JSON.stringify(t))}catch(e){J&&m.warn("Could not store previous trace in sessionStorage",e)}}function gl(){var t;try{const e=(t=b.sessionStorage)==null?void 0:t.getItem(ji);return JSON.parse(e)}catch{return}}function Hn(t){return t.traceFlags===1}const hl="BrowserTracing",_l={...xe,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Ui},ds=(t={})=>{const e={name:void 0,source:void 0},n=b.document,{enableInp:r,enableElementTiming:s,enableLongTask:i,enableLongAnimationFrame:o,_experiments:{enableInteractions:c,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:u},beforeStartSpan:f,idleTimeout:d,finalTimeout:p,childSpanTimeout:l,markBackgroun
20dSpan:g,traceFetch:y,traceXHR:_,trackFetchStreamPerformance:U,shouldCreateSpanForRequest:et,enableHTTPTimings:Tt,ignoreResourceSpans:nn,ignorePerformanceApiSpans:rn,instrumentPageLoad:ye,instrumentNavigation:T,detectRedirects:$,linkPreviousTrace:$t,consistentTraceSampling:Ee,enableReportPageLoaded:nt,onRequestSpanStart:It}={..._l,...t};let P,Z,rt;function st(A,L,v=!0){const k=L.op==="pageload",W=L.name,M=f?f(L):L,vt=M.attributes||{};if(W!==M.name&&(vt[j]="custom",M.attributes=vt),!v){const Zt=Lt();ht({...M,startTime:Zt}).end(Zt);return}e.name=M.name,e.source=vt[j];const it=Qs(M,{idleTimeout:d,finalTimeout:p,childSpanTimeout:l,disableAutoFinish:k,beforeSpanEnd:Zt=>{P==null||P(),wd(Zt,{recordClsOnPageloadSpan:!a,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:nn,ignorePerformanceApiSpans:rn}),ls(A,void 0);const lr=R(),zi=lr.getPropagationContext();lr.setPropagationContext({...zi,traceId:it.spanContext().traceId,sampled:bt(it),dsc:mt(Zt)}),k&&(rt=void 0)},trimIdleSpanEndTimestamp:!nt});k&&nt&&(rt=it),ls(A,it);function fr(){n&&["interactive","complete"].includes(n.readyState)&&A.emit("idleSpanEnableAutoFinish",it)}k&&!nt&&n&&(n.addEventListener("readystatechange",()=>{fr()}),fr())}return{name:hl,setup(A){if(sa(),P=yd({recordClsStandaloneSpans:a||!1,recordLcpStandaloneSpans:u||!1,client:A}),r&&Zd(),s&&Dd(),o&&I.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?bd():i&&Ed(),c&&Td(),$&&n){const v=()=>{Z=O()};addEventListener("click",v,{capture:!0}),addEventListener("keydown",v,{capture:!0,passive:!0})}function L(){const v=ae(A);v&&!E(v).timestamp&&(J&&m.log(`[Tracing] Finishing current active span with op: ${E(v).op}`),v.setAttribute(se,"cancelled"),v.end())}A.on("startNavigationSpan",(v,k)=>{if(w()!==A)return;if(k!=null&&k.isRedirect){J&&m.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),st(A,{op:"navigation.redirect",...v},!1);return}Z=void 0,L(),xt().setPropagationContext({traceId:ft(),sampleRand:Math.random(),propagationSpanId:X()?void 0:ct()});const W=R();W.setPropagationContext({traceId:ft(),sampleRand:Math.random(),propagationSpanId:X()?void 0:ct()}),W.setSDKProcessingMetadata({normalizedRequest:void 0}),st(A,{op:"navigation",...v,parentSpan:null,forceTransaction:!0})}),A.on("startPageLoadSpan",(v,k={})=>{if(w()!==A)return;L();const W=k.sentryTrace||fs("sentry-trace"),M=k.baggage||fs("baggage"),vt=Xo(W,M),it=R();it.setPropagationContext(vt),X()||(it.getPropagationContext().propagationSpanId=ct()),it.setSDKProcessingMetadata({normalizedRequest:er()}),st(A,{op:"pageload",...v})}),A.on("endPageloadSpan",()=>{nt&&rt&&(rt.setAttribute(se,"reportPageLoaded"),rt.end())})},afterAllSetup(A){let L=ue();if($t!=="off"&&ll(A,{linkPreviousTrace:$t,consistentTraceSampling:Ee}),b.location){if(ye){const v=G();Sl(A,{name:b.location.pathname,startTime:v?v/1e3:void 0,attributes:{[j]:"url",[C]:"auto.pageload.browser"}})}T&&dr(({to:v,from:k})=>{if(k===void 0&&(L==null?void 0:L.indexOf(v))!==-1){L=void 0;return}L=void 0;const W=fi(v),M=ae(A),vt=M&&$&&El(M,Z);qi(A,{name:(W==null?void 0:W.pathname)||b.location.pathname,attributes:{[j]:"url",[C]:"auto.navigation.browser"}},{url:v,isRedirect:vt})})}g&&ul(),c&&yl(A,d,p,l,e),r&&ef(),nl(A,{traceFetch:y,traceXHR:_,trackFetchStreamPerformance:U,tracePropagationTargets:A.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:et,enableHTTPTimings:Tt,onRequestSpanStart:It})}}};function Sl(t,e,n){t.emit("startPageLoadSpan",e,n),R().setTransactionName(e.name);const r=ae(t);return r&&t.emit("afterStartPageLoadSpan",r),r}function qi(t,e,n){const{url:r,isRedirect:s}=n||{};t.emit("beforeStartNavigationSpan",e,{isRedirect:s}),t.emit("startNavigationSpan",e,{isRedirect:s});const i=R();return i.setTransactionName(e.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...er(),url:r}}),ae(t)}function fs(t){const e=b.document,n=e==null?void 0:e.querySelector(`meta[name=${t}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function yl(t,e,n,r,s){const i=b.document;let o;const c=()=>{const a="ui.action.click",u=ae(t);if(u){const f=E(u).op;
20if(["navigation","pageload"].includes(f)){J&&m.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(se,"interactionInterrupted"),o.end(),o=void 0),!s.name){J&&m.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=Qs({name:s.name,op:a,attributes:{[j]:s.source||"url"}},{idleTimeout:e,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",c,{capture:!0})}const Gi="_sentry_idleSpan";function ae(t){return t[Gi]}function ls(t,e){q(t,Gi,e)}const ps=1.5;function El(t,e){const n=E(t),r=Lt(),s=n.start_timestamp;return!(r-s>ps||e&&r-e<=ps)}const Wi=["activate","mount"],Vi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bl=/(?:^|[-_])(\w)/g,Tl=t=>t.replace(bl,e=>e.toUpperCase()).replace(/[-_]/g,""),Il="<Root>",yn="<Anonymous>",vl=(t,e)=>t.repeat(e),ee=(t,e)=>{if(!t)return yn;if(t.$root===t)return Il;if(!t.$options)return yn;const n=t.$options;let r=n.name||n._componentTag||n.__name;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${Tl(r)}>`:yn)+(s&&e!==!1?` at ${s}`:"")},Rl=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let n=0;for(;t;){if(e.length>0){const s=e[e.length-1];if(s.constructor===t.constructor){n++,t=t.$parent;continue}else n>0&&(e[e.length-1]=[s,n],n=0)}e.push(t),t=t.$parent}return` 21 22found in 23 24${e.map((s,i)=>`${(i===0?"---> ":vl(" ",5+i*2))+(Array.isArray(s)?`${ee(s[0])}... (${s[1]} recursive calls)`:ee(s))}`).join(` 25`)}`}return` 26 27(found in ${ee(t)})`},wl=(t,e)=>{const{errorHandler:n}=t.config;t.config.errorHandler=(r,s,i)=>{var u;const o=ee(s,!1),c=s?Rl(s):"",a={componentName:o,lifecycleHook:i,trace:c};if(e.attachProps&&s&&((u=s.$options)!=null&&u.propsData?a.propsData=s.$options.propsData:s.$props&&(a.propsData=s.$props)),setTimeout(()=>{tr(r,{captureContext:{contexts:{vue:a}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&t.config.errorHandler)n.call(t,r,s,i);else throw r}},ms="ui.vue",Al={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function En(t,e,n){t.$_sentryRootComponentSpanTimer&&clearTimeout(t.$_sentryRootComponentSpanTimer),t.$_sentryRootComponentSpanTimer=setTimeout(()=>{var r;(r=t.$root)!=null&&r.$_sentryRootComponentSpan&&(t.$root.$_sentryRootComponentSpan.end(e),t.$root.$_sentryRootComponentSpan=void 0)},n)}function kl(t,e){function n(s){return s.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return t.some(s=>n(e)===n(s))}const Cl=(t={})=>{const e=(t.hooks||[]).concat(Wi).filter((s,i,o)=>o.indexOf(s)===i),n={},r=t.timeout||2e3;for(const s of e){const i=Al[s];if(!i){Vi&&m.warn(`Unknown hook: ${s}`);continue}for(const o of i)n[o]=function(){var p;const c=this.$root===this;c&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||ht({name:"Application Render",op:`${ms}.render`,attributes:{[C]:"auto.ui.vue"},onlyIfParent:!0}),En(this,O(),r));const a=ee(this,!1);if(!(c||(Array.isArray(t.trackComponents)?kl(t.trackComponents,a):t.trackComponents))){En(this,O(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const f=o===i[0],d=((p=this.$root)==null?void 0:p.$_sentryRootComponentSpan)||F();if(f){if(d){const l=this.$_sentryComponentSpans[s];l&&l.end(),this.$_sentryComponentSpans[s]=ht({name:`Vue ${a}`,op:`${ms}.${s}`,attributes:{[C]:"auto.ui.vue"},onlyIfParent:!0})}}else{const l=this.$_sentryComponentSpans[s];if(!l)return;l.end(),En(this,O(),r)}}}return n},Nl=I,Pl={Vue:Nl.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:Wi,timeout:2e3,trackComponents:!1}},Ol="Vue",$l=(t={})=>({name:Ol,setup(e){const n={...Pl,...e.getOptions(),...t};if(!n.Vue&&!n.app){St(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}
27n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(s=>gs(s,n)):n.Vue&&gs(n.Vue,n)}}),gs=(t,e)=>{var n;Vi&&((n=t._instance)==null?void 0:n.isMounted)===!0&&St(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),e.attachErrorHandler&&wl(t,e),X(e)&&t.mixin(Cl(e.tracingOptions))};function Ll(t,e,n){let r=!1;t.onError(s=>tr(s,{mechanism:{handled:!1}})),t.beforeEach((s,i,o)=>{const c=r?void 0:xl(),a={};for(const d of Object.keys(s.params))a[`url.path.parameter.${d}`]=s.params[d],a[`params.${d}`]=s.params[d];for(const d of Object.keys(s.query)){const p=s.query[d];p&&(a[`query.${d}`]=p)}let u=s.path,f="url";if(s.name&&e.routeLabel!=="path")u=s.name.toString(),f="custom";else if(s.matched.length>0){const d=s.matched.length-1;u=s.matched[d].path,f="route"}R().setTransactionName(u),e.instrumentPageLoad&&c&&(E(c).data[j]!=="custom"&&(c.updateName(u),c.setAttribute(j,f)),c.setAttributes({...a,[C]:"auto.pageload.vue"}),r=!0),e.instrumentNavigation&&!c&&n({name:u,op:"navigation",attributes:{...a,[C]:"auto.navigation.vue",[j]:f}}),o&&o()})}function xl(){const t=F(),e=t&&D(t);return e&&E(e).op==="pageload"?e:void 0}function Ml(t={}){if(!t.router)return ds(t);const e=ds({...t,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=t;return{...e,afterAllSetup(o){e.afterAllSetup(o),Ll(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},a=>{qi(o,a)})}}}function Dl(t){const e={defaultIntegrations:[...Hi()],...t};return li(e,"nuxt",["nuxt","vue"]),el(e)}export{I as G,Ml as b,tr as c,w as g,Dl as i,$l as v};
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.