@icanbwell/composite 1.1272.0 → 1.1272.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/34.index.js +19217 -0
- package/34.index.js.map +1 -0
- package/752.index.js +19 -0
- package/752.index.js.map +1 -0
- package/{644.index.js → 921.index.js} +19 -19
- package/921.index.js.map +1 -0
- package/964.index.js +69 -0
- package/964.index.js.map +1 -0
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/native.js +1 -1
- package/package.json +4 -4
- package/39.index.js +0 -69
- package/39.index.js.map +0 -1
- package/505.index.js +0 -19087
- package/505.index.js.map +0 -1
- package/581.index.js +0 -19
- package/581.index.js.map +0 -1
- package/644.index.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_icanbwell_composite||=[]).push([[
|
|
1
|
+
"use strict";(globalThis.webpackChunk_icanbwell_composite||=[]).push([[921],{3921(Rc,$t,Ut){Ut.r($t),Ut.d($t,{default:()=>kc});var yr=10,Er=20,Ft=30,Sr=40,Be=50,Bt=60,He={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Ht={};function Nc(e){return typeof e=="string"?He[e.toLowerCase()]:e}Object.keys(He).forEach(function(e){Ht[He[e]]=e});var Gt={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},br=function(){function e(t){var n=t===void 0?{}:t,r=n.logByLevel,s=n.css,o=s===void 0?Gt:s;this.logByLevel=r!==void 0&&r,this.css=o}return e.prototype.write=function(t){var n,r,s=this.css.def,o=this.css.msg,i=this.css.src,a=t.childName?t.name+"/"+t.childName:t.name,c=Ht[t.level],l=(Array(6-c.length).join(" ")+c).toUpperCase();this.logByLevel?(t.level===yr?c="debug":t.level===Bt&&(c="error"),r=typeof console[c]=="function"?console[c]:console.log):r=console.log,n=t.level<Er?this.css.levels.trace:t.level<Ft?this.css.levels.debug:t.level<Sr?this.css.levels.info:t.level<Be?this.css.levels.warn:t.level<Bt?this.css.levels.error:this.css.levels.fatal;var f=function(d,h){return Array(h+1-(d+"").length).join("0")+d},u=[];u.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(t.src?"%c%s":"")),u.push(f(t.time.getHours(),2)),u.push(f(t.time.getMinutes(),2)),u.push(f(t.time.getSeconds(),2)),u.push(f(t.time.getMilliseconds(),4)),u.push(n),u.push(l),u.push(s),u.push(a),u.push(o),u.push(t.msg),t.src&&(u.push(i),u.push(t.src)),t.obj&&(u.push(`
|
|
2
2
|
`),u.push(t.obj)),t.err&&t.err.stack&&(u.push(`
|
|
3
|
-
`),u.push(t.err.stack)),r.apply(console,u)},e.getDefaultCss=function(){return Gt},e}();const Ge="production",m=globalThis;function ge(e,t,n){const r=n||m,s=r.__SENTRY__=r.__SENTRY__||{},o=s["8.46.0"]=s["8.46.0"]||{};return o[e]||(o[e]=t())}function me(){return ze(m),m}function ze(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.46.0",t["8.46.0"]=t["8.46.0"]||{}}const zt=Object.prototype.toString;function We(e){switch(zt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return j(e,Error)}}function V(e,t){return zt.call(e)===`[object ${t}]`}function Wt(e){return V(e,"ErrorEvent")}function Yt(e){return V(e,"DOMError")}function vr(e){return V(e,"DOMException")}function O(e){return V(e,"String")}function Ye(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function qe(e){return e===null||Ye(e)||typeof e!="object"&&typeof e!="function"}function Z(e){return V(e,"Object")}function _e(e){return typeof Event<"u"&&j(e,Event)}function Tr(e){return typeof Element<"u"&&j(e,Element)}function Ir(e){return V(e,"RegExp")}function ye(e){return!!(e&&e.then&&typeof e.then=="function")}function wr(e){return Z(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function j(e,t){try{return e instanceof t}catch{return!1}}function qt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Q=m,kr=80;function Jt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let l;const f=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||kr;for(;n&&o++<r&&(l=Rr(n,f),!(l==="html"||o>1&&i+s.length*c+l.length>=u));)s.push(l),i+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Rr(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Q.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=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&O(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function xr(){try{return Q.document.location.href}catch{return""}}function Rc(e){return Q.document&&Q.document.querySelector?Q.document.querySelector(e):null}function Or(e){if(!Q.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const $=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nr="Sentry Logger ",Je=["debug","info","warn","error","log","assert","trace"],Ee={};function U(e){if(!("console"in m))return e();const t=m.console,n={},r=Object.keys(Ee);r.forEach(s=>{const o=Ee[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Cr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return $?Je.forEach(n=>{t[n]=(...r)=>{e&&U(()=>{m.console[n](`${Nr}[${n}]:`,...r)})}}):Je.forEach(n=>{t[n]=()=>{}}),t}const p=ge("logger",Cr);function ee(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function xc(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Kt(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{qt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Dr(e,t,n=!1){return O(e)?Ir(t)?t.test(e):O(t)?n?e===t:e.includes(t):!1:!1}function Se(e,t=[],n=!1){return t.some(r=>Dr(e,r,n))}var Ar;function v(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Xt(s,r);try{e[t]=s}catch{$&&p.log(`Failed to replace method "${t}" in object`,e)}}function F(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{$&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Xt(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,F(e,"__sentry_original__",t)}catch{}}function Ke(e){return e.__sentry_original__}function Oc(e){return Object.entries(e).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&")}function Vt(e){if(We(e))return{message:e.message,name:e.name,stack:e.stack,...Qt(e)};if(_e(e)){const t={type:e.type,target:Zt(e.target),currentTarget:Zt(e.currentTarget),...Qt(e)};return typeof CustomEvent<"u"&&j(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Zt(e){try{return Tr(e)?Jt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Qt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Pr(e,t=40){const n=Object.keys(Vt(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ee(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:ee(o,t)}return""}function T(e){return Xe(e,new Map)}function Xe(e,t){if(Mr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Xe(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Xe(s,t))}),r}return e}function Mr(e){if(!Z(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Nc(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case Ar(e):t=new e.constructor(e);break;default:t=e;break}return t}const en=1e3;function le(){return Date.now()/en}function Lr(){const{performance:e}=m;if(!e||!e.now)return le;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/en}const N=Lr();let be;const Cc=(()=>{const{performance:e}=m;if(!e||!e.now){be="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,l=c<t;return o||l?s<=c?(be="timeOrigin",e.timeOrigin):(be="navigationStart",i):(be="dateNow",r)})();var Ve;function I(){const e=m,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function tn(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function A(e){const{message:t,event_id:n}=e;if(t)return t;const r=tn(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ze(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function te(e,t){const n=tn(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const jr=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Qe(e){return parseInt(e||"",10)}function Dc(e){const t=e.match(jr)||[],n=Qe(t[1]),r=Qe(t[2]),s=Qe(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Ac(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>Ve(i,0));const o=Math.min(r-1,s);t.context_line=Ve(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>Ve(i,0))}function nn(e){if($r(e))return!0;try{F(e,"__sentry_captured__",!0)}catch{}return!1}function $r(e){try{return e.__sentry_captured__}catch{}}function Pc(e){return Array.isArray(e)?e:[e]}function Ur(e){const t=N(),n={sid:I(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Br(n)};return e&&ne(n,e),n}function ne(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||N(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:I()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Fr(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ne(e,n)}function Br(e){return T({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function Mc(){return{traceId:et(),spanId:ve()}}function et(){return I()}function ve(){return I().substring(16)}function Te(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Te(r[s],t[s],n-1));return r}const tt="_sentrySpan";function rn(e,t){t?F(e,tt,t):delete e[tt]}function sn(e){return e[tt]}const Hr=100;class nt{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:et(),spanId:ve()}}clone(){const t=new nt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,rn(t,sn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ne(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof P?[n.getScopeData(),n.getRequestSession()]:Z(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:l,fingerprint:f=[],propagationContext:u}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),f.length&&(this._fingerprint=f),u&&(this._propagationContext=u),s&&(this._requestSession=s),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._requestSession=void 0,this._session=void 0,rn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:et()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Hr;if(r<=0)return this;const s={timestamp:le(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),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:sn(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Te(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:ve(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:I();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:I();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:I();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(p.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const P=nt;function Gr(){return ge("defaultCurrentScope",()=>new P)}function zr(){return ge("defaultIsolationScope",()=>new P)}class Wr{constructor(t,n){let r;t?r=t:r=new P;let s;n?s=n:s=new P,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return ye(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function re(){const e=me(),t=ze(e);return t.stack=t.stack||new Wr(Gr(),zr())}function Yr(e){return re().withScope(e)}function qr(e,t){const n=re();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function on(e){return re().withScope(()=>e(re().getIsolationScope()))}function Jr(){return{withIsolationScope:on,withScope:Yr,withSetScope:qr,withSetIsolationScope:(e,t)=>on(t),getCurrentScope:()=>re().getScope(),getIsolationScope:()=>re().getIsolationScope()}}var Kr,Xr;function Lc(e){const t=Kr(),n=Xr(t);n.acs=e}function rt(e){const t=ze(e);return t.acs?t.acs:Jr()}var Vr,Zr;function R(){const e=me();return rt(e).getCurrentScope()}function fe(){const e=me();return rt(e).getIsolationScope()}function an(){return ge("globalScope",()=>new P)}function Qr(...e){const t=me(),n=rt(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function jc(...e){const t=Zr(),n=Vr(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function E(){return R().getClient()}function es(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return T({trace_id:n,span_id:r,parent_span_id:s})}const _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(C||(C={}));function B(e){return new w(t=>{t(e)})}function Ie(e){return new w((t,n)=>{n(e)})}class w{constructor(t){w.prototype.__init.call(this),w.prototype.__init2.call(this),w.prototype.__init3.call(this),w.prototype.__init4.call(this),this._state=C.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new w((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new w((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(C.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(C.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===C.PENDING){if(ye(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===C.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===C.RESOLVED&&n[1](this._value),this._state===C.REJECTED&&n[2](this._value),n[0]=!0)})}}}function st(e,t,n,r=0){return new w((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);_&&i.id&&a===null&&p.log(`Event processor "${i.id}" dropped event`),ye(a)?a.then(c=>st(e,c,n,r+1).then(s)).then(null,o):st(e,a,n,r+1).then(s).then(null,o)}})}let we,cn,ke;function un(e){const t=m._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return ke&&n.length===cn||(cn=n.length,ke=n.reduce((r,s)=>{we||(we={});const o=we[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],l=c&&c.filename,f=t[s];if(l&&f){r[l]=f,we[s]=[l,f];break}}}return r},{})),ke}function $c(e,t){const n=un(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function ts(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const ln=50,ns="?",fn=/\(error: (.*)\)/,dn=/captureMessage|captureException/;function pn(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
|
|
4
|
-
`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const l=fn.test(c)?c.replace(fn,"$1"):c;if(!l.match(/\S*Error: /)){for(const f of t){const u=f(l);if(u){o.push(u);break}}if(o.length>=ln+s)break}}return ss(o.slice(s))}}function rs(e){return Array.isArray(e)?pn(...e):e}function ss(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Re(t).function||"")&&t.pop(),t.reverse(),dn.test(Re(t).function||"")&&(t.pop(),dn.test(Re(t).function||"")&&t.pop()),t.slice(0,ln).map(n=>({...n,filename:n.filename||Re(t).filename,function:n.function||ns}))}function Re(e){return e[e.length-1]||{}}const ot="<anonymous>";function M(e){try{return!e||typeof e!="function"?ot:e.name||ot}catch{return ot}}function hn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function D(e,t=100,n=1/0){try{return it("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function gn(e,t=3,n=100*1024){const r=D(e,t);return cs(r)>n?gn(e,t-1,n):r}function it(e,t,n=1/0,r=1/0,s=ts()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=os(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return it("",h,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let u=0;const d=Vt(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(u>=r){f[h]="[MaxProperties ~]";break}const g=d[h];f[h]=it(h,g,c-1,r,s),u++}return i(t),f}function os(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis<"u"&&t===globalThis)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(qt(t))return"[VueViewModel]";if(wr(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${M(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=is(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function is(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function as(e){return~-encodeURI(e).split(/%..|./).length}function cs(e){return as(JSON.stringify(e))}function Uc(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const us="sentry.source",ls="sentry.sample_rate",fs="sentry.op",ds="sentry.origin",Fc="sentry.idle_span_finish_reason",Bc="sentry.measurement_unit",Hc="sentry.measurement_value",Gc="sentry.profile_id",zc="sentry.exclusive_time",Wc="cache.hit",Yc="cache.key",qc="cache.item_size",Jc="http.request.method",Kc="url.full";var ps,hs;const Xc="baggage",mn="sentry-",gs=/^sentry-/,ms=8192;function _s(e){const t=ys(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(gs)){const i=s.slice(mn.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Vc(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${mn}${r}`]=s),n),{});return Es(t)}function ys(e){if(!(!e||!O(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=_n(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):_n(e)}function _n(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Es(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>ms?(ps&&hs.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}function Ss(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=E(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const at="_sentryMetrics";function bs(e){const t=e[at];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(T(s));return n}function Zc(e,t,n,r,s,o,i){const c=e[at]||(e[at]=new Map),l=`${t}:${n}@${s}`,f=c.get(i);if(f){const[,u]=f;c.set(i,[l,{min:Math.min(u.min,r),max:Math.max(u.max,r),count:u.count+=1,sum:u.sum+=r,tags:u.tags}])}else c.set(i,[l,{min:r,max:r,count:1,sum:r,tags:o}])}var vs,Ts,Is,ws,ks,yn,Rs,xs;const Qc=0,Os=1;let En=!1;function eu(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=xe(e);return ks({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function Ns(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:xe(e).parent_span_id,o=r?ve():t;return T({parent_span_id:s,span_id:o,trace_id:n})}function tu(e){const{traceId:t,spanId:n}=e.spanContext(),r=ct(e);return Rs(t,n,r)}function Sn(e){return typeof e=="number"?bn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?bn(e.getTime()):N()}function bn(e){return e>9999999999?e/1e3:e}function xe(e){if(Ds(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Cs(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return T({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Sn(s),timestamp:Sn(i)||void 0,status:As(c),op:r[fs],origin:r[ds],_metrics_summary:bs(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Cs(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Ds(e){return typeof e.getSpanJSON=="function"}function ct(e){const{traceFlags:t}=e.spanContext();return t===Os}function As(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}const H="_sentryChildSpans",ut="_sentryRootSpan";function nu(e,t){const n=e[ut]||e;yn(t,ut,n),e[H]?e[H].add(t):yn(e,H,new Set([t]))}function ru(e,t){e[H]&&e[H].delete(t)}function su(e){const t=new Set;function n(r){if(!t.has(r)&&ct(r)){t.add(r);const s=r[H]?Array.from(r[H]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function vn(e){return e[ut]||e}function Ps(){const e=Ts(),t=vs(e);return t.getActiveSpan?t.getActiveSpan():xs(Is())}function ou(e,t,n,r,s,o){const i=Ps();i&&ws(i,e,t,n,r,s,o)}function Ms(){En||(U(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),En=!0)}var Ls,js;const Tn="_frozenDsc";function iu(e,t){js(e,Tn,t)}function In(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=T({environment:n.environment||Ge,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function $s(e,t){const n=t.getPropagationContext();return n.dsc||In(n.traceId,e)}function wn(e){const t=E();if(!t)return{};const n=vn(e),r=n[Tn];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&_s(o);if(i)return i;const a=In(e.spanContext().traceId,t),c=xe(n),l=c.data||{},f=l[ls];f!=null&&(a.sample_rate=`${f}`);const u=l[us],d=c.description;return u!=="url"&&d&&(a.transaction=d),Ss()&&(a.sampled=String(ct(n))),t.emit("createDsc",a,n),a}function au(e){const t=wn(e);return Ls(t)}function Us(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Fs(e,t),r&&Gs(e,r),zs(e,n),Bs(e,s),Hs(e,o)}function kn(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:f,attachments:u,propagationContext:d,transactionName:h,span:g}=t;Oe(e,"extra",n),Oe(e,"tags",r),Oe(e,"user",s),Oe(e,"contexts",o),e.sdkProcessingMetadata=Te(e.sdkProcessingMetadata,a,2),i&&(e.level=i),h&&(e.transactionName=h),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...d}}function Oe(e,t,n){e[t]=Te(e[t],n,1)}function Fs(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=T(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=T(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const u=T(o);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function Bs(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Hs(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Gs(e,t){e.contexts={trace:Ns(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:wn(t),...e.sdkProcessingMetadata};const n=vn(t),r=xe(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function zs(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Ws(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||I(),timestamp:t.timestamp||le()},l=n.integrations||e.integrations.map(S=>S.name);Ys(c,e),Ks(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&qs(c,e.stackParser);const f=Vs(r,n.captureContext);n.mechanism&&te(c,n.mechanism);const u=s?s.getEventProcessors():[],d=an().getScopeData();if(o){const S=o.getScopeData();kn(d,S)}if(f){const S=f.getScopeData();kn(d,S)}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),Us(c,d);const g=[...u,...d.eventProcessors];return st(g,c,n).then(S=>(S&&Js(S),typeof i=="number"&&i>0?Xs(S,i,a):S))}function Ys(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Ge,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=ee(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ee(i.value,o));const a=e.request;a&&a.url&&(a.url=ee(a.url,o))}function qs(e,t){const n=un(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function Js(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Ks(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Xs(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:D(s.data,t,n)}}))},...e.user&&{user:D(e.user,t,n)},...e.contexts&&{contexts:D(e.contexts,t,n)},...e.extra&&{extra:D(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=D(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:D(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=D(e.contexts.flags,3,n)),r}function Vs(e,t){if(!t)return e;const n=e?e.clone():new P;return n.update(t),n}function Zs(e){if(e)return Qs(e)?{captureContext:e}:to(e)?{captureContext:e}:e}function Qs(e){return e instanceof P||typeof e=="function"}const eo=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function to(e){return Object.keys(e).some(t=>eo.includes(t))}var L,no,Ne,ro,Ce,so,De,oo,Rn;function xn(e,t){return R().captureException(e,Zs(t))}function io(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return R().captureMessage(e,n,r)}function On(e,t){return R().captureEvent(e,t)}function cu(e,t){L().setContext(e,t)}function uu(e){L().setExtras(e)}function lu(e,t){L().setExtra(e,t)}function fu(e){L().setTags(e)}function du(e,t){L().setTag(e,t)}function pu(e){L().setUser(e)}function hu(){return L().lastEventId()}function Nn(e,t){const n=no(),r=Ne();if(!r)Ce&&De.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)Ce&&De.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return oo()}function gu(e,t,n){const r=Nn({monitorSlug:e,status:"in_progress"},n),s=Rn();function o(i){Nn({monitorSlug:e,status:i,checkInId:r,duration:Rn()-s})}return ro(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return so(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function mu(e){const t=Ne();return t?t.flush(e):(Ce&&De.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _u(e){const t=Ne();return t?t.close(e):(Ce&&De.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function ao(){return!!E()}function yu(){const e=Ne();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Eu(e){L().addEventProcessor(e)}function Cn(e){const t=E(),n=fe(),r=R(),{release:s,environment:o=Ge}=t&&t.getOptions()||{},{userAgent:i}=m.navigator||{},a=Ur({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&ne(c,{status:"exited"}),Dn(),n.setSession(a),r.setSession(a),a}function Dn(){const e=fe(),t=R(),n=t.getSession()||e.getSession();n&&Fr(n),An(),e.setSession(),t.setSession()}function An(){const e=fe(),t=R(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Pn(e=!1){if(e){Dn();return}An()}var co,uo,lo;const Mn=[];function fo(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function po(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=fo(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function ho(e,t){const n={};return t.forEach(r=>{r&&jn(e,r,n)}),n}function Ln(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function jn(e,t,n){if(n[t.name]){_&&p.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Mn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Mn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}_&&p.log(`Integration installed: ${t.name}`)}function Su(e){const t=co();if(!t){uo&&lo.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function bu(e){return e}const go=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`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+$/],mo="InboundFilters",_o=(e={})=>({name:mo,processEvent(t,n,r){const s=r.getOptions(),o=yo(e,s);return Eo(t,o)?null:t}});function yo(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:go],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Eo(e,t){return t.ignoreInternal&&wo(e)?(_&&p.warn(`Event dropped due to being internal Sentry Error.
|
|
5
|
-
Event: ${
|
|
6
|
-
Event: ${
|
|
7
|
-
Event: ${
|
|
8
|
-
Event: ${
|
|
9
|
-
Event: ${
|
|
10
|
-
Url: ${
|
|
11
|
-
Event: ${
|
|
12
|
-
Url: ${
|
|
3
|
+
`),u.push(t.err.stack)),r.apply(console,u)},e.getDefaultCss=function(){return Gt},e}();const Ge="production",m=globalThis;function ge(e,t,n){const r=n||m,s=r.__SENTRY__=r.__SENTRY__||{},o=s["8.55.2"]=s["8.55.2"]||{};return o[e]||(o[e]=t())}function me(){return ze(m),m}function ze(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.55.2",t["8.55.2"]=t["8.55.2"]||{}}const zt=Object.prototype.toString;function We(e){switch(zt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return j(e,Error)}}function V(e,t){return zt.call(e)===`[object ${t}]`}function Wt(e){return V(e,"ErrorEvent")}function Yt(e){return V(e,"DOMError")}function vr(e){return V(e,"DOMException")}function x(e){return V(e,"String")}function Ye(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function qe(e){return e===null||Ye(e)||typeof e!="object"&&typeof e!="function"}function Z(e){return V(e,"Object")}function _e(e){return typeof Event<"u"&&j(e,Event)}function Tr(e){return typeof Element<"u"&&j(e,Element)}function Ir(e){return V(e,"RegExp")}function ye(e){return!!(e&&e.then&&typeof e.then=="function")}function wr(e){return Z(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function j(e,t){try{return e instanceof t}catch{return!1}}function qt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Q=m,kr=80;function Jt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let l;const f=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||kr;for(;n&&o++<r&&(l=Rr(n,f),!(l==="html"||o>1&&i+s.length*c+l.length>=u));)s.push(l),i+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Rr(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Q.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=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&x(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function Nr(){try{return Q.document.location.href}catch{return""}}function xc(e){return Q.document&&Q.document.querySelector?Q.document.querySelector(e):null}function xr(e){if(!Q.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const $=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Or="Sentry Logger ",Je=["debug","info","warn","error","log","assert","trace"],Ee={};function U(e){if(!("console"in m))return e();const t=m.console,n={},r=Object.keys(Ee);r.forEach(s=>{const o=Ee[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Cr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return $?Je.forEach(n=>{t[n]=(...r)=>{e&&U(()=>{m.console[n](`${Or}[${n}]:`,...r)})}}):Je.forEach(n=>{t[n]=()=>{}}),t}const p=ge("logger",Cr);function ee(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Oc(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Kt(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{qt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ar(e,t,n=!1){return x(e)?Ir(t)?t.test(e):x(t)?n?e===t:e.includes(t):!1:!1}function Se(e,t=[],n=!1){return t.some(r=>Ar(e,r,n))}var Dr;function v(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Xt(s,r);try{e[t]=s}catch{$&&p.log(`Failed to replace method "${t}" in object`,e)}}function F(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{$&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Xt(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,F(e,"__sentry_original__",t)}catch{}}function Ke(e){return e.__sentry_original__}function Cc(e){return Object.entries(e).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&")}function Vt(e){if(We(e))return{message:e.message,name:e.name,stack:e.stack,...Qt(e)};if(_e(e)){const t={type:e.type,target:Zt(e.target),currentTarget:Zt(e.currentTarget),...Qt(e)};return typeof CustomEvent<"u"&&j(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Zt(e){try{return Tr(e)?Jt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Qt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Pr(e,t=40){const n=Object.keys(Vt(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ee(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:ee(o,t)}return""}function T(e){return Xe(e,new Map)}function Xe(e,t){if(Mr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Xe(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Xe(s,t))}),r}return e}function Mr(e){if(!Z(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Ac(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case Dr(e):t=new e.constructor(e);break;default:t=e;break}return t}const en=1e3;function le(){return Date.now()/en}function Lr(){const{performance:e}=m;if(!e||!e.now)return le;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/en}const O=Lr();let be;const Dc=(()=>{const{performance:e}=m;if(!e||!e.now){be="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,l=c<t;return o||l?s<=c?(be="timeOrigin",e.timeOrigin):(be="navigationStart",i):(be="dateNow",r)})();var Ve;function I(){const e=m,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function tn(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function D(e){const{message:t,event_id:n}=e;if(t)return t;const r=tn(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ze(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function te(e,t){const n=tn(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const jr=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Qe(e){return parseInt(e||"",10)}function Pc(e){const t=e.match(jr)||[],n=Qe(t[1]),r=Qe(t[2]),s=Qe(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Mc(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>Ve(i,0));const o=Math.min(r-1,s);t.context_line=Ve(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>Ve(i,0))}function nn(e){if($r(e))return!0;try{F(e,"__sentry_captured__",!0)}catch{}return!1}function $r(e){try{return e.__sentry_captured__}catch{}}function Lc(e){return Array.isArray(e)?e:[e]}function Ur(e){const t=O(),n={sid:I(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Br(n)};return e&&ne(n,e),n}function ne(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||O(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:I()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Fr(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ne(e,n)}function Br(e){return T({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function jc(){return{traceId:et(),spanId:ve()}}function et(){return I()}function ve(){return I().substring(16)}function Te(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Te(r[s],t[s],n-1));return r}const tt="_sentrySpan";function rn(e,t){t?F(e,tt,t):delete e[tt]}function sn(e){return e[tt]}const Hr=100;class nt{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:et(),spanId:ve()}}clone(){const t=new nt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,rn(t,sn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ne(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof P?[n.getScopeData(),n.getRequestSession()]:Z(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:l,fingerprint:f=[],propagationContext:u}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),f.length&&(this._fingerprint=f),u&&(this._propagationContext=u),s&&(this._requestSession=s),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._requestSession=void 0,this._session=void 0,rn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:et()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Hr;if(r<=0)return this;const s={timestamp:le(),...t};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&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(t){return this._attachments.push(t),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:sn(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Te(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:ve(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:I();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:I();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:I();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(p.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const P=nt;function Gr(){return ge("defaultCurrentScope",()=>new P)}function zr(){return ge("defaultIsolationScope",()=>new P)}class Wr{constructor(t,n){let r;t?r=t:r=new P;let s;n?s=n:s=new P,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return ye(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function re(){const e=me(),t=ze(e);return t.stack=t.stack||new Wr(Gr(),zr())}function Yr(e){return re().withScope(e)}function qr(e,t){const n=re();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function on(e){return re().withScope(()=>e(re().getIsolationScope()))}function Jr(){return{withIsolationScope:on,withScope:Yr,withSetScope:qr,withSetIsolationScope:(e,t)=>on(t),getCurrentScope:()=>re().getScope(),getIsolationScope:()=>re().getIsolationScope()}}var Kr,Xr;function $c(e){const t=Kr(),n=Xr(t);n.acs=e}function rt(e){const t=ze(e);return t.acs?t.acs:Jr()}var Vr,Zr;function N(){const e=me();return rt(e).getCurrentScope()}function fe(){const e=me();return rt(e).getIsolationScope()}function an(){return ge("globalScope",()=>new P)}function Qr(...e){const t=me(),n=rt(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Uc(...e){const t=Zr(),n=Vr(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function E(){return N().getClient()}function es(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return T({trace_id:n,span_id:r,parent_span_id:s})}const _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(C||(C={}));function B(e){return new w(t=>{t(e)})}function Ie(e){return new w((t,n)=>{n(e)})}class w{constructor(t){w.prototype.__init.call(this),w.prototype.__init2.call(this),w.prototype.__init3.call(this),w.prototype.__init4.call(this),this._state=C.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new w((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new w((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(C.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(C.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===C.PENDING){if(ye(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===C.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===C.RESOLVED&&n[1](this._value),this._state===C.REJECTED&&n[2](this._value),n[0]=!0)})}}}function st(e,t,n,r=0){return new w((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);_&&i.id&&a===null&&p.log(`Event processor "${i.id}" dropped event`),ye(a)?a.then(c=>st(e,c,n,r+1).then(s)).then(null,o):st(e,a,n,r+1).then(s).then(null,o)}})}let we,cn,ke;function un(e){const t=m._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return ke&&n.length===cn||(cn=n.length,ke=n.reduce((r,s)=>{we||(we={});const o=we[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],l=c&&c.filename,f=t[s];if(l&&f){r[l]=f,we[s]=[l,f];break}}}return r},{})),ke}function Fc(e,t){const n=un(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function ts(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const ln=50,ns="?",fn=/\(error: (.*)\)/,dn=/captureMessage|captureException/;function pn(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
|
|
4
|
+
`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const l=fn.test(c)?c.replace(fn,"$1"):c;if(!l.match(/\S*Error: /)){for(const f of t){const u=f(l);if(u){o.push(u);break}}if(o.length>=ln+s)break}}return ss(o.slice(s))}}function rs(e){return Array.isArray(e)?pn(...e):e}function ss(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Re(t).function||"")&&t.pop(),t.reverse(),dn.test(Re(t).function||"")&&(t.pop(),dn.test(Re(t).function||"")&&t.pop()),t.slice(0,ln).map(n=>({...n,filename:n.filename||Re(t).filename,function:n.function||ns}))}function Re(e){return e[e.length-1]||{}}const ot="<anonymous>";function M(e){try{return!e||typeof e!="function"?ot:e.name||ot}catch{return ot}}function hn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function A(e,t=100,n=1/0){try{return it("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function gn(e,t=3,n=100*1024){const r=A(e,t);return cs(r)>n?gn(e,t-1,n):r}function it(e,t,n=1/0,r=1/0,s=ts()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=os(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return it("",h,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let u=0;const d=Vt(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(u>=r){f[h]="[MaxProperties ~]";break}const g=d[h];f[h]=it(h,g,c-1,r,s),u++}return i(t),f}function os(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis<"u"&&t===globalThis)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(qt(t))return"[VueViewModel]";if(wr(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${M(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=is(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function is(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function as(e){return~-encodeURI(e).split(/%..|./).length}function cs(e){return as(JSON.stringify(e))}function Bc(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const us="sentry.source",ls="sentry.sample_rate",fs="sentry.op",ds="sentry.origin",Hc="sentry.idle_span_finish_reason",Gc="sentry.measurement_unit",zc="sentry.measurement_value",Wc="sentry.custom_span_name",Yc="sentry.profile_id",qc="sentry.exclusive_time",Jc="cache.hit",Kc="cache.key",Xc="cache.item_size",Vc="http.request.method",Zc="url.full";var ps,hs;const Qc="baggage",mn="sentry-",gs=/^sentry-/,ms=8192;function _s(e){const t=ys(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(gs)){const i=s.slice(mn.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function eu(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${mn}${r}`]=s),n),{});return Es(t)}function ys(e){if(!(!e||!x(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=_n(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):_n(e)}function _n(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Es(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>ms?(ps&&hs.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}function Ss(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=E(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const at="_sentryMetrics";function bs(e){const t=e[at];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(T(s));return n}function tu(e,t,n,r,s,o,i){const c=e[at]||(e[at]=new Map),l=`${t}:${n}@${s}`,f=c.get(i);if(f){const[,u]=f;c.set(i,[l,{min:Math.min(u.min,r),max:Math.max(u.max,r),count:u.count+=1,sum:u.sum+=r,tags:u.tags}])}else c.set(i,[l,{min:r,max:r,count:1,sum:r,tags:o}])}var vs,Ts,Is,ws,ks,Rs,Ns,yn,xs,Os;const nu=0,Cs=1;let En=!1;function ru(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=Ne(e);return Ns({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function As(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Ne(e).parent_span_id,o=r?ve():t;return T({parent_span_id:s,span_id:o,trace_id:n})}function su(e){const{traceId:t,spanId:n}=e.spanContext(),r=ct(e);return xs(t,n,r)}function Sn(e){return typeof e=="number"?bn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?bn(e.getTime()):O()}function bn(e){return e>9999999999?e/1e3:e}function Ne(e){if(Ps(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Ds(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return T({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Sn(s),timestamp:Sn(i)||void 0,status:Ms(c),op:r[fs],origin:r[ds],_metrics_summary:bs(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Ds(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Ps(e){return typeof e.getSpanJSON=="function"}function ct(e){const{traceFlags:t}=e.spanContext();return t===Cs}function Ms(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}const H="_sentryChildSpans",ut="_sentryRootSpan";function ou(e,t){const n=e[ut]||e;yn(t,ut,n),e[H]?e[H].add(t):yn(e,H,new Set([t]))}function iu(e,t){e[H]&&e[H].delete(t)}function au(e){const t=new Set;function n(r){if(!t.has(r)&&ct(r)){t.add(r);const s=r[H]?Array.from(r[H]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function vn(e){return e[ut]||e}function Ls(){const e=Ts(),t=vs(e);return t.getActiveSpan?t.getActiveSpan():Os(Is())}function cu(e,t,n,r,s,o){const i=Ls();i&&ws(i,e,t,n,r,s,o)}function js(){En||(U(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),En=!0)}function uu(e,t){e.updateName(t),e.setAttributes({[ks]:"custom",[Rs]:t})}var $s,Us;const Tn="_frozenDsc";function lu(e,t){Us(e,Tn,t)}function In(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=T({environment:n.environment||Ge,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function Fs(e,t){const n=t.getPropagationContext();return n.dsc||In(n.traceId,e)}function wn(e){const t=E();if(!t)return{};const n=vn(e),r=n[Tn];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&_s(o);if(i)return i;const a=In(e.spanContext().traceId,t),c=Ne(n),l=c.data||{},f=l[ls];f!=null&&(a.sample_rate=`${f}`);const u=l[us],d=c.description;return u!=="url"&&d&&(a.transaction=d),Ss()&&(a.sampled=String(ct(n))),t.emit("createDsc",a,n),a}function fu(e){const t=wn(e);return $s(t)}function Bs(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Hs(e,t),r&&Ws(e,r),Ys(e,n),Gs(e,s),zs(e,o)}function kn(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:f,attachments:u,propagationContext:d,transactionName:h,span:g}=t;xe(e,"extra",n),xe(e,"tags",r),xe(e,"user",s),xe(e,"contexts",o),e.sdkProcessingMetadata=Te(e.sdkProcessingMetadata,a,2),i&&(e.level=i),h&&(e.transactionName=h),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...d}}function xe(e,t,n){e[t]=Te(e[t],n,1)}function Hs(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=T(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=T(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const u=T(o);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function Gs(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function zs(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ws(e,t){e.contexts={trace:As(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:wn(t),...e.sdkProcessingMetadata};const n=vn(t),r=Ne(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Ys(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function qs(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||I(),timestamp:t.timestamp||le()},l=n.integrations||e.integrations.map(S=>S.name);Js(c,e),Vs(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Ks(c,e.stackParser);const f=Qs(r,n.captureContext);n.mechanism&&te(c,n.mechanism);const u=s?s.getEventProcessors():[],d=an().getScopeData();if(o){const S=o.getScopeData();kn(d,S)}if(f){const S=f.getScopeData();kn(d,S)}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),Bs(c,d);const g=[...u,...d.eventProcessors];return st(g,c,n).then(S=>(S&&Xs(S),typeof i=="number"&&i>0?Zs(S,i,a):S))}function Js(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Ge,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=ee(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ee(i.value,o));const a=e.request;a&&a.url&&(a.url=ee(a.url,o))}function Ks(e,t){const n=un(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function Xs(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Vs(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Zs(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:A(s.data,t,n)}}))},...e.user&&{user:A(e.user,t,n)},...e.contexts&&{contexts:A(e.contexts,t,n)},...e.extra&&{extra:A(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=A(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:A(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=A(e.contexts.flags,3,n)),r}function Qs(e,t){if(!t)return e;const n=e?e.clone():new P;return n.update(t),n}function eo(e){if(e)return to(e)?{captureContext:e}:ro(e)?{captureContext:e}:e}function to(e){return e instanceof P||typeof e=="function"}const no=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ro(e){return Object.keys(e).some(t=>no.includes(t))}var L,so,Oe,oo,Ce,io,Ae,ao,Rn;function Nn(e,t){return N().captureException(e,eo(t))}function co(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return N().captureMessage(e,n,r)}function xn(e,t){return N().captureEvent(e,t)}function du(e,t){L().setContext(e,t)}function pu(e){L().setExtras(e)}function hu(e,t){L().setExtra(e,t)}function gu(e){L().setTags(e)}function mu(e,t){L().setTag(e,t)}function _u(e){L().setUser(e)}function yu(){return L().lastEventId()}function On(e,t){const n=so(),r=Oe();if(!r)Ce&&Ae.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)Ce&&Ae.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return ao()}function Eu(e,t,n){const r=On({monitorSlug:e,status:"in_progress"},n),s=Rn();function o(i){On({monitorSlug:e,status:i,checkInId:r,duration:Rn()-s})}return oo(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return io(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function Su(e){const t=Oe();return t?t.flush(e):(Ce&&Ae.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function bu(e){const t=Oe();return t?t.close(e):(Ce&&Ae.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function uo(){return!!E()}function vu(){const e=Oe();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Tu(e){L().addEventProcessor(e)}function Cn(e){const t=E(),n=fe(),r=N(),{release:s,environment:o=Ge}=t&&t.getOptions()||{},{userAgent:i}=m.navigator||{},a=Ur({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&ne(c,{status:"exited"}),An(),n.setSession(a),r.setSession(a),a}function An(){const e=fe(),t=N(),n=t.getSession()||e.getSession();n&&Fr(n),Dn(),e.setSession(),t.setSession()}function Dn(){const e=fe(),t=N(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Pn(e=!1){if(e){An();return}Dn()}var lo,fo,po;const Mn=[];function ho(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function go(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=ho(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function mo(e,t){const n={};return t.forEach(r=>{r&&jn(e,r,n)}),n}function Ln(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function jn(e,t,n){if(n[t.name]){_&&p.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Mn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Mn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}_&&p.log(`Integration installed: ${t.name}`)}function Iu(e){const t=lo();if(!t){fo&&po.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function wu(e){return e}const _o=[/^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.L')",`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$/],yo="InboundFilters",Eo=(e={})=>({name:yo,processEvent(t,n,r){const s=r.getOptions(),o=So(e,s);return bo(t,o)?null:t}});function So(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_o],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function bo(e,t){return t.ignoreInternal&&Ro(e)?(_&&p.warn(`Event dropped due to being internal Sentry Error.
|
|
5
|
+
Event: ${D(e)}`),!0):vo(e,t.ignoreErrors)?(_&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
6
|
+
Event: ${D(e)}`),!0):xo(e)?(_&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
7
|
+
Event: ${D(e)}`),!0):To(e,t.ignoreTransactions)?(_&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
8
|
+
Event: ${D(e)}`),!0):Io(e,t.denyUrls)?(_&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
9
|
+
Event: ${D(e)}.
|
|
10
|
+
Url: ${De(e)}`),!0):wo(e,t.allowUrls)?!1:(_&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
11
|
+
Event: ${D(e)}.
|
|
12
|
+
Url: ${De(e)}`),!0)}function vo(e,t){return e.type||!t||!t.length?!1:ko(e).some(n=>Se(n,t))}function To(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Se(n,t):!1}function Io(e,t){if(!t||!t.length)return!1;const n=De(e);return n?Se(n,t):!1}function wo(e,t){if(!t||!t.length)return!0;const n=De(e);return n?Se(n,t):!0}function ko(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Ro(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function No(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function De(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?No(t):null}catch{return _&&p.error(`Cannot extract url for event ${D(e)}`),null}}function xo(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}let $n;const Oo="FunctionToString",Un=new WeakMap,Co=()=>({name:Oo,setupOnce(){$n=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ke(this),n=Un.has(E())&&t!==void 0?t:this;return $n.apply(n,e)}}catch{}},setup(e){Un.set(e,!0)}}),Ao="Dedupe",Do=()=>{let e;return{name:Ao,processEvent(t){if(t.type)return t;try{if(Po(t,e))return _&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Po(e,t){return t?!!(Mo(e,t)||Lo(e,t)):!1}function Mo(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Bn(e,t)||!Fn(e,t))}function Lo(e,t){const n=Hn(t),r=Hn(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Bn(e,t)||!Fn(e,t))}function Fn(e,t){let n=hn(e),r=hn(t);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 o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Bn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Hn(e){return e.exception&&e.exception.values&&e.exception.values[0]}const Pe=m;function xu(){try{return new ErrorEvent(""),!0}catch{return!1}}function Ou(){try{return new DOMError(""),!0}catch{return!1}}function Cu(){try{return new DOMException(""),!0}catch{return!1}}function lt(){if(!("fetch"in Pe))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ft(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function jo(){if(typeof EdgeRuntime=="string")return!0;if(!lt())return!1;if(ft(Pe.fetch))return!0;let e=!1;const t=Pe.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ft(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){$&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Au(){return"ReportingObserver"in Pe}function Du(){if(!lt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}function $o(e,t){t.debug===!0&&(_?p.enable():U(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),N().update(t.initialScope);const r=new e(t);return Uo(r),r.init(),r}function Uo(e){N().setClient(e)}var Fo,Bo;const Ho="7";function Gn(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Go(e){return`${Gn(e)}${e.projectId}/envelope/`}function zo(e,t){const n={sentry_version:Ho};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Wo(e,t,n){return t||`${Go(e)}?${zo(e,n)}`}function Pu(e,t){const n=Fo(e);if(!n)return"";const r=`${Gn(n)}embed/error-page/`;let s=`dsn=${Bo(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const Yo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qo(e){return e==="http"||e==="https"}function Me(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Jo(e){const t=Yo.exec(e);if(!t){U(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",l=a;const f=l.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),l=f.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return zn({host:o,pass:s,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function zn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ko(e){if(!$)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(p.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?qo(r)?t&&isNaN(parseInt(t,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Xo(e){const t=typeof e=="string"?Jo(e):zn(e);if(!(!t||!Ko(t)))return t}var dt;function de(e,t=[]){return[e,t]}function Vo(e,t){const[n,r]=e;return[n,[...r,t]]}function pt(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Mu(e,t){return pt(e,(n,r)=>t.includes(r))}function Le(e){return m.__SENTRY__&&m.__SENTRY__.encodePolyfill?m.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Zo(e){return dt.__SENTRY__&&dt.__SENTRY__.decodePolyfill?dt.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function Qo(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Le(r),o]:r.push(typeof o=="string"?Le(o):o)}for(const o of n){const[i,a]=o;if(s(`
|
|
13
13
|
${JSON.stringify(i)}
|
|
14
|
-
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(
|
|
15
|
-
Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){_&&p.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){_&&p.log("No outcomes to send");return}if(!this._dsn){_&&p.log("No dsn provided, will not send outcomes");return}_&&p.log("Sending outcomes:",t);const n=
|
|
14
|
+
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(A(a))}s(c)}}return typeof r=="string"?r:ei(r)}function ei(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Lu(e){let t=typeof e=="string"?Le(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(Zo(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function ju(e){return[{type:"span"},e]}function ti(e){const t=typeof e.data=="string"?Le(e.data):e.data;return[T({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const ni={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",statsd:"metric_bucket",raw_security:"security"};function Wn(e){return ni[e]}function Yn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ri(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Me(r)},...s&&{trace:T({...s})}}}var si,oi,ii,ai,qn,ci;function ui(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function li(e,t,n,r){const s=Yn(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Me(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return de(o,[i])}function fi(e,t,n,r){const s=Yn(n),o=e.type&&e.type!=="replay_event"?e.type:"event";ui(e,n&&n.sdk);const i=ri(e,s,r,t);return delete e.sdkProcessingMetadata,de(i,[[{type:o},e]])}function $u(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=si(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:oi(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?f=>{const u=a(qn(f));return u||ci(),u}:f=>qn(f),l=[];for(const f of e){const u=c(f);u&&l.push(ii(u))}return ai(i,l)}function di(e,t,n){const r=[{type:"client_report"},{timestamp:n||le(),discarded_events:e}];return de(t?{dsn:t}:{},[r])}class k extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}function pi(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){_&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Jn="Not capturing exception because it's already been captured.";class hi{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Xo(t.dsn):_&&p.warn("No DSN provided, client will not send events."),this._dsn){const s=Wo(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);r&&U(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const s=I();if(nn(t))return _&&p.log(Jn),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:I(),...r},i=Ye(t)?t:String(t),a=qe(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=I();if(n&&n.originalException&&nn(n.originalException))return _&&p.log(Jn),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?_&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ne(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):B(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];jn(this,t,this._integrations),n||Ln(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=fi(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Vo(r,ti(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=li(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;_&&p.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(_&&p.error("Error while sending envelope:",n),n)):(_&&p.error("Transport disabled"),B({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=mo(this,t),Ln(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(ne(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new w(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=N(),s=fe()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),qs(o,t,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:es(r),...a.contexts};const c=Fs(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{_&&(s instanceof k&&s.logLevel==="log"?p.log(s.message):p.warn(s))})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Xn(t),a=Kn(t),c=t.type||"error",l=`before send for type \`${c}\``,f=typeof o>"u"?void 0:pi(o);if(a&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),Ie(new k(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",u,t),new k("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=mi(this,s,g,n);return gi(S,l)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",u,t),i){const ue=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",ue)}throw new k(`${l} returned \`null\`, will not send event.`,"log")}const K=r&&r.getSession();if(!i&&K&&this._updateSessionFromEvent(K,g),i){const X=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,ue=g.spans?g.spans.length:0,_r=X-ue;_r>0&&this.recordDroppedEvent("before_send","span",_r)}const S=g.transaction_info;if(i&&S&&g.transaction!==t.transaction){const X="custom";g.transaction_info={...S,source:X}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof k?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new k(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
15
|
+
Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){_&&p.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){_&&p.log("No outcomes to send");return}if(!this._dsn){_&&p.log("No dsn provided, will not send outcomes");return}_&&p.log("Sending outcomes:",t);const n=di(t,this._options.tunnel&&Me(this._dsn));this.sendEnvelope(n)}}function gi(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ye(e))return e.then(r=>{if(!Z(r)&&r!==null)throw new k(n);return r},r=>{throw new k(`${t} rejected with ${r}`)});if(!Z(e)&&e!==null)throw new k(n);return e}function mi(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(Kn(n)&&s)return s(n,r);if(Xn(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const l=i(c);l?a.push(l):(js(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function Kn(e){return e.type===void 0}function Xn(e){return e.type==="transaction"}function Uu(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function _i(){return"npm"}function yi(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:"8.55.2"})),version:"8.55.2"}),e._metadata=s}const pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ht(e,t){const n=mt(e,t),r={type:Ti(t),value:Ii(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ei(e,t,n,r){const s=E(),o=s&&s.getOptions().normalizeDepth,i=xi(t),a={__serialized__:gn(t,o)};if(i)return{exception:{values:[ht(e,i)]},extra:a};const c={exception:{values:[{type:_e(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ri(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=mt(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function gt(e,t){return{exception:{values:[ht(e,t)]}}}function mt(e,t){const n=t.stacktrace||t.stack||"",r=bi(t),s=vi(t);try{return e(n,r,s)}catch{}return[]}const Si=/Minified React error #\d+;/i;function bi(e){return e&&Si.test(e.message)?1:0}function vi(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Vn(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Ti(e){const t=e&&e.name;return!t&&Vn(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ii(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Vn(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function wi(e,t,n,r){const s=n&&n.syntheticException||void 0,o=_t(e,t,s,r);return te(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),B(o)}function ki(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=yt(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),B(i)}function _t(e,t,n,r,s){let o;if(Wt(t)&&t.error)return gt(e,t.error);if(Yt(t)||vr(t)){const i=t;if("stack"in t)o=gt(e,t);else{const a=i.name||(Yt(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=yt(e,c,n,r),Ze(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return We(t)?gt(e,t):Z(t)||_e(t)?(o=Ei(e,t,n,s),te(o,{synthetic:!0}),o):(o=yt(e,t,n,r),Ze(o,`${t}`,void 0),te(o,{synthetic:!0}),o)}function yt(e,t,n,r){const s={};if(r&&n){const o=mt(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),te(s,{synthetic:!0})}if(Ye(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function Ri(e,{isUnhandledRejection:t}){const n=Pr(e),r=t?"promise rejection":"exception";return Wt(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:_e(e)?`Event \`${Ni(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ni(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function xi(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const y=m;let Et=0;function Zn(){return Et>0}function Oi(){Et++,setTimeout(()=>{Et--})}function se(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Ke(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>se(i,t));return e.apply(this,o)}catch(o){throw Oi(),Qr(i=>{i.addEventProcessor(a=>(t.mechanism&&(Ze(a,void 0,void 0),te(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Nn(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Xt(r,e),F(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Ci(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Me(r)}},o=Ai(e);return de(s,[o])}function Ai(e){return[{type:"user_report"},e]}class Di extends hi{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=y.SENTRY_SDK_SOURCE||_i();yi(n,"browser",["browser"],r),super(n),n.sendClientReports&&y.document&&y.document.addEventListener("visibilitychange",()=>{y.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return wi(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return ki(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){pe&&p.warn("SDK not enabled, will not capture user feedback.");return}const n=Ci(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const oe={},Qn={};function G(e,t){oe[e]=oe[e]||[],oe[e].push(t)}function Fu(){Object.keys(oe).forEach(e=>{oe[e]=void 0})}function z(e,t){if(!Qn[e]){Qn[e]=!0;try{t()}catch(n){$&&p.error(`Error while instrumenting ${e}`,n)}}}function R(e,t){const n=e&&oe[e];if(n)for(const r of n)try{r(t)}catch(s){$&&p.error(`Error while triggering instrumentation handler.
|
|
16
16
|
Type: ${e}
|
|
17
17
|
Name: ${M(r)}
|
|
18
|
-
Error:`,s)}}const b=m,Di=1e3;let er,St,bt;function Ai(e){const t="dom";G(t,e),z(t,Pi)}function Pi(){if(!b.document)return;const e=k.bind(null,"dom"),t=tr(e,!0);b.document.addEventListener("click",t,!1),b.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=b[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(v(o,"addEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=f[a]=f[a]||{refCount:0};if(!u.handler){const d=tr(e);u.handler=d,i.call(this,a,d,l)}u.refCount++}catch{}return i.call(this,a,c,l)}}),v(o,"removeEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},u=f[a];u&&(u.refCount--,u.refCount<=0&&(i.call(this,a,u.handler,l),u.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,l)}}))})}function Mi(e){if(e.type!==St)return!1;try{if(!e.target||e.target._sentryId!==bt)return!1}catch{}return!0}function Li(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function tr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ji(n);if(Li(n.type,r))return;F(n,"_sentryCaptured",!0),r&&!r._sentryId&&F(r,"_sentryId",I());const s=n.type==="keypress"?"input":n.type;Mi(n)||(e({event:n,name:s,global:t}),St=n.type,bt=r?r._sentryId:void 0),clearTimeout(er),er=b.setTimeout(()=>{bt=void 0,St=void 0},Di)}}function ji(e){try{return e.target}catch{return null}}const he="__sentry_xhr_v3__";function $i(e){const t="xhr";G(t,e),z(t,Ui)}function Ui(){if(!b.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=N()*1e3,i=O(r[0])?r[0].toUpperCase():void 0,a=Fi(r[1]);if(!i||!a)return t.apply(n,r);n[he]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[he];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const f={endTimestamp:N()*1e3,startTimestamp:o,xhr:n,virtualError:s};k("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,f,u){return c(),l.apply(f,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,f,u){const[d,h]=u,g=f[he];return g&&O(d)&&O(h)&&(g.request_headers[d.toLowerCase()]=h),l.apply(f,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[he];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:N()*1e3,xhr:n};return k("xhr",o),t.apply(n,r)}})}function Fi(e){if(O(e))return e;try{return e.toString()}catch{}}const je=m;function Bi(){const e=je.chrome,t=e&&e.app&&e.app.runtime,n="history"in je&&!!je.history.pushState&&!!je.history.replaceState;return!t&&n}let $e;function nr(e){const t="history";G(t,e),z(t,Hi)}function Hi(){if(!Bi())return;const e=b.onpopstate;b.onpopstate=function(...n){const r=b.location.href,s=$e;if($e=r,k("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=$e,i=String(s);$e=i,k("history",{from:o,to:i})}return n.apply(this,r)}}v(b.history,"pushState",t),v(b.history,"replaceState",t)}function Gi(e){const t="console";G(t,e),z(t,zi)}function zi(){"console"in m&&Je.forEach(function(e){e in m.console&&v(m.console,e,function(t){return Ee[e]=t,function(...n){k("console",{args:n,level:e});const s=Ee[e];s&&s.apply(m.console,n)}})})}var Wi,Yi,qi,Ji;function Ki(e,t){const n="fetch";G(n,e),z(n,()=>rr(void 0,t))}function ju(e){const t="fetch-body-resolved";Yi(t,e),qi(t,()=>rr(Vi))}function rr(e,t=!1){t&&!Mo()||v(m,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Zi(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:N()*1e3,virtualError:s};return e||k("fetch",{...a}),n.apply(m,r).then(async c=>(e?e(c):k("fetch",{...a,endTimestamp:N()*1e3,response:c}),c),c=>{throw k("fetch",{...a,endTimestamp:N()*1e3,error:c}),We(c)&&c.stack===void 0&&(c.stack=s.stack,F(c,"framesToPop",1)),c})}})}async function Xi(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Vi(e){let t;try{t=e.clone()}catch{return}Xi(t,()=>{Ji("fetch-body-resolved",{endTimestamp:Wi()*1e3,response:e})})}function vt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function sr(e){return typeof e=="string"?e:e?vt(e,"url")?e.url:e.toString?e.toString():"":""}function Zi(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:sr(n),method:vt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:sr(t),method:vt(t,"method")?String(t.method).toUpperCase():"GET"}}const Qi=100;function W(e,t){const n=E(),r=fe();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Qi}=n.getOptions();if(o<=0)return;const a={timestamp:le(),...e},c=s?U(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const $u=null;function ea(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function or(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Tt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Uu(e){return e.split(/[?#]/,1)[0]}function Fu(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Bu(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const Ue=1024,ta="Breadcrumbs",na=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ta,setup(n){t.console&&Gi(oa(n)),t.dom&&Ai(sa(n,t.dom)),t.xhr&&$i(ia(n)),t.fetch&&Ki(aa(n)),t.history&&nr(ca(n)),t.sentry&&n.on("beforeSendEvent",ra(n))}}};function ra(e){return function(n){E()===e&&W({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:A(n)},{event:n})}}function sa(e,t){return function(r){if(E()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ue&&(pe&&p.warn(`\`dom.maxStringLength\` cannot exceed ${Ue}, but a value of ${a} was configured. Sentry will use ${Ue} instead.`),a=Ue),typeof i=="string"&&(i=[i]);try{const l=r.event,f=ua(l)?l.target:l;s=Jt(f,{keyAttrs:i,maxStringLength:a}),o=Or(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),W(c,{event:r.event,name:r.name,global:r.global})}}function oa(e){return function(n){if(E()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ea(n.level),message:Kt(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Kt(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;W(r,{input:n.args,level:n.level})}}function ia(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[he];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:l}=o,f={method:i,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},d=or(c);W({category:"xhr",data:f,type:"http",level:d},u)}}function aa(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};W({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=or(i.status_code);W({category:"fetch",data:i,type:"http",level:c},a)}}}function ca(e){return function(n){if(E()!==e)return;let r=n.from,s=n.to;const o=Tt(y.location.href);let i=r?Tt(r):void 0;const a=Tt(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),W({category:"navigation",data:{from:r,to:s}})}}function ua(e){return!!e&&!!e.target}const la=["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"],fa="BrowserApiErrors",da=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:fa,setupOnce(){t.setTimeout&&v(y,"setTimeout",ir),t.setInterval&&v(y,"setInterval",ir),t.requestAnimationFrame&&v(y,"requestAnimationFrame",pa),t.XMLHttpRequest&&"XMLHttpRequest"in y&&v(XMLHttpRequest.prototype,"send",ha);const n=t.eventTarget;n&&(Array.isArray(n)?n:la).forEach(ga)}}};function ir(e){return function(...t){const n=t[0];return t[0]=se(n,{mechanism:{data:{function:M(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function pa(e){return function(t){return e.apply(this,[se(t,{mechanism:{data:{function:"requestAnimationFrame",handler:M(e)},handled:!1,type:"instrument"}})])}}function ha(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&v(n,s,function(o){const i={mechanism:{data:{function:s,handler:M(o)},handled:!1,type:"instrument"}},a=Ke(o);return a&&(i.mechanism.data.handler=M(a)),se(o,i)})}),e.apply(this,t)}}function ga(e){const n=y[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(v(r,"addEventListener",function(s){return function(o,i,a){try{ma(i)&&(i.handleEvent=se(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:M(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,se(i,{mechanism:{data:{function:"addEventListener",handler:M(i),target:e},handled:!1,type:"instrument"}}),a])}}),v(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function ma(e){return typeof e.handleEvent=="function"}const _a=()=>({name:"BrowserSession",setupOnce(){if(typeof y.document>"u"){pe&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Cn({ignoreDuration:!0}),Pn(),nr(({from:e,to:t})=>{e!==void 0&&e!==t&&(Cn({ignoreDuration:!0}),Pn())})}});let It=null;function ya(e){const t="error";G(t,e),z(t,Ea)}function Ea(){It=m.onerror,m.onerror=function(e,t,n,r,s){return k("error",{column:r,error:s,line:n,msg:e,url:t}),It?It.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let wt=null;function Sa(e){const t="unhandledrejection";G(t,e),z(t,ba)}function ba(){wt=m.onunhandledrejection,m.onunhandledrejection=function(e){return k("unhandledrejection",e),wt?wt.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const va="GlobalHandlers",Ta=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:va,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Ia(n),ar("onerror")),t.onunhandledrejection&&(wa(n),ar("onunhandledrejection"))}}};function Ia(e){ya(t=>{const{stackParser:n,attachStacktrace:r}=cr();if(E()!==e||Zn())return;const{msg:s,url:o,line:i,column:a,error:c}=t,l=xa(_t(n,c||s,void 0,r,!1),o,i,a);l.level="error",On(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function wa(e){Sa(t=>{const{stackParser:n,attachStacktrace:r}=cr();if(E()!==e||Zn())return;const s=ka(t),o=qe(s)?Ra(s):_t(n,s,void 0,r,!0);o.level="error",On(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function ka(e){if(qe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Ra(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function xa(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,f=n,u=O(t)&&t.length>0?t:xr();return c.length===0&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:f}),e}function ar(e){pe&&p.log(`Global Handler attached: ${e}`)}function cr(){const e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Oa=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=e.request&&e.request.url||y.location&&y.location.href,{referrer:n}=y.document||{},{userAgent:r}=y.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function Na(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!j(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Ca(kt(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function kt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(j(r[s],Error)){ur(i,a);const l=e(t,r[s]),f=c.length;lr(l,s,f,a),c=kt(e,t,n,r[s],s,[l,...c],l,f)}return Array.isArray(r.errors)&&r.errors.forEach((l,f)=>{if(j(l,Error)){ur(i,a);const u=e(t,l),d=c.length;lr(u,`errors[${f}]`,d,a),c=kt(e,t,n,l,s,[u,...c],u,d)}}),c}function ur(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function lr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Ca(e,t){return e.map(n=>(n.value&&(n.value=ee(n.value,t)),n))}const Da="cause",Aa=5,Pa="LinkedErrors",Ma=(e={})=>{const t=e.limit||Aa,n=e.key||Da;return{name:Pa,preprocessEvent(r,s,o){const i=o.getOptions();Na(ht,i.stackParser,i.maxValueLength,n,t,r,s)}}},Yu=10,qu=20,La=30,Ju=40,ja=50;function ie(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const $a=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ua=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fa=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ba=[La,e=>{const t=$a.exec(e);if(t){const[,r,s,o]=t;return ie(r,"?",+s,+o)}const n=Ua.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Fa.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=fr(n[1]||"?",n[2]);return ie(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Ha=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ga=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,za=[ja,e=>{const t=Ha.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Ga.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||"?";return[s,r]=fr(s,r),ie(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Wa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vu=e=>{const t=Wa.exec(e);return t?ie(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},Zu=null,Ya=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Qu=e=>{const t=Ya.exec(e);return t?ie(t[2],t[3]||"?",+t[1]):void 0},el=null,qa=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,tl=e=>{const t=qa.exec(e);return t?ie(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0},nl=null,Ja=pn(...[Ba,za]),fr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ka=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fe={};function Rt(e){const t=Fe[e];if(t)return t;let n=b[e];if(ft(n))return Fe[e]=n.bind(b);const r=b.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Ka&&p.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Fe[e]=n.bind(b))}function dr(e){Fe[e]=void 0}function sl(...e){return Rt("fetch")(...e)}function ol(...e){return Rt("setTimeout")(...e)}function Xa(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return Ie(new x("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new w((a,c)=>{let l=t.length;if(!l)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(u=>{B(u).then(()=>{--l||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}const Va=60*1e3;function Za(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Va:r-t}function Qa(e,t){return e[t]||e.all||0}function ec(e,t,n=Date.now()){return Qa(e,t)>n}function tc(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,f]=a.split(":",5),u=parseInt(c,10),d=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+d;else for(const h of l.split(";"))h==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[h]=r+d):s[h]=r+d}else i?s.all=r+Za(i,r):t===429&&(s.all=r+60*1e3);return s}const nc=64;function rc(e,t,n=Xa(e.bufferSize||nc)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(pt(i,(u,d)=>{const h=Wn(d);if(ec(r,h)){const g=pr(u,d);e.recordDroppedEvent("ratelimit_backoff",h,g)}else a.push(u)}),a.length===0)return B({});const c=de(i[0],a),l=u=>{pt(c,(d,h)=>{const g=pr(d,h);e.recordDroppedEvent(u,Wn(h),g)})},f=()=>t({body:Vo(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&_&&p.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=tc(r,u),u),u=>{throw l("network_error"),u});return n.add(f).then(u=>u,u=>{if(u instanceof x)return _&&p.error("Skipped sending event because buffer is full."),l("queue_overflow"),B({});throw u})}return{send:o,flush:s}}function pr(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function sc(e,t=Rt("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return dr("fetch"),Ie("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return dr("fetch"),n-=i,r--,Ie(c)}}return rc(e,s)}var oc,ic,ac,cc,xt,Ot,ae;function uc(e){const t=[_o(),Oo(),da(),na(),Ta(),Ma(),Co(),Oa()];return e.autoSessionTracking!==!1&&t.push(_a()),t}function lc(e={}){const t={defaultIntegrations:uc(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE&&y.SENTRY_RELEASE.id?y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function fc(){const e=typeof y.window<"u"&&y;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=y.location&&y.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&y===y.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function dc(e={}){const t=lc(e);if(!t.skipBrowserExtensionCheck&&fc()){U(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}pe&&(lt()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:rs(t.stackParser||Ja),integrations:po(t),transport:t.transport||sc};return Lo(Ci,n)}function il(e={}){if(!ae.document){Ot&&xt.error("Global document not defined in showReportDialog call");return}const t=ic(),n=t.getClient(),r=n&&n.getDsn();if(!r){Ot&&xt.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=oc();a&&(e.eventId=a)}const s=ae.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=cc(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{ae.removeEventListener("message",a)}};ae.addEventListener("message",a)}const i=ae.document.head||ae.document.body;i?i.appendChild(s):Ot&&xt.error("Not injecting report dialog. No injection point found in HTML")}function al(){}function cl(e){e()}function ul(e){const t=ac();t&&t.captureUserFeedback(e)}class pc{constructor(t){if(!ao())dc(Object.assign(Object.assign({environment:t.environment,dsn:t.dsn},t.appVersion&&{release:t.appVersion}),{beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}}));else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=an();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign(Object.assign({},r),{environment:t.environment}),t.appVersion&&{release:t.appVersion}))))}}write(t){if(t.err){const n=new Error(t.err.message);n.name=t.msg?`${t.msg} - ${t.err.name}`:t.err.name,n.stack=t.err.stack,xn(n,{extra:{log:!0}})}else t.msg&&io(t.msg,{extra:{log:!0}})}}function Nt(){return Nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nt.apply(this,arguments)}var hr=typeof window<"u"?window.navigator.userAgent:"no-window",hc=/bot|crawler|spider|crawling/i.test(hr),gc={"Content-Type":"application/json"},mc=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,l=c===void 0?{}:c,f=n.throttleInterval,u=f===void 0?3e3:f,d=n.withCredentials,h=d!==void 0&&d,g=n.onError,K=n.flushOnClose,S=K!==void 0&&K,X=n.writeCondition;this.writeCondition=X===void 0?e.defaultWriteCondition:X,this.records={},this.headers=Nt({},gc,l),this.start({method:o,url:a,throttleInterval:u,withCredentials:h,onError:g}),S&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var ue=r.recordsAsArray();ue.length&&window.fetch(a,{method:o,body:JSON.stringify(ue),headers:r.headers,credentials:h?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function l(){r.currentThrottleTimeout=setTimeout(function(){var f=r.recordsAsArray();if(f.length){var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(u.status>=400&&(typeof c=="function"?c.call(r,f,u):console.warn("Browser Bunyan: A server log write failed")),r.records={},l())},u.open(s,o);for(var d=0,h=Object.entries(r.headers);d<h.length;d++){var g=h[d];u.setRequestHeader(g[0],g[1])}u.withCredentials=a,u.send(JSON.stringify(f))}else l()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=hr,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!hc},e}(),ll=10,fl=20,dl=30,pl=40,hl=50,gl=60,Ct={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},gr={};function Dt(e){return typeof e=="string"?Ct[e.toLowerCase()]:e}function At(e,t){return At=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},At(e,t)}function _c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pt(e,t,n){return Pt=_c()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&At(a,o.prototype),a},Pt.apply(null,arguments)}function Y(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function Mt(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return Mt(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function q(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=Mt(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(l){if(l==="%%")return"%";if(s>=i)return l;switch(l){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return l}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+Mt(c);return a}function yc(e,t){var n=e.split(`
|
|
18
|
+
Error:`,s)}}const b=m,Pi=1e3;let er,St,bt;function Mi(e){const t="dom";G(t,e),z(t,Li)}function Li(){if(!b.document)return;const e=R.bind(null,"dom"),t=tr(e,!0);b.document.addEventListener("click",t,!1),b.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=b[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(v(o,"addEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=f[a]=f[a]||{refCount:0};if(!u.handler){const d=tr(e);u.handler=d,i.call(this,a,d,l)}u.refCount++}catch{}return i.call(this,a,c,l)}}),v(o,"removeEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},u=f[a];u&&(u.refCount--,u.refCount<=0&&(i.call(this,a,u.handler,l),u.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,l)}}))})}function ji(e){if(e.type!==St)return!1;try{if(!e.target||e.target._sentryId!==bt)return!1}catch{}return!0}function $i(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function tr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Ui(n);if($i(n.type,r))return;F(n,"_sentryCaptured",!0),r&&!r._sentryId&&F(r,"_sentryId",I());const s=n.type==="keypress"?"input":n.type;ji(n)||(e({event:n,name:s,global:t}),St=n.type,bt=r?r._sentryId:void 0),clearTimeout(er),er=b.setTimeout(()=>{bt=void 0,St=void 0},Pi)}}function Ui(e){try{return e.target}catch{return null}}const he="__sentry_xhr_v3__";function Fi(e){const t="xhr";G(t,e),z(t,Bi)}function Bi(){if(!b.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=O()*1e3,i=x(r[0])?r[0].toUpperCase():void 0,a=Hi(r[1]);if(!i||!a)return t.apply(n,r);n[he]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[he];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const f={endTimestamp:O()*1e3,startTimestamp:o,xhr:n,virtualError:s};R("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,f,u){return c(),l.apply(f,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,f,u){const[d,h]=u,g=f[he];return g&&x(d)&&x(h)&&(g.request_headers[d.toLowerCase()]=h),l.apply(f,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[he];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:O()*1e3,xhr:n};return R("xhr",o),t.apply(n,r)}})}function Hi(e){if(x(e))return e;try{return e.toString()}catch{}}const je=m;function Gi(){const e=je.chrome,t=e&&e.app&&e.app.runtime,n="history"in je&&!!je.history.pushState&&!!je.history.replaceState;return!t&&n}let $e;function nr(e){const t="history";G(t,e),z(t,zi)}function zi(){if(!Gi())return;const e=b.onpopstate;b.onpopstate=function(...n){const r=b.location.href,s=$e;if($e=r,R("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=$e,i=String(s);$e=i,R("history",{from:o,to:i})}return n.apply(this,r)}}v(b.history,"pushState",t),v(b.history,"replaceState",t)}function Wi(e){const t="console";G(t,e),z(t,Yi)}function Yi(){"console"in m&&Je.forEach(function(e){e in m.console&&v(m.console,e,function(t){return Ee[e]=t,function(...n){R("console",{args:n,level:e});const s=Ee[e];s&&s.apply(m.console,n)}})})}var qi,Ji,Ki,Xi;function Vi(e,t){const n="fetch";G(n,e),z(n,()=>rr(void 0,t))}function Bu(e){const t="fetch-body-resolved";Ji(t,e),Ki(t,()=>rr(Qi))}function rr(e,t=!1){t&&!jo()||v(m,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=ea(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:O()*1e3,virtualError:s};return e||R("fetch",{...a}),n.apply(m,r).then(async c=>(e?e(c):R("fetch",{...a,endTimestamp:O()*1e3,response:c}),c),c=>{throw R("fetch",{...a,endTimestamp:O()*1e3,error:c}),We(c)&&c.stack===void 0&&(c.stack=s.stack,F(c,"framesToPop",1)),c})}})}async function Zi(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Qi(e){let t;try{t=e.clone()}catch{return}Zi(t,()=>{Xi("fetch-body-resolved",{endTimestamp:qi()*1e3,response:e})})}function vt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function sr(e){return typeof e=="string"?e:e?vt(e,"url")?e.url:e.toString?e.toString():"":""}function ea(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:sr(n),method:vt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:sr(t),method:vt(t,"method")?String(t.method).toUpperCase():"GET"}}const ta=100;function W(e,t){const n=E(),r=fe();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=ta}=n.getOptions();if(o<=0)return;const a={timestamp:le(),...e},c=s?U(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const Hu=null;function na(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function or(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Tt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Gu(e){return e.split(/[?#]/,1)[0]}function zu(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Wu(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const Ue=1024,ra="Breadcrumbs",sa=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ra,setup(n){t.console&&Wi(aa(n)),t.dom&&Mi(ia(n,t.dom)),t.xhr&&Fi(ca(n)),t.fetch&&Vi(ua(n)),t.history&&nr(la(n)),t.sentry&&n.on("beforeSendEvent",oa(n))}}};function oa(e){return function(n){E()===e&&W({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:D(n)},{event:n})}}function ia(e,t){return function(r){if(E()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ue&&(pe&&p.warn(`\`dom.maxStringLength\` cannot exceed ${Ue}, but a value of ${a} was configured. Sentry will use ${Ue} instead.`),a=Ue),typeof i=="string"&&(i=[i]);try{const l=r.event,f=fa(l)?l.target:l;s=Jt(f,{keyAttrs:i,maxStringLength:a}),o=xr(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),W(c,{event:r.event,name:r.name,global:r.global})}}function aa(e){return function(n){if(E()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:na(n.level),message:Kt(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Kt(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;W(r,{input:n.args,level:n.level})}}function ca(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[he];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:l}=o,f={method:i,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},d=or(c);W({category:"xhr",data:f,type:"http",level:d},u)}}function ua(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};W({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=or(i.status_code);W({category:"fetch",data:i,type:"http",level:c},a)}}}function la(e){return function(n){if(E()!==e)return;let r=n.from,s=n.to;const o=Tt(y.location.href);let i=r?Tt(r):void 0;const a=Tt(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),W({category:"navigation",data:{from:r,to:s}})}}function fa(e){return!!e&&!!e.target}const da=["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"],pa="BrowserApiErrors",ha=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:pa,setupOnce(){t.setTimeout&&v(y,"setTimeout",ir),t.setInterval&&v(y,"setInterval",ir),t.requestAnimationFrame&&v(y,"requestAnimationFrame",ga),t.XMLHttpRequest&&"XMLHttpRequest"in y&&v(XMLHttpRequest.prototype,"send",ma);const n=t.eventTarget;n&&(Array.isArray(n)?n:da).forEach(_a)}}};function ir(e){return function(...t){const n=t[0];return t[0]=se(n,{mechanism:{data:{function:M(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ga(e){return function(t){return e.apply(this,[se(t,{mechanism:{data:{function:"requestAnimationFrame",handler:M(e)},handled:!1,type:"instrument"}})])}}function ma(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&v(n,s,function(o){const i={mechanism:{data:{function:s,handler:M(o)},handled:!1,type:"instrument"}},a=Ke(o);return a&&(i.mechanism.data.handler=M(a)),se(o,i)})}),e.apply(this,t)}}function _a(e){const n=y[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(v(r,"addEventListener",function(s){return function(o,i,a){try{ya(i)&&(i.handleEvent=se(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:M(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,se(i,{mechanism:{data:{function:"addEventListener",handler:M(i),target:e},handled:!1,type:"instrument"}}),a])}}),v(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function ya(e){return typeof e.handleEvent=="function"}const Ea=()=>({name:"BrowserSession",setupOnce(){if(typeof y.document>"u"){pe&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Cn({ignoreDuration:!0}),Pn(),nr(({from:e,to:t})=>{e!==void 0&&e!==t&&(Cn({ignoreDuration:!0}),Pn())})}});let It=null;function Sa(e){const t="error";G(t,e),z(t,ba)}function ba(){It=m.onerror,m.onerror=function(e,t,n,r,s){return R("error",{column:r,error:s,line:n,msg:e,url:t}),It?It.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let wt=null;function va(e){const t="unhandledrejection";G(t,e),z(t,Ta)}function Ta(){wt=m.onunhandledrejection,m.onunhandledrejection=function(e){return R("unhandledrejection",e),wt?wt.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ia="GlobalHandlers",wa=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ia,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(ka(n),ar("onerror")),t.onunhandledrejection&&(Ra(n),ar("onunhandledrejection"))}}};function ka(e){Sa(t=>{const{stackParser:n,attachStacktrace:r}=cr();if(E()!==e||Zn())return;const{msg:s,url:o,line:i,column:a,error:c}=t,l=Oa(_t(n,c||s,void 0,r,!1),o,i,a);l.level="error",xn(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Ra(e){va(t=>{const{stackParser:n,attachStacktrace:r}=cr();if(E()!==e||Zn())return;const s=Na(t),o=qe(s)?xa(s):_t(n,s,void 0,r,!0);o.level="error",xn(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Na(e){if(qe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function xa(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Oa(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,f=n,u=x(t)&&t.length>0?t:Nr();return c.length===0&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:f}),e}function ar(e){pe&&p.log(`Global Handler attached: ${e}`)}function cr(){const e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ca=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=e.request&&e.request.url||y.location&&y.location.href,{referrer:n}=y.document||{},{userAgent:r}=y.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function Aa(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!j(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Da(kt(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function kt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(j(r[s],Error)){ur(i,a);const l=e(t,r[s]),f=c.length;lr(l,s,f,a),c=kt(e,t,n,r[s],s,[l,...c],l,f)}return Array.isArray(r.errors)&&r.errors.forEach((l,f)=>{if(j(l,Error)){ur(i,a);const u=e(t,l),d=c.length;lr(u,`errors[${f}]`,d,a),c=kt(e,t,n,l,s,[u,...c],u,d)}}),c}function ur(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function lr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Da(e,t){return e.map(n=>(n.value&&(n.value=ee(n.value,t)),n))}const Pa="cause",Ma=5,La="LinkedErrors",ja=(e={})=>{const t=e.limit||Ma,n=e.key||Pa;return{name:La,preprocessEvent(r,s,o){const i=o.getOptions();Aa(ht,i.stackParser,i.maxValueLength,n,t,r,s)}}},Xu=10,Vu=20,$a=30,Zu=40,Ua=50;function ie(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Fa=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ba=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ha=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ga=[$a,e=>{const t=Fa.exec(e);if(t){const[,r,s,o]=t;return ie(r,"?",+s,+o)}const n=Ba.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Ha.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=fr(n[1]||"?",n[2]);return ie(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],za=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Wa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ya=[Ua,e=>{const t=za.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Wa.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||"?";return[s,r]=fr(s,r),ie(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],qa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tl=e=>{const t=qa.exec(e);return t?ie(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},nl=null,Ja=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,rl=e=>{const t=Ja.exec(e);return t?ie(t[2],t[3]||"?",+t[1]):void 0},sl=null,Ka=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ol=e=>{const t=Ka.exec(e);return t?ie(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0},il=null,Xa=pn(...[Ga,Ya]),fr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Va=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fe={};function Rt(e){const t=Fe[e];if(t)return t;let n=b[e];if(ft(n))return Fe[e]=n.bind(b);const r=b.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Va&&p.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Fe[e]=n.bind(b))}function dr(e){Fe[e]=void 0}function cl(...e){return Rt("fetch")(...e)}function ul(...e){return Rt("setTimeout")(...e)}function Za(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return Ie(new k("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new w((a,c)=>{let l=t.length;if(!l)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(u=>{B(u).then(()=>{--l||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}const Qa=60*1e3;function ec(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Qa:r-t}function tc(e,t){return e[t]||e.all||0}function nc(e,t,n=Date.now()){return tc(e,t)>n}function rc(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,f]=a.split(":",5),u=parseInt(c,10),d=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+d;else for(const h of l.split(";"))h==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[h]=r+d):s[h]=r+d}else i?s.all=r+ec(i,r):t===429&&(s.all=r+60*1e3);return s}const sc=64;function oc(e,t,n=Za(e.bufferSize||sc)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(pt(i,(u,d)=>{const h=Wn(d);if(nc(r,h)){const g=pr(u,d);e.recordDroppedEvent("ratelimit_backoff",h,g)}else a.push(u)}),a.length===0)return B({});const c=de(i[0],a),l=u=>{pt(c,(d,h)=>{const g=pr(d,h);e.recordDroppedEvent(u,Wn(h),g)})},f=()=>t({body:Qo(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&_&&p.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=rc(r,u),u),u=>{throw l("network_error"),u});return n.add(f).then(u=>u,u=>{if(u instanceof k)return _&&p.error("Skipped sending event because buffer is full."),l("queue_overflow"),B({});throw u})}return{send:o,flush:s}}function pr(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function ic(e,t=Rt("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return dr("fetch"),Ie("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return dr("fetch"),n-=i,r--,Ie(c)}}return oc(e,s)}var ac,cc,uc,lc,Nt,xt,ae;function fc(e){const t=[Eo(),Co(),ha(),sa(),wa(),ja(),Do(),Ca()];return e.autoSessionTracking!==!1&&t.push(Ea()),t}function dc(e={}){const t={defaultIntegrations:fc(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE&&y.SENTRY_RELEASE.id?y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function pc(){const e=typeof y.window<"u"&&y;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=y.location&&y.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&y===y.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function hc(e={}){const t=dc(e);if(!t.skipBrowserExtensionCheck&&pc()){U(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}pe&&(lt()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:rs(t.stackParser||Xa),integrations:go(t),transport:t.transport||ic};return $o(Di,n)}function ll(e={}){if(!ae.document){xt&&Nt.error("Global document not defined in showReportDialog call");return}const t=cc(),n=t.getClient(),r=n&&n.getDsn();if(!r){xt&&Nt.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=ac();a&&(e.eventId=a)}const s=ae.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=lc(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{ae.removeEventListener("message",a)}};ae.addEventListener("message",a)}const i=ae.document.head||ae.document.body;i?i.appendChild(s):xt&&Nt.error("Not injecting report dialog. No injection point found in HTML")}function fl(){}function dl(e){e()}function pl(e){const t=uc();t&&t.captureUserFeedback(e)}class gc{constructor(t){if(!uo())hc(Object.assign(Object.assign({environment:t.environment,dsn:t.dsn},t.appVersion&&{release:t.appVersion}),{beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}}));else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=an();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign(Object.assign({},r),{environment:t.environment}),t.appVersion&&{release:t.appVersion}))))}}write(t){if(t.err){const n=new Error(t.err.message);n.name=t.msg?`${t.msg} - ${t.err.name}`:t.err.name,n.stack=t.err.stack,Nn(n,{extra:{log:!0}})}else t.msg&&co(t.msg,{extra:{log:!0}})}}function Ot(){return Ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}var hr=typeof window<"u"?window.navigator.userAgent:"no-window",mc=/bot|crawler|spider|crawling/i.test(hr),_c={"Content-Type":"application/json"},yc=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,l=c===void 0?{}:c,f=n.throttleInterval,u=f===void 0?3e3:f,d=n.withCredentials,h=d!==void 0&&d,g=n.onError,K=n.flushOnClose,S=K!==void 0&&K,X=n.writeCondition;this.writeCondition=X===void 0?e.defaultWriteCondition:X,this.records={},this.headers=Ot({},_c,l),this.start({method:o,url:a,throttleInterval:u,withCredentials:h,onError:g}),S&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var ue=r.recordsAsArray();ue.length&&window.fetch(a,{method:o,body:JSON.stringify(ue),headers:r.headers,credentials:h?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function l(){r.currentThrottleTimeout=setTimeout(function(){var f=r.recordsAsArray();if(f.length){var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(u.status>=400&&(typeof c=="function"?c.call(r,f,u):console.warn("Browser Bunyan: A server log write failed")),r.records={},l())},u.open(s,o);for(var d=0,h=Object.entries(r.headers);d<h.length;d++){var g=h[d];u.setRequestHeader(g[0],g[1])}u.withCredentials=a,u.send(JSON.stringify(f))}else l()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=hr,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!mc},e}(),hl=10,gl=20,ml=30,_l=40,yl=50,El=60,Ct={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},gr={};function At(e){return typeof e=="string"?Ct[e.toLowerCase()]:e}function Dt(e,t){return Dt=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Dt(e,t)}function Ec(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pt(e,t,n){return Pt=Ec()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&Dt(a,o.prototype),a},Pt.apply(null,arguments)}function Y(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function Mt(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return Mt(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function q(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=Mt(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(l){if(l==="%%")return"%";if(s>=i)return l;switch(l){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return l}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+Mt(c);return a}function Sc(e,t){var n=e.split(`
|
|
19
19
|
`);n[0]&&n[0].indexOf("call-stack-error")>=0&&n.shift();var r=n[t],s=null;if(r){var o=/^\s*(at|.*@)\s*(.+)?$/.exec(r);s=Array.isArray(o)&&o[2]?o[2]:r}return s}Object.keys(Ct).forEach(function(e){gr[Ct[e]]=e});var Lt={};function jt(e,t){if(t){if(Lt[t])return;Lt[t]=!0}console.error(e+`
|
|
20
|
-
`)}function
|
|
21
|
-
%s`,o,i.stack||i)),n[o]=q('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',o)}})},t._emit=function(n,r){var s,o;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,s=0;s<this.streams.length;s++)if(!this.streams[s].raw){this.haveNonRawStreams=!0;break}}if(r||this.haveNonRawStreams)try{o=JSON.stringify(n,
|
|
20
|
+
`)}function bc(e){return Lt[e]}function vc(){var e=[];return function(t,n){return n&&typeof n=="object"?e.indexOf(n)!==-1?"[Circular]":(e.push(n),n):n}}var Tc=function(){function e(){}return e.prototype.write=function(t){t.level<30?console.log(t):t.level<40?console.info(t):t.level<50?console.warn(t):console.error(t),t.err&&t.err.stack&&console.error(t.err.stack),t.obj&&console.log(t.obj)},e}(),J=function(){function e(n,r,s){var o,i,a,c,l=this;if(!(this instanceof e))return new e(n,r);if(r!==void 0&&(o=n,n=r,!(o instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!n)throw new TypeError("options (object) is required");if(o){if(n.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!n.name)throw new TypeError("options.name (string) is required");if(n.stream&&n.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(n.streams&&!Array.isArray(n.streams))throw new TypeError("invalid options.streams: must be an array");if(n.serializers&&(typeof n.serializers!="object"||Array.isArray(n.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(o&&s){this._level=o._level,this.streams=o.streams,this.serializers=o.serializers,this.src=o.src,i=this.fields={};var f=Object.keys(o.fields);for(c=0;c<f.length;c++)i[a=f[c]]=o.fields[a];var u=Object.keys(n);for(c=0;c<u.length;c++)i[a=u[c]]=n[a]}else{if(o){for(this._level=o._level,this.streams=[],c=0;c<o.streams.length;c++){var d=Y(o.streams[c]);this.streams.push(d)}this.serializers=Y(o.serializers),this.src=o.src,this.fields=Y(o.fields),n.level&&this.level(n.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};n.stream?this.addStream({type:"stream",stream:n.stream,level:n.level}):n.streams?n.streams.forEach(function(h){l.addStream(h,n.level)}):o&&n.level?this.level(n.level):o||this.addStream({type:"raw",stream:new Tc,level:n.level}),n.serializers&&this.addSerializers(n.serializers),n.src&&(this.src=!0),delete(i=Y(n)).stream,delete i.level,delete i.streams,delete i.serializers,delete i.src,this.serializers&&this._applySerializers(i),Object.keys(i).forEach(function(h){l.fields[h]=i[h]})}}var t=e.prototype;return t.addStream=function(n,r){r===void 0&&(r=30),(n=Y(n)).type="raw",n.level=At(n.level||r),n.level<this._level&&(this._level=n.level),this.streams.push(n),delete this.haveNonRawStreams},t.addSerializers=function(n){var r=this;this.serializers||(this.serializers={}),Object.keys(n).forEach(function(s){var o=n[s];if(typeof o!="function")throw new TypeError(q('invalid serializer for "%s" field: must be a function',s));r.serializers[s]=o})},t.child=function(n,r){return new this.constructor(this,n||{},r)},t.level=function(n){if(n===void 0)return this._level;for(var r=At(n),s=this.streams.length,o=0;o<s;o++)this.streams[o].level=r;this._level=r},t.levels=function(n,r){if(n===void 0)return this.streams.map(function(l){return l.level});var s;if(typeof n=="number"){if((s=this.streams[n])===void 0)throw new Error("invalid stream index: "+n)}else{for(var o=this.streams.length,i=0;i<o;i++){var a=this.streams[i];if(a.name===n){s=a;break}}if(!s)throw new Error(q('no stream with name "%s"',n))}if(r===void 0)return s.level;var c=At(r);s.level=c,c<this._level&&(this._level=c)},t._applySerializers=function(n,r){var s=this;Object.keys(this.serializers).forEach(function(o){if(!(n[o]===void 0||r&&r[o]))try{n[o]=s.serializers[o](n[o])}catch(i){jt(q(`bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.
|
|
21
|
+
%s`,o,i.stack||i)),n[o]=q('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',o)}})},t._emit=function(n,r){var s,o;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,s=0;s<this.streams.length;s++)if(!this.streams[s].raw){this.haveNonRawStreams=!0;break}}if(r||this.haveNonRawStreams)try{o=JSON.stringify(n,vc())+`
|
|
22
22
|
`}catch(l){var i=l.stack.split(/\n/g,2).join(`
|
|
23
23
|
`);jt('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(f,u){return u||(u=" "),u+f.split(/\r?\n/g).join(`
|
|
24
24
|
`+u)}(q(`%s
|
|
25
25
|
%s`,n,l.stack)),i),o=q(`(Exception in JSON.stringify(rec): %j. See stderr for details.)
|
|
26
|
-
`,l.message)}if(r)return o;var a=n.level;for(s=0;s<this.streams.length;s++){var c=this.streams[s];c.level<=a&&c.stream.write(n)}return o},e}();function ce(e){return function(){var t=this;function n(i){var a;i[0]instanceof Error?(r={err:t.serializers&&t.serializers.err?t.serializers.err(i[0]):
|
|
27
|
-
Caused by: `+mr(n))}return t}J.prototype.trace=ce(10),J.prototype.debug=ce(20),J.prototype.info=ce(30),J.prototype.warn=ce(40),J.prototype.error=ce(50),J.prototype.fatal=ce(60);var
|
|
26
|
+
`,l.message)}if(r)return o;var a=n.level;for(s=0;s<this.streams.length;s++){var c=this.streams[s];c.level<=a&&c.stream.write(n)}return o},e}();function ce(e){return function(){var t=this;function n(i){var a;i[0]instanceof Error?(r={err:t.serializers&&t.serializers.err?t.serializers.err(i[0]):Ic.err(i[0])},a={err:!0},s=i.length===1?[r.err.message]:Array.prototype.slice.call(i,1)):typeof i[0]!="object"&&i[0]!==null||Array.isArray(i[0])?(r=null,s=Array.prototype.slice.call(i)):(r=i[0],s=i.length===1&&r.err&&r.err instanceof Error?[r.err.message]:Array.prototype.slice.call(i,1));var c=Y(t.fields);c.level=e;var l=r?Y(r):null;if(l&&(t.serializers&&t._applySerializers(l,a),Object.keys(l).forEach(function(u){c[u]=l[u]})),c.levelName=gr[e],c.msg=s.length?q.apply(t,s):"",c.time||(c.time=new Date),t.src&&!c.src)try{throw new Error("call-stack-error")}catch(u){var f=u.stack?Sc(u.stack,2):"";f||bc("src")||jt("Unable to determine src line info","src"),c.src=f||""}return c.v=1,c}var r=null,s=arguments,o=null;if(arguments.length===0)return this._level<=e;this._level>e||(o=n(s),this._emit(o))}}function mr(e){var t=e.stack||e.toString();if(e.cause&&typeof e.cause=="function"){var n=e.cause();n&&(t+=`
|
|
27
|
+
Caused by: `+mr(n))}return t}J.prototype.trace=ce(10),J.prototype.debug=ce(20),J.prototype.info=ce(30),J.prototype.warn=ce(40),J.prototype.error=ce(50),J.prototype.fatal=ce(60);var Ic={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:mr(e),code:e.code,signal:e.signal}:e}};function wc(){return Pt(J,[].slice.call(arguments))}var Sl=null,bl=null,vl=null;function kc({environment:e,clientSlug:t,url:n,telemetry:r,appVersion:s}={}){const{logging:o}=Object.assign({},r),i=[{level:Ft,stream:new br({logByLevel:!0})}];return o&&i.push({level:Be,stream:new gc({dsn:"https://509e6f450227e178643e414fe50bd969@o4507853291716608.ingest.us.sentry.io/4508132363141120",environment:e,clientSlug:t,appVersion:s})}),n&&i.push({level:Be,stream:new yc({url:n,method:"POST",throttleInterval:5e3,flushOnClose:!0})}),wc({name:"embeddable-logger",streams:i,environment:e,clientSlug:t})}}}]);
|
|
28
28
|
|
|
29
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=921.index.js.map
|