1!function(){"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch($r){if("object"==typeof window)return window}}();function e(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function n(t,n,r){return n||`${function(t){return`${e(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,r)}`}const r="production",s="10.75.0",i=globalThis;function o(){return a(i),i}function a(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||s,e[s]=e[s]||{}}function c(t,e,n=i){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[s]=r[s]||{};return o[t]||(o[t]=e())}const u={};function p(t){if(!("console"in i))return t();const e=i.console,n={},r=Object.keys(u);r.forEach(t=>{const r=u[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function f(...t){l("error",...t)}function l(t,...e){}const d=Object.prototype.toString;function h(t){switch(d.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return w(t,Error)}}function _(t,e){return d.call(t)===`[object ${e}]`}function g(t){return _(t,"ErrorEvent")}function m(t){return _(t,"DOMError")}function y(t){return _(t,"String")}function v(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function b(t){return null===t||v(t)||"object"!=typeof t&&"function"!=typeof t}function E(t){return _(t,"Object")}function S(t){return"object"==typeof t&&null!==t}function x(t){return"undefined"!=typeof Event&&w(t,Event)}function k(t){return Boolean(t?.then&&"function"==typeof t.then)}function w(t,e){try{return t instanceof e}catch{return!1}}function O(t,e,n){if(!(e in t))return;const r=t[e];if("function"!=typeof r)return;const s=n(r);"function"==typeof s&&P(s,r);try{t[e]=s}catch{}}function I(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{}}function P(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,I(t,"__sentry_original__",e)}catch{}}function j(t){return t.__sentry_original__}function C(t){if(h(t))return{message:t.message,name:t.name,stack:t.stack,...$(t)};if(x(t)){const{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...$(t)}}return t}function $(t){return S(t)?Object.fromEntries(Object.entries(t)):{}}let A;function R(t){if(void 0!==A)return A?A(t):t();const e=Symbol["for"]("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=i;return e in n&&"function"==typeof n[e]?(A=n[e],A(t)):(A=null,t())}function D(){return R(()=>Math.random())}function L(){return R(()=>Date.now())}let N;function M(t=function(){const t=i;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return R(()=>t.randomUUID()).replace(/-/g,"")}catch{}return N||(N="10000000100040008000100000000000"),N.replace(/[018]/g,t=>(t^(16*D()&15)>>t/4).toString(16))}function T(t){return t.exception?.values?.[0]}function U(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function q(t,e){const n=T(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function B(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{I(t,"__sentry_captured__",!0)}catch{}return!1}function F(){return L()/1e3}let W;function z(){return(W??(W=function(){const{performance:t}=i;if(!t?.now||!t.timeOrigin)return F;const e=t.timeOrigin;return()=>(e+R(()=>t.now()))/1e3}()))()}function H(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||z(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:M()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Q(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Q(r[t],e[t],n-1));return r}function J(){return M()}function Y(){return M().substring(16)}function K(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}const V="_sentrySpan";function X(t,e){e?I(t,V,function(t){try{const e=i.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(e)):delete t[V]}function G(t){return K(t[V])}function Z(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function tt(t,e,n=!1){return!!y(t)&&(_(e,"RegExp")?e.test(t):y(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function et(t,e=[],n=!1){for(const r of e)if(tt(t,r,n))return!0;return!1}class nt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:J(),sampleRand:D()}}clone(){const t=new nt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,X(t,G(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&&H(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},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,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,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 e="function"==typeof t?t(this):t,n=e instanceof nt?e.getScopeData():E(e)?t:void 0,{tags:r,attributes:s,extra:i,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:p,conversationId:f}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,X(this,void 0),this._attachments=[],this.setPropagationContext({traceId:J(),sampleRand:D()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:F(),...t,message:t.message?Z(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(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,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:G(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Q(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||M();if(!this._client)return n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||M();if(!this._client)return r;const s=n?.syntheticException??new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=t.event_id||e?.event_id||M();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(t=>{t(this)}),this._notifyingListeners=!1)}}const rt=t=>t instanceof Promise&&!t[st],st=Symbol("chained PromiseLike"),it=(t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const s=t[r];"function"==typeof s?Object.defineProperty(e,r,{value:(...e)=>s.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[st]:!0}),e};class ot{constructor(t,e){let n,r;n=t||new nt,r=e||new nt,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch($r){throw this._popScope(),$r}return k(n)?((t,e,n)=>{const r=t.then(t=>(e(t),t),t=>{throw n(t),t});return rt(r)&&rt(t)?r:it(t,r)})(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function at(){const t=a(o());return t.stack=t.stack||new ot(c("defaultCurrentScope",()=>new nt),c("defaultIsolationScope",()=>new nt))}function ct(t){return at().withScope(t)}function ut(t,e){const n=at();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function pt(t){return at().withScope(()=>t(at().getIsolationScope()))}function ft(t){const e=a(t);return e.acs?e.acs:{withIsolationScope:pt,withScope:ct,withSetScope:ut,withSetIsolationScope:(t,e)=>pt(e),getCurrentScope:()=>at().getScope(),getIsolationScope:()=>at().getIsolationScope()}}let lt;function dt(){return ft(o()).getCurrentScope()}function ht(){return dt().getClient()}function _t(t){const e=lt?.();if(e)return{trace_id:e.traceId,span_id:e.spanId};const n=t.getPropagationContext(),{traceId:r,parentSpanId:s,propagationSpanId:i}=n,o={trace_id:r,span_id:i||Y()};return s&&(o.parent_span_id=s),o}const gt=/^o(\d+)\./,mt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function yt(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function vt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function bt(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(gt);return e?.[1]}(n)),r}function Et(t){const e="string"==typeof t?function(t){const e=mt.exec(t);if(!e)return void p(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,r,s="",i="",o="",a=""]=e.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return vt({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}(t):vt(t);if(e)return e}const St=Symbol["for"]("sentry.skipNormalization"),xt=Symbol["for"]("sentry.overrideNormalizationDepth");const kt=/\(error: (.*)\)/,wt=/captureMessage|captureException/;function Ot(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],i=t.split("\n");for(let t=n;t<i.length;t++){let n=i[t];n.length>1024&&(n=n.slice(0,1024));const o=kt.test(n)?n.replace(kt,"$1"):n;if(!o.includes("Error: ")){for(const t of e){const e=t(o);if(e){s.push(e);break}}if(s.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(It(e)["function"]||"")&&e.pop();e.reverse(),wt.test(It(e)["function"]||"")&&(e.pop(),wt.test(It(e)["function"]||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||It(e).filename,"function":t["function"]||"?"}))}(s.slice(r))}}function It(t){return t[t.length-1]||{}}const Pt="<anonymous>";function jt(t){try{return t&&"function"==typeof t&&t.name||Pt}catch{return Pt}}function Ct(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return}}}let $t;function At(t,e=100,n=Infinity){try{return Dt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Rt(t,e=3,n=102400){const r=At(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?Rt(t,e-1,n):r;var s}function Dt(e,n,r=Infinity,s=Infinity,i=function(){const t=new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t["delete"](e)}return[e,n]}()){const[o,a]=i;
1if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(e,n){try{if($t){const t=$t(n);if(t)return t}if("undefined"!=typeof t.g&&n===t.g)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${jt(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const e=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(n);return`[object ${e}]`}catch(r){return`**non-serializable** (${r})`}}(0,n);if(!c.startsWith("[object "))return c;if(function(t){return Boolean(t[St])}(n))return n;const u=function(t){const e=t[xt];return"number"==typeof e?e:void 0}(n),p=void 0!==u?u:r;if(0===p)return c.replace("object ","");if(o(n))return"[Circular ~]";const f=n;if(f&&"function"==typeof f.toJSON)try{return Dt("",f.toJSON(),p-1,s,i)}catch{}const l=Array.isArray(n)?[]:{};let d=0;const h=C(n);for(const t in h){if(!Object.prototype.hasOwnProperty.call(h,t))continue;if(d>=s){l[t]="[MaxProperties ~]";break}const e=h[t];l[t]=Dt(t,e,p-1,s,i),d++}return a(n),l}function Lt(t,e=[]){return[t,e]}function Nt(t,e){const[n,r]=t;return[n,[...r,e]]}function Mt(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function Tt(t){const e=a(i);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function Ut(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[Tt(r),t]:r.push("string"==typeof t?Tt(t):t)}for(const t of n){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(At(n))}s(t)}}return"string"==typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function qt(t){const e="string"==typeof t.data?Tt(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const Bt={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Ft(t){return function(t){return t in Bt}(t)?Bt[t]:t}function Wt(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function zt(t,e,n,r){const s=Wt(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);const o=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(L()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:yt(r)},...s&&{trace:s}}}(t,s,r,e);delete t.sdkProcessingMetadata;return Lt(o,[[{type:i},t]])}const Ht=[];function Qt(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Jt(t,e,n){if(!n[e.name]){if(n[e.name]=e,Ht.includes(e.name)||"function"!=typeof e.setupOnce||(e.setupOnce(),Ht.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{const r=e[n];"function"==typeof r&&t.on(n,n=>r.call(e,n,t))})}}function Yt(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Kt(){return"undefined"!=typeof window&&(!Yt()||function(){const t=i.process;return"renderer"===t?.type}())}function Vt(t,e){const n=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Kt()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Xt(t,e){const n=e??Gt(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=yt(r)),Lt(i,[Vt(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Zt().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function Gt(t){return Zt().get(t)}function Zt(){return c("clientToLogBufferMap",()=>new WeakMap)}function te(t,e){const n=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Kt()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function ee(t,e){const n=e??ne(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=yt(r)),Lt(i,[te(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);re().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function ne(t){return re().get(t)}function re(){return c("clientToMetricBufferMap",()=>new WeakMap)}const se="sentry.profile_id",ie="sentry.exclusive_time";const oe="sentry-";function ae(t){if(t&&(y(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>{const n=ce(e);
1return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{}):ce(t)}function ce(t){return t.split(",").map(t=>{const e=t.indexOf("=");if(-1===e)return[];return[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}function ue(t,e){const{value:n,unit:r}="object"==typeof(s=t)&&null!=s&&!Array.isArray(s)&&Object.keys(s).includes("value")?t:{value:t,unit:void 0};var s;const i=function(t){if(Array.isArray(t))return{value:t,type:"array"};const e="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(e)return{value:t,type:e}}(n),o=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...o};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...o}}function pe(t,e=!1){const n={};for(const[r,s]of Object.entries(t??{})){const t=ue(s,e);t&&(n[r]=t)}return n}const fe="_sentryScope",le="_sentryIsolationScope";function de(t){const e=t;return{scope:e[fe],isolationScope:K(e[le])}}let he=!1;function _e(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:ve(t).parent_span_id,i=de(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||Y():e,trace_id:n}}function ge(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function me(t){return"number"==typeof t?ye(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ye(t.getTime()):z()}function ye(t){return t>9999999999?t/1e3:t}function ve(t){if(Se(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(Ee(t)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:be(t),start_timestamp:me(s),timestamp:me(o)||void 0,status:xe(a),op:r["sentry.op"],origin:r["sentry.origin"],links:ge(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function be(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Ee(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}function Se(t){return"function"==typeof t.getSpanJSON}function xe(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const ke="_sentryRootSpan";const we=Oe;function Oe(t){return t[ke]||t}function Ie(){he||(p(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),he=!0)}const Pe=Symbol["for"]("sentry.nonRecordingSpan");const je="_frozenDsc";function Ce(t,e){const n=e.getOptions(),{publicKey:s}=e.getDsn()||{},i={environment:n.environment||r,release:n.release,public_key:s,trace_id:t,org_id:bt(e)};return e.emit("createDsc",i),i}function $e(t,e){const n=e.getPropagationContext();return n.dsc||Ce(n.traceId,t)}function Ae(t){const e=ht();if(!e)return{};const n=we(t),r=ve(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(t){return"number"!=typeof o&&"string"!=typeof o||(t.sample_rate=`${o}`),t}const c=n[je];if(c)return a(c);const u=function(t){return!!t&&!0===t[Pe]}(n),p=u&&"ignored"===n.dropReason;if(u&&(e.getOptions(),1)){const t=de(n).scope;if(t){const n={...$e(e,t)};return p&&(n.sampled="false"),a(n)}}const f=i?.get("sentry.dsc"),l=f&&function(t){const e=ae(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>(e.startsWith(oe)&&(t[e.slice(7)]=n),t),{});return Object.keys(n).length>0?n:void 0}(f);if(l)return a(l);const d=Ce(t.spanContext().traceId,e),h=s["sentry.source"]??s["sentry.segment.name.source"],_=r.description;return"url"!==h&&_&&(d.transaction=_),a(d),e.emit("createDsc",d,n),d}function Re(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:t.status&&"ok"!==t.status&&"cancelled"!==t.status?"error":"ok",is_segment:!1,attributes:{...t.data},links:t.links};return n=e,{...n,attributes:pe(n.attributes),links:n.links?.map(t=>({...t,attributes:pe(t.attributes)}))};var n}function De(t){return new Ne(e=>{e(t)})}function Le(t){return new Ne((e,n)=>{n(t)})}class Ne{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new Ne((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch($r){r($r)}else n(e)},t=>{if(e)try{n(e(t))}catch($r){r($r)}else r(t)}]),this._executeHandlers()})}"catch"(t){return this.then(t=>t,t)}"finally"(t){return new Ne((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(k(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch($r){r($r)}}}function Me(t,e,n,r=0){try{const s=Te(e,n,t,r);return k(s)?s:De(s)}catch(f){return Le(f)}}function Te(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return k(i)?i.then(t=>Te(t,e,n,r+1)):Te(i,e,n,r+1)}let Ue,qe,Be,Fe;function We(t){const e=i._sentryDebugIds,n=i._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(Fe&&r.length===qe&&s.length===Be)return Fe;qe=r.length,Be=s.length,Fe={},Ue||(Ue={});const o=(e,n)=>{for(const r of e){const e=n[r],s=Ue?.[r];
1if(s&&Fe&&e)Fe[s[0]]=e,Ue&&(Ue[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],i=s?.filename;if(i&&Fe&&Ue){Fe[i]=e,Ue[r]=[i,e];break}}}}};return e&&o(r,e),n&&o(s,n),Fe}function ze(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(s).length&&(t.user={...s,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});o&&(t.level=o);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:_e(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ae(e),...t.sdkProcessingMetadata};const n=we(e),r=ve(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function He(t,e){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:_}=e;Qe(t,"extra",n),Qe(t,"tags",r),Qe(t,"attributes",s),Qe(t,"user",i),Qe(t,"contexts",o),t.sdkProcessingMetadata=Q(t.sdkProcessingMetadata,c,2),a&&(t.level=a),h&&(t.transactionName=h),_&&(t.span=_),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...d}}function Qe(t,e,n){t[e]=Q(t[e],n,1)}function Je(t,e){const n=c("globalScope",()=>new nt).getScopeData();return t&&He(n,t.getScopeData()),e&&He(n,e.getScopeData()),n}function Ye(t,e,n,s,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||M(),timestamp:e.timestamp||F()},p=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:s,dist:i,maxValueLength:o}=e;t.environment=t.environment||n||r,!t.release&&s&&(t.release=s);!t.dist&&i&&(t.dist=i);const a=t.request;a?.url&&o&&(a.url=Z(a.url,o));o&&t.exception?.values?.forEach(t=>{t.value&&(t.value=Z(t.value,o))})}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,p),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=We(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(u,t.stackParser);const f=function(t,e){if(!e)return t;const n=t?t.clone():new nt;return n.update(e),n}(s,n.captureContext);n.mechanism&&q(u,n.mechanism);const l=i?i.getEventProcessors():[],d=Je(o,f),h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),ze(u,d);const _=[...l,...d.eventProcessors];return(n.data&&!0===n.data.__sentry__?De(u):Me(_,u,n)).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof a&&a>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:At(t.data,e,n)}}))},...t.user&&{user:At(t.user,e,n)},...t.contexts&&{contexts:At(t.contexts,e,n)},...t.extra&&{extra:At(t.extra,e,n)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=At(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>
1({...t,...t.data&&{data:At(t.data,e,n)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=At(t.contexts.flags,3,n));return r}(t,a,c):t))}function Ke(t){if(t)return function(t){return t instanceof nt||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Ve.includes(t))}(t)?{captureContext:t}:t}const Ve=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Xe(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}const Ge=Symbol["for"]("SentryBufferFullError");function Ze(t=100){const e=new Set;function n(t){e["delete"](t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.size<t))return Le(Ge);const s=r();return e.add(s),s.then(()=>n(s),()=>n(s)),s},drain:function(t){if(!e.size)return De(!0);const n=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return n;const r=[n,new Promise(e=>Xe(setTimeout(()=>e(!1),t)))];return Promise.race(r)}}}function tn(t,e){if(!e?.length)return!1;for(const n of e){if(rn(n)){if(t.description&&tt(t.description,n))return!0;continue}const e=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!e)continue;const r=!n.name||t.description&&tt(t.description,n.name),s=!n.op||t.op&&tt(t.op,n.op),i=!n.attributes||Object.entries(n.attributes).every(([e,n])=>en(t.attributes?.[e],n));if(r&&s&&i)return!0}return!1}function en(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?tt(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e}function nn(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const e of t)e.parent_span_id===r&&(e.parent_span_id=n)}function rn(t){return"string"==typeof t||t instanceof RegExp}const sn=["forwarded","-ip","remote-","via","-user"];const on={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function an(t,e){return void 0===t?{...e.httpHeaders}:"boolean"==typeof(n=t)||"allow"in n||"deny"in n?{request:t,response:t}:{request:t.request??e.httpHeaders.request,response:t.response??e.httpHeaders.response};var n}function cn(t){const e=null!=t.dataCollection?on:!0===t.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:sn},httpHeaders:{request:{deny:sn},response:{deny:sn}},httpBodies:[],urlQueryParams:{deny:sn},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7};const n=t.dataCollection??{};return{userInfo:n.userInfo??e.userInfo,cookies:n.cookies??e.cookies,httpHeaders:an(n.httpHeaders,e),httpBodies:n.httpBodies??e.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??e.urlQueryParams,graphQL:{document:n.graphQL?.document??e.graphQL.document,variables:n.graphQL?.variables??e.graphQL.variables},genAI:{inputs:n.genAI?.inputs??e.genAI.inputs,outputs:n.genAI?.outputs??e.genAI.outputs},databaseQueryData:n.databaseQueryData??e.databaseQueryData,stackFrameVariables:n.stackFrameVariables??e.stackFrame
1Variables,frameContextLines:n.frameContextLines??e.frameContextLines}}const un=Symbol["for"]("SentryInternalError"),pn=Symbol["for"]("SentryDoNotSendEventError");function fn(t){return{message:t,[un]:!0}}function ln(t){return{message:t,[pn]:!0}}function dn(t){return S(t)&&un in t}function hn(t){return S(t)&&pn in t}function _n(t,e,n,r,s){let i,o=0,a=!1;t.on(n,()=>{o=0,clearTimeout(i),a=!1}),t.on(e,e=>{if(o+=r(e),o>=8e5)s(t);else if(!a){const e=t.getOptions()._flushInterval??5e3;e>0&&(a=!0,i=Xe(setTimeout(()=>{s(t)},e)))}}),t.on("flush",()=>{s(t)})}class gn{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ze(t.transportOptions?.bufferSize??64),this._dataCollection=cn(t),t.dsn&&(this._dsn=Et(t.dsn)),this._dsn){const e=n(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&_n(this,"afterCaptureLog","flushLogs",En,Xt);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&_n(this,"afterCaptureMetric","flushMetrics",bn,ee)}captureException(t,e,n){const r=M();if(B(t))return r;const s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(t=>this._captureEvent(t,s,n)).then(t=>t),"error"),s.event_id}captureMessage(t,e,n,r){const s={event_id:M(),...n},i=v(t)?t:String(t),o=b(t),a=o?this.eventFromMessage(i,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),o?"unknown":"error"),s.event_id}captureEvent(t,e,n){const r=M();if(e?.originalException&&B(e.originalException))return r;const s={event_id:r,...e},i=t.sdkProcessingMetadata||{},o=i.capturedSpanScope,a=i.capturedSpanIsolationScope,c=mn(t.type);return this._process(()=>this._captureEvent(t,s,o||n,a),c),s.event_id}captureSession(t){this.sendSession(t),H(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(this.emit("flush"),!e)return!0;const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const e=this._integrations[t.name];!e&&t.beforeSetup&&t.beforeSetup(this),Jt(this,t,this._integrations),e||Qt(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);const n=function(t,e){if("transaction"!==t.type||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||!1===e.getOptions().streamGenAiSpans||function(t){return"stream"===t.getOptions().traceLifecycle}(e))return;const n=[],r=[];for(const e of t.spans)e.op?.startsWith("gen_ai.")?n.push(Re(e)):r.push(e);if(0===n.length)return;t.spans=r;const s=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Kt()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}(t,this);let r=zt(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])r=Nt(r,qt(t));n&&(r=Nt(r,n)),this.sendEnvelope(r).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:e,environment:n=r}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return;r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return;t.release=t.release||e,t.environment=t.environment||n}
1this.emit("beforeSendSession",t);const s=function(t,e,n,r){const s=Wt(n);return Lt({sent_at:new Date(L()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:yt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...t)=>e(...t);return n.add(r),()=>{n["delete"](r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(t=>t(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(e){return{}}return{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e?.beforeSetup&&e.beforeSetup(t)}),e.forEach(e=>{e&&Jt(t,e,n)}),n}(this,t),Qt(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const i="ok"===t.status;(i&&0===t.errors||i&&n)&&(H(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||e<t;){if(await new Promise(t=>setTimeout(t,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const s=this.getOptions(),i=this.getIntegrationNames();return!e.integrations&&i.length&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Ye(s,t,e,n,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:{...t.contexts?.trace,..._t(n)},...t.contexts};const r=$e(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}_captureEvent(t,e={},n=dt(),r=function(){return ft(o()).getIsolationScope()}()){return this._processEvent(t,e,n,r).then(t=>t.event_id,t=>{0})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=vn(t),a=yn(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===i?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}(i),p=mn(t.type);return this._prepareEvent(t,e,n,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",p),ln("An event processor returned `null`, will not send event.");if(!0===e.data?.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:i,ignoreSpans:o}=e,a=(c=e.beforeSendSpan,!(c&&"function"==typeof c&&"_streamed"in c&&c._streamed)&&e.beforeSendSpan);var c;let u=n;if(yn(u)&&s)return s(u,r);if(vn(u)){if(a||o){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=t.contexts?.trace??{};return{data:o??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:o?.[se],exclusive_time:o?.[ie],measurements:t.measurements,is_segment:!0}}(u);if(o?.length&&tn({description:e.description,op:e.op,attributes:e.data},o))return null;if(a){const t=a(e);t?u=Q(n,{type:"transaction",timestamp:(p=t).timestamp,start_timestamp:p.start_timestamp,transaction:p.description,contexts:{trace:{trace_id:p.trace_id,span_id:p.span_id,parent_span_id:p.parent_span_id,op:p.op,status:p.status,origin:p.origin,data:{...p.data,...p.profile_id&&{[se]:p.profile_id},...p.exclusive_time&&{[ie]:p.exclusive_time}}}},measurements:p.measurements}):Ie()}if(u.spans){const e=[],n=u.spans;for(const t of n)if(o?.length&&tn({description:t.description,op:t.op,attributes:t.data},o))nn(n,t);else if(a){const n=a(t);n?e.push(n):(Ie(),e.push(t))}else e.push(t);const r=u.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),u.spans=e}}if(i){if(u.spans){const t=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(u,r)}}var p;return u}(this,s,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(k(t))return t.then(t=>{if(!E(t)&&null!==t)throw fn(n);return t},t=>{throw fn(`${e} rejected with ${t}`)});if(!E(t)&&null!==t)throw fn(n);return t}(n,c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",p),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw ln(`${c} returned \`null\`, will not send event.`)}const f=n.getSession()||r.getSession();if(a&&f&&this._updateSessionFromEvent(f,s),a&&"number"==typeof u&&D()>u)throw this.recordDroppedEvent("sample_rate","error"),ln(`Discarding event because it's not included in the random sample (sampling rate = ${i})`);
1if(o){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const l=s.transaction_info;if(o&&l&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...l,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(hn(t)||dn(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),fn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t===Ge&&this.recordDroppedEvent("queue_overflow",e),t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}})}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return;if(!this._dsn)return;const e=(n=t,Lt((r=this._options.tunnel&&yt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:s||F(),discarded_events:n}]]));var n,r,s;this.sendEnvelope(e)}}function mn(t){return"replay_event"===t?"replay":t||"error"}function yn(t){return void 0===t.type}function vn(t){return"transaction"===t.type}function bn(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+Sn(t.attributes)}function En(t){let e=0;return t.message&&(e+=2*t.message.length),e+Sn(t.attributes)}function Sn(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*xn(t[0]):b(t)?e+=xn(t):e+=100}),e}function xn(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function kn(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function wn(t){return function(t){return h(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function On(t,e){const n=jn(t,e),r={type:An(e),value:Rn(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function In(t,e,n,r){const s=ht(),i=s?.getOptions().normalizeDepth,o=(a=e,Object.values(a).find(h));var a;const c={__serialized__:Rt(e,i)};if(o)return{exception:{values:[On(t,o)]},extra:c};const u={exception:{values:[{type:x(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Nn(e,{isUnhandledRejection:r})}]},extra:c};if(n){const e=jn(t,n);e.length&&(u.exception.values[0].stacktrace={frames:e})}return u}function Pn(t,e){return{exception:{values:[On(t,e)]}}}function jn(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&Cn.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch{}return[]}const Cn=/Minified React error #\d+;/i;function $n(t){return"undefined"!=typeof WebAssembly&&"undefined"!=typeof WebAssembly.Exception&&t instanceof WebAssembly.Exception}function An(t){const e=t?.name;if(!e&&$n(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function Rn(t){const e=t?.message;return $n(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?wn(e.error):wn(t):"No error message"}function Dn(t,e,n,r,s){let i;if(g(e)&&e.error){return Pn(t,e.error)}if(m(e)||_(e,"DOMException")){const s=e;if("stack"in e){i=Pn(t,e);const s=i.exception?.values?.[0];if(r&&n&&s&&!s.stacktrace){const e=jn(t,n);e.length&&(s.stacktrace={frames:e},q(i,{synthetic:!0}))}}else{const e=s.name||(m(s)?"DOMError":"DOMException"),o=s.message?`${e}: ${s.message}`:e;i=Ln(t,o,n,r),U(i,o)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}if(h(e))return Pn(t,e);if(E(e)||x(e)){return i=In(t,e,n,s),q(i,{synthetic:!0}),i}return i=Ln(t,e,n,r),U(i,`${e}`,void 0),q(i,{synthetic:!0}),i}function Ln(t,e,n,r){const s={};if(r&&n){const r=jn(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),q(s,{synthetic:!0})}
1if(v(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function Nn(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(C(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";if(g(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(x(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}function Mn(t,e){return dt().captureEvent(t,e)}const Tn=i;function Un(){try{return Tn.document.location.href}catch{return""}}const qn=i;let Bn=0;function Fn(){return Bn>0}function Wn(t,e={}){if("function"!=typeof t)return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const e=t.__sentry_wrapped__;return"function"==typeof e?e:t}if(j(t))return t}catch{return t}const n=function(...n){i._sentryWrappedDepth=(i._sentryWrappedDepth||0)+1;try{const r=n.map(t=>Wn(t,e));return t.apply(this,r)}catch(r){throw Bn++,setTimeout(()=>{Bn--}),function(...t){const e=ft(o());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}(t=>{var s,i;t.addEventProcessor(t=>(e.mechanism&&(U(t,void 0,void 0),q(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),s=r,dt().captureException(s,Ke(i))}),r}finally{i._sentryWrappedDepth=(i._sentryWrappedDepth||0)-1}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}P(n,t),I(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}function zn(){const t=Un(),{referrer:e}=qn.document||{},{userAgent:n}=qn.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}class Hn extends gn{constructor(t){const e=(n=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:qn.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(t,e,n=[e],r="npm"){const i=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${e}`,i.packages=n.map(t=>({name:`${r}:@sentry/${t}`,version:s})),i.version=s)}(e,"browser",["browser"],qn.SENTRY_SDK_SOURCE||"npm"),super(e);const{userInfo:r}=this.getDataCollectionOptions();e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:r?"auto":"never",...e._metadata.sdk.settings});const{sendClientReports:i}=this._options;qn.document&&qn.document.addEventListener("visibilitychange",()=>{"hidden"===qn.document.visibilityState&&(i&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",kn)}eventFromException(t,e){return function(t,e,n,r){const s=Dn(t,e,n?.syntheticException||void 0,r);return q(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),De(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const i=Ln(t,e,r?.syntheticException||void 0,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),De(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}function Qn(t,{statusCode:e,headers:n},r=L()){const s={...t},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),o=parseInt(e,10),a=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else o?s.all=r+function(t,e=L()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(o,r):429===e&&(s.all=r+6e4);return s}function Jn(t,e,n=Ze(t.bufferSize||64)){let r={};return{send:function(s){const i=[];if(Mt(s,(e,n)=>{const s=Ft(n);!function(t,e,n=L()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)?i.push(e):t.recordDroppedEvent("ratelimit_backoff",s)}),0===i.length)return Promise.resolve({});const o=Lt(s[0],i),a=e=>{(function(t,e){return Mt(t,(t,n)=>e.includes(n))})(o,["client_report"])||Mt(o,(n,r)=>{t.recordDroppedEvent(e,Ft(r))})};return n.add(()=>e({body:Ut(o)}).then(t=>413===t.statusCode?(a("send_error"),t):(r=Qn(r,t),t),t=>{throw a("network_error"),t})).then(t=>t,t=>{if(t===Ge)return a("queue_overflow"),Promise.resolve({});throw t})},flush:t=>n.drain(t)}}function Yn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Kn=i,Vn={};function Xn(t){const e=Vn[t];if(e)return e;let n=Kn[t];if(Yn(n))return Vn[t]=n.bind(Kn);const r=Kn.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch($r){}return n?Vn[t]=n.bind(Kn):n}function Gn(t,e=Xn("fetch")){let n=0,r=0;return Jn(t,async function(s){const i=s.body.length;n+=i,r++;
1const o={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch($r){throw Vn["fetch"]=void 0,$r}finally{n-=i,r--}},Ze(t.bufferSize||40))}function Zn(t,e,n,r){const s={filename:t,"function":"<anonymous>"===e?"?":e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const tr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,er=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nr=/\((\S*)(?::(\d+))(?::(\d+))\)/,rr=/at (.+?) ?\(data:(.+?),/,sr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ir=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,or=Ot(...[[30,t=>{const e=t.match(rr);if(e)return{filename:`<data:${e[2]}>`,"function":e[1]};const n=tr.exec(t);if(n){const[,t,e,r]=n;return Zn(t,"?",+e,+r)}const r=er.exec(t);if(r){if(0===r[2]?.indexOf("eval")){const t=nr.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=ar(r[1]||"?",r[2]);return Zn(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=sr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=ir.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||"?";return[n,t]=ar(n,t),Zn(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),ar=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},cr="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".split(","),ur=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&O(qn,"setTimeout",pr),e.setInterval&&O(qn,"setInterval",pr),e.requestAnimationFrame&&O(qn,"requestAnimationFrame",fr),e.XMLHttpRequest&&"XMLHttpRequest"in qn&&O(XMLHttpRequest.prototype,"send",lr);const t=e.eventTarget;if(t){(Array.isArray(t)?t:cr).forEach(t=>function(t,e){const n=qn,r=n[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;O(r,"addEventListener",function(n){return function(r,s,i){try{"function"==typeof s.handleEvent&&(s.handleEvent=Wn(s.handleEvent,{mechanism:{data:{handler:jt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,Wn(s,{mechanism:{data:{handler:jt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),O(r,"removeEventListener",function(t){return function(e,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}}catch{}return t.call(this,e,n,r)}})}(t,e))}}}};function pr(t){return function(...e){const n=e[0];return e[0]=Wn(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${jt(t)}`}}),t.apply(this,e)}}function fr(t){return function(e){return t.apply(this,[Wn(e,{mechanism:{data:{handler:jt(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function lr(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&O(n,t,function(e){const n={mechanism:{data:{handler:jt(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=j(e);return r&&(n.mechanism.data.handler=jt(r)),Wn(e,n)})}),t.apply(this,e)}}const dr=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!_r(t,e))return!1;
1if(!hr(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=gr(e),r=gr(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!_r(t,e))return!1;if(!hr(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return null}catch{}return t=e}}};function hr(t,e){let n=Ct(t),r=Ct(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],s=n[t];if(e.filename!==s.filename||e.lineno!==s.lineno||e.colno!==s.colno||e["function"]!==s["function"])return!1}return!0}function _r(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function gr(t){return t.exception?.values?.[0]}const mr={},yr={};function vr(t,e){return mr[t]=mr[t]||[],mr[t].push(e),()=>{const n=mr[t];if(n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}}function br(t,e){if(!yr[t]){yr[t]=!0;try{e()}catch($r){}}}function Er(t,e){const n=t&&mr[t];if(n)for(const t of n)try{t(e)}catch($r){}}let Sr=null;function xr(){Sr=i.onerror,i.onerror=function(t,e,n,r,s){return Er("error",{column:r,error:s,line:n,msg:t,url:e}),!!Sr&&Sr.apply(this,arguments)},i.onerror.__SENTRY_INSTRUMENTED__=!0}let kr=null;function wr(){kr=i.onunhandledrejection,i.onunhandledrejection=function(t){return Er("unhandledrejection",t),!kr||kr.apply(this,arguments)},i.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Or=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";vr(e,t),br(e,xr)}(e=>{const{stackParser:n,attachStacktrace:r}=Pr();if(ht()!==t||Fn())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[];0===c.length&&c.push({colno:r,lineno:n,filename:jr(e)??Un(),"function":"?",in_app:!0});return t}(Dn(n,c||s,void 0,r,!1),i,o,a);u.level="error",Mn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),Ir("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";vr(e,t),br(e,wr)}(e=>{const{stackParser:n,attachStacktrace:r}=Pr();if(ht()!==t||Fn())return;const s=function(t){if(b(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),i=b(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Dn(n,s,void 0,r,!0);i.level="error",Mn(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t),Ir("onunhandledrejection"))}}};function Ir(t){}function Pr(){const t=ht();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function jr(t){if(y(t)&&0!==t.length)return t.startsWith("data:")?`<${function(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),i=t.indexOf(",");let o="";if(e&&-1!==i){const e=t.slice(i+1);o=e.length>10?`${e.slice(0,10)}... [truncated]`:e}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return t}(t,!1)}>`:t}function Cr(t,e){const n=t.attributes??(t.attributes={});Object.entries(e).forEach(([t,e])=>{null==e||t in n||(n[t]=e)})}const $r="ai.citations",Ar="url.full",Rr="user_agent.original",Dr=()=>({name:"HttpContext",preprocessEvent(t){if(!qn.navigator&&!qn.location&&!qn.document)return;const e=zn(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}},processSpan(t){if(!qn.navigator&&!qn.location&&!qn.document)return;const e=zn();Cr(t,{[Rr]:e.headers["User-Agent"],...t.is_segment&&{[Ar]:"http.client"!==t.attributes?.["sentry.op"]?e.url:void 0,"http.request.header.referer":e.headers.Referer}})}});const Lr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],Nr=(t={})=>{let e;return{name:"EventFilters",setup(n){const r=n.getOptions();e=Mr(t,r)},processEvent(n,r,s){if(!e){const n=s.getOptions();e=Mr(t,n)}return function(t,e){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&et(n,e)}(t,e.ignoreTransactions))return!0}else{if(function(t,e){if(!e?.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}(t).some(t=>et(t,e))}(t,e.ignoreErrors))return!0;
1if(function(t){if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return!0;if(function(t,e){if(!e?.length)return!1;const n=Tr(t);return!!n&&et(n,e)}(t,e.denyUrls))return!0;if(!function(t,e){if(!e?.length)return!0;const n=Tr(t);return!n||et(n,e)}(t,e.allowUrls))return!0}return!1}(n,e)?null:n}}};function Mr(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Lr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Tr(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),n=e?.stacktrace?.frames;return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return null}}var Ur="moz-consent-pref";var qr={ignoreErrors:["$ is not defined","Event `Event` (type=unhandledrejection) captured as promise rejection","NS_ERROR_ABORT","NS_ERROR_FAILURE","NetworkError when attempting to fetch resource","Non-Error promise rejection captured","Unexpected token '<'"]},Br={initClient:function(){var t=document.getElementsByTagName("html")[0].getAttribute("data-sentry-dsn"),e=new Hn({dsn:t,sampleRate:.1,transport:Gn,stackParser:or,integrations:[ur(),dr(),Or(),Dr(),Nr(qr)]});dt().setClient(e),e.init()},handleConsent:function(t){t.detail.analytics&&(Br.initClient(),window.removeEventListener("mozConsentStatus",Br.handleEvent,!1))},init:function(){var t;if(("function"!=typeof window.Mozilla.gpcEnabled||!window.Mozilla.gpcEnabled())&&("function"!=typeof window.Mozilla.dntEnabled||!window.Mozilla.dntEnabled()))if((t=document.getElementsByTagName("html")[0].getAttribute("data-needs-consent"))&&"true"===t.toLowerCase())window.addEventListener("mozConsentStatus",Br.handleConsent,!1);else{var e=function(){try{return JSON.parse(window.Mozilla.Cookies.getItem(Ur))}catch($r){return!1}}();if(e&&!e.analytics)return;Br.initClient()}}};Br.init()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.