PageSourceSearch

https://cemkoyluoglu.codes/assets/sentry-DHXLaec5.js

js cemkoyluoglu.codes collected 2026-10-02 01:20:55 UTC 85,635 bytes, 2 lines download raw bytes

1import{r as t}from"./rolldown-runtime-NMqb_1LM.js";import{p as e}from"./react-vendor-CpOgSK5N.js";var n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,r=globalThis,s="10.68.0";function o(){return i(r),r}function i(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||"10.68.0",e[s]=e["10.68.0"]||{}}function a(t,e,n=r){const o=n.__SENTRY__=n.__SENTRY__||{},i=o[s]=o["10.68.0"]||{};return i[t]||(i[t]=e())}var c=["debug","info","warn","error","log","assert","trace"],u={};function p(t){if(!("console"in r))return t();const e=r.console,n={},s=Object.keys(u);s.forEach(t=>{const r=u[t];n[t]=e[t],e[t]=r});try{return t()}finally{s.forEach(t=>{e[t]=n[t]})}}function l(){return f().enabled}function d(t,...e){n&&l()&&p(()=>{r.console[t](`Sentry Logger [${t}]:`,...e)})}function f(){return n?a("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:function(){f().enabled=!0},disable:function(){f().enabled=!1},isEnabled:l,log:function(...t){d("log",...t)},warn:function(...t){d("warn",...t)},error:function(...t){d("error",...t)}},m=/\(error: (.*)\)/,g=/captureMessage|captureException/;function _(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],o=t.split("\n");for(let i=n;i<o.length;i++){let t=o[i];t.length>1024&&(t=t.slice(0,1024));const n=m.test(t)?t.replace(m,"$1"):t;if(!n.includes("Error: ")){for(const t of e){const e=t(n);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(y(e).function||"")&&e.pop();e.reverse(),g.test(y(e).function||"")&&(e.pop(),g.test(y(e).function||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||y(e).filename,function:t.function||"?"}))}(s.slice(r))}}function y(t){return t[t.length-1]||{}}var v="<anonymous>";function b(t){try{return t&&"function"==typeof t&&t.name||v}catch{return v}}function E(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}}}var S={},x={};function w(t,e){return S[t]=S[t]||[],S[t].push(e),()=>{const n=S[t];if(n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}}function k(t,e){if(!x[t]){x[t]=!0;try{e()}catch(r){n&&h.error(`Error while instrumenting ${t}`,r)}}}function O(t,e){const r=t&&S[t];if(r)for(const o of r)try{o(e)}catch(s){n&&h.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${b(o)}\nError:`,s)}}var $=null;function I(){$=r.onerror,r.onerror=function(t,e,n,r,s){return O("error",{column:r,error:s,line:n,msg:t,url:e}),!!$&&$.apply(this,arguments)},r.onerror.__SENTRY_INSTRUMENTED__=!0}var C=null;function A(){C=r.onunhandledrejection,r.onunhandledrejection=function(t){return O("unhandledrejection",t),!C||C.apply(this,arguments)},r.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var P,T=Object.prototype.toString;function D(t){switch(T.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return W(t,Error)}}function j(t,e){return T.call(t)===`[object ${e}]`}function L(t){return j(t,"ErrorEvent")}function N(t){return j(t,"DOMError")}function R(t){return j(t,"String")}function M(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function U(t){return null===t||M(t)||"object"!=typeof t&&"function"!=typeof t}function q(t){return j(t,"Object")}function B(t){return"object"==typeof t&&null!==t}function F(t){return"undefined"!=typeof Event&&W(t,Event)}function H(t){return Boolean(t?.then&&"function"==typeof t.then)}function W(t,e){try{return t instanceof e}catch{return!1}}function z(t){return"undefined"!=typeof Request&&W(t,Request)}function Y(t,e,r){if(!(e in t))return;const s=t[e];if("function"!=typeof s)return;const o=r(s);"function"==typeof o&&G(o,s);try{t[e]=o}catch{n&&h.log(`Failed to replace method "${e}" in object`,t)}}function Q(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{n&&h.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function G(t,e){try{t.prototype=e.prototype=e.prototype||{},Q(t,"__sentry_original__",e)}catch{}}function J(t){return t.__sentry_original__}function K(t){if(D(t))return{message:t.message,name:t.name,stack:t.stack,...X(t)};
1if(F(t)){const{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...X(t)}}return t}function X(t){return B(t)?Object.fromEntries(Object.entries(t)):{}}function V(t){if(void 0!==P)return P?P(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r;return e in n&&"function"==typeof n[e]?(P=n[e])(t):(P=null,t())}function Z(){return V(()=>Math.random())}function tt(){return V(()=>Date.now())}var et,nt,rt=Symbol.for("sentry.skipNormalization"),st=Symbol.for("sentry.overrideNormalizationDepth");function ot(t){et=t}function it(t,e=100,n=1/0){try{return ct("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function at(t,e=3,n=102400){const r=it(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?at(t,e-1,n):r;var s}function ct(t,e,n=1/0,r=1/0,s=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,i]=s;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=ut(t,e);if(!a.startsWith("[object "))return a;if(function(t){return Boolean(t[rt])}(e))return e;const c=function(t){const e=t[st];return"number"==typeof e?e:void 0}(e),u=void 0!==c?c:n;
1if(0===u)return a.replace("object ","");if(o(e))return"[Circular ~]";const p=e;if(p&&"function"==typeof p.toJSON)try{return ct("",p.toJSON(),u-1,r,s)}catch{}const l=Array.isArray(e)?[]:{};let d=0;const f=K(e);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(d>=r){l[h]="[MaxProperties ~]";break}const t=f[h];l[h]=ct(h,t,u-1,r,s),d++}return i(e),l}function ut(t,e){try{if(et){const t=et(e);if(t)return t}return"undefined"!=typeof global&&e===global?"[Global]":"number"!=typeof e||Number.isFinite(e)?"function"==typeof e?`[Function: ${b(e)}]`:"symbol"==typeof e?`[${String(e)}]`:"bigint"==typeof e?`[BigInt: ${String(e)}]`:`[object ${function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e)}]`:`[${e}]`}catch(n){return`**non-serializable** (${n})`}}function pt(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function lt(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const e=t[r];U(e)?n.push(String(e)):e instanceof Error?n.push(e.message?`${e.name}: ${e.message}`:e.name):n.push(ut(0,e))}return n.join(e)}function dt(t,e,n=!1){return!!R(t)&&(j(e,"RegExp")?e.test(t):R(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function ft(t,e=[],n=!1){for(const r of e)if(dt(t,r,n))return!0;return!1}function ht(t=function(){const t=r;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return V(()=>t.randomUUID()).replace(/-/g,"")}catch{}return nt||(nt="10000000100040008000100000000000"),nt.replace(/[018]/g,t=>(t^(16*Z()&15)>>t/4).toString(16))}function mt(t){return t.exception?.values?.[0]}function gt(t){const{message:e,event_id:n}=t;if(e)return e;const r=mt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function _t(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function yt(t,e){const n=mt(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 vt(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{Q(t,"__sentry_captured__",!0)}catch{}return!1}var bt;function Et(){return tt()/1e3}function St(){return(bt??(bt=function(){const{performance:t}=r;if(!t?.now||!t.timeOrigin)return Et;const e=t.timeOrigin;return()=>(e+V(()=>t.now()))/1e3}()))()}function xt(t){const e=St(),n={sid:ht(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(n)};return t&&wt(n,t),n}function wt(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||St(),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:ht()),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 kt(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 s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=kt(r[s],e[s],n-1));return r}function Ot(){return ht()}function $t(){return ht().substring(16)}function It(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}var Ct="_sentrySpan";function At(t,e){e?Q(t,Ct,function(t){try{const e=r.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(e)):delete t[Ct]}function Pt(t){return It(t[Ct])}var Tt=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ot(),sampleRand:Z()}}clone(){const e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,At(e,Pt(this)),e}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&&wt(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(e){if(!e)return this;const n="function"==typeof e?e(this):e,{tags:r,attributes:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:p,conversationId:l}=(n instanceof t?n.getScopeData():q(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),l&&(this._conversationId=l),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,At(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ot(),sampleRand:Z()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:Et(),...t,message:t.message?pt(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:Pt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=kt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const r=e?.event_id||ht();if(!this._client)return n&&h.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,...e,event_id:r},this),r}captureMessage(t,e,r){const s=r?.event_id||ht();if(!this._client)return n&&h.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,e){const r=t.event_id||e?.event_id||ht();return this._client?(this._client.captureEvent(t,{...e,event_id:r},this),r):(n&&h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(t=>{t(this)}),this._notifyingListeners=!1)}};var Dt=t=>t instanceof Promise&&!t[jt],jt=Symbol("chained PromiseLike"),Lt=(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,{[jt]:!0}),e},Nt=class{constructor(t,e){let n,r;n=t||new Tt,r=e||new Tt,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 H(n)?((t,e,n)=>{const r=t.then(t=>(e(t),t),t=>{throw n(t),t});return Dt(r)&&Dt(t)?r:Lt(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 Rt(){const t=i(o());return t.stack=t.stack||new Nt(a("defaultCurrentScope",()=>new Tt),a("defaultIsolationScope",()=>new Tt))}function Mt(t){return Rt().withScope(t)}function Ut(t,e){const n=Rt();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function qt(t){return Rt().withScope(()=>t(Rt().getIsolationScope()))}function Bt(t){const e=i(t);return e.acs?e.acs:{withIsolationScope:qt,withScope:Mt,withSetScope:Ut,withSetIsolationScope:(t,e)=>qt(e),getCurrentScope:()=>Rt().getScope(),getIsolationScope:()=>Rt().getIsolationScope()}}function Ft(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 o=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),i=r&&"string"==typeof r?{unit:r}:{};if(o)return{...o,...i};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...i}}function Ht(t,e=!1){const n={};for(const[r,s]of Object.entries(t??{})){const t=Ft(s,e);t&&(n[r]=t)}return n}function Wt(){return Bt(o()).getCurrentScope()}function zt(){return Bt(o()).getIsolationScope()}function Yt(){return Wt().getClient()}function Qt(t){const e=void 0;const{traceId:n,parentSpanId:r,propagationSpanId:s}=t.getPropagationContext(),o={trace_id:n,span_id:s||$t()};return r&&(o.parent_span_id=r),o}var Gt="sentry.op";function Jt(t){const e=t;return{scope:e._sentryScope,isolationScope:It(e._sentryIsolationScope)}}function Kt(t){const e=function(t){if(!t||!R(t)&&!Array.isArray(t))return;return Array.isArray(t)?t.reduce((t,e)=>{const n=Xt(e);return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{}):Xt(t)}
1(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>{if(e.startsWith("sentry-")){t[e.slice(7)]=n}return t},{});return Object.keys(n).length>0?n:void 0}function Xt(t){return t.split(",").map(t=>{const e=t.indexOf("=");return-1===e?[]:[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),{})}var Vt=/^o(\d+)\./,Zt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function te(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function ee(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ne(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){return t.match(Vt)?.[1]}(n)),r}function re(t){const e="string"==typeof t?function(t){const e=Zt.exec(t);if(!e)return void p(()=>{});const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return ee({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}(t):ee(t);if(e&&function(t){if(!n)return!0;const{port:e,projectId:r,protocol:s}=t;return!(["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(h.error(`Invalid Sentry Dsn: ${e} missing`),!0))||(r.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(s)?e&&isNaN(parseInt(e,10))&&(h.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(h.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(e))return e}var se=!1;function oe(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:ue(t).parent_span_id,o=Jt(t).scope;return{parent_span_id:s,span_id:r?o?.getPropagationContext().propagationSpanId||$t():e,trace_id:n}}function ie(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 ae(t){return"number"==typeof t?ce(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ce(t.getTime()):St()}function ce(t){return t>9999999999?t/1e3:t}function ue(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:pe(t),start_timestamp:ae(s),timestamp:ae(i)||void 0,status:le(a),op:r[Gt],origin:r["sentry.origin"],links:ie(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function pe(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function le(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}var de=function(t){return t._sentryRootSpan||t};function fe(){se||(p(()=>{}),se=!0)}function he(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||Yt()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}function me(t){h.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function ge(t,e){if(!e?.length)return!1;for(const r of e){if(ve(r)){if(t.description&&dt(t.description,r))return n&&me(t),!0;continue}const e=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!e)continue;const s=!r.name||t.description&&dt(t.description,r.name),o=!r.op||t.op&&dt(t.op,r.op),i=!r.attributes||Object.entries(r.attributes).every(([e,n])=>_e(t.attributes?.[e],n));if(s&&o&&i)return n&&me(t),!0}return!1}function _e(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?dt(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e}function ye(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function ve(t){return"string"==typeof t||t instanceof RegExp}var be=Symbol.for("sentry.nonRecordingSpan");var Ee="production";function Se(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||"production",release:n.release,public_key:r,trace_id:t,org_id:ne(e)};return e.emit("createDsc",s),s}function xe(t,e){const n=e.getPropagationContext();return n.dsc||Se(n.traceId,t)}function we(t){const e=Yt();if(!e)return{};const n=de(t),r=ue(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(t){return"number"!=typeof i&&"string"!=typeof i||(t.sample_rate=`${i}`),t}const c=n._frozenDsc;if(c)return a(c);const u=function(t){return!!t&&!0===t[be]}(n),p=u&&"ignored"===n.dropReason;if(u&&(!he(e.getOptions())||p)){const t=Jt(n).scope;if(t){const n={...xe(e,t)};return p&&(n.sampled="false"),a(n)}}const l=o?.get("sentry.dsc"),d=l&&Kt(l);
1if(d)return a(d);const f=Se(t.spanContext().traceId,e),h=s["sentry.source"]??s["sentry.segment.name.source"],m=r.description;return"url"!==h&&m&&(f.transaction=m),he()&&(f.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return 1===e}(n)),f.sample_rand=o?.get("sentry.sample_rand")??Jt(n).scope?.getPropagationContext().sampleRand.toString()),a(f),e.emit("createDsc",f,n),f}function ke(t,e=[]){return[t,e]}function Oe(t,e){const[n,r]=t;return[n,[...r,e]]}function $e(t,e){const n=t[1];for(const r of n){if(e(r,r[0].type))return!0}return!1}function Ie(t){const e=i(r);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function Ce(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[Ie(r),t]:r.push("string"==typeof t?Ie(t):t)}for(const o of n){const[t,e]=o;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch{t=JSON.stringify(it(e))}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 s of t)n.set(s,r),r+=s.length;return n}(r)}function Ae(t){const e="string"==typeof t.data?Ie(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var Pe={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 Te(t){return function(t){return t in Pe}(t)?Pe[t]:t}function De(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function je(t,e,n,r){const s=De(n),o=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 i=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(tt()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:te(r)},...s&&{trace:s}}}(t,s,r,e);return delete t.sdkProcessingMetadata,ke(i,[[{type:o},t]])}function Le(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,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(o).length&&(t.contexts={...o,...t.contexts});i&&(t.level=i);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:oe(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:we(e),...t.sdkProcessingMetadata};const n=ue(de(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(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,o)}function Ne(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:l,attachments:d,propagationContext:f,transactionName:h,span:m}=e;Re(t,"extra",n),Re(t,"tags",r),Re(t,"attributes",s),Re(t,"user",o),Re(t,"contexts",i),t.sdkProcessingMetadata=kt(t.sdkProcessingMetadata,c,2),a&&(t.level=a),h&&(t.transactionName=h),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...f}}function Re(t,e,n){t[e]=kt(t[e],n,1)}function Me(t,e){const n=a("globalScope",()=>new Tt).getScopeData();return t&&Ne(n,t.getScopeData()),e&&Ne(n,e.getScopeData()),n}var Ue="url.full";function qe(t,e){const n=t.attributes??(t.attributes={});Object.entries(e).forEach(([t,e])=>{null==e||t in n||(n[t]=e)})}function Be(t){return new Qe(e=>{e(t)})}
1function Fe(t){return new Qe((e,n)=>{n(t)})}var He,We,ze,Ye,Qe=class t{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(e,n){return new t((t,r)=>{this._handlers.push([!1,n=>{if(e)try{t(e(n))}catch(s){r(s)}else t(n)},e=>{if(n)try{t(n(e))}catch(s){r(s)}else r(e)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(e){return new t((t,n)=>{let r,s;return this.then(t=>{s=!1,r=t,e&&e()},t=>{s=!0,r=t,e&&e()}).then(()=>{s?n(r):t(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&&(H(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(s){r(s)}}};function Ge(t,e,n,r=0){try{const s=Je(e,n,t,r);return H(s)?s:Be(s)}catch(s){return Fe(s)}}function Je(t,e,r,s){const o=r[s];if(!t||!o)return t;const i=o({...t},e);return n&&null===i&&h.log(`Event processor "${o.id||"?"}" dropped event`),H(i)?i.then(t=>Je(t,e,r,s+1)):Je(i,e,r,s+1)}function Ke(t,e,n,s,o,i){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||ht(),timestamp:e.timestamp||Et()},p=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||"production",!t.release&&r&&(t.release=r);!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&o&&(i.url=pt(i.url,o));o&&t.exception?.values?.forEach(t=>{t.value&&(t.value=pt(t.value,o))})}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,p),o&&o.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=function(t){const e=r._sentryDebugIds,n=r._debugIds;if(!e&&!n)return{};const s=e?Object.keys(e):[],o=n?Object.keys(n):[];if(Ye&&s.length===We&&o.length===ze)return Ye;We=s.length,ze=o.length,Ye={},He||(He={});const i=(e,n)=>{for(const r of e){const e=n[r],s=He?.[r];if(s&&Ye&&e)Ye[s[0]]=e,He&&(He[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t]?.filename;if(s&&Ye&&He){Ye[s]=e,He[r]=[s,e];break}}}}};return e&&i(s,e),n&&i(o,n),Ye}(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(u,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new Tt;return n.update(e),n}(s,n.captureContext);n.mechanism&&yt(u,n.mechanism);const d=o?o.getEventProcessors():[],f=Me(i,l),h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),Le(u,f);const m=[...d,...f.eventProcessors];return(n.data&&!0===n.data.__sentry__?Be(u):Ge(m,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:it(t.data,e,n)}}))},...t.user&&{user:it(t.user,e,n)},...t.contexts&&{contexts:it(t.contexts,e,n)},...t.extra&&{extra:it(t.extra,e,n)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=it(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:it(t.data,e,n)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=it(t.contexts.flags,3,n));return r}(t,a,c):t))}function Xe(t){if(t)return function(t){return t instanceof Tt||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Ve.includes(t))}(t)?{captureContext:t}:t}var Ve=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Ze(t,e){return Wt().captureException(t,Xe(e))}function tn(t,e){return Wt().captureEvent(t,e)}function en(t,e){zt().setContext(t,e)}function nn(t){const e=zt(),{user:n}=Me(e,Wt()),{userAgent:s}=r.navigator||{},o=xt({user:n,...s&&{userAgent:s},...t}),i=e.getSession();return"ok"===i?.status&&wt(i,{status:"exited"}),rn(),e.setSession(o),o}function rn(){const t=zt(),e=Wt().getSession()||t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),wt(t,n)}(e),sn(),t.setSession()}function sn(){const t=zt(),e=Yt(),n=t.getSession();n&&e&&e.captureSession(n)}function on(t=!1){t?rn():sn()}function an(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}function cn(t,e,n){return e||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(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,n)}`}var un=[];function pn(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.values(e)}(r)}function ln(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function dn(t,e,r){if(r[e.name])n&&h.log(`Integration skipped because it was already installed: ${e.name}`);else{if(r[e.name]=e,un.includes(e.name)||"function"!=typeof e.setupOnce||(e.setupOnce(),un.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))}),n&&h.log(`Integration installed: ${e.name}`)}}function fn(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function hn(){return"undefined"!=typeof window&&(!fn()||"renderer"===r.process?.type)}function mn(t,e){const n=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...hn()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function gn(t,e){const n=e??function(t){return _n().get(t)}(t)??[];
1if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const o={};return e?.sdk&&(o.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(o.dsn=te(r)),ke(o,[mn(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);_n().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function _n(){return a("clientToLogBufferMap",()=>new WeakMap)}function yn(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,...hn()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function vn(t,e){const n=e??function(t){return bn().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const o={};return e?.sdk&&(o.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(o.dsn=te(r)),ke(o,[yn(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);bn().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function bn(){return a("clientToMetricBufferMap",()=>new WeakMap)}function En(t){return 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},{...e,attributes:Ht(e.attributes),links:e.links?.map(t=>({...t,attributes:Ht(t.attributes)}))};var e}var Sn=Symbol.for("SentryBufferFullError");function xn(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 Fe(Sn);const s=r();return e.add(s),s.then(()=>n(s),()=>n(s)),s},drain:function(t){if(!e.size)return Be(!0);const n=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return n;const r=[n,new Promise(e=>an(setTimeout(()=>e(!1),t)))];return Promise.race(r)}}}function wn(t,{statusCode:e,headers:n},r=tt()){const s={...t},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[t,e,,,n]=a.split(":",5),o=parseInt(t,10),i=1e3*(isNaN(o)?60:o);if(e)for(const a of e.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(s[a]=r+i);else s.all=r+i}else i?s.all=r+function(t,e=tt()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(i,r):429===e&&(s.all=r+6e4);return s}function kn(t,e,r=xn(t.bufferSize||64)){let s={};return{send:function(o){const i=[];if($e(o,(e,n)=>{const r=Te(n);!function(t,e,n=tt()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,r)?i.push(e):t.recordDroppedEvent("ratelimit_backoff",r)}),0===i.length)return Promise.resolve({});const a=ke(o[0],i),c=e=>{!function(t,e){return $e(t,(t,n)=>e.includes(n))}(a,["client_report"])?$e(a,(n,r)=>{t.recordDroppedEvent(e,Te(r))}):n&&h.warn(`Dropping client report. Will not send outcomes (reason: ${e}).`)};return r.add(()=>e({body:Ce(a)}).then(t=>413===t.statusCode?(n&&h.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),c("send_error"),t):(n&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&h.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=wn(s,t),t),t=>{throw c("network_error"),n&&h.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Sn)return n&&h.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw t})},flush:t=>r.drain(t)}}function On(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}var $n=["forwarded","-ip","remote-","via","-user"];var In={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 Cn(t){const e=null!=t.dataCollection?In:!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}
1,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:$n},httpHeaders:{request:{deny:$n},response:{deny:$n}},httpBodies:[],urlQueryParams:{deny:$n},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:{request:n.httpHeaders?.request??e.httpHeaders.request,response:n.httpHeaders?.response??e.httpHeaders.response},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.stackFrameVariables,frameContextLines:n.frameContextLines??e.frameContextLines}}var An="Not capturing exception because it's already been captured.",Pn="Discarded session because of missing or non-string release",Tn=Symbol.for("SentryInternalError"),Dn=Symbol.for("SentryDoNotSendEventError");function jn(t){return{message:t,[Tn]:!0}}function Ln(t){return{message:t,[Dn]:!0}}function Nn(t){return B(t)&&Tn in t}function Rn(t){return B(t)&&Dn in t}function Mn(t,e,n,r,s){let o,i=0,a=!1;t.on(n,()=>{i=0,clearTimeout(o),a=!1}),t.on(e,e=>{if(i+=r(e),i>=8e5)s(t);else if(!a){const e=t.getOptions()._flushInterval??5e3;e>0&&(a=!0,o=an(setTimeout(()=>{s(t)},e)))}}),t.on("flush",()=>{s(t)})}var Un=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=xn(t.transportOptions?.bufferSize??64),this._dataCollection=Cn(t),t.dsn?this._dsn=re(t.dsn):n&&h.warn("No DSN provided, client will not send events."),this._dsn){const e=cn(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Mn(this,"afterCaptureLog","flushLogs",Wn,gn),(this._options.enableMetrics??this._options._experiments?.enableMetrics??1)&&Mn(this,"afterCaptureMetric","flushMetrics",Hn,vn)}captureException(t,e,r){const s=ht();if(vt(t))return n&&h.log(An),s;const o={event_id:s,...e};return this._process(()=>this.eventFromException(t,o).then(t=>this._captureEvent(t,o,r)).then(t=>t),"error"),o.event_id}captureMessage(t,e,n,r){const s={event_id:ht(),...n},o=M(t)?t:String(t),i=U(t),a=i?this.eventFromMessage(o,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),i?"unknown":"error"),s.event_id}captureEvent(t,e,r){const s=ht();if(e?.originalException&&vt(e.originalException))return n&&h.log(An),s;const o={event_id:s,...e},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=qn(t.type);return this._process(()=>this._captureEvent(t,o,a||r,c),u),o.event_id}captureSession(t){this.sendSession(t),wt(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),dn(this,t,this._integrations),e||ln(this,[t])}sendEvent(t,e={}
1){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 o of t.spans)o.op?.startsWith("gen_ai.")?n.push(En(o)):r.push(o);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,...hn()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}(t,this);let r=je(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of e.attachments||[])r=Oe(r,Ae(s));n&&(r=Oe(r,n)),this.sendEnvelope(r).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:e,environment:r=Ee}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!e)return void(n&&h.warn(Pn));s.release=s.release||e,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!e)return void(n&&h.warn(Pn));t.release=t.release||e,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=function(t,e,n,r){const s=De(n);return ke({sent_at:new Date(tt()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:te(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}
1recordDroppedEvent(t,e,r=1){if(this._options.sendClientReports){const s=`${t}:${e}`;n&&h.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}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 n&&h.error("Error while sending envelope:",e),{}}return n&&h.error("Transport disabled"),{}}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&&dn(t,e,n)}),n}(this,t),ln(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 o="ok"===t.status;(o&&0===t.errors||o&&n)&&(wt(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(),o=this.getIntegrationNames();return!e.integrations&&o.length&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Ke(s,t,e,n,this,r).then(t=>
1(null===t||(this.emit("postprocessEvent",t,e),t.contexts={trace:{...t.contexts?.trace,...Qt(n)},...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:xe(this,n),...t.sdkProcessingMetadata}),t))}_captureEvent(t,e={},r=Wt(),s=zt()){return n&&Bn(t)&&h.log(`Captured error event \`${On(t)[0]||"<unknown>"}\``),this._processEvent(t,e,r,s).then(t=>t.event_id,t=>{n&&(Rn(t)?h.log(t.message):Nn(t)?h.warn(t.message):h.warn(t))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Fn(t),a=Bn(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===o?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}(o);if(a&&"number"==typeof u&&Z()>u)return this.recordDroppedEvent("sample_rate","error"),Fe(Ln(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p=qn(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.");return!0===e.data?.__sentry__?t:function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(H(t))return t.then(t=>{if(!q(t)&&null!==t)throw jn(n);return t},t=>{throw jn(`${e} rejected with ${t}`)});if(!q(t)&&null!==t)throw jn(n);return t}(function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,ignoreSpans:i}=e,a=(c=e.beforeSendSpan,!(c&&"function"==typeof c&&"_streamed"in c&&c._streamed)&&e.beforeSendSpan);var c;let u=n;if(Bn(u)&&s)return s(u,r);if(Fn(u)){if(a||i){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=t.contexts?.trace??{};return{data:i??{},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:o,profile_id:i?.["sentry.profile_id"],exclusive_time:i?.["sentry.exclusive_time"],measurements:t.measurements,is_segment:!0}}(u);if(i?.length&&ge({description:e.description,op:e.op,attributes:e.data},i))return null;if(a){const t=a(e);t?u=kt(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&&{"sentry.profile_id":p.profile_id},...p.exclusive_time&&{"sentry.exclusive_time":p.exclusive_time}}}},measurements:p.measurements}):fe()}if(u.spans){const e=[],n=u.spans;for(const t of n)if(i?.length&&ge({description:t.description,op:t.op,attributes:t.data},i))ye(n,t);else if(a){const n=a(t);n?e.push(n):(fe(),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(o){if(u.spans){const t=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return o(u,r)}}var p;return u}(this,s,t,e),c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",p),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw Ln(`${c} returned \`null\`, will not send event.`)}const o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,s),i){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=s.transaction_info;if(i&&u&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...u,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(Rn(t)||Nn(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),jn(`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===Sn&&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(){n&&h.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(n&&h.log("No outcomes to send"));if(!this._dsn)return void(n&&h.log("No dsn provided, will not send outcomes"));n&&h.log("Sending outcomes:",t);const e=(r=t,ke((s=this._options.tunnel&&te(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:o||Et(),discarded_events:r}]]));var r,s,o;this.sendEnvelope(e)}};function qn(t){return"replay_event"===t?"replay":t||"error"}function Bn(t){return void 0===t.type}function Fn(t){return"transaction"===t.type}function Hn(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+zn(t.attributes)}function Wn(t){let e=0;return t.message&&(e+=2*t.message.length),e+zn(t.attributes)}function zn(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*Yn(t[0]):U(t)?e+=Yn(t):e+=100}),e}function Yn(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function Qn(t,e){!0===e.debug&&(n?h.enable():p(()=>{})),Wt().update(e.initialScope);const r=new t(e);return function(t){Wt().setClient(t)}(r),r.init(),r}function Gn(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function Jn(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 Kn(t,e,n=[e],r="npm"){const o=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${e}`,o.packages=n.map(t=>({name:`${r}:@sentry/${t}`,version:s})),o.version=s)}var Xn=100;function Vn(t,e){const n=Yt(),r=zt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Xn}=n.getOptions();if(o<=0)return;const i={timestamp:Et(),...t},a=s?p(()=>s(i,e)):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}var Zn=new WeakMap,tr=()=>({name:"FunctionToString",setupOnce(){const t=Function.prototype.toString;try{Function.prototype.toString=function(...e){const n=J(this);let r;try{Zn.has(Yt())&&void 0!==n&&(r=n)}catch{}return t.apply(r??this,e)}}catch{}},setup(t){Zn.set(t,!0)}}),er=[/^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$/],nr=(t={})=>{let e;return{name:"EventFilters",setup(n){e=sr(t,n.getOptions())},processEvent:(r,s,o)=>(e||(e=sr(t,o.getOptions())),function(t,e){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&ft(n,e)}(t,e.ignoreTransactions))return n&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${gt(t)}`),!0}else{if(function(t,e){return!!e?.length&&On(t).some(t=>ft(t,e))}(t,e.ignoreErrors))return n&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${gt(t)}`),!0;if(function(t){return!!t.exception?.values?.length&&(!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))}(t))return n&&h.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${gt(t)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=or(t);return!!n&&ft(n,e)}(t,e.denyUrls))return n&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${gt(t)}.\nUrl: ${or(t)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=or(t);return!n||ft(n,e)}(t,e.allowUrls))return n&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${gt(t)}.\nUrl: ${or(t)}`),!0}return!1}(r,e)?null:r)}},rr=(t={})=>({...nr(t),name:"InboundFilters"});function sr(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:er],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function or(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length)?.stacktrace?.frames;return e?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}(e):null}catch{return n&&h.error(`Cannot extract url for event ${gt(t)}`),null}}function ir(t,e,n,r,s,o){if(!s.exception?.values||!o||!W(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=ar(t,e,r,o.originalException,n,s.exception.values,i,0
1))}function ar(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(W(r[s],Error)){ur(i,a,r);const o=t(e,r[s]),u=c.length;pr(o,s,u,a),c=ar(t,e,n,r[s],s,[o,...c],o,u)}return cr(r)&&r.errors.forEach((o,u)=>{if(W(o,Error)){ur(i,a,r);const p=t(e,o),l=c.length;pr(p,`errors[${u}]`,l,a),c=ar(t,e,n,o,s,[p,...c],p,l)}}),c}function cr(t){return Array.isArray(t.errors)}function ur(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...cr(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function pr(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function lr(t){return function(t){return D(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}var dr=new Set([]);var fr=new Set;function hr(){"console"in r&&c.forEach(function(t){!fr.has(t)&&t in r.console&&(fr.add(t),Y(r.console,t,function(e){return u[t]=e,function(...e){const s=e[0],o=u[t],i=dr.size&&"string"==typeof s&&ft(s,dr);i||O("console",{args:e,level:t}),(!i||n&&h.isEnabled())&&o?.apply(r.console,e)}}))})}function mr(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}var gr=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!yr(t,e)&&!!_r(t,e))))}(t,e)||!!function(t,e){const n=vr(e),r=vr(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!yr(t,e)&&!!_r(t,e)))}(t,e))}(e,t))return n&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}};function _r(t,e){let n=E(t),r=E(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){const t=r[s],e=n[s];if(t.filename!==e.filename||t.lineno!==e.lineno||t.colno!==e.colno||t.function!==e.function)return!1}return!0}function yr(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 vr(t){return t.exception?.values?.[0]}var br=()=>({name:"ConversationId",setup(t){t.on("spanStart",t=>{const e=Wt().getScopeData(),n=zt().getScopeData(),r=e.conversationId||n.conversationId;if(r){const{op:e,data:n,description:s}=ue(t);if(!e?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!s?.startsWith("ai."))return;t.setAttribute("gen_ai.conversation.id",r)}})}});function Er(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}var Sr=r;function xr(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function wr(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Sr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(xr(Sr.fetch))return!0;let t=!1;const e=Sr.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=xr(n.contentWindow.fetch)),e.head.removeChild(n)}catch(r){n&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function kr(t,e){const n="fetch",s=w(n,t);return k(n,()=>function(t,e=!1){if(e&&!wr())return;Y(r,"fetch",function(e){return function(...n){const s=new Error,{method:o,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:$r(e),method:Or(n,"method")?String(n.method).toUpperCase():z(e)&&Or(e,"method")?String(e.method).toUpperCase():"GET"}}const e=t[0];return{url:$r(e),method:Or(e,"method")?String(e.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*St(),virtualError:s,headers:Ir(n)};return t||O("fetch",{...a}),e.apply(r,n).then(async e=>(t?t(e):O("fetch",{...a,endTimestamp:1e3*St(),response:e}),e),t=>{O("fetch",{...a,endTimestamp:1e3*St(),error:t}),D(t)&&void 0===t.stack&&(t.stack=s.stack,Q(t,"framesToPop",1));const e=Yt()?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==e&&t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const n=new URL(a.fetchData.url).host;"always"===e?t.message=`${t.message} (${n})`:Q(t,"__sentry_fetch_url_host__",n)}catch{}throw t})}})}(void 0,e)),s}function Or(t,e){return B(t)&&!!t[e]}function $r(t){return"string"==typeof t?t:t?Or(t,"url")?t.url:t.toString?t.toString():"":""}function Ir(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(z(e))return new Headers(e.headers)}catch{}}var Cr=r;function Ar(){try{return Cr.document.location.href}catch{return""}}var Pr=r,Tr=0;function Dr(){return Tr>0}function jr(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){r._sentryWrappedDepth=(r._sentryWrappedDepth||0)+1;try{const r=n.map(t=>jr(t,e));return t.apply(this,r)}catch(s){throw Tr++,setTimeout(()=>{Tr--}),function(...t){const e=Bt(o());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}(t=>{t.addEventProcessor(t=>(e.mechanism&&(_t(t,void 0,void 0),yt(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),Ze(s)}),s}finally{r._sentryWrappedDepth=(r._sentryWrappedDepth||0)-1}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}G(n,t),Q(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}function Lr(){const t=Ar(),{referrer:e}=Pr.document||{},{userAgent:n}=Pr.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}function Nr(t,e){const n=Ur(t,e),r={type:Fr(e),value:Hr(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Rr(t,e,n,r){const s=Yt()?.getOptions().normalizeDepth,o=(i=e,Object.values(i).find(t=>t instanceof Error));var i;const a={__serialized__:at(e,s)};if(o)return{exception:{values:[Nr(t,o)]},extra:a};const c={exception:{values:[{type:F(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Yr(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=Ur(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}function Mr(t,e){return{exception:{values:[Nr(t,e)]}}}function Ur(t,e){const n=e.stacktrace||e.stack||"",r=function(t){return t&&qr.test(t.message)?1:0}(e),s=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,r,s)}catch{}return[]}var qr=/Minified React error #\d+;/i;function Br(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function Fr(t){const e=t?.name;return!e&&Br(t)?t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception":e}function Hr(t){const e=t?.message;return Br(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?lr(e.error):lr(t):"No error message"}function Wr(t,e,n,r,s){let o;if(L(e)&&e.error)return Mr(t,e.error);if(N(e)||j(e,"DOMException")){const s=e;if("stack"in e){o=Mr(t,e);const s=o.exception?.values?.[0];if(r&&n&&s&&!s.stacktrace){const e=Ur(t,n);e.length&&(s.stacktrace={frames:e},yt(o,{synthetic:!0}))}}else{const e=s.name||(N(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=zr(t,i,n,r),_t(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return D(e)?Mr(t,e):q(e)||F(e)?(o=Rr(t,e,n,s),yt(o,{synthetic:!0}),o):(o=zr(t,e,n,r),_t(o,`${e}`,void 0),yt(o,{synthetic:!0}),o)}function zr(t,e,n,r){const s={};if(r&&n){const r=Ur(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),yt(s,{synthetic:!0})}
1if(M(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 Yr(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(K(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";return L(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:F(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var Qr=class extends Un{constructor(t){const e=(n=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Pr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;Kn(e,"browser",["browser"],Pr.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:s}=this._options;Pr.document&&Pr.document.addEventListener("visibilitychange",()=>{"hidden"===Pr.document.visibilityState&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",Jn)}eventFromException(t,e){return function(t,e,n,r){const s=Wr(t,e,n?.syntheticException||void 0,r);return yt(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),Be(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=zr(t,e,r?.syntheticException||void 0,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),Be(o)}(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)}};var Gr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Jr=r;function Kr(t,e,n){Jr.document&&Jr.addEventListener(t,e,n)}function Xr(t,e,n){Jr.document&&Jr.removeEventListener(t,e,n)}var Vr={};try{"undefined"!=typeof Node&&(Vr.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(Vr.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,Vr.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,Vr.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,Vr.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(Vr.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Zr(t,e,n){const r=Vr[e];if(r)try{return r.call(t,n)}catch{}const s=t[e];return"function"==typeof s?s.call(t,n):s}function ts(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=3;let u;const p=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++<r&&(u=es(n,p),!("html"===u||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=Zr(n,"parentNode");return s.reverse().join(a)}catch{return"<unknown>"}}function es(t,e){const n=[],r=Zr(t,"tagName");if(!r)return"";if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement){const e=Zr(t,"dataset");if(e){if(e.sentryComponent)return e.sentryComponent;if(e.sentryElement)return e.sentryElement}}n.push(r.toLowerCase());const s=e?.length?e.filter(e=>Zr(t,"getAttribute",e)).map(e=>[e,Zr(t,"getAttribute",e)]):null;if(s?.length)s.forEach(t=>{n.push(`[${t[0]}="${t[1]}"]`)});else{const e=Zr(t,"id");e&&n.push(`#${e}`);const r=Zr(t,"className");if(r&&R(r)){const t=r.split(/\s+/);for(const e of t)n.push(`.${e}`)}}for(const o of["aria-label","type","name","title","alt"]){const e=Zr(t,"getAttribute",o);e&&n.push(`[${o}="${e}"]`)}return n.join("")}var ns,rs,ss,os;function is(){if(!Jr.document)return;const t=O.bind(null,"dom"),e=as(t,!0);Jr.document.addEventListener("click",e,!1),Jr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=Jr[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(Y(n,"addEventListener",function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=as(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch{}return e.call(this,n,r,s)}}),Y(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}}))})}function as(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}
1(n.type,r))return;Q(n,"_sentryCaptured",!0),r&&!r._sentryId&&Q(r,"_sentryId",ht());const s="keypress"===n.type?"input":n.type;(function(t){if(t.type!==rs)return!1;try{if(!t.target||t.target._sentryId!==ss)return!1}catch{}return!0})(n)||(t({event:n,name:s,global:e}),rs=n.type,ss=r?r._sentryId:void 0),clearTimeout(ns),ns=Jr.setTimeout(()=>{ss=void 0,rs=void 0},1e3)}}function cs(t){const e="history";w(e,t),k(e,us)}function us(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=os,s=function(t){try{return new URL(t,Jr.location.origin).toString()}catch{return t}}(String(n));if(os=s,r===s)return t.apply(this,e);O("history",{from:r,to:s})}return t.apply(this,e)}}Jr.addEventListener("popstate",()=>{const t=Jr.location.href,e=os;os=t,e!==t&&O("history",{from:e,to:t})}),"history"in Sr&&Sr.history&&(Y(Jr.history,"pushState",t),Y(Jr.history,"replaceState",t))}var ps={};var ls="__sentry_xhr_v3__";function ds(){if(!Jr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,s=1e3*St(),o=R(n[0])?n[0].toUpperCase():void 0,i=function(t){if(R(t))return t;try{return t.toString()}catch{}}(n[1]);if(!o||!i)return t.apply(e,n);e[ls]={method:o,url:i,request_headers:{}},"POST"===o&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[ls];if(t&&4===e.readyState){try{t.status_code=e.status}catch{}O("xhr",{endTimestamp:1e3*St(),startTimestamp:s,xhr:e,virtualError:r}),e.removeEventListener("readystatechange",a)}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,o=e[ls];return o&&R(r)&&R(s)&&(o.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[ls];return r?(void 0!==n[0]&&(r.body=n[0]),O("xhr",{startTimestamp:1e3*St(),xhr:e}),t.apply(e,n)):t.apply(e,n)}})}function fs(t,e=function(t){const e=ps[t];if(e)return e;let n=Jr[t];if(xr(n))return ps[t]=n.bind(Jr);const r=Jr.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(s){Gr&&h.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n?ps[t]=n.bind(Jr):n}("fetch")){let n=0,r=0;return kn(t,async function(s){const o=s.body.length;n+=o,r++;const i={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,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(a){throw ps["fetch"]=void 0,a}finally{n-=o,r--}},xn(t.bufferSize||40))}var hs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ms(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}var gs=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,_s=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ys=/\((\S*)(?::(\d+))(?::(\d+))\)/,vs=/at (.+?) ?\(data:(.+?),/,bs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Es=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ss=_(...[[30,t=>{const e=t.match(vs);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=gs.exec(t);if(n){const[,t,e,r]=n;return ms(t,"?",+e,+r)}const r=_s.exec(t);if(r){if(0===r[2]?.indexOf("eval")){const t=ys.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=xs(r[1]||"?",r[2]);return ms(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=bs.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Es.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]=xs(n,t),ms(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),xs=(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]},ws=1024,ks=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console",n=w(e,t);k(e,hr)}(function(t){return function(e){if(Yt()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:mr(e.level),message:lt(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${lt(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Vn(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(Yt()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>ws&&(hs&&h.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=ws),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=ts(e,{keyAttrs:o,maxStringLength:i}
1),s=function(t,e=5){if(!Cr.HTMLElement)return null;let n=t;for(let r=0;r<e;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}(e)}catch{r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),Vn(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),w("dom",n),k("dom",is)),e.xhr&&function(t){w("xhr",t),k("xhr",ds)}(function(t){return function(e){if(Yt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[ls];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,u={method:o,url:i,status_code:a},p={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},l={category:"xhr",data:u,type:"http",level:Er(a)};t.emit("beforeOutgoingRequestBreadcrumb",l,p),Vn(l,p)}}(t)),e.fetch&&kr(function(t){return function(e){if(Yt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},o={category:"fetch",data:e.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",o,s),Vn(o,s)}else{const s=e.response,o={...e.fetchData,status_code:s?.status},i={input:e.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:Er(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,i),Vn(a,i)}}}(t)),e.history&&cs(function(t){return function(e){if(Yt()!==t)return;let n=e.from,r=e.to;const s=Gn(Pr.location.href);let o=n?Gn(n):void 0;const i=Gn(r);o?.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),Vn({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){Yt()===t&&Vn({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:gt(e)},{event:e})}}(t))}}};var Os="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(","),$s=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&Y(Pr,"setTimeout",Is),e.setInterval&&Y(Pr,"setInterval",Is),e.requestAnimationFrame&&Y(Pr,"requestAnimationFrame",Cs),e.XMLHttpRequest&&"XMLHttpRequest"in Pr&&Y(XMLHttpRequest.prototype,"send",As);const t=e.eventTarget;t&&(Array.isArray(t)?t:Os).forEach(t=>function(t,e){const n=Pr[t]?.prototype;if(!n?.hasOwnProperty?.("addEventListener"))return;Y(n,"addEventListener",function(n){return function(r,s,o){try{"function"==typeof s.handleEvent&&(s.handleEvent=jr(s.handleEvent,{mechanism:{data:{handler:b(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,jr(s,{mechanism:{data:{handler:b(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),Y(n,"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 Is(t){return function(...e){const n=e[0];return e[0]=jr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${b(t)}`}}),t.apply(this,e)}}function Cs(t){return function(e){return t.apply(this,[jr(e,{mechanism:{data:{handler:b(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function As(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&Y(n,t,function(e){const n={mechanism:{data:{handler:b(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=J(e);return r&&(n.mechanism.data.handler=b(r)),jr(e,n)})}),t.apply(this,e)}}var Ps=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===Pr.document)return void(hs&&h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));nn({ignoreDuration:!0});let t=!1;(t=>{const e=Jr.requestIdleCallback||Jr.setTimeout;"hidden"===Jr.document?.visibilityState?t():(Kr("visibilitychange",t=(t=>{let e=!1;return()=>{e||(t(),e=!0)}})(t),{once:!0,capture:!0}),Kr("pagehide",t,{once:!0,capture:!0}),e(()=>{t(),Xr("visibilitychange",t,{capture:!0}),Xr("pagehide",t,{capture:!0})}
1))})(()=>{t||(on(),t=!0)});const n=zt();let r=n.getUser();n.addScopeListener(e=>{const n=e.getUser();r?.id===n?.id&&r?.ip_address===n?.ip_address||(r=n,t&&on())}),"route"===e&&cs(({from:e,to:n})=>{e!==n&&(nn({ignoreDuration:!0}),on(),t=!0)})}}},Ts=()=>({name:"CultureContext",preprocessEvent(t){const e=Ds();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})},processSegmentSpan(t){const e=Ds();e&&qe(t,{"culture.locale":e.locale,"culture.timezone":e.timezone,"culture.calendar":e.calendar})}});function Ds(){try{const t=Pr.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}var js=(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";w(e,t),k(e,I)}(e=>{const{stackParser:n,attachStacktrace:r}=Ns();if(Yt()!==t||Dr())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];0===c.length&&c.push({colno:r,lineno:n,filename:Rs(e)??Ar(),function:"?",in_app:!0});return t}(Wr(n,c||s,void 0,r,!1),o,i,a);u.level="error",tn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),Ls("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";w(e,t),k(e,A)}(e=>{const{stackParser:n,attachStacktrace:r}=Ns();if(Yt()!==t||Dr())return;const s=function(t){if(U(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),o=U(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Wr(n,s,void 0,r,!0);o.level="error",tn(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t),Ls("onunhandledrejection"))}}};function Ls(t){hs&&h.log(`Global Handler attached: ${t}`)}function Ns(){return Yt()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Rs(t){if(R(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,"),o=t.indexOf(",");let i="";if(e&&-1!==o){const e=t.slice(o+1);i=e.length>10?`${e.slice(0,10)}... [truncated]`:e}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}(t,!1)}>`:t}var Ms=()=>({name:"HttpContext",preprocessEvent(t){if(!Pr.navigator&&!Pr.location&&!Pr.document)return;const e=Lr(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}},processSegmentSpan(t){const e=t.attributes?.[Gt];if(!Pr.navigator&&!Pr.location&&!Pr.document)return;const n=Lr();qe(t,{[Ue]:"http.client"!==e?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}),Us=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){ir(Nr,s.getOptions().stackParser,n,e,t,r)}}},qs=/^HTML(\w*)Element$/;function Bs(t){if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(t){if("undefined"==typeof Element)return!1;try{return t instanceof Element}catch{return!1}}(t)){const e=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(t);if(qs.test(e))return`[HTMLElement: ${ts(t)}]`}}function Fs(){return!!function(){if(void 0===Pr.window)return!1;const t=Pr;if(t.nw)return!1;if(!(t.chrome||t.browser)?.runtime?.id)return!1;const e=Ar();return!(Pr===Pr.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(e))}()&&(hs&&p(()=>{}),!0)}function Hs(t={}){const e=!t.skipBrowserExtensionCheck&&Fs();let n=null==t.defaultIntegrations?[rr(),tr(),br(),$s(),ks(),js(),Us(),gr(),Ms(),Ts(),Ps()]:t.defaultIntegrations;const r={...t,enabled:!e&&t.enabled,stackParser:(s=t.stackParser||Ss,Array.isArray(s)?_(...s):s),integrations:pn({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||fs};var s;return ot(Bs),Qn(Qr,r)}var Ws=t(e());function zs(t){return q(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":Bs(t);var e}function Ys(){!function(t){const e={...t};Kn(e,"react"),en("react",{version:Ws.version});const n=Hs(e);ot(zs)}({dsn:"https://f46a4e4fee8fdc42f3c7484a761de7c9@o4508211887607104.ingest.de.sentry.io/4508211891732560\n",environment:"production\n",release:"1.0.0\n",defaultIntegrations:!1,integrations:[rr(),tr(),js(),Us(),gr(),Ms()],tracesSampleRate:0,attachStacktrace:!0,beforeSend(t,e){if(t.exception){const n=e.originalException;if(n instanceof Error&&n.message.includes("ad"))return null;n instanceof Error&&(n.message.includes("Failed to fetch dynamically imported module")||n.message.includes("Importing a module script failed")||n.message.includes("error loading dynamically imported module"))&&(t.tags={...t.tags,chunkLoadError:!0,deploymentIssue:!0},t.fingerprint=["chunk-load-error"]),t.tags={...t.tags,userAgent:navigator.userAgent}}return t},ignoreErrors:["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","atomicFindClose","NetworkError","Network request failed","jigsaw is not defined","ComboSearch is not defined","http://tt.epicplay.com","Can't find variable: ZiteReader","Non-Error promise rejection captured"],maxBreadcrumbs:50,debug:!1})}function Qs(t,e){e&&en("custom",e),Ze(t)}function Gs(t,e="info"){!function(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;Wt().captureMessage(t,n,r)}(t,e)}function Js(t,e){Vn({message:t,level:"info",data:e})}function Ks(t){!function(t){zt().setUser(t)}(t)}function Xs(t,e){!function(t,e){zt().setTag(t,e)}(t,e)}function Vs(t,e){en(t,e)}export{Js as addBreadcrumb,Qs as captureException,Gs as captureMessage,Ys as initSentry,Vs as setContext,Xs as setTag,Ks as setUser};
2//# sourceMappingURL=sentry-DHXLaec5.js.map

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.