PageSourceSearch

https://www.elle.cz/_content/AdminPanel.Client.Components/sentry-10.49.0.bundle.min.js

js elle.cz collected 2026-10-02 07:55:16 UTC 83,817 bytes, 3 lines download raw bytes

1/*! @sentry/browser 10.49.0 (745af79) | https://github.com/getsentry/sentry-javascript */
2var Sentry=function(t){t=window.Sentry||{};const n=globalThis,e="10.49.0";function r(){return o(n),n}function o(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e,n[e]=n[e]||{}}function i(t,r,o=n){const i=o.__SENTRY__=o.__SENTRY__||{},s=i[e]=i[e]||{};return s[t]||(s[t]=r())}const s=["debug","info","warn","error","log","assert","trace"],c={};function u(t){if(!("console"in n))return t();const e=n.console,r={},o=Object.keys(c);o.forEach(t=>{const n=c[t];r[t]=e[t],e[t]=n});try{return t()}finally{o.forEach(t=>{e[t]=r[t]})}}const a="?",f=/\(error: (.*)\)/,l=/captureMessage|captureException/;function d(...t){const n=t.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(t,e=0,r=0)=>{const o=[],i=t.split("\n");for(let t=e;t<i.length;t++){let e=i[t];e.length>1024&&(e=e.slice(0,1024));const s=f.test(e)?e.replace(f,"$1"):e;if(!s.includes("Error: ")){for(const t of n){const n=t(s);if(n){o.push(n);break}}if(o.length>=50+r)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(h(n).function||"")&&n.pop();n.reverse(),l.test(h(n).function||"")&&(n.pop(),l.test(h(n).function||"")&&n.pop());return n.slice(0,50).map(t=>({...t,filename:t.filename||h(n).filename,function:t.function||a}))}(o.slice(r))}}function h(t){return t[t.length-1]||{}}const p="<anonymous>";function m(t){try{return t&&"function"==typeof t&&t.name||p}catch{return p}}function y(t){const n=t.exception;if(n){const t=[];try{return n.values.forEach(n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)}),t}catch{return}}}function g(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const v={},b={};function _(t,n){v[t]=v[t]||[],v[t].push(n)}function w(t,n){if(!b[t]){b[t]=!0;try{n()}catch(t){}}}function E(t,n){const e=t&&v[t];if(e)for(const t of e)try{t(n)}catch(t){}}let S=null;function $(){S=n.onerror,n.onerror=function(t,n,e,r,o){return E("error",{column:r,error:o,line:e,msg:t,url:n}),!!S&&S.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let x=null;function I(){x=n.onunhandledrejection,n.onunhandledrejection=function(t){return E("unhandledrejection",t),!x||x.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const k=Object.prototype.toString;function j(t){switch(k.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return D(t,Error)}}function T(t,n){return k.call(t)===`[object ${n}]`}function O(t){return T(t,"ErrorEvent")}function C(t){return T(t,"DOMError")}function R(t){return T(t,"String")}function A(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function M(t){return null===t||A(t)||"object"!=typeof t&&"function"!=typeof t}function P(t){return T(t,"Object")}function L(t){return"undefined"!=typeof Event&&D(t,Event)}function N(t){return Boolean(t?.then&&"function"==typeof t.then)}function D(t,n){try{return t instanceof n}catch{return!1}}function U(t){return!("object"!=typeof t||null===t||!(t.__isVue||t.t||t.__v_isVNode))}function B(t){return"undefined"!=typeof Request&&D(t,Request)}const F=n;function q(t,n={}){if(!t)return"<unknown>";try{let e=t;const r=5,o=[];let i=0,s=0;const c=" > ",u=c.length;let a;const f=Array.isArray(n)?n:n.keyAttrs,l=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&i++<r&&(a=H(e,f),!("html"===a||i>1&&s+o.length*u+a.length>=l));)o.push(a),s+=a.length,e=e.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function H(t,n){const e=t,r=[];if(!e?.tagName)return"";if(F.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());const o=n?.length?n.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o?.length)o.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{e.id&&r.push(`#${e.id}`);const t=e.className;if(t&&R(t)){const n=t.split(/\s+/);for(const t of n)r.push(`.${t}`)}}for(const t of["aria-label","type","name","title","alt"]){const n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}function W(){try{return F.document.location.href}catch{return""}}function z(t,n,e){if(!(n in t))return;const r=t[n];if("function"!=typeof r)return;const o=e(r);"function"==typeof o&&Y(o,r);try{t[n]=o}catch{}}function G(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch{}}function Y(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,G(t,"__sentry_original__",n)}catch{}}function J(t){return t.__sentry_original__}function X(t){if(j(t))return{message:t.message,name:t.name,stack:t.stack,...V(t)};if(L(t)){const n={type:t.type,target:K(t.target),currentTarget:K(t.currentTarget),...V(t)};return"undefined"!=typeof CustomEvent&&D(t,CustomEvent)&&(n.detail=t.detail),n}return t}function K(t){try{return n=t,"undefined"!=typeof Element&&D(n,Element)?q(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}var n}function V(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}
vendor: 5,926 bytes, line 2
2let Z,Q;function tt(t){if(void 0!==Z)return Z?Z(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=n;return e in r&&"function"==typeof r[e]?(Z=r[e],Z(t)):(Z=null,t())}function nt(){return tt(()=>Math.random())}function et(){return tt(()=>Date.now())}function rt(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function ot(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{U(r)?e.push(g(r)):e.push(String(r))}catch{e.push("[value cannot be serialized]")}}return e.join(n)}function it(t,n,e=!1){return!!R(t)&&(T(n,"RegExp")?n.test(t):R(n)?e?t===n:t.includes(n):"function"==typeof n&&n(t))}function st(t,n=[],e=!1){return n.some(n=>it(t,n,e))}function ct(t=function(){const t=n;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return tt(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Q||(Q=[1e7]+1e3+4e3+8e3+1e11),Q.replace(/[018]/g,t=>(t^(16*nt()&15)>>t/4).toString(16))}function ut(t){return t.exception?.values?.[0]}function at(t){const{message:n,event_id:e}=t;if(n)return n;const r=ut(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function ft(t,n,e){const r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=n||""),i.type||(i.type="Error")}function lt(t,n){const e=ut(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r?.data,...n.data};e.mechanism.data=t}}function dt(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{G(t,"__sentry_captured__",!0)}catch{}return!1}function ht(){return et()/1e3}let pt;function mt(){return(pt??(pt=function(){const{performance:t}=n;if(!t?.now||!t.timeOrigin)return ht;const e=t.timeOrigin;return()=>(e+tt(()=>t.now()))/1e3}()))()}function yt(t){const n=mt(),e={sid:ct(),init:!0,timestamp:n,started:n,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}}}(e)};return t&&gt(e,t),e}function gt(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||mt(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:ct()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}function vt(t,n,e=2){if(!n||"object"!=typeof n||e<=0)return n;if(t&&0===Object.keys(n).length)return t;const r={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=vt(r[t],n[t],e-1));return r}function bt(){return ct()}function _t(){return ct().substring(16)}const wt="_sentrySpan";function Et(t,n){n?G(t,wt,n):delete t[wt]}function St(t){return t[wt]}class $t{constructor(){this.o=!1,this.i=[],this.u=[],this.l=[],this.h=[],this.p={},this.m={},this.v={},this._={},this.S={},this.I={},this.k={traceId:bt(),sampleRand:nt()}}clone(){const t=new $t;return t.l=[...this.l],t.m={...this.m},t.v={...this.v},t._={...this._},t.S={...this.S},this.S.flags&&(t.S.flags={values:[...this.S.flags.values]}),t.p=this.p,t.j=this.j,t.T=this.T,t.O=this.O,t.C=this.C,t.u=[...this.u],t.h=[...this.h],t.I={...this.I},t.k={...this.k},t.R=this.R,t.A=this.A,t.M=this.M,Et(t,St(this)),t}setClient(t){this.R=t}setLastEventId(t){this.A=t}getClient(){return this.R}lastEventId(){return this.A}addScopeListener(t){this.i.push(t)}addEventProcessor(t){return this.u.push(t),this}setUser(t){return this.p=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.T&&gt(this.T,{user:t}),this.P(),this}getUser(){return this.p}setConversationId(t){return this.M=t||void 0,this.P(),this}setTags(t){return this.m={...this.m,...t},this.P(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this.v={...this.v,...t},this.P(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this.v&&(delete this.v[t],this.P()),this}setExtras(t){return this._={...this._,...t},this.P(),this}setExtra(t,n){return this._={...this._,[t]:n},this.P(),this}setFingerprint(t){return this.C=t,this.P(),this}setLevel(t){return this.j=t,this.P(),this}setTransactionName(t){return this.O=t,this.P(),this}setContext(t,n){return null===n?delete this.S[t]:this.S[t]=n,this.P(),this}setSession(t){return t?this.T=t:delete this.T,this.P(),this}getSession(){return this.T}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,e=n instanceof $t?n.getScopeData():P(n)?t:void 0,{tags:r,attributes:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f,conversationId:l}=e||{};return this.m={...this.m,...r},this.v={...this.v,...o},this._={...this._,...i},this.S={...this.S,...c},s&&Object.keys(s).length&&(this.p=s),u&&(this.j=u),a.length&&(this.C=a),f&&(this.k=f),l&&(this.M=l),this}clear(){return this.l=[],this.m={},this.v={},this._={},this.p={},this.S={},this.j=void 0,this.O=void 0,this.C=void 0,this.T=void 0,this.M=void 0,Et(this,void 0),this.h=[],this.setPropagationContext({traceId:bt(),sampleRand:nt(
2)}),this.P(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:ht(),...t,message:t.message?rt(t.message,2048):t.message};return this.l.push(r),this.l.length>e&&(this.l=this.l.slice(-e),this.R?.recordDroppedEvent("buffer_overflow","log_item")),this.P(),this}getLastBreadcrumb(){return this.l[this.l.length-1]}clearBreadcrumbs(){return this.l=[],this.P(),this}addAttachment(t){return this.h.push(t),this}clearAttachments(){return this.h=[],this}getScopeData(){return{breadcrumbs:this.l,attachments:this.h,contexts:this.S,tags:this.m,attributes:this.v,extra:this._,user:this.p,level:this.j,fingerprint:this.C||[],eventProcessors:this.u,propagationContext:this.k,sdkProcessingMetadata:this.I,transactionName:this.O,span:St(this),conversationId:this.M}}setSDKProcessingMetadata(t){return this.I=vt(this.I,t,2),this}setPropagationContext(t){return this.k=t,this}getPropagationContext(){return this.k}captureException(t,n){const e=n?.event_id||ct();if(!this.R)return e;const r=new Error("Sentry syntheticException");return this.R.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e?.event_id||ct();if(!this.R)return r;const o=e?.syntheticException??new Error(t);return this.R.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=t.event_id||n?.event_id||ct();return this.R?(this.R.captureEvent(t,{...n,event_id:e},this),e):e}P(){this.o||(this.o=!0,this.i.forEach(t=>{t(this)}),this.o=!1)}}const xt=t=>t instanceof Promise&&!t[It],It=Symbol("chained PromiseLike"),kt=(t,n)=>{let e=!1;for(const r in t){if(r in n)continue;e=!0;const o=t[r];"function"==typeof o?Object.defineProperty(n,r,{value:(...n)=>o.apply(t,n),enumerable:!0,configurable:!0,writable:!0}):n[r]=o}return e&&Object.assign(n,{[It]:!0}),n};class jt{constructor(t,n){let e,r;e=t||new $t,r=n||new $t,this.L=[{scope:e}],this.N=r}withScope(t){const n=this.D();let e;try{e=t(n)}catch(t){throw this.U(),t}return N(e)?((t,n,e)=>{const r=t.then(t=>(n(t),t),t=>{throw e(t),t});return xt(r)&&xt(t)?r:kt(t,r)})(e,()=>this.U(),()=>this.U()):(this.U(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.N}getStackTop(){return this.L[this.L.length-1]}D(){const t=this.getScope().clone();return this.L.push({client:this.getClient(),scope:t}),t}U(){return!(this.L.length<=1)&&!!this.L.pop()}}function Tt(){const t=o(r());return t.stack=t.stack||new jt(i("defaultCurrentScope",()=>new $t),i("defaultIsolationScope",()=>new $t))}function Ot(t){return Tt().withScope(t)}function Ct(t,n){const e=Tt();return e.withScope(()=>(e.getStackTop().scope=t,n(t)))}function Rt(t){return Tt().withScope(()=>t(Tt().getIsolationScope()))}function At(t){const n=o(t);return n.acs?n.acs:{withIsolationScope:Rt,withScope:Ot,withSetScope:Ct,withSetIsolationScope:(t,n)=>Rt(n),getCurrentScope:()=>Tt().getScope(),getIsolationScope:()=>Tt().getIsolationScope()}}function Mt(t,n){const{value:e,unit:r}="object"==typeof(o=t)&&null!=o&&!Array.isArray(o)&&Object.keys(o).includes("value")?t:{value:t,unit:void 0};var o;const i=function(t){const n="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(n)return{value:t,type:n}}(e),s=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...s};if(!n||"skip-undefined"===n&&void 0===e)return;let c="";try{c=JSON.stringify(e)??""}catch{}return{value:c,type:"string",...s}}function Pt(t,n=!1){const e={};for(const[r,o]of Object.entries(t??{})){const t=Mt(o,n);t&&(e[r]=t)}return e}function Lt(){return At(r()).getCurrentScope()}function Nt(){return At(r()).getIsolationScope()}function Dt(){return i("globalScope",()=>new $t)}function Ut(...t){const n=At(r());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function Bt(){return Lt().getClient()}function Ft(t){const n=t.getPropagationContext(),{traceId:e,parentSpanId:r,propagationSpanId:o}=n,i={trace_id:e,span_id:o||_t()};return r&&(i.parent_span_id=r),i}const qt="sentry.source",Ht="sentry.sample_rate",Wt="sentry.op",zt="sentry.origin",Gt="sentry.custom_span_name",Yt="sentry.profile_id",Jt="sentry.exclusive_time";function Xt(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function Kt(t){const n=t;return{scope:n._sentryScope,isolationScope:Xt(n._sentryIsolationScope)}}const Vt="sentry-";function Zt(t){const n=function(t){if(!t||!R(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,n)=>{const e=tn(n);return Object.entries(e).forEach(([n,e])=>{t[n]=e}),t},{});return tn(t)}(t);if(!n)return;const e=Object.entries(n).reduce((t,[n,e])=>{if(n.startsWith(Vt)){t[n.slice(7)]=e}return t},{});return Object.keys(e).length>0?e:void 0}function Qt(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce((t,[n,e],r)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,i=0===r?o:`${t},${o}`;return i.length>8192?t:i},"")}(Object.entries(t).reduce((t,[n,e])=>(e&&(t[`${Vt}${n}`]=e),t),{}))}function tn(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,e])=>(n&&e&&(t[n]=e),t),{})}const nn=/^o(\d+)\./,en=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function rn(t,n=!1){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&o?`:${o}`:""}@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function on(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function sn(t){const n=t.getOptions(),{host:e}=t.getDsn()||{};let r;return n.orgId?r=String(n.orgId):e&&(r=function(t){const n=t.match(nn);return n?.[1]}(e)),r}function cn(t){const n="string"==typeof t?function(t){const n=en.exec(t);if(!n)return void u(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[e,r,o="",i="",s="",c=""]=n.slice(1);let a="",f=c;const l=f.split("/");if(l.length>1&&(a=l.slice(0,-1).join("/"),f=l.pop()),f){const t=f.match(/^\d+/);t&&(f=t[0])}return on({host:i,pass:o,path:a,projectId:f,port:s,protocol:e,publicKey:r})}(t):on(t);if(n)return n}function un(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}const an=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function fn(t,n){const e=function(t){if(!t)return;const n=t.match(an);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=Zt(n);
2if(!e?.traceId)return{traceId:bt(),sampleRand:nt()};const o=function(t,n){const e=un(n?.sample_rand);if(void 0!==e)return e;const r=un(n?.sample_rate);return r&&void 0!==t?.parentSampled?t.parentSampled?nt()*r:r+nt()*(1-r):nt()}(e,r);r&&(r.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:c}=e;return{traceId:i,parentSpanId:s,sampled:c,dsc:r||{},sampleRand:o}}function ln(t=bt(),n=_t(),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}function dn(t=bt(),n=_t(),e){return`00-${t}-${n}-${e?"01":"00"}`}let hn=!1;function pn(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext(),o=r?n:bn(t).parent_span_id,i=Kt(t).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||_t():n,trace_id:e}}function mn(t){const{traceId:n,spanId:e}=t.spanContext();return ln(n,e,wn(t))}function yn(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:o})=>({span_id:t,trace_id:n,sampled:1===e,attributes:o,...r})):void 0}function gn(t){return"number"==typeof t?vn(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?vn(t.getTime()):mt()}function vn(t){return t>9999999999?t/1e3:t}function bn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:n,traceId:e}=t.spanContext();if(function(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}(t)){const{attributes:r,startTime:o,name:i,endTime:s,status:c,links:u}=t;return{span_id:n,trace_id:e,data:r,description:i,parent_span_id:_n(t),start_timestamp:gn(o),timestamp:gn(s)||void 0,status:En(c),op:r[Wt],origin:r[zt],links:yn(u)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function _n(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function wn(t){const{traceFlags:n}=t.spanContext();return 1===n}function En(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const Sn=function(t){return t._sentryRootSpan||t};function $n(){const t=At(r());return t.getActiveSpan?t.getActiveSpan():St(Lt())}function xn(){hn||(u(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),hn=!0)}function In(t,n){if(!n?.length||!t.description)return!1;for(const e of n){if(jn(e)){if(it(t.description,e))return!0;continue}if(!e.name&&!e.op)continue;const n=!e.name||it(t.description,e.name),r=!e.op||t.op&&it(t.op,e.op);if(n&&r)return!0}return!1}function kn(t,n){const e=n.parent_span_id,r=n.span_id;if(e)for(const n of t)n.parent_span_id===r&&(n.parent_span_id=e)}function jn(t){return"string"==typeof t||t instanceof RegExp}const Tn="production";function On(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o={environment:e.environment||Tn,release:e.release,public_key:r,trace_id:t,org_id:sn(n)};return n.emit("createDsc",o),o}function Cn(t,n){const e=n.getPropagationContext();return e.dsc||On(e.traceId,t)}
2function Rn(t){const n=Bt();if(!n)return{};const e=Sn(t),r=bn(e),o=r.data,i=e.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Ht]??o["sentry.previous_trace_sample_rate"];function c(t){return"number"!=typeof s&&"string"!=typeof s||(t.sample_rate=`${s}`),t}const u=e._frozenDsc;if(u)return c(u);const a=i?.get("sentry.dsc"),f=a&&Zt(a);if(f)return c(f);const l=On(t.spanContext().traceId,n),d=o[qt]??o["sentry.span.source"],h=r.description;return"url"!==d&&h&&(l.transaction=h),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Bt()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}()&&(l.sampled=String(wn(e)),l.sample_rand=i?.get("sentry.sample_rand")??Kt(e).scope?.getPropagationContext().sampleRand.toString()),c(l),n.emit("createDsc",l,e),l}function An(t,n=100,e=1/0){try{return Pn("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Mn(t,n=3,e=102400){const r=An(t,n);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>e?Mn(t,n-1,e):r;var o}function Pn(t,n,e=1/0,r=1/0,o=function(){const t=new WeakSet;function n(n){return!!t.has(n)||(t.add(n),!1)}function e(n){t.delete(n)}return[n,e]}()){const[i,s]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.B)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(U(n))return g(n);if(P(e=n)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${m(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var e}(t,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:e;if(0===u)return c.replace("object ","");if(i(n))return"[Circular ~]";const a=n;if(a&&"function"==typeof a.toJSON)try{return Pn("",a.toJSON(),u-1,r,o)}catch{}const f=Array.isArray(n)?[]:{};let l=0;const d=X(n);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(l>=r){f[t]="[MaxProperties ~]";break}const n=d[t];f[t]=Pn(t,n,u-1,r,o),l++}return s(n),f}function Ln(t,n=[]){return[t,n]}function Nn(t,n){const[e,r]=t;return[e,[...r,n]]}function Dn(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function Un(t){const e=o(n);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function Bn(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[Un(r),t]:r.push("string"==typeof t?Un(t):t)}for(const t of e){const[n,e]=t;if(o(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch{t=JSON.stringify(An(e))}o(t)}}return"string"==typeof r?r:function(t){const n=t.reduce((t,n)=>t+n.length,0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(r)}function Fn(t){const n="string"==typeof t.data?Un(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const qn={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 Hn(t){return function(t){return t in qn}(t)?qn[t]:t}function Wn(t){if(!t?.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function zn(t,n,e,r){const o=Wn(e),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){if(!n)return t;const e=t.sdk||{};t.sdk={...e,name:e.name||n.name,version:e.version||n.version,integrations:[...t.sdk?.integrations||[],...n.integrations||[]],packages:[...t.sdk?.packages||[],...n.packages||[]],settings:t.sdk?.settings||n.settings?{...t.sdk?.settings,...n.settings}:void 0}}(t,e?.sdk);const s=function(t,n,e,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:rn(r)},...o&&{trace:o}}}(t,o,r,n);delete t.sdkProcessingMetadata;return Ln(s,[[{type:i},t]])}const Gn="__SENTRY_SUPPRESS_TRACING__";function Yn(){return At(r())}function Jn(t,n){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=n;!function(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=n;Object.keys(e).length&&(t.extra={...e,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(o).length&&(t.user={...o,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});s&&(t.level=s);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:pn(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Rn(n),...t.sdkProcessingMetadata};const e=Sn(n),r=bn(e).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint.length||delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,o),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,i)}function Xn(t,n){const{extra:e,tags:r,attributes:o,user:i,contexts:s,level:c,sdkProcessingMetadata:u,breadcrumbs:a,fingerprint:f,eventProcessors:l,attachments:d,propagationContext:h,transactionName:p,span:m}=n;Kn(t,"extra",e),Kn(t,"tags",r),Kn(t,"attributes",o),Kn(t,"user",i),Kn(t,"contexts",s),t.sdkProcessingMetadata=vt(t.sdkProcessingMetadata,u,2),c&&(t.level=c),p&&(t.transactionName=p),m&&(t.span=m),a.length&&(t.breadcrumbs=[...t.breadcrumbs,...a]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...h}}function Kn(t,n,e){t[n]=vt(t[n],e,1)}function Vn(t,n){const e=Dt().getScopeData();return t&&Xn(e,t.getScopeData()),n&&Xn(e,n.getScopeData()),e}function Zn(t){return new te(n=>{n(t)})}function Qn(t){return new te((n,e)=>{e(t)})}class te{constructor(t){this.F=0,this.q=[],this.H(t)}then(t,n){return new te((e,r)=>{this.q.push([!1,n=>
2{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.W()})}catch(t){return this.then(t=>t,t)}finally(t){return new te((n,e)=>{let r,o;return this.then(n=>{o=!1,r=n,t&&t()},n=>{o=!0,r=n,t&&t()}).then(()=>{o?e(r):n(r)})})}W(){if(0===this.F)return;const t=this.q.slice();this.q=[],t.forEach(t=>{t[0]||(1===this.F&&t[1](this.G),2===this.F&&t[2](this.G),t[0]=!0)})}H(t){const n=(t,n)=>{0===this.F&&(N(n)?n.then(e,r):(this.F=t,this.G=n,this.W()))},e=t=>{n(1,t)},r=t=>{n(2,t)};try{t(e,r)}catch(t){r(t)}}}function ne(t,n,e,r=0){try{const o=ee(n,e,t,r);return N(o)?o:Zn(o)}catch(t){return Qn(t)}}function ee(t,n,e,r){const o=e[r];if(!t||!o)return t;const i=o({...t},n);return N(i)?i.then(t=>ee(t,n,e,r+1)):ee(i,n,e,r+1)}let re,oe,ie,se;function ce(t,e,r,o,i,s){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,a={...e,event_id:e.event_id||r.event_id||ct(),timestamp:e.timestamp||ht()},f=r.integrations||t.integrations.map(t=>t.name);!function(t,n){const{environment:e,release:r,dist:o,maxValueLength:i}=n;t.environment=t.environment||e||Tn,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);const s=t.request;s?.url&&i&&(s.url=rt(s.url,i));i&&t.exception?.values?.forEach(t=>{t.value&&(t.value=rt(t.value,i))})}(a,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(a,f),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const r=function(t){const e=n._sentryDebugIds,r=n.Y;if(!e&&!r)return{};const o=e?Object.keys(e):[],i=r?Object.keys(r):[];if(se&&o.length===oe&&i.length===ie)return se;oe=o.length,ie=i.length,se={},re||(re={});const s=(n,e)=>{for(const r of n){const n=e[r],o=re?.[r];if(o&&se&&n)se[o[0]]=n,re&&(re[r]=[o[0],n]);else if(n){const e=t(r);for(let t=e.length-1;t>=0;t--){const o=e[t],i=o?.filename;if(i&&se&&re){se[i]=n,re[r]=[i,n];break}}}}};return e&&s(o,e),r&&s(i,r),se}(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=r[t.filename])})})}(a,t.stackParser);const l=function(t,n){if(!n)return t;const e=t?t.clone():new $t;return e.update(n),e}(o,r.captureContext);r.mechanism&&lt(a,r.mechanism);const d=i?i.getEventProcessors():[],h=Vn(s,l),p=[...r.attachments||[],...h.attachments];p.length&&(r.attachments=p),Jn(a,h);const m=[...d,...h.eventProcessors];return(r.data&&!0===r.data.__sentry__?Zn(a):ne(m,a,r)).then(t=>(t&&function(t){const n={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.entries(n).forEach(([t,n])=>{e.push({type:"sourcemap",code_file:t,debug_id:n})})}(t),"number"==typeof c&&c>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:An(t.data,n,e)}}))},...t.user&&{user:An(t.user,n,e)},...t.contexts&&{contexts:An(t.contexts,n,e)},...t.extra&&{extra:An(t.extra,n,e)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=An(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:An(t.data,n,e)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=An(t.contexts.flags,3,e));return r}(t,c,u):t))}function ue(t){if(t)return function(t){return t instanceof $t||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>ae.includes(t))}(t)?{captureContext:t}:t}const ae=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function captureException(t,n){return Lt().captureException(t,ue(n))}function fe(t,n){return Lt().captureEvent(t,n)}function le(){return Nt().lastEventId()}function de(){const t=Bt();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function he(t){const e=Nt(),{user:r}=Vn(e,Lt()),{userAgent:o}=n.navigator||{},i=yt({user:r,...o&&{userAgent:o},...t}),s=e.getSession();return"ok"===s?.status&&gt(s,{status:"exited"}),pe(),e.setSession(i),i}function pe(){const t=Nt(),n=Lt().getSession()||t.getSession();n&&function(t){let n={};"ok"===t.status&&(n={status:"exited"}),gt(t,n)}(n),me(),t.setSession()}function me(){const t=Nt(),n=Bt(),e=t.getSession();e&&n&&n.captureSession(e)}function ye(t=!1){t?pe():me()}function ge(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function ve(t,n,e){return n||`${function(t){return`${ge(t)}${t.projectId}/envelope/`}(t)}?${function(t,n){const e={sentry_version:"7"};return t.publicKey&&(e.sentry_key=t.publicKey),n&&(e.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(e).toString()}(t,e)}`}const be=[];function _e(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;if(n.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(e))r=[...n,...e];else if("function"==typeof e){const t=e(n);r=Array.isArray(t)?t:[t]}else r=n;return function(t){const n={};return t.forEach(t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)}),Object.values(n)}(r)}function we(t,n){for(const e of n)e?.afterAllSetup&&e.afterAllSetup(t)}function Ee(t,n,e){if(!e[n.name]){if(e[n.name]=n,be.includes(n.name)||"function"!=typeof n.setupOnce||(n.setupOnce(),be.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",(n,r)=>e(n,r,t))}if("function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign((n,r)=>e(n,r,t),{id:n.name});t.addEventProcessor(r)}}}let Se,$e=0;function xe(t,n){const e=n??function(t){return Ie().get(t)}(t)??[];
2if(0===e.length)return;const r=t.getOptions(),o=function(t,n,e,r){const o={};return n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),e&&r&&(o.dsn=rn(r)),Ln(o,[(i=t,[{type:"log",item_count:i.length,content_type:"application/vnd.sentry.items.log+json"},{items:i}])]);var i}(e,r._metadata,r.tunnel,t.getDsn());Ie().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function Ie(){return i("clientToLogBufferMap",()=>new WeakMap)}function ke(t,n,e,r=!0){!e||!r&&n in t||(t[n]=e)}function je(t,n){const e=Ae(),r=Re(t);void 0===r?e.set(t,[n]):r.length>=1e3?(Ce(t,r),e.set(t,[n])):e.set(t,[...r,n])}function Te(t,n,e,r){const[,o]=function(t,n){return n?Ut(n,()=>{const e=$n(),r=e?pn(e):Ft(n);return[e?Rn(e):Cn(t,n),r]}):[void 0,void 0]}(n,e),i=St(e),s=i?i.spanContext().traceId:o?.trace_id,c=i?i.spanContext().spanId:void 0,u=mt(),a=function(t){const n=Math.floor(1e3*t);void 0!==Se&&n!==Se&&($e=0);const e=$e;return $e++,Se=n,{key:"sentry.timestamp.sequence",value:{value:e,type:"integer"}}}(u);return{timestamp:u,trace_id:s??"",span_id:c,name:t.name,type:t.type,unit:t.unit,value:t.value,attributes:{...Pt(r),...Pt(t.attributes,"skip-undefined"),[a.key]:a.value}}}function Oe(t,n){const e=n?.scope??Lt(),r=n?.captureSerializedMetric??je,o=e?.getClient()??Bt();if(!o)return;const{_experiments:i,enableMetrics:s,beforeSendMetric:c}=o.getOptions();if(!(s??i?.enableMetrics??!0))return;const{user:u,attributes:a}=Vn(Nt(),e),f=function(t,n,e){const{release:r,environment:o}=n.getOptions(),i={...t.attributes};ke(i,"user.id",e.id,!1),ke(i,"user.email",e.email,!1),ke(i,"user.name",e.username,!1),ke(i,"sentry.release",r),ke(i,"sentry.environment",o);const{name:s,version:c}=n.getSdkMetadata()?.sdk??{};ke(i,"sentry.sdk.name",s),ke(i,"sentry.sdk.version",c);const u=n.getIntegrationByName("Replay"),a=u?.getReplayId(!0);return ke(i,"sentry.replay_id",a),a&&"buffer"===u?.getRecordingMode()&&ke(i,"sentry._internal.replay_is_buffering",!0),{...t,attributes:i}}(t,o,u);
2o.emit("processMetric",f);const l=c||i?.beforeSendMetric,d=l?l(f):f;if(!d)return;r(o,Te(d,o,e,a)),o.emit("afterCaptureMetric",d)}function Ce(t,n){const e=n??Re(t)??[];if(0===e.length)return;const r=t.getOptions(),o=function(t,n,e,r){const o={};return n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),e&&r&&(o.dsn=rn(r)),Ln(o,[(i=t,[{type:"trace_metric",item_count:i.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:i}])]);var i}(e,r._metadata,r.tunnel,t.getDsn());Ae().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(o)}function Re(t){return Ae().get(t)}function Ae(){return i("clientToMetricBufferMap",()=>new WeakMap)}function Me(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}const Pe=Symbol.for("SentryBufferFullError");function Le(t=100){const n=new Set;function e(t){n.delete(t)}return{get $(){return Array.from(n)},add:function(r){if(!(n.size<t))return Qn(Pe);const o=r();return n.add(o),o.then(()=>e(o),()=>e(o)),o},drain:function(t){if(!n.size)return Zn(!0);const e=Promise.allSettled(Array.from(n)).then(()=>!0);if(!t)return e;const r=[e,new Promise(n=>Me(setTimeout(()=>n(!1),t)))];return Promise.race(r)}}}function Ne(t,{statusCode:n,headers:e},r=et()){const o={...t},i=e?.["x-sentry-rate-limits"],s=e?.["retry-after"];if(i)for(const t of i.trim().split(",")){const[n,e,,,i]=t.split(":",5),s=parseInt(n,10),c=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(o[t]=r+c);else o.all=r+c}else s?o.all=r+function(t,n=et()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-n}(s,r):429===n&&(o.all=r+6e4);return o}function De(t,n,e=Le(t.bufferSize||64)){let r={};return{send:function(o){const i=[];if(Dn(o,(n,e)=>{const o=Hn(e);!function(t,n,e=et()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,o)?i.push(n):t.recordDroppedEvent("ratelimit_backoff",o)}),0===i.length)return Promise.resolve({});const s=Ln(o[0],i),c=n=>{(function(t,n){return Dn(t,(t,e)=>n.includes(e))})(s,["client_report"])||Dn(s,(e,r)=>{t.recordDroppedEvent(n,Hn(r))})};return e.add(()=>n({body:Bn(s)}).then(t=>413===t.statusCode?(c("send_error"),t):(r=Ne(r,t),t),t=>{throw c("network_error"),t})).then(t=>t,t=>{if(t===Pe)return c("queue_overflow"),Promise.resolve({});throw t})},flush:t=>e.drain(t)}}const Ue=Symbol.for("SentryInternalError"),Be=Symbol.for("SentryDoNotSendEventError");function Fe(t){return{message:t,[Ue]:!0}}function qe(t){return{message:t,[Be]:!0}}function He(t,n,e,r,o){let i,s=0,c=!1;t.on(e,()=>{s=0,clearTimeout(i),c=!1}),t.on(n,n=>{s+=r(n),s>=8e5?o(t):c||(c=!0,i=Me(setTimeout(()=>{o(t)},5e3)))}),t.on("flush",()=>{o(t)})}class We{constructor(t){if(this.J=t,this._integrations={},this.X=0,this.K={},this.V={},this.u=[],this.Z=Le(t.transportOptions?.bufferSize??64),t.dsn&&(this.tt=cn(t.dsn)),this.tt){const n=ve(this.tt,t.tunnel,t._metadata?t._metadata.sdk:void 0);this.nt=t.transport({tunnel:this.J.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this.J.enableLogs=this.J.enableLogs??this.J._experiments?.enableLogs,this.J.enableLogs&&He(this,"afterCaptureLog","flushLogs",Xe,xe);(this.J.enableMetrics??this.J._experiments?.enableMetrics??!0)&&He(this,"afterCaptureMetric","flushMetrics",Je,Ce)}captureException(t,n,e){const r=ct();if(dt(t))return r;const o={event_id:r,...n};return this.et(()=>this.eventFromException(t,o).then(t=>this.rt(t,o,e)).then(t=>t),"error"),o.event_id}captureMessage(t,n,e,r){const o={event_id:ct(),...e},i=A(t)?t:String(t),s=M(t),c=s?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this.et(()=>c.then(t=>this.rt(t,o,r)),s?"unknown":"error"),o.event_id}captureEvent(t,n,e){const r=ct();if(n?.originalException&&dt(n.originalException))return r;const o={event_id:r,...n},i=t.sdkProcessingMetadata||{},s=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=ze(t.type);return this.et(()=>this.rt(t,o,s||e,c),u),o.event_id}captureSession(t){this.sendSession(t),gt(t,{init:!1})}getDsn(){return this.tt}getOptions(){return this.J}getSdkMetadata(){return this.J._metadata}getTransport(){return this.nt}async flush(t){const n=this.nt;if(!n)return!0;
2this.emit("flush");const e=await this.ot(t),r=await n.flush(t);return e&&r}async close(t){xe(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this.u}addEventProcessor(t){this.u.push(t)}init(){(this.it()||this.J.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this.st()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),Ee(this,t,this._integrations),n||we(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=zn(t,this.tt,this.J._metadata,this.J.tunnel);for(const t of n.attachments||[])e=Nn(e,Fn(t));this.sendEnvelope(e).then(n=>this.emit("afterSendEvent",t,n))}sendSession(t){const{release:n,environment:e=Tn}=this.J;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!n)return;r.release=r.release||n,r.environment=r.environment||e,t.attrs=r}else{if(!t.release&&!n)return;t.release=t.release||n,t.environment=t.environment||e}this.emit("beforeSendSession",t);const r=function(t,n,e,r){const o=Wn(e);return Ln({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:rn(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.tt,this.J._metadata,this.J.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,n,e=1){if(this.J.sendClientReports){const r=`${t}:${n}`;this.K[r]=(this.K[r]||0)+e}}on(t,n){const e=this.V[t]=this.V[t]||new Set,r=(...t)=>n(...t);return e.add(r),()=>{e.delete(r)}}emit(t,...n){const e=this.V[t];e&&e.forEach(t=>t(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this.it()&&this.nt)try{return await this.nt.send(t)}catch(t){return{}}return{}}dispose(){}st(){const{integrations:t}=this.J;this._integrations=function(t,n){const e={};return n.forEach(n=>{n?.beforeSetup&&n.beforeSetup(t)}),n.forEach(n=>{n&&Ee(t,n,e)}),e}(this,t),we(this,t)}ct(t,n){let e="fatal"===n.level,r=!1;const o=n.exception?.values;if(o){r=!0,e=!1;for(const t of o)if(!1===t.mechanism?.handled){e=!0;break}}const i="ok"===t.status;(i&&0===t.errors||i&&e)&&(gt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}async ot(t){let n=0;for(;!t||n<t;){if(await new Promise(t=>setTimeout(t,1)),!this.X)return!0;n++}return!1}it(){return!1!==this.getOptions().enabled&&void 0!==this.nt}ut(t,n,e,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),ce(o,t,n,e,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,n),t.contexts={trace:{...t.contexts?.trace,...Ft(e)},...t.contexts};const r=Cn(this,e);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}rt(t,n={},e=Lt(),r=Nt()){return this.ft(t,n,e,r).then(t=>t.event_id,t=>{})}ft(t,n,e,r){const o=this.getOptions(),{sampleRate:i}=o,s=Ye(t),c=Ge(t),u=`before send for type \`${t.type||"error"}\``,a=void 0===i?void 0:un(i);if(c&&"number"==typeof a&&nt()>a)return this.recordDroppedEvent("sample_rate","error"),Qn(qe(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const f=ze(t.type);return this.ut(t,n,e,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",f),qe("An event processor returned `null`, will not send event.");if(!0===n.data?.__sentry__)return t;const e=function(t,n,e,r){const{beforeSend:o,beforeSendTransaction:i,ignoreSpans:s}=n,c=(u=n.beforeSendSpan,!(u&&"function"==typeof u&&"lt"in u&&u.lt)&&n.beforeSendSpan);var u;let a=e;if(Ge(a)&&o)return o(a,r);if(Ye(a)){if(c||s){const n=function(t){const{trace_id:n,parent_span_id:e,span_id:r,status:o,origin:i,data:s,op:c}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:c,parent_span_id:e,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:n??"",origin:i,profile_id:s?.[Yt],exclusive_time:s?.[Jt],measurements:t.measurements,is_segment:!0}}(a);if(s?.length&&In(n,s))return null;if(c){const t=c(n);t?a=vt(e,{type:"transaction",timestamp:(f=t).timestamp,start_timestamp:f.start_timestamp,transaction:f.description,contexts:{trace:{trace_id:f.trace_id,span_id:f.span_id,parent_span_id:f.parent_span_id,op:f.op,status:f.status,origin:f.origin,data:{...f.data,...f.profile_id&&{[Yt]:f.profile_id},...f.exclusive_time&&{[Jt]:f.exclusive_time}}}},measurements:f.measurements}):xn()}if(a.spans){const n=[],e=a.spans;for(const t of e)if(s?.length&&In(t,s))kn(e,t);else if(c){const e=c(t);e?n.push(e):(xn(),n.push(t))}else n.push(t);const r=a.spans.length-n.length;r&&t.recordDroppedEvent("before_send","span",r),a.spans=n}}if(i){if(a.spans){const t=a.spans.length;a.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(a,r)}}var f;return a}(this,o,t,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(N(t))return t.then(t=>{if(!P(t)&&null!==t)throw Fe(e);return t},t=>{throw Fe(`${n} rejected with ${t}`)});if(!P(t)&&null!==t)throw Fe(e);return t}(e,u)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",f),s){const n=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",n)}throw qe(`${u} returned \`null\`, will not send event.`)}const i=e.getSession()||r.getSession();if(c&&i&&this.ct(i,o),s){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const a=o.transaction_info;if(s&&a&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...a,source:t}}return this.sendEvent(o,n),o}).then(null,t=>{if((n=t)&&"object"==typeof n&&Be in n||function(t){return!!t&&"object"==typeof t&&Ue in t}(t))throw t;var n;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),Fe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}et(t,n){this.X++,this.Z.add(t).then(t=>(this.X--,t),t=>(this.X--,t===Pe&&this.recordDroppedEvent("queue_overflow",n),t))}dt(){const t=this.K;return this.K={},Object.entries(t).map(([t,n])=>{const[e,r]=t.split(":");return{reason:e,category:r,quantity:n}})}ht(){const t=this.dt();if(0===t.length)return;if(!this.tt)return;const n=(e=t,Ln((r=this.J.tunnel&&rn(this.tt))?{dsn:r}:{},[[{type:"client_report"},{timestamp:ht(),discarded_events:e}]]));var e,r;this.sendEnvelope(n)}}function ze(t){return"replay_event"===t?"replay":t||"error"}function Ge(t){return void 0===t.type}function Ye(t){return"transaction"===t.type}function Je(t){let n=0;return t.name&&(n+=2*t.name.length),n+=8,n+Ke(t.attributes)}function Xe(t){let n=0;return t.message&&(n+=2*t.message.length),n+Ke(t.attributes)}function Ke(t){if(!t)return 0;let n=0;return Object.values(t).forEach(t=>{Array.isArray(t)?n+=t.length*Ve(t[0]):M(t)?n+=Ve(t):n+=100}),n}function Ve(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function Ze(t){return function(t){return j(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 Qe(t){Lt().setClient(t)}function tr(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:r,relative:n[5]+e+r}}function nr(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}const er=100;function rr(t,n){const e=Bt(),r=Nt();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=er}=e.getOptions();if(i<=0)return;const s={timestamp:ht(),...t}
2,c=o?u(()=>o(s,n)):s;null!==c&&(e.emit&&e.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,i))}let or;const ir=new WeakMap,sr=()=>({name:"FunctionToString",setupOnce(){or=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=J(this),e=ir.has(Bt())&&void 0!==n?n:this;return or.apply(e,t)}}catch{}},setup(t){ir.set(t,!0)}}),cr=[/^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$/],ur=(t={})=>{let n;return{name:"EventFilters",setup(e){const r=e.getOptions();n=fr(t,r)},processEvent(e,r,o){if(!n){const e=o.getOptions();n=fr(t,e)}return function(t,n){if(t.type){if("transaction"===t.type&&function(t,n){if(!n?.length)return!1;const e=t.transaction;return!!e&&st(e,n)}(t,n.ignoreTransactions))return!0}else{if(function(t,n){if(!n?.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);try{const e=t.exception.values[t.exception.values.length-1];e?.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`))}catch{}return n}(t).some(t=>st(t,n))}(t,n.ignoreErrors))return!0;if(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,n){if(!n?.length)return!1;const e=lr(t);return!!e&&st(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n?.length)return!0;const e=lr(t);return!e||st(e,n)}(t,n.allowUrls))return!0}return!1}(e,n)?null:e}}},ar=(t={})=>({...ur(t),name:"InboundFilters"});function fr(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:cr],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]]}}function lr(t){try{const n=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),e=n?.stacktrace?.frames;return e?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(e):null}catch{return null}}function dr(t,n,e,r,o,i){if(!o.exception?.values||!i||!D(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=hr(t,n,r,i.originalException,e,o.exception.values,s,0))}function hr(t,n,e,r,o,i,s,c){if(i.length>=e+1)return i;let u=[...i];if(D(r[o],Error)){mr(s,c,r);const i=t(n,r[o]),a=u.length;yr(i,o,a,c),u=hr(t,n,e,r[o],o,[i,...u],i,a)}return pr(r)&&r.errors.forEach((i,a)=>{if(D(i,Error)){mr(s,c,r);const f=t(n,i),l=u.length;yr(f,`errors[${a}]`,l,c),u=hr(t,n,e,i,o,[f,...u],f,l)}}),u}function pr(t){return Array.isArray(t.errors)}function mr(t,n,e){t.mechanism={handled:!0,type:"auto.core.linked_errors",...pr(e)&&{is_exception_group:!0},...t.mechanism,exception_id:n}}function yr(t,n,e,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function gr(){"console"in n&&s.forEach(function(t){t in n.console&&z(n.console,t,function(e){return c[t]=e,function(...e){E("console",{args:e,level:t});const r=c[t];r?.apply(n.console,e)}})})}function vr(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const br=()=>{let t;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!wr(t,n))return!1;if(!_r(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Er(n),r=Er(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!wr(t,n))return!1;if(!_r(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch{}return t=n}}};function _r(t,n){let e=y(t),r=y(n);if(!e&&!r)return!0;
2if(e&&!r||!e&&r)return!1;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++){const n=r[t],o=e[t];if(n.filename!==o.filename||n.lineno!==o.lineno||n.colno!==o.colno||n.function!==o.function)return!1}return!0}function wr(t,n){let e=t.fingerprint,r=n.fingerprint;if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;try{return!(e.join("")!==r.join(""))}catch{return!1}}function Er(t){return t.exception?.values?.[0]}const Sr=()=>({name:"ConversationId",setup(t){t.on("spanStart",t=>{const n=Lt().getScopeData(),e=Nt().getScopeData(),r=n.conversationId||e.conversationId;if(r){const{op:n,data:e,description:o}=bn(t);if(!n?.startsWith("gen_ai.")&&!e["ai.operationId"]&&!o?.startsWith("ai."))return;t.setAttribute("gen_ai.conversation.id",r)}})}});function $r(t,n,e,r){Oe({type:t,name:n,value:e,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}var xr=Object.freeze({__proto__:null,count:function(t,n=1,e){$r("counter",t,n,e)},distribution:function(t,n,e){$r("distribution",t,n,e)},gauge:function(t,n,e){$r("gauge",t,n,e)}});function Ir(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const kr=n;function jr(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Tr(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in kr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(jr(kr.fetch))return!0;let t=!1;const n=kr.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=jr(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}function Or(t,e){const r="fetch";_(r,t),w(r,()=>function(t,e=!1){if(e&&!Tr())return;z(n,"fetch",function(t){return function(...e){const r=new Error,{method:o,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:Rr(n),method:Cr(e,"method")?String(e.method).toUpperCase():B(n)&&Cr(n,"method")?String(n.method).toUpperCase():"GET"}}const n=t[0];return{url:Rr(n),method:Cr(n,"method")?String(n.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:o,url:i},startTimestamp:1e3*mt(),virtualError:r,headers:Ar(e)};return E("fetch",{...s}),t.apply(n,e).then(async t=>(E("fetch",{...s,endTimestamp:1e3*mt(),response:t}),t),t=>{E("fetch",{...s,endTimestamp:1e3*mt(),error:t}),j(t)&&void 0===t.stack&&(t.stack=r.stack,G(t,"framesToPop",1));
2const n=Bt(),e=n?.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(s.fetchData.url).host;"always"===e?t.message=`${t.message} (${n})`:G(t,"__sentry_fetch_url_host__",n)}catch{}throw t})}})}(0,e))}function Cr(t,n){return!!t&&"object"==typeof t&&!!t[n]}function Rr(t){return"string"==typeof t?t:t?Cr(t,"url")?t.url:t.toString?t.toString():"":""}function Ar(t){const[n,e]=t;try{if("object"==typeof e&&null!==e&&"headers"in e&&e.headers)return new Headers(e.headers);if(B(n))return new Headers(n.headers)}catch{}}const Mr=()=>{},Pr=["attachTo","createForm","createWidget","remove"],Lr=Object.assign(t=>(u(()=>{console.warn("You are using feedbackIntegration() even though this bundle does not include feedback.")}),{name:"Feedback",...Pr.reduce((t,n)=>(t[n]=Mr,t),{})}),{_isShim:!0}),Nr=["start","stop","flush"];const Dr=t=>(u(()=>{console.warn("You are using browserTracingIntegration() even though this bundle does not include tracing.")}),{name:"BrowserTracing"}),Ur=()=>(u(()=>{console.warn("You are using elementTimingIntegration() even though this bundle does not include element timing.")}),{name:"ElementTiming"});function Br(t,n){}const Fr={trace:Br,debug:Br,info:Br,warn:Br,error:Br,fatal:Br,fmt:function(t,...n){return""}},qr=t=>({name:"ConsoleLogs",setup:Mr}),Hr=n;let Wr=0;function zr(){return Wr>0}function Gr(t,n={}){if(!function(t){return"function"==typeof t}(t))return t;try{const n=t.__sentry_wrapped__;if(n)return"function"==typeof n?n:t;if(J(t))return t}catch{return t}const sentryWrapped=function(...e){try{const r=e.map(t=>Gr(t,n));return t.apply(this,r)}catch(t){throw Wr++,setTimeout(()=>{Wr--}),Ut(r=>{r.addEventProcessor(t=>(n.mechanism&&(ft(t,void 0),lt(t,n.mechanism)),t.extra={...t.extra,arguments:e},t)),captureException(t)}),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch{}Y(sentryWrapped,t),G(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch{}return sentryWrapped}function Yr(t,n){const e=Kr(t,n),r={type:Qr(n),value:to(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Jr(t,n,e,r){const o=Bt(),i=o?.getOptions().normalizeDepth,s=(c=n,Object.values(c).find(t=>t instanceof Error));var c;const u={__serialized__:Mn(n,i)};if(s)return{exception:{values:[Yr(t,s)]},extra:u};const a={exception:{values:[{type:L(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:io(n,{isUnhandledRejection:r})}]},extra:u};if(e){const n=Kr(t,e);n.length&&(a.exception.values[0].stacktrace={frames:n})}return a}function Xr(t,n){return{exception:{values:[Yr(t,n)]}}}function Kr(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t&&Vr.test(t.message))return 1;return 0}(n),o=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(n);try{return t(e,r,o)}catch{}return[]}const Vr=/Minified React error #\d+;/i;function Zr(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function Qr(t){const n=t?.name;if(!n&&Zr(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return n}function to(t){const n=t?.message;return Zr(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":n?n.error&&"string"==typeof n.error.message?Ze(n.error):Ze(t):"No error message"}function no(t,n,e,r){const o=ro(t,n,e?.syntheticException||void 0,r);return lt(o),o.level="error",e?.event_id&&(o.event_id=e.event_id),Zn(o)}function eo(t,n,e="info",r,o){const i=oo(t,n,r?.syntheticException||void 0,o);return i.level=e,r?.event_id&&(i.event_id=r.event_id),Zn(i)}function ro(t,n,e,r,o){let i;if(O(n)&&n.error){return Xr(t,n.error)}if(C(n)||T(n,"DOMException")){const o=n;if("stack"in n)i=Xr(t,n);else{const n=o.name||(C(o)?"DOMError":"DOMException"),s=o.message?`${n}: ${o.message}`:n;i=oo(t,s,e,r),ft(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(j(n))return Xr(t,n);if(P(n)||L(n)){return i=Jr(t,n,e,o),lt(i,{synthetic:!0}),i}return i=oo(t,n,e,r),ft(i,`${n}`),lt(i,{synthetic:!0}),i}function oo(t,n,e,r){const o={};if(r&&e){const r=Kr(t,e);r.length&&(o.exception={values:[{value:n,stacktrace:{frames:r}}]}),lt(o,{synthetic:!0})}
2if(A(n)){const{__sentry_template_string__:t,__sentry_template_values__:e}=n;return o.logentry={message:t,params:e},o}return o.message=n,o}function io(t,{isUnhandledRejection:n}){const e=function(t){const n=Object.keys(X(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}(t),r=n?"promise rejection":"exception";if(O(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(L(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}class so extends We{constructor(t){const n=(r=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Hr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(t,n,r=[n],o="npm"){const i=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${n}`,i.packages=r.map(t=>({name:`${o}:@sentry/${t}`,version:e})),i.version=e)}(n,"browser",["browser"],Hr.SENTRY_SDK_SOURCE||"cdn"),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:c,enableMetrics:u}=this.J,a=u??c?.enableMetrics??!0;Hr.document&&(i||s||a)&&Hr.document.addEventListener("visibilitychange",()=>{"hidden"===Hr.document.visibilityState&&(i&&this.ht(),s&&xe(this),a&&Ce(this))}),o&&this.on("beforeSendSession",nr)}eventFromException(t,n){return no(this.J.stackParser,t,n,this.J.attachStacktrace)}eventFromMessage(t,n="info",e){return eo(this.J.stackParser,t,n,e,this.J.attachStacktrace)}ut(t,n,e,r){return t.platform=t.platform||"javascript",super.ut(t,n,e,r)}}const co=n;let uo,ao,fo,lo;function ho(){if(!co.document)return;const t=E.bind(null,"dom"),n=po(t,!0);co.document.addEventListener("click",n,!1),co.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(n=>{const e=co,r=e[n]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(z(r,"addEventListener",function(n){return function(e,r,o){if("click"===e||"keypress"==e)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[e]=r[e]||{refCount:0};if(!i.handler){const r=po(t);i.handler=r,n.call(this,e,r,o)}i.refCount++}catch{}return n.call(this,e,r,o)}}),z(r,"removeEventListener",function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount--,o.refCount<=0&&(t.call(this,n,o.handler,r),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,n,e,r)}}))})}function po(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(e);if(function(t,n){return"keypress"===t&&(!n?.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;G(e,"_sentryCaptured",!0),r&&!r._sentryId&&G(r,"_sentryId",ct());const o="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==ao)return!1;try{if(!t.target||t.target._sentryId!==fo)return!1}catch{}return!0}(e)){t({event:e,name:o,global:n}),ao=e.type,fo=r?r._sentryId:void 0}clearTimeout(uo),uo=co.setTimeout(()=>{fo=void 0,ao=void 0},1e3)}}function mo(t){const n="history";_(n,t),w(n,yo)}function yo(){function t(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const r=lo,o=function(t){try{return new URL(t,co.location.origin).toString()}catch{return t}}(String(e));if(lo=o,r===o)return t.apply(this,n);E("history",{from:r,to:o})}return t.apply(this,n)}}co.addEventListener("popstate",()=>{const t=co.location.href,n=lo;if(lo=t,n===t)return;E("history",{from:n,to:t})}),"history"in kr&&kr.history&&(z(co.history,"pushState",t),z(co.history,"replaceState",t))}const go={};function vo(t){const n=go[t];if(n)return n;let e=co[t];if(jr(e))return go[t]=e.bind(co);const r=co.document;if(r&&"function"==typeof r.createElement)try{const n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n);const o=n.contentWindow;o?.[t]&&(e=o[t]),r.head.removeChild(n)}catch(t){}return e?go[t]=e.bind(co):e}const bo="__sentry_xhr_v3__";function _o(){if(!co.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,n,e){const r=new Error,o=1e3*mt(),i=R(e[0])?e[0].toUpperCase():void 0,s=function(t){if(R(t))return t;try{return t.toString()}catch{}return}(e[1]);if(!i||!s)return t.apply(n,e);n[bo]={method:i,url:s,request_headers:{}}
2,"POST"===i&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const t=n[bo];if(t&&4===n.readyState){try{t.status_code=n.status}catch{}E("xhr",{endTimestamp:1e3*mt(),startTimestamp:o,xhr:n,virtualError:r})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply:(t,n,e)=>(c(),t.apply(n,e))}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(t,n,e){const[r,o]=e,i=n[bo];return i&&R(r)&&R(o)&&(i.request_headers[r.toLowerCase()]=o),t.apply(n,e)}}),t.apply(n,e)}}),t.send=new Proxy(t.send,{apply(t,n,e){const r=n[bo];if(!r)return t.apply(n,e);void 0!==e[0]&&(r.body=e[0]);return E("xhr",{startTimestamp:1e3*mt(),xhr:n}),t.apply(n,e)}})}function wo(t,n=vo("fetch")){let e=0,r=0;return De(t,async function(o){const i=o.body.length;e+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};try{const e=await n(t.url,s);return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}catch(t){throw go["fetch"]=void 0,t}finally{e-=i,r--}},Le(t.bufferSize||40))}const Eo={startProfiler:function(){const t=Bt();if(!t)return;t.getIntegrationByName("BrowserProfiling")&&t.emit("startUIProfiler")},stopProfiler:function(){const t=Bt();if(!t)return;t.getIntegrationByName("BrowserProfiling")&&t.emit("stopUIProfiler")}};function So(t,n,e,r){const o={filename:t,function:"<anonymous>"===n?a:n,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==r&&(o.colno=r),o}const $o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Io=/\((\S*)(?::(\d+))(?::(\d+))\)/,ko=/at (.+?) ?\(data:(.+?),/,jo=[30,t=>{const n=t.match(ko);if(n)return{filename:`<data:${n[2]}>`,function:n[1]};const e=$o.exec(t);if(e){const[,t,n,r]=e;return So(t,a,+n,+r)}const r=xo.exec(t);if(r){if(0===r[2]?.indexOf("eval")){const t=Io.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,n]=Bo(r[1]||a,r[2]);return So(n,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],To=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Oo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Co=[50,t=>{const n=To.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=Oo.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||a;return[e,t]=Bo(e,t),So(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}
2],Ro=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ao=[40,t=>{const n=Ro.exec(t);return n?So(n[2],n[1]||a,+n[3],n[4]?+n[4]:void 0):void 0}],Mo=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Po=[10,t=>{const n=Mo.exec(t);return n?So(n[2],n[3]||a,+n[1]):void 0}],Lo=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,No=[20,t=>{const n=Lo.exec(t);return n?So(n[5],n[3]||n[4]||a,+n[1],+n[2]):void 0}],Do=[jo,Co],Uo=d(...Do),Bo=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:a,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};const Fo=1024,qo=(t={})=>{const n={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var e;n.console&&function(t){const n="console";_(n,t),w(n,gr)}(function(t){return function(n){if(Bt()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:vr(n.level),message:ot(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${ot(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}rr(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(Bt()!==t)return;let r,o,i="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>Fo&&(s=Fo),"string"==typeof i&&(i=[i]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=q(n,{keyAttrs:i,maxStringLength:s}),o=function(t,n=5){if(!F.HTMLElement)return null;let e=t;for(let t=0;t<n;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}(n)}catch{r="<unknown>"}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};o&&(c.data={"ui.component_name":o}),rr(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),_("dom",e),w("dom",ho)),n.xhr&&function(t){_("xhr",t),w("xhr",_o)}(function(t){return function(n){if(Bt()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,o=n.xhr[bo];if(!e||!r||!o)return;const{method:i,url:s,status_code:c,body:u}=o,a={method:i,url:s,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:e,endTimestamp:r},l={category:"xhr",data:a,type:"http",level:Ir(c)};t.emit("beforeOutgoingRequestBreadcrumb",l,f),rr(l,f)}}(t)),n.fetch&&Or(function(t){return function(n){if(Bt()!==t)return;const{startTimestamp:e,endTimestamp:r}=n;if(r&&(!n.fetchData.url.match(/sentry_key/)||"POST"!==n.fetchData.method))if(n.error){const o={data:n.error,input:n.args,startTimestamp:e,endTimestamp:r},i={category:"fetch",data:n.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),rr(i,o)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},s={input:n.args,response:o,startTimestamp:e,endTimestamp:r},c={category:"fetch",data:i,type:"http",level:Ir(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,s),rr(c,s)}}}(t)),n.history&&mo(function(t){return function(n){if(Bt()!==t)return;let e=n.from,r=n.to;const o=tr(Hr.location.href);let i=e?tr(e):void 0;const s=tr(r);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(e=i.relative),rr({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on("beforeSendEvent",function(t){return function(n){Bt()===t&&rr({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:at(n)},{event:n})}}(t))}}};const Ho="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".
2split(","),Wo=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){n.setTimeout&&z(Hr,"setTimeout",zo),n.setInterval&&z(Hr,"setInterval",zo),n.requestAnimationFrame&&z(Hr,"requestAnimationFrame",Go),n.XMLHttpRequest&&"XMLHttpRequest"in Hr&&z(XMLHttpRequest.prototype,"send",Yo);const t=n.eventTarget;if(t){(Array.isArray(t)?t:Ho).forEach(t=>function(t,n){const e=Hr,r=e[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;z(r,"addEventListener",function(e){return function(r,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=Gr(o.handleEvent,{mechanism:{data:{handler:m(o),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&function(t,n,e){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(n,e)}(this,r,o),e.apply(this,[r,Gr(o,{mechanism:{data:{handler:m(o),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),z(r,"removeEventListener",function(t){return function(n,e,r){try{const o=e.__sentry_wrapped__;o&&t.call(this,n,o,r)}catch{}return t.call(this,n,e,r)}})}(t,n))}}}};function zo(t){return function(...n){const e=n[0];return n[0]=Gr(e,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${m(t)}`}}),t.apply(this,n)}}function Go(t){return function(n){return t.apply(this,[Gr(n,{mechanism:{data:{handler:m(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Yo(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in e&&"function"==typeof e[t]&&z(e,t,function(n){const e={mechanism:{data:{handler:m(n)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=J(n);return r&&(e.mechanism.data.handler=m(r)),Gr(n,e)})}),t.apply(this,n)}}const Jo=(t={})=>{const n=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===Hr.document)return;he({ignoreDuration:!0}),ye();const t=Nt();let e=t.getUser();t.addScopeListener(t=>{const n=t.getUser();e?.id===n?.id&&e?.ip_address===n?.ip_address||(ye(),e=n)}),"route"===n&&mo(({from:t,to:n})=>{t!==n&&(he({ignoreDuration:!0}),ye())})}}},Xo=()=>({name:"CultureContext",preprocessEvent(t){const n=function(){try{const t=Hr.Intl;if(!t)return;const n=t.DateTimeFormat().resolvedOptions();return{locale:n.locale,timezone:n.timeZone,calendar:n.calendar}}catch{return}}();n&&(t.contexts={...t.contexts,culture:{...n,...t.contexts?.culture}})}});const Ko=(t={})=>{const n={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){n.onerror&&function(t){!function(t){const n="error";_(n,t),w(n,$)}(n=>{const{stackParser:e,attachStacktrace:r}=Vo();if(Bt()!==t||zr())return;const{msg:o,url:i,line:s,column:c,error:u}=n,f=function(t,n,e,r){const o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},c=s.stacktrace=s.stacktrace||{},u=c.frames=c.frames||[];0===u.length&&u.push({colno:r,lineno:e,filename:Zo(n)??W(),function:a,in_app:!0});return t}(ro(e,u||o,void 0,r,!1),i,s,c);f.level="error",fe(f,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),n.onunhandledrejection&&function(t){!function(t){const n="unhandledrejection";_(n,t),w(n,I)}(n=>{const{stackParser:e,attachStacktrace:r}=Vo();if(Bt()!==t||zr())return;const o=function(t){if(M(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}(n),i=M(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:ro(e,o,void 0,r,!0);i.level="error",fe(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t)}}};function Vo(){const t=Bt();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Zo(t){if(R(t)&&0!==t.length)return t.startsWith("data:")?`<${function(t,n=!0){if(t.startsWith("data:")){const e=t.match(/^data:([^;,]+)/),r=e?e[1]:"text/plain",o=t.includes(";base64,"),i=t.indexOf(",");let s="";if(n&&-1!==i){const n=t.slice(i+1);s=n.length>10?`${n.slice(0,10)}... [truncated]`:n}return`data:${r}${o?",base64":""}${s?`,${s}`:""}`}return t}(t,!1)}>`:t}const Qo=()=>({name:"HttpContext",preprocessEvent(t){if(!Hr.navigator&&!Hr.location&&!Hr.document)return;const n=function(){const t=W(),{referrer:n}=Hr.document||{},{userAgent:e}=Hr.navigator||{};return{url:t,headers:{...n&&{Referer:n},...e&&{"User-Agent":e}}}}(),e={...n.headers,...t.request?.headers};t.request={...n,...t.request,headers:e}}}),ti=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){dr(Yr,o.getOptions().stackParser,e,n,t,r)}}};function ni(){return!!function(){if(void 0===Hr.window)return!1;const t=Hr;if(t.nw)return!1;const n=t.chrome||t.browser;if(!n?.runtime?.id)return!1;const e=W();return!(Hr===Hr.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(e))}()}function ei(t){return[ar(),sr(),Sr(),Wo(),qo(),Ko(),ti(),br(),Qo(),Xo(),Jo()]}const ri=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","
2instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],oi={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};const ii=Hr;return t.BrowserClient=so,t.SDK_VERSION=e,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=Wt,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=zt,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Ht,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=qt,t.Scope=$t,t.WINDOW=Hr,t.addBreadcrumb=rr,t.addEventProcessor=function(t){Nt().addEventProcessor(t)},t.addIntegration=function(t){const n=Bt();n&&n.addIntegration(t)},t.breadcrumbsIntegration=qo,t.browserApiErrorsIntegration=Wo,t.browserSessionIntegration=Jo,t.browserTracingIntegration=Dr,t.captureEvent=fe,t.captureException=captureException,t.captureFeedback=function(t,n={},e=Lt()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:u,tags:a}=t,f={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:u}},type:"feedback",level:"info",tags:a},l=e?.getClient()||Bt();return l&&l.emit("beforeSendFeedback",f,n),e.captureEvent(f,n)},t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return Lt().captureMessage(t,e,r)},t.captureSession=ye,t.chromeStackLineParser=jo,t.close=async function(t){const n=Bt
2();return n?n.close(t):Promise.resolve(!1)},t.consoleLoggingIntegration=qr,t.continueTrace=(t,n)=>{const e=At(r());if(e.continueTrace)return e.continueTrace(t,n);const{sentryTrace:o,baggage:i}=t,s=Bt(),c=Zt(i);return s&&!function(t,n){const e=sn(t);return(!n||!e||n===e)&&(!t.getOptions().strictTraceContinuation||!(n&&!e||!n&&e))}(s,c?.org_id)?function(t){const n=Yn();if(n.startNewTrace)return n.startNewTrace(t);return Ut(n=>(n.setPropagationContext({traceId:bt(),sampleRand:nt()}),function(t,n){const e=Yn();if(e.withActiveSpan)return e.withActiveSpan(t,n);return Ut(t=>(Et(t,void 0),n(t)))}(null,t)))}(n):Ut(t=>{const e=fn(o,i);return t.setPropagationContext(e),Et(t,void 0),n()})},t.createTransport=De,t.createUserFeedbackEnvelope=function(t,{metadata:n,tunnel:e,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...n?.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:rn(r)}},i=function(t){return[{type:"user_report"},t]}(t);return Ln(o,[i])},t.dedupeIntegration=br,t.defaultStackLineParsers=Do,t.defaultStackParser=Uo,t.elementTimingIntegration=Ur,t.endSession=pe,t.eventFiltersIntegration=ur,t.eventFromException=no,t.eventFromMessage=eo,t.exceptionFromError=Yr,t.feedbackAsyncIntegration=Lr,t.feedbackIntegration=Lr,t.flush=async function(t){const n=Bt
2();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=sr,t.geckoStackLineParser=Co,t.getClient=Bt,t.getCurrentScope=Lt,t.getDefaultIntegrations=ei,t.getGlobalScope=Dt,t.getIsolationScope=Nt,t.getTraceData=function(t={}){const n=t.client||Bt();if(!de()||!n)return{};const e=At(r());if(e.getTraceData)return e.getTraceData(t);const o=t.scope||Lt(),i=t.span||$n(),s=i?mn(i):function(t){const{traceId:n,sampled:e,propagationSpanId:r}=t.getPropagationContext();return ln(n,r,e)}(o),c=Qt(i?Rn(i):Cn(n,o));if(!an.test(s))return{};const u={"sentry-trace":s,baggage:c};return t.propagateTraceparent&&(u.traceparent=i?function(t){const{traceId:n,spanId:e}=t.spanContext();return dn(n,e,wn(t))}(i):function(t){const{traceId:n,sampled:e,propagationSpanId:r}=t.getPropagationContext();return dn(n,r,e)}(o)),u},t.globalHandlersIntegration=Ko,t.httpContextIntegration=Qo,t.inboundFiltersIntegration=ar,t.init=function(t={}){const n=!t.skipBrowserExtensionCheck&&ni();let e=null==t.defaultIntegrations?ei():t.defaultIntegrations;const r={...t,enabled:!n&&t.enabled,stackParser:(o=t.stackParser||Uo,Array.isArray(o)?d(...o):o),integrations:_e({integrations:t.integrations,defaultIntegrations:e}),transport:t.transport||wo};var o;return function(t,n){!0===n.debug&&u(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),Lt().update(n.initialScope);const e=new t(n);return Qe(e),e.init(),e}(so,r)},t.isEnabled=de,t.isInitialized=function(){return!!Bt()},t.lastEventId=le,t.lazyLoadIntegration=async function(t,n){const r=ri.includes(t)?function(t){return oi[t]||t.replace("Integration","").toLowerCase()}(t):void 0,o=ii.Sentry=ii.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${t}`);const i=o[t];if("function"==typeof i&&!("_isShim"in i))return i;
2const s=function(t){const n=Bt(),r=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${e}/${t}.min.js`,r).toString()}(r),c=Hr.document.createElement("script");c.src=s,c.crossOrigin="anonymous",c.referrerPolicy="strict-origin",n&&c.setAttribute("nonce",n);const u=new Promise((t,n)=>{c.addEventListener("load",()=>t()),c.addEventListener("error",n)}),a=Hr.document.currentScript,f=Hr.document.body||Hr.document.head||a?.parentElement;if(!f)throw new Error(`Could not find parent element to insert lazy-loaded ${t} script`);f.appendChild(c);try{await u}catch{throw new Error(`Error when loading integration: ${t}`)}const l=o[t];if("function"!=typeof l)throw new Error(`Could not load integration: ${t}`);return l},t.linkedErrorsIntegration=ti,t.logger=Fr,t.makeFetchTransport=wo,t.metrics=xr,t.onLoad=function(t){t()},t.opera10StackLineParser=Po,t.opera11StackLineParser=No,t.parameterize=function(t,...n){const e=new String(String.raw(t,...n));return e.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),e.__sentry_template_values__=n,e},t.replayIntegration=function(t){return u(()=>{console.warn("You are using replayIntegration() even though this bundle does not include replay.")}),{name:"Replay",...Nr.reduce((t,n)=>(t[n]=Mr,t),{})}},t.setContext=function(t,n){Nt().setContext(t,n)},t.setConversationId=function(t){Nt().setConversationId(t)},t.setCurrentClient=Qe,t.setExtra=function(t,n){Nt().setExtra(t,n)},t.setExtras=function(t){Nt().setExtras(t)},t.setTag=function(t,n){Nt().setTag(t,n)},t.setTags=function(t){Nt().setTags(t)},t.setUser=function(t){Nt().setUser(t)},t.showReportDialog=function(t={}){const n=Hr.document,e=n?.head||n?.body;if(!e)return;const r=Lt(),o=Bt(),i=o?.getDsn();if(!i)return;const s={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||le()},c=Hr.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=function(t,n){const e=cn(t);if(!e)return"";const r=`${ge(e)}embed/error-page/`;let o=`dsn=${rn(e)}`;for(const t in n)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(o+=`&name=${encodeURIComponent(t.name)}`),t.email&&(o+=`&email=${encodeURIComponent(t.email)}`)}else o+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${o}`}(i,s);const{onLoad:u,onClose:a}=s;if(u&&(c.onload=u),a){const t=n=>{if("__sentry_reportdialog_closed__"===n.data)try{a()}finally{Hr.removeEventListener("message",t)}};Hr.addEventListener("message",t)}e.appendChild(c)},t.spanToBaggageHeader=function(t){return Qt(Rn(t))},t.spanToJSON=bn,t.spanToTraceHeader=mn,t.startSession=he,t.suppressTracing=function(t){const n=Yn();return n.suppressTracing?n.suppressTracing(t):Ut(n=>{n.setSDKProcessingMetadata({[Gn]:!0});const e=t();return n.setSDKProcessingMetadata({[Gn]:void 0}),e})},t.uiProfiler=Eo,t.updateSpanName=function(t,n){t.updateName(n),t.setAttributes({[qt]:"custom",[Gt]:n})},t.winjsStackLineParser=Ao,t.withIsolationScope=function(...t){const n=At(r());if(2===t.length){const[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])},t.withScope=Ut,t.withStreamedSpan=function(t){return G(t,"_streamed",!0),t},t}({});
3//# sourceMappingURL=bundle.min.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.