1const S=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,g=globalThis,P="10.30.0";function O(){return it(g),g}function it(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||P,e[P]=e[P]||{}}function B(t,e,n=g){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[P]=r[P]||{};return s[t]||(s[t]=e())}const zn=["debug","info","warn","error","log","assert","trace"],re="Sentry Logger ",dt={};function ot(t){if(!("console"in g))return t();const e=g.console,n={},r=Object.keys(dt);r.forEach(s=>{const i=dt[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function se(){ct().enabled=!0}function ie(){ct().enabled=!1}function Mt(){return ct().enabled}function oe(...t){at("log",...t)}function ae(...t){at("warn",...t)}function ce(...t){at("error",...t)}function at(t,...e){S&&Mt()&&ot(()=>{g.console[t](`${re}[${t}]:`,...e)})}function ct(){return S?B("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const _={enable:se,disable:ie,isEnabled:Mt,log:oe,warn:ae,error:ce},Ot=50,ue="?",lt=/\(error: (.*)\)/,_t=/captureMessage|captureException/;function fe(...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 a=r;a<o.length;a++){let c=o[a];c.length>1024&&(c=c.slice(0,1024));const u=lt.test(c)?c.replace(lt,"$1"):c;if(!u.match(/\S*Error: /)){for(const p of e){const f=p(u);if(f){i.push(f);break}}if(i.length>=Ot+s)break}}return pe(i.slice(s))}}function Kn(t){return Array.isArray(t)?fe(...t):t}function pe(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(U(e).function||"")&&e.pop(),e.reverse(),_t.test(U(e).function||"")&&(e.pop(),_t.test(U(e).function||"")&&e.pop()),e.slice(0,Ot).map(n=>({...n,filename:n.filename||U(e).filename,function:n.function||ue}))}function U(t){return t[t.length-1]||{}}const W="<anonymous>";function de(t){try{return!t||typeof t!="function"?W:t.name||W}catch{return W}}function Yn(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}}}function kt(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const Pt=Object.prototype.toString;function le(t){switch(Pt.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return F(t,Error)}}function k(t,e){return Pt.call(t)===`[object ${e}]`}function Wn(t){return k(t,"ErrorEvent")}function Xn(t){return k(t,"DOMError")}function Jn(t){return k(t,"DOMException")}function j(t){return k(t,"String")}function _e(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function qn(t){return t===null||_e(t)||typeof t!="object"&&typeof t!="function"}function wt(t){return k(t,"Object")}function ge(t){return typeof Event<"u"&&F(t,Event)}function he(t){return typeof Element<"u"&&F(t,Element)}function me(t){return k(t,"RegExp")}function G(t){return!!(t?.then&&typeof t.then=="function")}function Se(t){return wt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function F(t,e){try{return t instanceof e}catch{return!1}}function Lt(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function Qn(t){return typeof Request<"u"&&F(t,Request)}const ut=g,ye=80;function Ee(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const p=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||ye;for(;n&&i++<r&&(u=be(n,p),!(u==="html"||i>1&&o+s.length*c+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function be(t,e){const n=t,r=[];if(!n?.tagName)return"";if(ut.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?.length?e.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&j(o)){const a=o.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const a=n.getAttribute(o);a&&r.push(`[${o}="${a}"]`)}return r.join("")}function Zn(){try{return ut.document.location.href}catch{return""}}function tr(t){if(!ut.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 er(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&Te(s,r);try{t[e]=s}catch{S&&_.log(`Failed to replace method "${e}" in object`,t)}}function C(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{S&&_.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Te(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,C(t,"__sentry_original__",e)}catch{}}function nr(t){return t.__sentry_original__}function Ft(t){if(le(t))return{message:t.message,name:t.name,stack:t.stack,...ht(t)};if(ge(t)){const e={type:t.type,target:gt(t.target),currentTarget:gt(t.currentTarget),...ht(t)};return typeof CustomEvent<"u"&&F(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function gt(t){try{return he(t)?Ee(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function ht(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 rr(t){const e=Object.keys(Ft(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}function Z(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function X(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let s=Math.max(e-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function sr(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{Lt(s)?n.push(kt(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Ie(t,e,n=!1){return j(t)?me(e)?e.test(t):j(e)?n?t===e:t.includes(e):!1:!1}function ir(t,e=[],n=!1){return e.some(r=>Ie(t,r,n))}function Ae(){const t=g;return t.crypto||t.msCrypto}let J;function Ce(){return Math.random()*16}function A(t=Ae()){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return J||(J="10000000100040008000"+1e11),J.replace(/[018]/g,e=>(e^(Ce()&15)>>e/4).toString(16))}function $t(t){return t.exception?.values?.[0]}function or(t){const{message:e,event_id:n}=t;if(e)return e;const r=$t(t);return r?r.type&&r.value?`${r.type}: ${r.value}
2`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ar(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 Ne(t,e){const n=$t(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?.data,...e.data};n.mechanism.data=i}}function cr(t,e,n=5){if(e.lineno===void 0)return;const r=t.length,s=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,s-n),s).map(o=>X(o,0));const i=Math.min(r-1,s);e.context_line=X(t[i],e.colno||0),e.post_context=t.slice(Math.min(s+1,r),s+1+n).map(o=>X(o,0))}function ur(t){if(xe(t))return!0;try{C(t,"__sentry_captured__",!0)}catch{}return!1}function xe(t){try{return t.__sentry_captured__}catch{}}const Ut=1e3;function ft(){return Date.now()/Ut}function Re(){const{performance:t}=g;if(!t?.now||!t.timeOrigin)return ft;const e=t.timeOrigin;return()=>(e+t.now())/Ut}let mt;function pt(){return(mt??(mt=Re()))()}let q;function De(){const{performance:t}=g;if(!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=t.timing?.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):e,u=c<e;return i||u?s<=c?[t.timeOrigin,"timeOrigin"]:[o,"navigationStart"]:[r,"dateNow"]}function fr(){return q||(q=De()),q[0]}function Me(t){const e=pt(),n={sid:A(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ke(n)};return t&&H(n,t),n}function H(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||pt(),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:A()),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 Oe(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),H(t,n)}function ke(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 V(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]=V(r[s],e[s],n-1));return r}function w(){return A()}function z(){return A().substring(16)}const tt="_sentrySpan";function St(t,e){e?C(t,tt,e):delete t[tt]}function et(t){return t[tt]}const Pe=100;class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:w(),sampleRand:Math.random()}}clone(){const e=new b;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,St(e,et(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&&H(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.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,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 b?n.getScopeData():wt(n)?e:void 0,{tags:s,attributes:i,extra:o,user:a,contexts:c,level:u,fingerprint:p=[],propagationContext:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),p.length&&(this._fingerprint=p),f&&(this._propagationContext=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,St(this,void 0),this._attachments=[],this.setPropagationContext({traceId:w(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Pe;if(r<=0)return this;const s={timestamp:ft(),...e,message:e.message?Z(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:et(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=V(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||A();if(!this._client)return S&&_.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?.event_id||A();if(!this._client)return S&&_.warn("No client configured on scope - will not capture message!"),s;const i=r?.syntheticException??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?.event_id||A();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(S&&_.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),this._notifyingListeners=!1)}}function we(){return B("defaultCurrentScope",()=>new b)}function Le(){return B("defaultIsolationScope",()=>new b)}class Fe{constructor(e,n){let r;e?r=e:r=new b;let s;n?s=n:s=new b,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 G(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 M(){const t=O(),e=it(t);return e.stack=e.stack||new Fe(we(),Le())}function $e(t){return M().withScope(t)}function Ue(t,e){const n=M();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function yt(t){return M().withScope(()=>t(M().getIsolationScope()))}function ve(){return{withIsolationScope:yt,withScope:$e,withSetScope:Ue,withSetIsolationScope:(t,e)=>yt(e),getCurrentScope:()=>M().getScope(),getIsolationScope:()=>M().getIsolationScope()}}function $(t){const e=it(t);return e.acs?e.acs:ve()}function R(){const t=O();return $(t).getCurrentScope()}function y(){const t=O();return $(t).getIsolationScope()}function je(){return B("globalScope",()=>new b)}function pr(...t){const e=O(),n=$(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function dr(...t){const e=O(),n=$(e);if(t.length===2){const[r,s]=t;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(t[0])}function D(){return R().getClient()}function lr(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||z()};return r&&(i.parent_span_id=r),i}const vt="sentry.source",Be="sentry.sample_rate",Ge="sentry.previous_trace_sample_rate",He="sentry.op",Ve="sentry.origin",_r="sentry.idle_span_finish_reason",gr="sentry.measurement_unit",hr="sentry.measurement_value",ze="sentry.custom_span_name",mr="sentry.profile_id",Sr="sentry.exclusive_time",yr="http.request.method",Er="url.full",br="sentry.link.type",Ke=0,jt=1,m=2;function Ye(t){if(t<400&&t>=100)return{code:jt};if(t>=400&&t<500)switch(t){case 401:return{code:m,message:"unauthenticated"};case 403:return{code:m,message:"permission_denied"};case 404:return{code:m,message:"not_found"};case 409:return{code:m,message:"already_exists"};case 413:return{code:m,message:"failed_precondition"};case 429:return{code:m,message:"resource_exhausted"};case 499:return{code:m,message:"cancelled"};default:return{code:m,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:m,message:"unimplemented"};case 503:return{code:m,message:"unavailable"};case 504:return{code:m,message:"deadline_exceeded"};default:return{code:m,message:"internal_error"}}return{code:m,message:"internal_error"}}function Tr(t,e){t.setAttribute("http.response.status_code",e);const n=Ye(e);n.message!=="unknown_error"&&t.setStatus(n)}const Bt="_sentryScope",Gt="_sentryIsolationScope";function We(t){try{const e=g.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function Xe(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function Ir(t,e,n){t&&(C(t,Gt,We(n)),C(t,Bt,e))}function Ht(t){const e=t;return{scope:e[Bt],isolationScope:Xe(e[Gt])}}const Vt="sentry-",Je=/^sentry-/,qe=8192;function zt(t){const e=Ze(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,i])=>{if(s.match(Je)){const o=s.slice(Vt.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Qe(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${Vt}${r}`]=s),n),{});return tn(e)}function Ze(t){if(!(!t||!j(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Et(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):Et(t)}function Et(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),s=e.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function tn(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>qe?(S&&_.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const en=/^o(\d+)\./,nn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function rn(t){return t==="http"||t==="https"}function Ar(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function sn(t){const e=nn.exec(t);if(!e){ot(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i="",o="",a=""]=e.slice(1);let c="",u=a;const p=u.split("/");if(p.length>1&&(c=p.slice(0,-1).join("/"),u=p.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return Kt({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Kt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function on(t){if(!S)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(_.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?rn(r)?e&&isNaN(parseInt(e,10))?(_.error(`Invalid Sentry Dsn: Invalid port ${e}
2`),!1):!0:(_.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function an(t){return t.match(en)?.[1]}function Yt(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=an(n)),r}function Cr(t){const e=typeof t=="string"?sn(t):Kt(t);if(!(!e||!on(e)))return e}function bt(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 cn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function un(t){if(!t)return;const e=t.match(cn);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 Nr(t,e){const n=un(t),r=zt(e);if(!n?.traceId)return{traceId:w(),sampleRand:Math.random()};const s=dn(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:a}=n;return{traceId:i,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:s}}function fn(t=w(),e=z(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function pn(t=w(),e=z(),n){return`00-${t}-${e}-${n?"01":"00"}`}function dn(t,e){const n=bt(e?.sample_rand);if(n!==void 0)return n;const r=bt(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}function xr(t,e){const n=Yt(t);return e&&n&&e!==n?(_.log(`Won't continue trace because org IDs don't match (incoming baggage: ${e}, SDK options: ${n})`),!1):(t.getOptions().strictTraceContinuation||!1)&&(e&&!n||!e&&n)?(_.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1):!0}const Rr=0,Wt=1;let Tt=!1;function Dr(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a,links:c}=K(t);return{parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:a,links:c}}function ln(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:K(t).parent_span_id,i=Ht(t).scope,o=r?i?.getPropagationContext().propagationSpanId||z():e;return{parent_span_id:s,span_id:o,trace_id:n}}function Mr(t){const{traceId:e,spanId:n}=t.spanContext(),r=Y(t);return fn(e,n,r)}function Or(t){const{traceId:e,spanId:n}=t.spanContext(),r=Y(t);return pn(e,n,r)}function _n(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===Wt,attributes:i,...s}))}function It(t){return typeof t=="number"?At(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?At(t.getTime()):pt()}function At(t){return t>9999999999?t/1e3:t}function K(t){if(hn(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(gn(t)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=t,u="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:It(s),timestamp:It(o)||void 0,status:mn(a),op:r[He],origin:r[Ve],links:_n(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function gn(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function hn(t){return typeof t.getSpanJSON=="function"}function Y(t){const{traceFlags:e}=t.spanContext();return e===Wt}function mn(t){if(!(!t||t.code===Ke))return t.code===jt?"ok":t.message||"internal_error"}const x="_sentryChildSpans",nt="_sentryRootSpan";function kr(t,e){const n=t[nt]||t;C(e,nt,n),t[x]?t[x].add(e):C(t,x,new Set([e]))}function Pr(t,e){t[x]&&t[x].delete(e)}function wr(t){const e=new Set;function n(r){if(!e.has(r)&&Y(r)){e.add(r);const s=r[x]?Array.from(r[x]):[];for(const i of s)n(i)}}return n(t),Array.from(e)}function Xt(t){return t[nt]||t}function Lr(){const t=O(),e=$(t);return e.getActiveSpan?e.getActiveSpan():et(R())}function Fr(){Tt||(ot(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Tt=!0)}function $r(t,e){t.updateName(e),t.setAttributes({[vt]:"custom",[ze]:e})}function Sn(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||D()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const Jt="production",qt="_frozenDsc";function Ur(t,e){C(t,qt,e)}function Qt(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||Jt,release:n.release,public_key:r,trace_id:t,org_id:Yt(e)};return e.emit("createDsc",s),s}function vr(t,e){const n=e.getPropagationContext();return n.dsc||Qt(n.traceId,t)}function Zt(t){const e=D();if(!e)return{};const n=Xt(t),r=K(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s[Be]??s[Ge];
vendor: 5,740 bytes, line 2
2function a(h){return(typeof o=="number"||typeof o=="string")&&(h.sample_rate=`${o}`),h}const c=n[qt];if(c)return a(c);const u=i?.get("sentry.dsc"),p=u&&zt(u);if(p)return a(p);const f=Qt(t.spanContext().traceId,e),d=s[vt],l=r.description;return d!=="url"&&l&&(f.transaction=l),Sn()&&(f.sampled=String(Y(n)),f.sample_rand=i?.get("sentry.sample_rand")??Ht(n).scope?.getPropagationContext().sampleRand.toString()),a(f),e.emit("createDsc",f,n),f}function jr(t){const e=Zt(t);return Qe(e)}function I(t,e=100,n=1/0){try{return rt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function yn(t,e=3,n=100*1024){const r=I(t,e);return In(r)>n?yn(t,e-1,n):r}function rt(t,e,n=1/0,r=1/0,s=An()){const[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=En(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const l=u.toJSON();return rt("",l,c-1,r,s)}catch{}const p=Array.isArray(e)?[]:{};let f=0;const d=Ft(e);for(const l in d){if(!Object.prototype.hasOwnProperty.call(d,l))continue;if(f>=r){p[l]="[MaxProperties ~]";break}const h=d[l];p[l]=rt(l,h,c-1,r,s),f++}return o(e),p}function En(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(Lt(e))return kt(e);if(Se(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${de(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=bn(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function bn(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function Tn(t){return~-encodeURI(t).split(/%..|./).length}function In(t){return Tn(JSON.stringify(t))}function An(){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]}const Q=0,Ct=1,Nt=2;function Cn(t){return new L(e=>{e(t)})}function Nn(t){return new L((e,n)=>{n(t)})}class L{constructor(e){this._state=Q,this._handlers=[],this._runExecutor(e)}then(e,n){return new L((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 L((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===Q)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Ct&&n[1](this._value),this._state===Nt&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(i,o)=>{if(this._state===Q){if(G(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Ct,i)},s=i=>{n(Nt,i)};try{e(r,s)}catch(i){s(i)}}}function xn(t,e,n,r=0){try{const s=st(e,n,t,r);return G(s)?s:Cn(s)}catch(s){return Nn(s)}}function st(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return S&&i===null&&_.log(`Event processor "${s.id||"?"}" dropped event`),G(i)?i.then(o=>st(o,e,n,r+1)):st(i,e,n,r+1)}function Rn(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;Dn(t,e),r&&kn(t,r),Pn(t,n),Mn(t,s),On(t,i)}function xt(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:p,attachments:f,propagationContext:d,transactionName:l,span:h}=e;v(t,"extra",n),v(t,"tags",r),v(t,"user",s),v(t,"contexts",i),t.sdkProcessingMetadata=V(t.sdkProcessingMetadata,a,2),o&&(t.level=o),l&&(t.transactionName=l),h&&(t.span=h),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function v(t,e,n){t[e]=V(t[e],n,1)}function Dn(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=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),a&&t.type!=="transaction"&&(t.transaction=a)}function Mn(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function On(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function kn(t,e){t.contexts={trace:ln(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Zt(e),...t.sdkProcessingMetadata};const n=Xt(e),r=K(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Pn(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 N,Rt,Dt,T;function te(t){const e=g._sentryDebugIds,n=g._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(T&&r.length===Rt&&s.length===Dt)return T;Rt=r.length,Dt=s.length,T={},N||(N={});const i=(o,a)=>{for(const c of o){const u=a[c],p=N?.[c];if(p&&T&&u)T[p[0]]=u,N&&(N[c]=[p[0],u]);else if(u){const f=t(c);for(let d=f.length-1;d>=0;d--){const h=f[d]?.filename;
2if(h&&T&&N){T[h]=u,N[c]=[h,u];break}}}}};return e&&i(r,e),n&&i(s,n),T}function Br(t,e){const n=te(t);if(!n)return[];const r=[];for(const s of e)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function Gr(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||A(),timestamp:e.timestamp||ft()},u=n.integrations||t.integrations.map(E=>E.name);wn(c,t),$n(c,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&Ln(c,t.stackParser);const p=vn(r,n.captureContext);n.mechanism&&Ne(c,n.mechanism);const f=s?s.getEventProcessors():[],d=je().getScopeData();if(i){const E=i.getScopeData();xt(d,E)}if(p){const E=p.getScopeData();xt(d,E)}const l=[...n.attachments||[],...d.attachments];l.length&&(n.attachments=l),Rn(c,d);const h=[...f,...d.eventProcessors];return xn(h,c,n).then(E=>(E&&Fn(E),typeof o=="number"&&o>0?Un(E,o,a):E))}function wn(t,e){const{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||Jt,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const o=t.request;o?.url&&i&&(o.url=Z(o.url,i)),i&&t.exception?.values?.forEach(a=>{a.value&&(a.value=Z(a.value,i))})}function Ln(t,e){const n=te(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function Fn(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.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(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function $n(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Un(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:I(s.data,e,n)}}))},...t.user&&{user:I(t.user,e,n)},...t.contexts&&{contexts:I(t.contexts,e,n)},...t.extra&&{extra:I(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=I(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:I(s.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=I(t.contexts.flags,3,n)),r}function vn(t,e){if(!e)return t;const n=t?t.clone():new b;return n.update(e),n}function jn(t){if(t)return Bn(t)?{captureContext:t}:Hn(t)?{captureContext:t}:t}function Bn(t){return t instanceof b||typeof t=="function"}const Gn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Hn(t){return Object.keys(t).some(e=>Gn.includes(e))}function Hr(t,e){return R().captureException(t,jn(e))}function Vr(t,e){const n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return R().captureMessage(t,n,r)}function zr(t,e){return R().captureEvent(t,e)}function Kr(t,e){y().setContext(t,e)}function Yr(t){y().setExtras(t)}function Wr(t,e){y().setExtra(t,e)}function Xr(t){y().setTags(t)}function Jr(t,e){y().setTag(t,e)}function qr(t){y().setUser(t)}function Qr(){return y().lastEventId()}async function Zr(t){const e=D();return e?e.flush(t):(S&&_.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function ts(t){const e=D();return e?e.close(t):(S&&_.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function es(){return!!D()}function ns(){const t=D();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function rs(t){y().addEventProcessor(t)}function ss(t){const e=y(),n=R(),{userAgent:r}=g.navigator||{},s=Me({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),i=e.getSession();return i?.status==="ok"&&H(i,{status:"exited"}),ee(),e.setSession(s),s}function ee(){const t=y(),n=R().getSession()||t.getSession();n&&Oe(n),ne(),t.setSession()}function ne(){const t=y(),e=D(),n=t.getSession();n&&e&&e.captureSession(n)}function is(t=!1){if(t){ee();return}ne()}export{et as $,Sr as A,_n as B,D as C,S as D,Ht as E,R as F,g as G,wr as H,ze as I,Dr as J,G as K,Sn as L,bt as M,pr as N,O,$ as P,zt as Q,xr as R,m as S,Rr as T,Nr as U,Ur as V,y as W,kr as X,Ir as Y,Be as Z,St as _,Lr as a,ss as a$,_r as a0,jt as a1,Pr as a2,Cr as a3,ln as a4,lr as a5,vr as a6,_e as a7,ot as a8,je as a9,zn as aA,er as aB,dt as aC,Ne as aD,sr as aE,Yn as aF,le as aG,C as aH,Z as aI,Tr as aJ,Qn as aK,Vt as aL,Zn as aM,Te as aN,ar as aO,Wn as aP,Xn as aQ,Jn as aR,ge as aS,yn as aT,rr as aU,fr as aV,Ee as aW,tr as aX,j as aY,fe as aZ,ue as a_,xt as aa,B as ab,Nn as ac,Cn as ad,ft as ae,A as af,ur as ag,H as ah,Gr as ai,wt as aj,V as ak,qn as al,Jt as am,sn as an,P as ao,ns as ap,Mr as aq,Qe as ar,cn as as,Or as at,fn as au,pn as av,nr as aw,or as ax,ir as ay,F as az,Xt as b,is as b0,zr as b1,Kn as b2,Qr as b3,Vr as b4,cr as b5,Er as b6,yr as b7,rs as b8,Kr as b9,Ge as ba,br as bb,Br as bc,b as bd,ts as be,ee as bf,Zr as bg,Ye as bh,es as bi,Wr as bj,Yr as bk,Jr as bl,Xr as bm,jr as bn,$r as bo,dr as bp,Hr as c,_ as d,w as e,z as f,de as g,it as h,Ie as i,Ar as j,Zt as k,K as l,Fr as m,I as n,Y as o,hr as p,gr as q,Ve as r,qr as s,pt as t,He as u,Wt as v,It as w,vt as x,mn as y,mr as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.