4 lines
78 KiB
JavaScript
4 lines
78 KiB
JavaScript
/*! @sentry/browser 10.25.0 (d9cf9a4) | https://github.com/getsentry/sentry-javascript */
|
|
var Sentry=function(t){t=window.Sentry||{};const n=globalThis,e="10.25.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.match(/\S*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}}}const g={},v={};function b(t,n){g[t]=g[t]||[],g[t].push(n)}function _(t,n){if(!v[t]){v[t]=!0;try{n()}catch(t){}}}function w(t,n){const e=t&&g[t];if(e)for(const t of e)try{t(n)}catch(t){}}let E=null;function S(){E=n.onerror,n.onerror=function(t,n,e,r,o){return w("error",{column:r,error:o,line:e,msg:t,url:n}),!!E&&E.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let $=null;function x(){$=n.onunhandledrejection,n.onunhandledrejection=function(t){return w("unhandledrejection",t),!$||$.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const k=Object.prototype.toString;function I(t){switch(k.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return N(t,Error)}}function j(t,n){return k.call(t)===`[object ${n}]`}function T(t){return j(t,"ErrorEvent")}function O(t){return j(t,"DOMError")}function R(t){return j(t,"String")}function C(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function M(t){return null===t||C(t)||"object"!=typeof t&&"function"!=typeof t}function A(t){return j(t,"Object")}function D(t){return"undefined"!=typeof Event&&N(t,Event)}function L(t){return Boolean(t?.then&&"function"==typeof t.then)}function N(t,n){try{return t instanceof n}catch{return!1}}function P(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}const U=n;function B(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=F(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 F(t,n){const e=t,r=[];if(!e?.tagName)return"";if(U.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}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}function q(){try{return U.document.location.href}catch{return""}}function H(t,n,e){if(!(n in t))return;const r=t[n];if("function"!=typeof r)return;const o=e(r);"function"==typeof o&&z(o,r);try{t[n]=o}catch{}}function W(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch{}}function z(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,W(t,"__sentry_original__",n)}catch{}}function G(t){return t.__sentry_original__}function J(t){if(I(t))return{message:t.message,name:t.name,stack:t.stack,...Y(t)};if(D(t)){const n={type:t.type,target:X(t.target),currentTarget:X(t.currentTarget),...Y(t)};return"undefined"!=typeof CustomEvent&&N(t,CustomEvent)&&(n.detail=t.detail),n}return t}function X(t){try{return n=t,"undefined"!=typeof Element&&N(n,Element)?B(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}var n}function Y(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function K(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function V(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{P(r)?e.push("[VueViewModel]"):e.push(String(r))}catch{e.push("[value cannot be serialized]")}}return e.join(n)}function Z(t,n,e=!1){return!!R(t)&&(j(n,"RegExp")?n.test(t):!!R(n)&&(e?t===n:t.includes(n)))}function Q(t,n=[],e=!1){return n.some(n=>Z(t,n,e))}let tt;function nt(t=function(){const t=n;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return tt||(tt=[1e7]+1e3+4e3+8e3+1e11),tt.replace(/[018]/g,t=>(t^(16*Math.random()&15)>>t/4).toString(16))}function et(t){return t.exception?.values?.[0]}function rt(t){const{message:n,event_id:e}=t;if(n)return n;const r=et(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function ot(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 it(t,n){const e=et(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 st(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{W(t,"__sentry_captured__",!0)}catch{}return!1}function ct(){return Date.now()/1e3}let ut;function at(){return(ut??(ut=function(){const{performance:t}=n;if(!t?.now||!t.timeOrigin)return ct;const e=t.timeOrigin;return()=>(e+t.now())/1e3}()))()}function ft(t){const n=at(),e={sid:nt(),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&<(e,t),e}function lt(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||at(),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:nt()),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 dt(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]=dt(r[t],n[t],e-1));return r}function ht(){return nt()}function pt(){return nt().substring(16)}const mt="_sentrySpan";function yt(t,n){n?W(t,mt,n):delete t[mt]}function gt(t){return t[mt]}class vt{constructor(){this.o=!1,this.i=[],this.u=[],this.l=[],this.h=[],this.p={},this.m={},this.v={},this._={},this.S={},this.k={traceId:ht(),sampleRand:Math.random()}}clone(){const t=new vt;return t.l=[...this.l],t.m={...this.m},t.v={...this.v},t._={...this._},this._.flags&&(t._.flags={values:[...this._.flags.values]}),t.p=this.p,t.I=this.I,t.j=this.j,t.T=this.T,t.O=this.O,t.u=[...this.u],t.h=[...this.h],t.S={...this.S},t.k={...this.k},t.R=this.R,t.C=this.C,yt(t,gt(this)),t}setClient(t){this.R=t}setLastEventId(t){this.C=t}getClient(){return this.R}lastEventId(){return this.C}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.j&<(this.j,{user:t}),this.M(),this}getUser(){return this.p}setTags(t){return this.m={...this.m,...t},this.M(),this}setTag(t,n){return this.m={...this.m,[t]:n},this.M(),this}setExtras(t){return this.v={...this.v,...t},this.M(),this}setExtra(t,n){return this.v={...this.v,[t]:n},this.M(),this}setFingerprint(t){return this.O=t,this.M(),this}setLevel(t){return this.I=t,this.M(),this}setTransactionName(t){return this.T=t,this.M(),this}setContext(t,n){return null===n?delete this._[t]:this._[t]=n,this.M(),this}setSession(t){return t?this.j=t:delete this.j,this.M(),this}getSession(){return this.j}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,e=n instanceof vt?n.getScopeData():A(n)?t:void 0,{tags:r,extra:o,user:i,contexts:s,level:c,fingerprint:u=[],propagationContext:a}=e||{};return this.m={...this.m,...r},this.v={...this.v,...o},this._={...this._,...s},i&&Object.keys(i).length&&(this.p=i),c&&(this.I=c),u.length&&(this.O=u),a&&(this.k=a),this}clear(){return this.l=[],this.m={},this.v={},this.p={},this._={},this.I=void 0,this.T=void 0,this.O=void 0,this.j=void 0,yt(this,void 0),this.h=[],this.setPropagationContext({traceId:ht(),sampleRand:Math.random()}),this.M(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:ct(),...t,message:t.message?K(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.M(),this}getLastBreadcrumb(){return this.l[this.l.length-1]}clearBreadcrumbs(){return this.l=[],this.M(),this}addAttachment(t){return this.h.push(t),this}clearAttachments(){return this.h=[],this}getScopeData(){return{breadcrumbs:this.l,attachments:this.h,contexts:this._,tags:this.m,extra:this.v,user:this.p,level:this.I,fingerprint:this.O||[],eventProcessors:this.u,propagationContext:this.k,sdkProcessingMetadata:this.S,transactionName:this.T,span:gt(this)}}setSDKProcessingMetadata(t){return this.S=dt(this.S,t,2),this}setPropagationContext(t){return this.k=t,this}getPropagationContext(){return this.k}captureException(t,n){const e=n?.event_id||nt();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||nt();if(!this.R)return r;const o=new Error(t);return this.R.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=n?.event_id||nt();return this.R?(this.R.captureEvent(t,{...n,event_id:e},this),e):e}M(){this.o||(this.o=!0,this.i.forEach(t=>{t(this)}),this.o=!1)}}class bt{constructor(t,n){let e,r;e=t||new vt,r=n||new vt,this.A=[{scope:e}],this.D=r}withScope(t){const n=this.L();let e;try{e=t(n)}catch(t){throw this.N(),t}return L(e)?e.then(t=>(this.N(),t),t=>{throw this.N(),t}):(this.N(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.D}getStackTop(){return this.A[this.A.length-1]}L(){const t=this.getScope().clone();return this.A.push({client:this.getClient(),scope:t}),t}N(){return!(this.A.length<=1)&&!!this.A.pop()}}function _t(){const t=o(r());return t.stack=t.stack||new bt(i("defaultCurrentScope",()=>new vt),i("defaultIsolationScope",()=>new vt))}function wt(t){return _t().withScope(t)}function Et(t,n){const e=_t();return e.withScope(()=>(e.getStackTop().scope=t,n(t)))}function St(t){return _t().withScope(()=>t(_t().getIsolationScope()))}function $t(t){const n=o(t);return n.acs?n.acs:{withIsolationScope:St,withScope:wt,withSetScope:Et,withSetIsolationScope:(t,n)=>St(n),getCurrentScope:()=>_t().getScope(),getIsolationScope:()=>_t().getIsolationScope()}}function xt(){return $t(r()).getCurrentScope()}function kt(){return $t(r()).getIsolationScope()}function It(){return i("globalScope",()=>new vt)}function jt(...t){const n=$t(r());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function Tt(){return xt().getClient()}function Ot(t){const n=t.getPropagationContext(),{traceId:e,parentSpanId:r,propagationSpanId:o}=n,i={trace_id:e,span_id:o||pt()};return r&&(i.parent_span_id=r),i}const Rt="sentry.source",Ct="sentry.sample_rate",Mt="sentry.op",At="sentry.origin",Dt="sentry.custom_span_name",Lt="sentry.profile_id",Nt="sentry.exclusive_time";function Pt(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function Ut(t){const n=t;return{scope:n._sentryScope,isolationScope:Pt(n._sentryIsolationScope)}}const Bt="sentry-",Ft=/^sentry-/;function qt(t){const n=function(t){if(!t||!R(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,n)=>{const e=Wt(n);return Object.entries(e).forEach(([n,e])=>{t[n]=e}),t},{});return Wt(t)}(t);if(!n)return;const e=Object.entries(n).reduce((t,[n,e])=>{if(n.match(Ft)){t[n.slice(7)]=e}return t},{});return Object.keys(e).length>0?e:void 0}function Ht(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[`${Bt}${n}`]=e),t),{}))}function Wt(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 zt=/^o(\d+)\./,Gt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Jt(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 Xt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Yt(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(zt);return n?.[1]}(e)),r}function Kt(t){const n="string"==typeof t?function(t){const n=Gt.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 Xt({host:i,pass:o,path:a,projectId:f,port:s,protocol:e,publicKey:r})}(t):Xt(t);if(n)return n}function Vt(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 Zt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Qt(t,n){const e=function(t){if(!t)return;const n=t.match(Zt);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=qt(n);if(!e?.traceId)return{traceId:ht(),sampleRand:Math.random()};const o=function(t,n){const e=Vt(n?.sample_rand);if(void 0!==e)return e;const r=Vt(n?.sample_rate);return r&&void 0!==t?.parentSampled?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(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 tn(t=ht(),n=pt(),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}function nn(t=ht(),n=pt(),e){return`00-${t}-${n}-${e?"01":"00"}`}let en=!1;function rn(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext(),o=r?n:an(t).parent_span_id,i=Ut(t).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||pt():n,trace_id:e}}function on(t){const{traceId:n,spanId:e}=t.spanContext();return tn(n,e,fn(t))}function sn(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 cn(t){return"number"==typeof t?un(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?un(t.getTime()):at()}function un(t){return t>9999999999?t/1e3:t}function an(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:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:cn(o),timestamp:cn(s)||void 0,status:ln(c),op:r[Mt],origin:r[At],links:sn(u)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function fn(t){const{traceFlags:n}=t.spanContext();return 1===n}function ln(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function dn(t){return t._sentryRootSpan||t}function hn(){const t=$t(r());return t.getActiveSpan?t.getActiveSpan():gt(xt())}function pn(){en||(u(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),en=!0)}function mn(t,n){if(!n?.length||!t.description)return!1;for(const e of n){if(gn(e)){if(Z(t.description,e))return!0;continue}if(!e.name&&!e.op)continue;const n=!e.name||Z(t.description,e.name),r=!e.op||t.op&&Z(t.op,e.op);if(n&&r)return!0}return!1}function yn(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 gn(t){return"string"==typeof t||t instanceof RegExp}const vn="production";function bn(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o={environment:e.environment||vn,release:e.release,public_key:r,trace_id:t,org_id:Yt(n)};return n.emit("createDsc",o),o}function _n(t,n){const e=n.getPropagationContext();return e.dsc||bn(e.traceId,t)}function wn(t){const n=Tt();if(!n)return{};const e=dn(t),r=an(e),o=r.data,i=e.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Ct]??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&&qt(a);if(f)return c(f);const l=bn(t.spanContext().traceId,n),d=o[Rt],h=r.description;return"url"!==d&&h&&(l.transaction=h),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Tt()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}()&&(l.sampled=String(fn(e)),l.sample_rand=i?.get("sentry.sample_rand")??Ut(e).scope?.getPropagationContext().sampleRand.toString()),c(l),n.emit("createDsc",l,e),l}function En(t,n=100,e=1/0){try{return $n("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Sn(t,n=3,e=102400){const r=En(t,n);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>e?Sn(t,n-1,e):r;var o}function $n(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.P)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(P(n))return"[VueViewModel]";if(A(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 $n("",a.toJSON(),u-1,r,o)}catch{}const f=Array.isArray(n)?[]:{};let l=0;const d=J(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]=$n(t,n,u-1,r,o),l++}return s(n),f}function xn(t,n=[]){return[t,n]}function kn(t,n){const[e,r]=t;return[e,[...r,n]]}function In(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function jn(t){const e=o(n);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function Tn(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[jn(r),t]:r.push("string"==typeof t?jn(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(En(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 On(t){const n="string"==typeof t.data?jn(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const Rn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Cn(t){return Rn[t]}function Mn(t){if(!t?.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function An(t,n,e,r){const o=Mn(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:Jt(r)},...o&&{trace:o}}}(t,o,r,n);delete t.sdkProcessingMetadata;return xn(s,[[{type:i},t]])}const Dn="__SENTRY_SUPPRESS_TRACING__";function Ln(){return $t(r())}function Nn(t){return new Un(n=>{n(t)})}function Pn(t){return new Un((n,e)=>{e(t)})}class Un{constructor(t){this.U=0,this.B=[],this.F(t)}then(t,n){return new Un((e,r)=>{this.B.push([!1,n=>{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.q()})}catch(t){return this.then(t=>t,t)}finally(t){return new Un((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)})})}q(){if(0===this.U)return;const t=this.B.slice();this.B=[],t.forEach(t=>{t[0]||(1===this.U&&t[1](this.H),2===this.U&&t[2](this.H),t[0]=!0)})}F(t){const n=(t,n)=>{0===this.U&&(L(n)?n.then(e,r):(this.U=t,this.H=n,this.q()))},e=t=>{n(1,t)},r=t=>{n(2,t)};try{t(e,r)}catch(t){r(t)}}}function Bn(t,n,e,r=0){try{const o=Fn(n,e,t,r);return L(o)?o:Nn(o)}catch(t){return Pn(t)}}function Fn(t,n,e,r){const o=e[r];if(!t||!o)return t;const i=o({...t},n);return L(i)?i.then(t=>Fn(t,n,e,r+1)):Fn(i,n,e,r+1)}function qn(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:rn(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:wn(n),...t.sdkProcessingMetadata};const e=dn(n),r=an(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 Hn(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:p}=n;Wn(t,"extra",e),Wn(t,"tags",r),Wn(t,"user",o),Wn(t,"contexts",i),t.sdkProcessingMetadata=dt(t.sdkProcessingMetadata,c,2),s&&(t.level=s),h&&(t.transactionName=h),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),a.length&&(t.fingerprint=[...t.fingerprint,...a]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...d}}function Wn(t,n,e){t[n]=dt(t[n],e,1)}let zn,Gn,Jn,Xn;function Yn(t,e,r,o,i,s){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,a={...e,event_id:e.event_id||r.event_id||nt(),timestamp:e.timestamp||ct()},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||vn,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);const s=t.request;s?.url&&(s.url=i?K(s.url,i):s.url)}(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.W;if(!e&&!r)return{};const o=e?Object.keys(e):[],i=r?Object.keys(r):[];if(Xn&&o.length===Gn&&i.length===Jn)return Xn;Gn=o.length,Jn=i.length,Xn={},zn||(zn={});const s=(n,e)=>{for(const r of n){const n=e[r],o=zn?.[r];if(o&&Xn&&n)Xn[o[0]]=n,zn&&(zn[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&&Xn&&zn){Xn[i]=n,zn[r]=[i,n];break}}}}};return e&&s(o,e),r&&s(i,r),Xn}(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 vt;return e.update(n),e}(o,r.captureContext);r.mechanism&&it(a,r.mechanism);const d=i?i.getEventProcessors():[],h=It().getScopeData();if(s){Hn(h,s.getScopeData())}if(l){Hn(h,l.getScopeData())}const p=[...r.attachments||[],...h.attachments];p.length&&(r.attachments=p),qn(a,h);return Bn([...d,...h.eventProcessors],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:En(t.data,n,e)}}))},...t.user&&{user:En(t.user,n,e)},...t.contexts&&{contexts:En(t.contexts,n,e)},...t.extra&&{extra:En(t.extra,n,e)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=En(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:En(t.data,n,e)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=En(t.contexts.flags,3,e));return r}(t,c,u):t))}function Kn(t){if(t)return function(t){return t instanceof vt||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Vn.includes(t))}(t)?{captureContext:t}:t}const Vn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function captureException(t,n){return xt().captureException(t,Kn(n))}function Zn(t,n){return xt().captureEvent(t,n)}function Qn(){return kt().lastEventId()}function te(){const t=Tt();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function ne(t){const e=kt(),r=xt(),{userAgent:o}=n.navigator||{},i=ft({user:r.getUser()||e.getUser(),...o&&{userAgent:o},...t}),s=e.getSession();return"ok"===s?.status&<(s,{status:"exited"}),ee(),e.setSession(i),i}function ee(){const t=kt(),n=xt().getSession()||t.getSession();n&&function(t){let n={};"ok"===t.status&&(n={status:"exited"}),lt(t,n)}(n),re(),t.setSession()}function re(){const t=kt(),n=Tt(),e=t.getSession();e&&n&&n.captureSession(e)}function oe(t=!1){t?ee():re()}function ie(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function se(t,n,e){return n||`${function(t){return`${ie(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 ce=[];function ue(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 ae(t,n){for(const e of n)e?.afterAllSetup&&e.afterAllSetup(t)}function fe(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===ce.indexOf(n.name)&&"function"==typeof n.setupOnce&&(n.setupOnce(),ce.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)}}}function le(t,n){const e=n??function(t){return de().get(t)}(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=Jt(r)),xn(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());de().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function de(){return i("clientToLogBufferMap",()=>new WeakMap)}function he(t){switch(typeof t){case"number":return Number.isInteger(t)?{value:t,type:"integer"}:{value:t,type:"double"};case"boolean":return{value:t,type:"boolean"};case"string":return{value:t,type:"string"};default:{let n="";try{n=JSON.stringify(t)??""}catch{}return{value:n,type:"string"}}}}function pe(t,n,e,r=!0){!e||!r&&n in t||(t[n]=e)}function me(t,n){const e=_e(),r=be(t);void 0===r?e.set(t,[n]):(e.set(t,[...r,n]),r.length>=1e3&&ve(t,r))}function ye(t,n,e){const{release:r,environment:o}=n.getOptions(),i={...t.attributes},{user:{id:s,email:c,username:u}}=function(t){const n=It().getScopeData();return Hn(n,kt().getScopeData()),Hn(n,t.getScopeData()),n}(e);pe(i,"user.id",s,!1),pe(i,"user.email",c,!1),pe(i,"user.name",u,!1),pe(i,"sentry.release",r),pe(i,"sentry.environment",o);const{name:a,version:f}=n.getSdkMetadata()?.sdk??{};pe(i,"sentry.sdk.name",a),pe(i,"sentry.sdk.version",f);const l=n.getIntegrationByName("Replay"),d=l?.getReplayId(!0);return pe(i,"sentry.replay_id",d),d&&"buffer"===l?.getRecordingMode()&&pe(i,"sentry._internal.replay_is_buffering",!0),{...t,attributes:i}}function ge(t,n,e){const r={};for(const n in t.attributes)void 0!==t.attributes[n]&&(r[n]=he(t.attributes[n]));const[,o]=function(t,n){return n?jt(n,()=>{const e=hn(),r=e?rn(e):Ot(n);return[e?wn(e):_n(t,n),r]}):[void 0,void 0]}(n,e),i=gt(e),s=i?i.spanContext().traceId:o?.trace_id,c=i?i.spanContext().spanId:void 0;return{timestamp:at(),trace_id:s??"",span_id:c,name:t.name,type:t.type,unit:t.unit,value:t.value,attributes:r}}function ve(t,n){const e=n??be(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=Jt(r)),xn(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());_e().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(o)}function be(t){return _e().get(t)}function _e(){return i("clientToMetricBufferMap",()=>new WeakMap)}const we=Symbol.for("SentryInternalError"),Ee=Symbol.for("SentryDoNotSendEventError");function Se(t){return{message:t,[we]:!0}}function $e(t){return{message:t,[Ee]:!0}}function xe(t,n,e,r,o){let i,s=0;t.on(e,()=>{s=0,clearTimeout(i)}),t.on(n,n=>{s+=r(n),s>=8e5?o(t):(clearTimeout(i),i=setTimeout(()=>{o(t)},5e3))}),t.on("flush",()=>{o(t)})}class ke{constructor(t){if(this.G=t,this._integrations={},this.J=0,this.X={},this.Y={},this.u=[],t.dsn&&(this.K=Kt(t.dsn)),this.K){const n=se(this.K,t.tunnel,t._metadata?t._metadata.sdk:void 0);this.V=t.transport({tunnel:this.G.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this.G.enableLogs&&xe(this,"afterCaptureLog","flushLogs",Oe,le);(this.G.enableMetrics??this.G._experiments?.enableMetrics??!0)&&xe(this,"afterCaptureMetric","flushMetrics",Te,ve)}captureException(t,n,e){const r=nt();if(st(t))return r;const o={event_id:r,...n};return this.Z(this.eventFromException(t,o).then(t=>this.tt(t,o,e))),o.event_id}captureMessage(t,n,e,r){const o={event_id:nt(),...e},i=C(t)?t:String(t),s=M(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this.Z(s.then(t=>this.tt(t,o,r))),o.event_id}captureEvent(t,n,e){const r=nt();if(n?.originalException&&st(n.originalException))return r;const o={event_id:r,...n},i=t.sdkProcessingMetadata||{},s=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this.Z(this.tt(t,o,s||e,c)),o.event_id}captureSession(t){this.sendSession(t),lt(t,{init:!1})}getDsn(){return this.K}getOptions(){return this.G}getSdkMetadata(){return this.G._metadata}getTransport(){return this.V}async flush(t){const n=this.V;if(!n)return!0;this.emit("flush");const e=await this.nt(t),r=await n.flush(t);return e&&r}async close(t){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.et()||this.G.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this.rt()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];fe(this,t,this._integrations),n||ae(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=An(t,this.K,this.G._metadata,this.G.tunnel);for(const t of n.attachments||[])e=kn(e,On(t));this.sendEnvelope(e).then(n=>this.emit("afterSendEvent",t,n))}sendSession(t){const{release:n,environment:e=vn}=this.G;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=Mn(e);return xn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:Jt(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.K,this.G._metadata,this.G.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,n,e=1){if(this.G.sendClientReports){const r=`${t}:${n}`;this.X[r]=(this.X[r]||0)+e}}on(t,n){const e=this.Y[t]=this.Y[t]||new Set,r=(...t)=>n(...t);return e.add(r),()=>{e.delete(r)}}emit(t,...n){const e=this.Y[t];e&&e.forEach(t=>t(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this.et()&&this.V)try{return await this.V.send(t)}catch(t){return{}}return{}}rt(){const{integrations:t}=this.G;this._integrations=function(t,n){const e={};return n.forEach(n=>{n&&fe(t,n,e)}),e}(this,t),ae(this,t)}ot(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)&&(lt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}async nt(t){let n=0;for(;!t||n<t;){if(await new Promise(t=>setTimeout(t,1)),!this.J)return!0;n++}return!1}et(){return!1!==this.getOptions().enabled&&void 0!==this.V}it(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),Yn(o,t,n,e,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,n),t.contexts={trace:Ot(e),...t.contexts};const r=_n(this,e);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}tt(t,n={},e=xt(),r=kt()){return this.st(t,n,e,r).then(t=>t.event_id,t=>{})}st(t,n,e,r){const o=this.getOptions(),{sampleRate:i}=o,s=je(t),c=Ie(t),u=t.type||"error",a=`before send for type \`${u}\``,f=void 0===i?void 0:Vt(i);if(c&&"number"==typeof f&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Pn($e(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const l="replay_event"===u?"replay":u;return this.it(t,n,e,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",l),$e("An event processor returned `null`, will not send event.");if(n.data&&!0===n.data.__sentry__)return t;const e=function(t,n,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:c}=n;let u=e;if(Ie(u)&&o)return o(u,r);if(je(u)){if(s||c){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?.[Lt],exclusive_time:s?.[Nt],measurements:t.measurements,is_segment:!0}}(u);if(c?.length&&mn(n,c))return null;if(s){const t=s(n);t?u=dt(e,{type:"transaction",timestamp:(a=t).timestamp,start_timestamp:a.start_timestamp,transaction:a.description,contexts:{trace:{trace_id:a.trace_id,span_id:a.span_id,parent_span_id:a.parent_span_id,op:a.op,status:a.status,origin:a.origin,data:{...a.data,...a.profile_id&&{[Lt]:a.profile_id},...a.exclusive_time&&{[Nt]:a.exclusive_time}}}},measurements:a.measurements}):pn()}if(u.spans){const n=[],e=u.spans;for(const t of e)if(c?.length&&mn(t,c))yn(e,t);else if(s){const e=s(t);e?n.push(e):(pn(),n.push(t))}else n.push(t);const r=u.spans.length-n.length;r&&t.recordDroppedEvent("before_send","span",r),u.spans=n}}if(i){if(u.spans){const t=u.spans.length;u.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(u,r)}}var a;return u}(this,o,t,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(L(t))return t.then(t=>{if(!A(t)&&null!==t)throw Se(e);return t},t=>{throw Se(`${n} rejected with ${t}`)});if(!A(t)&&null!==t)throw Se(e);return t}(e,a)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",l),s){const n=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",n)}throw $e(`${a} returned \`null\`, will not send event.`)}const i=e.getSession()||r.getSession();if(c&&i&&this.ot(i,o),s){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=o.transaction_info;if(s&&u&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...u,source:t}}return this.sendEvent(o,n),o}).then(null,t=>{if((n=t)&&"object"==typeof n&&Ee in n||function(t){return!!t&&"object"==typeof t&&we in t}(t))throw t;var n;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),Se(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}Z(t){this.J++,t.then(t=>(this.J--,t),t=>(this.J--,t))}ct(){const t=this.X;return this.X={},Object.entries(t).map(([t,n])=>{const[e,r]=t.split(":");return{reason:e,category:r,quantity:n}})}ut(){const t=this.ct();if(0===t.length)return;if(!this.K)return;const n=(e=t,xn((r=this.G.tunnel&&Jt(this.K))?{dsn:r}:{},[[{type:"client_report"},{timestamp:ct(),discarded_events:e}]]));var e,r;this.sendEnvelope(n)}}function Ie(t){return void 0===t.type}function je(t){return"transaction"===t.type}function Te(t){let n=0;return t.name&&(n+=2*t.name.length),n+=8,n+Re(t.attributes)}function Oe(t){let n=0;return t.message&&(n+=2*t.message.length),n+Re(t.attributes)}function Re(t){if(!t)return 0;let n=0;return Object.values(t).forEach(t=>{Array.isArray(t)?n+=t.length*Ce(t[0]):M(t)?n+=Ce(t):n+=100}),n}function Ce(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function Me(t){xt().setClient(t)}const Ae=Symbol.for("SentryBufferFullError");function De(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 Pn(Ae);const o=r();return n.add(o),o.then(()=>e(o),()=>e(o)),o},drain:function(t){if(!n.size)return Nn(!0);const e=Promise.allSettled(Array.from(n)).then(()=>!0);if(!t)return e;const r=[e,new Promise(n=>setTimeout(()=>n(!1),t))];return Promise.race(r)}}}function Le(t,{statusCode:n,headers:e},r=Date.now()){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=Date.now()){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 Ne(t,n,e=De(t.bufferSize||64)){let r={};return{send:function(o){const i=[];if(In(o,(n,e)=>{const o=Cn(e);!function(t,n,e=Date.now()){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=xn(o[0],i),c=n=>{In(s,(e,r)=>{t.recordDroppedEvent(n,Cn(r))})};return e.add(()=>n({body:Tn(s)}).then(t=>(r=Le(r,t),t),t=>{throw c("network_error"),t})).then(t=>t,t=>{if(t===Ae)return c("queue_overflow"),Promise.resolve({});throw t})},flush:t=>e.drain(t)}}function Pe(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 Ue(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 Be=100;function Fe(t,n){const e=Tt(),r=kt();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Be}=e.getOptions();if(i<=0)return;const s={timestamp:ct(),...t},c=o?u(()=>o(s,n)):s;null!==c&&(e.emit&&e.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,i))}let qe;const He=new WeakMap,We=()=>({name:"FunctionToString",setupOnce(){qe=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=G(this),e=He.has(Tt())&&void 0!==n?n:this;return qe.apply(e,t)}}catch{}},setup(t){He.set(t,!0)}}),ze=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Ge=(t={})=>{let n;return{name:"EventFilters",setup(e){const r=e.getOptions();n=Xe(t,r)},processEvent(e,r,o){if(!n){const e=o.getOptions();n=Xe(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&&Q(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=>Q(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=Ye(t);return!!e&&Q(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n?.length)return!0;const e=Ye(t);return!e||Q(e,n)}(t,n.allowUrls))return!0}return!1}(e,n)?null:e}}},Je=(t={})=>({...Ge(t),name:"InboundFilters"});function Xe(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:ze],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]]}}function Ye(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 Ke(t,n,e,r,o,i){if(!o.exception?.values||!i||!N(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=Ve(t,n,r,i.originalException,e,o.exception.values,s,0))}function Ve(t,n,e,r,o,i,s,c){if(i.length>=e+1)return i;let u=[...i];if(N(r[o],Error)){Ze(s,c);const i=t(n,r[o]),a=u.length;Qe(i,o,a,c),u=Ve(t,n,e,r[o],o,[i,...u],i,a)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if(N(r,Error)){Ze(s,c);const a=t(n,r),f=u.length;Qe(a,`errors[${i}]`,f,c),u=Ve(t,n,e,r,o,[a,...u],a,f)}}),u}function Ze(t,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function Qe(t,n,e,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function tr(){"console"in n&&s.forEach(function(t){t in n.console&&H(n.console,t,function(e){return c[t]=e,function(...e){w("console",{args:e,level:t});const r=c[t];r?.apply(n.console,e)}})})}function nr(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const er=()=>{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(!or(t,n))return!1;if(!rr(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=ir(n),r=ir(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!or(t,n))return!1;if(!rr(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch{}return t=n}}};function rr(t,n){let e=y(t),r=y(n);if(!e&&!r)return!0;if(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 or(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 ir(t){return t.exception?.values?.[0]}function sr(t,n,e,r){!function(t,n){const e=n?.scope??xt(),r=n?.captureSerializedMetric??me,o=e?.getClient()??Tt();if(!o)return;const{_experiments:i,enableMetrics:s,beforeSendMetric:c}=o.getOptions();if(!(s??i?.enableMetrics??1))return;const u=ye(t,o,e),a=c||i?.beforeSendMetric,f=a?a(u):u;if(!f)return;r(o,ge(f,o,e)),o.emit("afterCaptureMetric",u)}({type:t,name:n,value:e,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}var cr=Object.freeze({__proto__:null,count:function(t,n=1,e){sr("counter",t,n,e)},distribution:function(t,n,e){sr("distribution",t,n,e)},gauge:function(t,n,e){sr("gauge",t,n,e)}});function ur(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const ar=n;function fr(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function lr(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ar))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(fr(ar.fetch))return!0;let t=!1;const n=ar.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=fr(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}function dr(t,e){const r="fetch";b(r,t),_(r,()=>function(t,e=!1){if(e&&!lr())return;H(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:pr(n),method:hr(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:pr(n),method:hr(n,"method")?String(n.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:o,url:i},startTimestamp:1e3*at(),virtualError:r,headers:mr(e)};return w("fetch",{...s}),t.apply(n,e).then(async t=>(w("fetch",{...s,endTimestamp:1e3*at(),response:t}),t),t=>{if(w("fetch",{...s,endTimestamp:1e3*at(),error:t}),I(t)&&void 0===t.stack&&(t.stack=r.stack,W(t,"framesToPop",1)),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);t.message=`${t.message} (${n.host})`}catch{}throw t})}})}(0,e))}function hr(t,n){return!!t&&"object"==typeof t&&!!t[n]}function pr(t){return"string"==typeof t?t:t?hr(t,"url")?t.url:t.toString?t.toString():"":""}function mr(t){const[n,e]=t;try{if("object"==typeof e&&null!==e&&"headers"in e&&e.headers)return new Headers(e.headers);if(r=n,"undefined"!=typeof Request&&N(r,Request))return new Headers(n.headers)}catch{}var r}const yr=()=>{},gr=["attachTo","createForm","createWidget","remove"],vr=Object.assign(t=>(u(()=>{console.warn("You are using feedbackIntegration() even though this bundle does not include feedback.")}),{name:"Feedback",...gr.reduce((t,n)=>(t[n]=yr,t),{})}),{_isShim:!0}),br=["start","stop","flush"];const _r=t=>(u(()=>{console.warn("You are using browserTracingIntegration() even though this bundle does not include tracing.")}),{name:"BrowserTracing"}),wr=n;let Er=0;function Sr(){return Er>0}function $r(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(G(t))return t}catch{return t}const sentryWrapped=function(...e){try{const r=e.map(t=>$r(t,n));return t.apply(this,r)}catch(t){throw Er++,setTimeout(()=>{Er--}),jt(r=>{r.addEventProcessor(t=>(n.mechanism&&(ot(t,void 0),it(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{}z(sentryWrapped,t),W(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch{}return sentryWrapped}function xr(t,n){const e=jr(t,n),r={type:Rr(n),value:Cr(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function kr(t,n,e,r){const o=Tt(),i=o?.getOptions().normalizeDepth,s=function(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];if(e instanceof Error)return e}return}(n),c={__serialized__:Sn(n,i)};if(s)return{exception:{values:[xr(t,s)]},extra:c};const u={exception:{values:[{type:D(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:Nr(n,{isUnhandledRejection:r})}]},extra:c};if(e){const n=jr(t,e);n.length&&(u.exception.values[0].stacktrace={frames:n})}return u}function Ir(t,n){return{exception:{values:[xr(t,n)]}}}function jr(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t&&Tr.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 Tr=/Minified React error #\d+;/i;function Or(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function Rr(t){const n=t?.name;if(!n&&Or(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return n}function Cr(t){const n=t?.message;return Or(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function Mr(t,n,e,r){const o=Dr(t,n,e?.syntheticException||void 0,r);return it(o),o.level="error",e?.event_id&&(o.event_id=e.event_id),Nn(o)}function Ar(t,n,e="info",r,o){const i=Lr(t,n,r?.syntheticException||void 0,o);return i.level=e,r?.event_id&&(i.event_id=r.event_id),Nn(i)}function Dr(t,n,e,r,o){let i;if(T(n)&&n.error){return Ir(t,n.error)}if(O(n)||j(n,"DOMException")){const o=n;if("stack"in n)i=Ir(t,n);else{const n=o.name||(O(o)?"DOMError":"DOMException"),s=o.message?`${n}: ${o.message}`:n;i=Lr(t,s,e,r),ot(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(I(n))return Ir(t,n);if(A(n)||D(n)){return i=kr(t,n,e,o),it(i,{synthetic:!0}),i}return i=Lr(t,n,e,r),ot(i,`${n}`),it(i,{synthetic:!0}),i}function Lr(t,n,e,r){const o={};if(r&&e){const r=jr(t,e);r.length&&(o.exception={values:[{value:n,stacktrace:{frames:r}}]}),it(o,{synthetic:!0})}if(C(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 Nr(t,{isUnhandledRejection:n}){const e=function(t){const n=Object.keys(J(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}(t),r=n?"promise rejection":"exception";if(T(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(D(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 Pr extends ke{constructor(t){const n=(r=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:wr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(t,n,r=[n],o="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${n}`,packages:r.map(t=>({name:`${o}:@sentry/${t}`,version:e})),version:e}),t._metadata=i}(n,"browser",["browser"],wr.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.G,a=u??c?.enableMetrics??!0;wr.document&&(i||s||a)&&wr.document.addEventListener("visibilitychange",()=>{"hidden"===wr.document.visibilityState&&(i&&this.ut(),s&&le(this),a&&ve(this))}),o&&this.on("beforeSendSession",Ue)}eventFromException(t,n){return Mr(this.G.stackParser,t,n,this.G.attachStacktrace)}eventFromMessage(t,n="info",e){return Ar(this.G.stackParser,t,n,e,this.G.attachStacktrace)}it(t,n,e,r){return t.platform=t.platform||"javascript",super.it(t,n,e,r)}}const Ur=n;let Br,Fr,qr,Hr;function Wr(){if(!Ur.document)return;const t=w.bind(null,"dom"),n=zr(t,!0);Ur.document.addEventListener("click",n,!1),Ur.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(n=>{const e=Ur,r=e[n]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(H(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=zr(t);i.handler=r,n.call(this,e,r,o)}i.refCount++}catch{}return n.call(this,e,r,o)}}),H(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 zr(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;W(e,"_sentryCaptured",!0),r&&!r._sentryId&&W(r,"_sentryId",nt());const o="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==Fr)return!1;try{if(!t.target||t.target._sentryId!==qr)return!1}catch{}return!0}(e)){t({event:e,name:o,global:n}),Fr=e.type,qr=r?r._sentryId:void 0}clearTimeout(Br),Br=Ur.setTimeout(()=>{qr=void 0,Fr=void 0},1e3)}}function Gr(t){const n="history";b(n,t),_(n,Jr)}function Jr(){function t(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const r=Hr,o=function(t){try{return new URL(t,Ur.location.origin).toString()}catch{return t}}(String(e));if(Hr=o,r===o)return t.apply(this,n);w("history",{from:r,to:o})}return t.apply(this,n)}}Ur.addEventListener("popstate",()=>{const t=Ur.location.href,n=Hr;if(Hr=t,n===t)return;w("history",{from:n,to:t})}),"history"in ar&&ar.history&&(H(Ur.history,"pushState",t),H(Ur.history,"replaceState",t))}const Xr={};function Yr(t){const n=Xr[t];if(n)return n;let e=Ur[t];if(fr(e))return Xr[t]=e.bind(Ur);const r=Ur.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?Xr[t]=e.bind(Ur):e}const Kr="__sentry_xhr_v3__";function Vr(){if(!Ur.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,n,e){const r=new Error,o=1e3*at(),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[Kr]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const t=n[Kr];if(t&&4===n.readyState){try{t.status_code=n.status}catch{}w("xhr",{endTimestamp:1e3*at(),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[Kr];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[Kr];if(!r)return t.apply(n,e);void 0!==e[0]&&(r.body=e[0]);return w("xhr",{startTimestamp:1e3*at(),xhr:n}),t.apply(n,e)}})}function Zr(t,n=Yr("fetch")){let e=0,r=0;return Ne(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 Xr["fetch"]=void 0,t}finally{e-=i,r--}},De(t.bufferSize||40))}function Qr(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 to=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,no=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eo=/\((\S*)(?::(\d+))(?::(\d+))\)/,ro=/at (.+?) ?\(data:(.+?),/,oo=[30,t=>{const n=t.match(ro);if(n)return{filename:`<data:${n[2]}>`,function:n[1]};const e=to.exec(t);if(e){const[,t,n,r]=e;return Qr(t,a,+n,+r)}const r=no.exec(t);if(r){if(r[2]&&0===r[2].indexOf("eval")){const t=eo.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,n]=go(r[1]||a,r[2]);return Qr(n,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],io=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,so=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,co=[50,t=>{const n=io.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=so.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]=go(e,t),Qr(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],uo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ao=[40,t=>{const n=uo.exec(t);return n?Qr(n[2],n[1]||a,+n[3],n[4]?+n[4]:void 0):void 0}],fo=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,lo=[10,t=>{const n=fo.exec(t);return n?Qr(n[2],n[3]||a,+n[1]):void 0}],ho=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,po=[20,t=>{const n=ho.exec(t);return n?Qr(n[5],n[3]||n[4]||a,+n[1],+n[2]):void 0}],mo=[oo,co],yo=d(...mo),go=(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 vo=1024,bo=(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";b(n,t),_(n,tr)}(function(t){return function(n){if(Tt()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:nr(n.level),message:V(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${V(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}Fe(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(Tt()!==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>vo&&(s=vo),"string"==typeof i&&(i=[i]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=B(n,{keyAttrs:i,maxStringLength:s}),o=function(t){if(!U.HTMLElement)return null;let n=t;for(let t=0;t<5;t++){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}(n)}catch{r="<unknown>"}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};o&&(c.data={"ui.component_name":o}),Fe(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),b("dom",e),_("dom",Wr)),n.xhr&&function(t){b("xhr",t),_("xhr",Vr)}(function(t){return function(n){if(Tt()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,o=n.xhr[Kr];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:ur(c)};t.emit("beforeOutgoingRequestBreadcrumb",l,f),Fe(l,f)}}(t)),n.fetch&&dr(function(t){return function(n){if(Tt()!==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=n.fetchData,i={data:n.error,input:n.args,startTimestamp:e,endTimestamp:r},s={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",s,i),Fe(s,i)}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:ur(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,s),Fe(c,s)}}}(t)),n.history&&Gr(function(t){return function(n){if(Tt()!==t)return;let e=n.from,r=n.to;const o=Pe(wr.location.href);let i=e?Pe(e):void 0;const s=Pe(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),Fe({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on("beforeSendEvent",function(t){return function(n){Tt()===t&&Fe({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:rt(n)},{event:n})}}(t))}}};const _o=["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"],wo=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){n.setTimeout&&H(wr,"setTimeout",Eo),n.setInterval&&H(wr,"setInterval",Eo),n.requestAnimationFrame&&H(wr,"requestAnimationFrame",So),n.XMLHttpRequest&&"XMLHttpRequest"in wr&&H(XMLHttpRequest.prototype,"send",$o);const t=n.eventTarget;if(t){(Array.isArray(t)?t:_o).forEach(t=>function(t,n){const e=wr,r=e[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;H(r,"addEventListener",function(e){return function(r,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=$r(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,$r(o,{mechanism:{data:{handler:m(o),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),H(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 Eo(t){return function(...n){const e=n[0];return n[0]=$r(e,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${m(t)}`}}),t.apply(this,n)}}function So(t){return function(n){return t.apply(this,[$r(n,{mechanism:{data:{handler:m(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function $o(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in e&&"function"==typeof e[t]&&H(e,t,function(n){const e={mechanism:{data:{handler:m(n)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=G(n);return r&&(e.mechanism.data.handler=m(r)),$r(n,e)})}),t.apply(this,n)}}const xo=()=>({name:"BrowserSession",setupOnce(){void 0!==wr.document&&(ne({ignoreDuration:!0}),oe(),Gr(({from:t,to:n})=>{void 0!==t&&t!==n&&(ne({ignoreDuration:!0}),oe())}))}}),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";b(n,t),_(n,S)}(n=>{const{stackParser:e,attachStacktrace:r}=Io();if(Tt()!==t||Sr())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||[],f=r,l=e,d=function(t){if(!R(t)||0===t.length)return;if(t.startsWith("data:")){const n=t.match(/^data:([^;]+)/);return`<data:${n?n[1]:"text/javascript"}${t.includes("base64,")?",base64":""}>`}return t}(n)??q();0===u.length&&u.push({colno:f,filename:d,function:a,in_app:!0,lineno:l});return t}(Dr(e,u||o,void 0,r,!1),i,s,c);f.level="error",Zn(f,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),n.onunhandledrejection&&function(t){!function(t){const n="unhandledrejection";b(n,t),_(n,x)}(n=>{const{stackParser:e,attachStacktrace:r}=Io();if(Tt()!==t||Sr())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)}`}]}}:Dr(e,o,void 0,r,!0);i.level="error",Zn(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t)}}};function Io(){const t=Tt();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const jo=()=>({name:"HttpContext",preprocessEvent(t){if(!wr.navigator&&!wr.location&&!wr.document)return;const n=function(){const t=q(),{referrer:n}=wr.document||{},{userAgent:e}=wr.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}}}),To=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){Ke(xr,o.getOptions().stackParser,e,n,t,r)}}};function Oo(){return!!function(){if(void 0===wr.window)return!1;const t=wr;if(t.nw)return!1;const n=t.chrome||t.browser;if(!n?.runtime?.id)return!1;const e=q(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(wr===wr.top&&r.some(t=>e.startsWith(`${t}://`)))}()}function Ro(t){return[Je(),We(),wo(),bo(),ko(),To(),er(),jo(),xo()]}const Co={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient"},Mo=wr;return t.BrowserClient=Pr,t.SDK_VERSION=e,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=Mt,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=At,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Ct,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Rt,t.Scope=vt,t.WINDOW=wr,t.addBreadcrumb=Fe,t.addEventProcessor=function(t){kt().addEventProcessor(t)},t.addIntegration=function(t){const n=Tt();n&&n.addIntegration(t)},t.breadcrumbsIntegration=bo,t.browserApiErrorsIntegration=wo,t.browserTracingIntegration=_r,t.captureEvent=Zn,t.captureException=captureException,t.captureFeedback=function(t,n={},e=xt()){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()||Tt();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 xt().captureMessage(t,e,r)},t.captureSession=oe,t.chromeStackLineParser=oo,t.close=async function(t){const n=Tt();return n?n.close(t):Promise.resolve(!1)},t.continueTrace=(t,n)=>{const e=$t(r());if(e.continueTrace)return e.continueTrace(t,n);const{sentryTrace:o,baggage:i}=t,s=Tt(),c=qt(i);return s&&!function(t,n){const e=Yt(t);return(!n||!e||n===e)&&(!t.getOptions().strictTraceContinuation||!(n&&!e||!n&&e))}(s,c?.org_id)?function(t){return jt(n=>(n.setPropagationContext({traceId:ht(),sampleRand:Math.random()}),function(t,n){const e=Ln();if(e.withActiveSpan)return e.withActiveSpan(t,n);return jt(t=>(yt(t,void 0),n(t)))}(null,t)))}(n):jt(t=>{const e=Qt(o,i);return t.setPropagationContext(e),n()})},t.createTransport=Ne,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:Jt(r)}},i=function(t){return[{type:"user_report"},t]}(t);return xn(o,[i])},t.dedupeIntegration=er,t.defaultStackLineParsers=mo,t.defaultStackParser=yo,t.endSession=ee,t.eventFiltersIntegration=Ge,t.eventFromException=Mr,t.eventFromMessage=Ar,t.exceptionFromError=xr,t.feedbackAsyncIntegration=vr,t.feedbackIntegration=vr,t.flush=async function(t){const n=Tt();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=We,t.geckoStackLineParser=co,t.getClient=Tt,t.getCurrentScope=xt,t.getDefaultIntegrations=Ro,t.getGlobalScope=It,t.getIsolationScope=kt,t.getTraceData=function(t={}){const n=t.client||Tt();if(!te()||!n)return{};const e=$t(r());if(e.getTraceData)return e.getTraceData(t);const o=t.scope||xt(),i=t.span||hn(),s=i?on(i):function(t){const{traceId:n,sampled:e,propagationSpanId:r}=t.getPropagationContext();return tn(n,r,e)}(o),c=Ht(i?wn(i):_n(n,o));if(!Zt.test(s))return{};const u={"sentry-trace":s,baggage:c};if(t.propagateTraceparent){const t=i?function(t){const{traceId:n,spanId:e}=t.spanContext();return nn(n,e,fn(t))}(i):function(t){const{traceId:n,sampled:e,propagationSpanId:r}=t.getPropagationContext();return nn(n,r,e)}(o);t&&(u.traceparent=t)}return u},t.globalHandlersIntegration=ko,t.httpContextIntegration=jo,t.inboundFiltersIntegration=Je,t.init=function(t={}){const n=!t.skipBrowserExtensionCheck&&Oo();let e=null==t.defaultIntegrations?Ro():t.defaultIntegrations;const r={...t,enabled:!n&&t.enabled,stackParser:(o=t.stackParser||yo,Array.isArray(o)?d(...o):o),integrations:ue({integrations:t.integrations,defaultIntegrations:e}),transport:t.transport||Zr};var o;return function(t,n){!0===n.debug&&u(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),xt().update(n.initialScope);const e=new t(n);return Me(e),e.init(),e}(Pr,r)},t.isEnabled=te,t.isInitialized=function(){return!!Tt()},t.lastEventId=Qn,t.lazyLoadIntegration=async function(t,n){const r=Co[t],o=Mo.Sentry=Mo.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${t}`);const i=o[t];if("function"==typeof i&&!("_isShim"in i))return i;const s=function(t){const n=Tt(),r=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${e}/${t}.min.js`,r).toString()}(r),c=wr.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=wr.document.currentScript,f=wr.document.body||wr.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=To,t.makeFetchTransport=Zr,t.metrics=cr,t.onLoad=function(t){t()},t.opera10StackLineParser=lo,t.opera11StackLineParser=po,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",...br.reduce((t,n)=>(t[n]=yr,t),{})}},t.setContext=function(t,n){kt().setContext(t,n)},t.setCurrentClient=Me,t.setExtra=function(t,n){kt().setExtra(t,n)},t.setExtras=function(t){kt().setExtras(t)},t.setTag=function(t,n){kt().setTag(t,n)},t.setTags=function(t){kt().setTags(t)},t.setUser=function(t){kt().setUser(t)},t.showReportDialog=function(t={}){const n=wr.document,e=n?.head||n?.body;if(!e)return;const r=xt(),o=Tt(),i=o?.getDsn();if(!i)return;const s={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||Qn()},c=wr.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=function(t,n){const e=Kt(t);if(!e)return"";const r=`${ie(e)}embed/error-page/`;let o=`dsn=${Jt(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{wr.removeEventListener("message",t)}};wr.addEventListener("message",t)}e.appendChild(c)},t.spanToBaggageHeader=function(t){return Ht(wn(t))},t.spanToJSON=an,t.spanToTraceHeader=on,t.startSession=ne,t.suppressTracing=function(t){const n=Ln();return n.suppressTracing?n.suppressTracing(t):jt(n=>{n.setSDKProcessingMetadata({[Dn]:!0});const e=t();return n.setSDKProcessingMetadata({[Dn]:void 0}),e})},t.updateSpanName=function(t,n){t.updateName(n),t.setAttributes({[Rt]:"custom",[Dt]:n})},t.winjsStackLineParser=ao,t.withIsolationScope=function(...t){const n=$t(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=jt,t}({});
|
|
//# sourceMappingURL=bundle.min.js.map
|