找回密码
 立即注册
搜索
热搜: 丝袜 魅魔 黑丝
查看: 8|回复: 0

19963251_妯娌

[复制链接]

13万

主题

343

回帖

22万

积分

管理员

站长

UID
1
积分
224400
余额
13 R
Moe币
84881
在线时间
279 小时
注册时间
2025-12-28
最后登录
2026-11-9
发表于 2026-9-3 23:00:59 | 显示全部楼层 |阅读模式
/*! @sentry/browser & @sentry/tracing 7.120.3 (5a833b4) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){t=window.Sentry||{};const n=Object.prototype.toString;function e(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return l(t,Error)}}function r(t,e){return n.call(t)===`[object ${e}]`}function i(t){return r(t,"ErrorEvent")}function s(t){return r(t,"DOMError")}function o(t){return r(t,"String")}function c(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function u(t){return null===t||c(t)||"object"!=typeof t&&"function"!=typeof t}function a(t){return r(t,"Object")}function h(t){return"undefined"!=typeof Event&&l(t,Event)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function d(t){return"number"==typeof t&&t!=t}function l(t,n){try{return t instanceof n}catch(t){return!1}}function p(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}function m(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function g(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(t){e.push("[value cannot be serialized]")}}return e.join(n)}function v(t,n,e=!1){return!!o(t)&&(r(n,"RegExp")?n.test(t):!!o(n)&&(e?t===n:t.includes(n)))}function y(t,n=[],e=!1){return n.some((n=>v(t,n,e)))}function b(t,n,e=250,r,i,s,o){if(!(s.exception&&s.exception.values&&o&&l(o.originalException,Error)))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var u,a;c&&(s.exception.values=(u=_(t,n,i,o.originalException,r,s.exception.values,c,0),a=e,u.map((t=>(t.value&&(t.value=m(t.value,a)),t)))))}function _(t,n,e,r,i,s,o,c){if(s.length>=e+1)return s;let u=[...s];if(l(r,Error)){w(o,c);const s=t(n,r),a=u.length;S(s,i,a,c),u=_(t,n,e,r,i,[s,...u],s,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(l(r,Error)){w(o,c);const a=t(n,r),h=u.length;S(a,`errors[${s}]`,h,c),u=_(t,n,e,r,i,[a,...u],a,h)}})),u}function w(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function S(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function T(t){return t&&t.Math==Math?t:void 0}const E="object"==typeof globalThis&&T(globalThis)||"object"==typeof window&&T(window)||"object"==typeof self&&T(self)||"object"==typeof global&&T(global)||function(){return this}()||{};function $(){return E}function x(t,n,e){const r=e||E,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const k=$();function I(t,n={}){if(!t)return"<unknown>";try{let e=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let a;const h=Array.isArray(n)?n:n.keyAttrs,f=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&s++<r&&(a=O(e,h),!("html"===a||s>1&&o+i.length*u+a.length>=f));)i.push(a),o+=a.length,e=e.parentNode;return i.reverse().join(c)}catch(t){return"<unknown>"}}function O(t,n){const e=t,r=[];let i,s,c,u,a;if(!e||!e.tagName)return"";if(k.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;r.push(e.tagName.toLowerCase());const h=n&&n.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(h&&h.length)h.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(e.id&&r.push(`#${e.id}`),i=e.className,i&&o(i))for(s=i.split(/\s+/),a=0;a<s.length;a++)r.push(`.${s[a]}`);const f=["aria-label","type","name","title","alt"];for(a=0;a<f.length;a++)c=f[a],u=e.getAttribute(c),u&&r.push(`[${c}="${u}"]`);return r.join("")}function C(t){if(!k.HTMLElement)return null;let n=t;for(let t=0;t<5;t++){if(!n)return null;if(n instanceof HTMLElement&&n.dataset.sentryComponent)return n.dataset.sentryComponent;n=n.parentNode}return null}const j=["debug","info","warn","error","log","assert","trace"],R={};function M(t){if(!("console"in E))return t();const n=E.console,e={},r=Object.keys(R);r.forEach((t=>{const r=R[t];e[t]=n[t],n[t]=r}));try{return t()}finally{r.forEach((t=>{n[t]=e[t]}))}}const D=function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return j.forEach((t=>{n[t]=()=>{}})),n}(),N=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function L(t,n=!1){const{host:e,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&i?`:${i}`:""}@${e}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function A(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function P(t){const n="string"==typeof t?function(t){const n=N.exec(t);if(!n)return void M((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[e,r,i="",s,o="",c]=n.slice(1);let u="",a=c;const h=a.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return A({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):A(t);if(n)return n}class q extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function F(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);"function"==typeof i&&U(i,r),t[n]=i}function H(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch(t){}}function U(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,H(t,"__sentry_original__",n)}catch(t){}}function B(t){return t.__sentry_original__}function W(t){if(e(t))return{message:t.message,name:t.name,stack:t.stack,...X(t)};if(h(t)){const n={type:t.type,target:z(t.target),currentTarget:z(t.currentTarget),...X(t)};return"undefined"!=typeof CustomEvent&&l(t,CustomEvent)&&(n.detail=t.detail),n}return t}function z(t){try{return n=t,"undefined"!=typeof Element&&l(n,Element)?I(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var n}function X(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 G(t){return J(t,new Map)}function J(t,n){if(function(t){if(!a(t))return!1;try{const n=Object.getPrototypeOf(t).constructor.name;return!n||"Object"===n}catch(t){return!0}}(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.keys(t))void 0!==t[e]&&(r[e]=J(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(J(t,n))})),r}return t}const K=/\(error: (.*)\)/,V=/captureMessage|captureException/;function Y(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0)=>{const r=[],i=t.split("\n");for(let t=e;t<i.length;t++){const e=i[t];if(e.length>1024)continue;const s=K.test(e)?e.replace(K,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){r.push(n);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(n[n.length-1].function||"")&&n.pop();n.reverse(),V.test(n[n.length-1].function||"")&&(n.pop(),V.test(n[n.length-1].function||"")&&n.pop());return n.slice(0,50).map((t=>({...t,filename:t.filename||n[n.length-1].filename,function:t.function||"?"})))}(r)}}const Q="<anonymous>";function Z(t){try{return t&&"function"==typeof t&&t.name||Q}catch(t){return Q}}const tt={},nt={};function et(t,n){tt[t]=tt[t]||[],tt[t].push(n)}function rt(t,n){nt[t]||(n(),nt[t]=!0)}function it(t,n){const e=t&&tt[t];if(e)for(const t of e)try{t(n)}catch(t){}}function st(){"console"in E&&j.forEach((function(t){t in E.console&&F(E.console,t,(function(n){return R[t]=n,function(...n){it("console",{args:n,level:t});const e=R[t];e&&e.apply(E.console,n)}}))}))}function ot(){const t=E,n=t.crypto||t.msCrypto;let e=()=>16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(e=()=>{const t=new Uint8Array(1);return n.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function ct(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ut(t){const{message:n,event_id:e}=t;if(n)return n;const r=ct(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function at(t,n,e){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=n||""),s.type||(s.type=e||"Error")}function ht(t,n){const e=ct(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r&&r.data,...n.data};e.mechanism.data=t}}function ft(t){if(t&&t.__sentry_captured__)return!0;try{H(t,"__sentry_captured__",!0)}catch(t){}return!1}function dt(t){return Array.isArray(t)?t:[t]}const lt=E;let pt,mt,gt;function vt(){if(!lt.document)return;const t=it.bind(null,"dom"),n=yt(t,!0);lt.document.addEventListener("click",n,!1),lt.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=lt[n]&&lt[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(F(e,"addEventListener",(function(n){return function(e,r,i){if("click"===e||"keypress"==e)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[e]=s[e]||{refCount:0};if(!o.handler){const r=yt(t);o.handler=r,n.call(this,e,r,i)}o.refCount++}catch(t){}return n.call(this,e,r,i)}})),F(e,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this,i=e.__sentry_instrumentation_handlers__||{},s=i[n];s&&(s.refCount--,s.refCount<=0&&(t.call(this,n,s.handler,r),s.handler=void 0,delete i[n]),0===Object.keys(i).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}function yt(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(e);if(function(t,n){return"keypress"===t&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;H(e,"_sentryCaptured",!0),r&&!r._sentryId&&H(r,"_sentryId",ot());const i="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==mt)return!1;try{if(!t.target||t.target._sentryId!==gt)return!1}catch(t){}return!0}(e)){t({event:e,name:i,global:n}),mt=e.type,gt=r?r._sentryId:void 0}clearTimeout(pt),pt=lt.setTimeout((()=>{gt=void 0,mt=void 0}),1e3)}}const bt=$();function _t(){if(!("fetch"in bt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function wt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function St(t){const n="fetch";et(n,t),rt(n,Tt)}function Tt(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!_t())return!1;if(wt(bt.fetch))return!0;let t=!1;const n=bt.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=wt(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t})()&&F(E,"fetch",(function(t){return function(...n){const{method:e,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:$t(n),method:Et(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:$t(n),method:Et(n,"method")?String(n.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:e,url:r},startTimestamp:Date.now()};return it("fetch",{...i}),t.apply(E,n).then((t=>(it("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw it("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}function Et(t,n){return!!t&&"object"==typeof t&&!!t[n]}function $t(t){return"string"==typeof t?t:t?Et(t,"url")?t.url:t.toString?t.toString():"":""}let xt=null;function kt(t){const n="error";et(n,t),rt(n,It)}function It(){xt=E.onerror,E.onerror=function(t,n,e,r,i){const s={column:r,error:i,line:e,msg:t,url:n};return it("error",s),!(!xt||xt.__SENTRY_LOADER__)&&xt.apply(this,arguments)},E.onerror.__SENTRY_INSTRUMENTED__=!0}let Ot=null;function Ct(t){const n="unhandledrejection";et(n,t),rt(n,jt)}function jt(){Ot=E.onunhandledrejection,E.onunhandledrejection=function(t){const n=t;return it("unhandledrejection",n),!(Ot&&!Ot.__SENTRY_LOADER__)||Ot.apply(this,arguments)},E.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Rt=$();const Mt=E;let Dt;function Nt(t){const n="history";et(n,t),rt(n,Lt)}function Lt(){if(!function(){const t=Rt.chrome,n=t&&t.app&&t.app.runtime,e="history"in Rt&&!!Rt.history.pushState&&!!Rt.history.replaceState;return!n&&e}())return;const t=Mt.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=Dt,n=String(e);Dt=n;it("history",{from:t,to:n})}return t.apply(this,n)}}Mt.onpopstate=function(...n){const e=Mt.location.href,r=Dt;Dt=e;if(it("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},F(Mt.history,"pushState",n),F(Mt.history,"replaceState",n)}const At=E;function Pt(t){et("xhr",t),rt("xhr",qt)}function qt(){if(!At.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;F(t,"open",(function(t){return function(...n){const e=Date.now(),r=o(n[0])?n[0].toUpperCase():void 0,i=function(t){if(o(t))return t;try{return t.toString()}catch(t){}return}(n[1]);if(!r||!i)return t.apply(this,n);this.__sentry_xhr_v3__={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const t=this.__sentry_xhr_v3__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}it("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:e,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?F(this,"onreadystatechange",(function(t){return function(...n){return s(),t.apply(this,n)}})):this.addEventListener("readystatechange",s),F(this,"setRequestHeader",(function(t){return function(...n){const[e,r]=n,i=this.__sentry_xhr_v3__;return i&&o(e)&&o(r)&&(i.request_headers[e.toLowerCase()]=r),t.apply(this,n)}})),t.apply(this,n)}})),F(t,"send",(function(t){return function(...n){const e=this.__sentry_xhr_v3__;if(!e)return t.apply(this,n);void 0!==n[0]&&(e.body=n[0]);return it("xhr",{args:[e.method,e.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}function Ft(t,n=100,e=1/0){try{return Ut("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Ht(t,n=3,e=102400){const r=Ft(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?Ht(t,n-1,e):r;var i}function Ut(t,n,e=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function(e){if(t)return!!n.has(e)||(n.add(e),!1);for(let t=0;t<n.length;t++)if(n[t]===e)return!0;return n.push(e),!1},function(e){if(t)n.delete(e);else for(let t=0;t<n.length;t++)if(n[t]===e){n.splice(t,1);break}}]}()){const[s,o]=i;if(null==n||["number","boolean","string"].includes(typeof n)&&!d(n))return n;const c=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.i)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&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${Z(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?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(s(n))return"[Circular ~]";const h=n;if(h&&"function"==typeof h.toJSON)try{return Ut("",h.toJSON(),u-1,r,i)}catch(t){}const f=Array.isArray(n)?[]:{};let l=0;const m=W(n);for(const t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(l>=r){f[t]="[MaxProperties ~]";break}const n=m[t];f[t]=Ut(t,n,u-1,r,i),l++}return o(n),f}var Bt;function Wt(t){return new Xt((n=>{n(t)}))}function zt(t){return new Xt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Bt||(Bt={}));class Xt{constructor(t){Xt.prototype.__init.call(this),Xt.prototype.__init2.call(this),Xt.prototype.__init3.call(this),Xt.prototype.__init4.call(this),this.o=Bt.PENDING,this.u=[];try{t(this.h,this.l)}catch(t){this.l(t)}}then(t,n){return new Xt(((e,r)=>{this.u.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.p()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Xt(((n,e)=>{let r,i;return this.then((n=>{i=!1,r=n,t&&t()}),(n=>{i=!0,r=n,t&&t()})).then((()=>{i?e(r):n(r)}))}))}__init(){this.h=t=>{this.m(Bt.RESOLVED,t)}}__init2(){this.l=t=>{this.m(Bt.REJECTED,t)}}__init3(){this.m=(t,n)=>{this.o===Bt.PENDING&&(f(n)?n.then(this.h,this.l):(this.o=t,this.v=n,this.p()))}}__init4(){this.p=()=>{if(this.o===Bt.PENDING)return;const t=this.u.slice();this.u=[],t.forEach((t=>{t[0]||(this.o===Bt.RESOLVED&&t[1](this.v),this.o===Bt.REJECTED&&t[2](this.v),t[0]=!0)}))}}}function Gt(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(r){if(!(void 0===t||n.length<t))return zt(new q("Not adding Promise because buffer limit was reached."));const i=r();return-1===n.indexOf(i)&&n.push(i),i.then((()=>e(i))).then(null,(()=>e(i).then(null,(()=>{})))),i},drain:function(t){return new Xt(((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{Wt(t).then((()=>{--i||(clearTimeout(s),e(!0))}),r)}))}))}}}function Jt(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}}const Kt=["fatal","error","warning","log","info","debug"];function Vt(t){return"warn"===t?"warning":Kt.includes(t)?t:"log"}function Yt(){return Date.now()/1e3}const Qt=function(){const{performance:t}=E;if(!t||!t.now)return Yt;const n=Date.now()-t.now(),e=null==t.timeOrigin?n:t.timeOrigin;return()=>(e+t.now())/1e3}(),Zt=(()=>{const{performance:t}=E;if(!t||!t.now)return;const n=36e5,e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):n,s=i<n,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+e-r):n;return s||c<n?i<=c?t.timeOrigin:o:r})(),tn="baggage",nn="sentry-",en=/^sentry-/;function rn(t){if(!o(t)&&!Array.isArray(t))return;let n={};if(Array.isArray(t))n=t.reduce(((t,n)=>{const e=on(n);for(const n of Object.keys(e))t[n]=e[n];return t}),{});else{if(!t)return;n=on(t)}const e=Object.entries(n).reduce(((t,[n,e])=>{if(n.match(en)){t[n.slice(nn.length)]=e}return t}),{});return Object.keys(e).length>0?e:void 0}function sn(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[n,e],r)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,s=0===r?i:`${t},${i}`;return s.length>8192?t:s}),"")}(Object.entries(t).reduce(((t,[n,e])=>(e&&(t[`sentry-${n}`]=e),t)),{}))}function on(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(t[n]=e,t)),{})}const cn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function un(t){if(!t)return;const n=t.match(cn);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}function an(t=ot(),n=ot().substring(16),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}function hn(t,n=[]){return[t,n]}function fn(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 ln(t,n){return(n||new TextEncoder).encode(t)}function pn(t,n){const[e,r]=t;let i=JSON.stringify(e);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[ln(i,n),t]:i.push("string"==typeof t?ln(t,n):t)}for(const t of r){const[n,e]=t;if(s(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(Ft(e))}s(t)}}return"string"==typeof i?i: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}(i)}function mn(t,n){const e="string"==typeof t.data?ln(t.data,n):t.data;return[G({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const gn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function vn(t){return gn[t]}function yn(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function bn(t,{statusCode:n,headers:e},r=Date.now()){const i={...t},s=e&&e["x-sentry-rate-limits"],o=e&&e["retry-after"];if(s)for(const t of s.trim().split(",")){const[n,e,,,s]=t.split(":",5),o=parseInt(n,10),c=1e3*(isNaN(o)?60:o);if(e)for(const t of e.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(i[t]=r+c);else i.all=r+c}else o?i.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}(o,r):429===n&&(i.all=r+6e4);return i}function _n(t,n){const e={type:n.name||n.constructor.name,value:n.message},r=function(t,n){return t(n.stack||"",1)}(t,n);return r.length&&(e.stacktrace={frames:r}),e}class wn{static __initStatic(){this.id="Feedback"}constructor(t){this.name=wn.id,M((()=>{console.warn("You are using new Feedback() even though this bundle does not include Feedback.")}))}setupOnce(){}openDialog(){}closeDialog(){}attachTo(){}createWidget(){}removeWidget(){}getWidget(){}remove(){}}wn.__initStatic();class Sn{static __initStatic(){this.id="Replay"}constructor(t){this.name=Sn.id,M((()=>{console.warn("You are using new Replay() even though this bundle does not include replay.")}))}setupOnce(){}start(){}stop(){}flush(){}}Sn.__initStatic();const Tn="production";function En(){return x("globalEventProcessors",(()=>[]))}function $n(t){En().push(t)}function xn(t,n,e,r=0){return new Xt(((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o({...n},e);f(c)?c.then((n=>xn(t,n,e,r+1).then(i))).then(null,s):xn(t,c,e,r+1).then(i).then(null,s)}}))}function kn(t){const n=Qt(),e={sid:ot(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return G({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&&In(e,t),e}function In(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||Qt(),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:ot()),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 On(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),In(t,e)}function Cn(t){const{spanId:n,traceId:e}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:o,tags:c,origin:u}=Dn(t);return G({data:r,op:i,parent_span_id:s,span_id:n,status:o,tags:c,trace_id:e,origin:u})}function jn(t){const{traceId:n,spanId:e}=t.spanContext();return an(n,e,Nn(t))}function Rn(t){return"number"==typeof t?Mn(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Mn(t.getTime()):Qt()}function Mn(t){return t>9999999999?t/1e3:t}function Dn(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function Nn(t){const{traceFlags:n}=t.spanContext();return Boolean(1&n)}function Ln(t,n,e,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,u={...n,event_id:n.event_id||e.event_id||ot(),timestamp:n.timestamp||Yt()},a=e.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:i,maxValueLength:s=250}=n;"environment"in t||(t.environment="environment"in n?e:Tn);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=m(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=m(o.value,s));const c=t.request;c&&c.url&&(c.url=m(c.url,s))}(u,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(u,a),void 0===n.type&&function(t,n){const e=E._sentryDebugIds;if(!e)return;let r;const i=An.get(n);i?r=i:(r=new Map,An.set(n,r));const s=Object.keys(e).reduce(((t,i)=>{let s;const o=r.get(i);o?s=o:(s=n(i),r.set(i,s));for(let n=s.length-1;n>=0;n--){const r=s[n];if(r.filename){t[r.filename]=e;break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=s[t.filename])}))}))}catch(t){}}(u,t.stackParser);const h=function(t,n){if(!n)return t;const e=t?t.clone():new ee;return e.update(n),e}(r,e.captureContext);e.mechanism&&ht(u,e.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],d=function(){ne||(ne=new ee);return ne}().getScopeData();if(s){Zn(d,s.getScopeData())}if(h){Zn(d,h.getScopeData())}const l=[...e.attachments||[],...d.attachments];l.length&&(e.attachments=l),Qn(u,d);return xn([...f,...En(),...d.eventProcessors],u,e).then((t=>(t&&function(t){const n={};try{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)}))}))}catch(t){}if(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.keys(n).forEach((t=>{e.push({type:"sourcemap",code_file:t,debug_id:n[t]})}))}(t),"number"==typeof o&&o>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Ft(t.data,n,e)}})))},...t.user&&{user:Ft(t.user,n,e)},...t.contexts&&{contexts:Ft(t.contexts,n,e)},...t.extra&&{extra:Ft(t.extra,n,e)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Ft(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>{const r=Dn(t).data;return r&&(t.data=Ft(r,n,e)),t})));return r}(t,o,c):t)))}const An=new WeakMap;function Pn(t){if(t)return function(t){return t instanceof ee||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>qn.includes(t)))}(t)?{captureContext:t}:t}const qn=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(t,n){return he().captureException(t,Pn(n))}function Fn(t,n){return he().captureEvent(t,n)}function Hn(t,n){he().addBreadcrumb(t,n)}function Un(...t){const n=he();if(2===t.length){const[e,r]=t;return e?n.withScope((()=>(n.getStackTop().scope=e,r(e)))):n.withScope(r)}return n.withScope(t[0])}function Bn(){return he().getClient()}function Wn(){return he().getScope()}function zn(t){const n=Bn(),e=fe(),r=Wn(),{release:i,environment:s=Tn}=n&&n.getOptions()||{},{userAgent:o}=E.navigator||{},c=kn({release:i,environment:s,user:r.getUser()||e.getUser(),...o&&{userAgent:o},...t}),u=e.getSession();return u&&"ok"===u.status&&In(u,{status:"exited"}),Xn(),e.setSession(c),r.setSession(c),c}function Xn(){const t=fe(),n=Wn(),e=n.getSession()||t.getSession();e&&On(e),Gn(),t.setSession(),n.setSession()}function Gn(){const t=fe(),n=Wn(),e=Bn(),r=n.getSession()||t.getSession();r&&e&&e.captureSession&&e.captureSession(r)}function Jn(t=!1){t?Xn():Gn()}function Kn(t){return t.transaction}function Vn(t,n,e){const r=n.getOptions(),{publicKey:i}=n.getDsn()||{},{segment:s}=e&&e.getUser()||{},o=G({environment:r.environment||Tn,release:r.release,user_segment:s,public_key:i,trace_id:t});return n.emit&&n.emit("createDsc",o),o}function Yn(t){const n=Bn();if(!n)return{};const e=Vn(Dn(t).trace_id||"",n,Wn()),r=Kn(t);if(!r)return e;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:s,source:o}=r.metadata;null!=s&&(e.sample_rate=`${s}`);const c=Dn(r);return o&&"url"!==o&&(e.transaction=c.description),e.sampled=String(Nn(r)),n.emit&&n.emit("createDsc",e),e}function Qn(t,n){const{fingerprint:e,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=n;!function(t,n){const{extra:e,tags:r,user:i,contexts:s,level:o,transactionName:c}=n,u=G(e);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const a=G(r);a&&Object.keys(a).length&&(t.tags={...a,...t.tags});const h=G(i);h&&Object.keys(h).length&&(t.user={...h,...t.user});const f=G(s);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts});o&&(t.level=o);c&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:Cn(n),...t.contexts};const e=Kn(n);if(e){t.sdkProcessingMetadata={dynamicSamplingContext:Yn(n),...t.sdkProcessingMetadata};const r=Dn(e).description;r&&(t.tags={transaction:r,...t.tags})}}(t,r),function(t,n){t.fingerprint=t.fingerprint?dt(t.fingerprint):[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,i),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,s)}function Zn(t,n){const{extra:e,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:h,attachments:f,propagationContext:d,transactionName:l,span:p}=n;te(t,"extra",e),te(t,"tags",r),te(t,"user",i),te(t,"contexts",s),te(t,"sdkProcessingMetadata",c),o&&(t.level=o),l&&(t.transactionName=l),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),a.length&&(t.fingerprint=[...t.fingerprint,...a]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function te(t,n,e){if(e&&Object.keys(e).length){t[n]={...t[n]};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[n][r]=e[r])}}let ne;class ee{constructor(){this._=!1,this.S=[],this.T=[],this.k=[],this.I=[],this.O={},this.C={},this.j={},this.R={},this.M={},this.D=re()}static clone(t){return t?t.clone():new ee}clone(){const t=new ee;return t.k=[...this.k],t.C={...this.C},t.j={...this.j},t.R={...this.R},t.O=this.O,t.N=this.N,t.L=this.L,t.A=this.A,t.P=this.P,t.q=this.q,t.T=[...this.T],t.F=this.F,t.I=[...this.I],t.M={...this.M},t.D={...this.D},t.H=this.H,t}setClient(t){this.H=t}getClient(){return this.H}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this.T.push(t),this}setUser(t){return this.O=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this.A&&In(this.A,{user:t}),this.U(),this}getUser(){return this.O}getRequestSession(){return this.F}setRequestSession(t){return this.F=t,this}setTags(t){return this.C={...this.C,...t},this.U(),this}setTag(t,n){return this.C={...this.C,[t]:n},this.U(),this}setExtras(t){return this.j={...this.j,...t},this.U(),this}setExtra(t,n){return this.j={...this.j,[t]:n},this.U(),this}setFingerprint(t){return this.q=t,this.U(),this}setLevel(t){return this.N=t,this.U(),this}setTransactionName(t){return this.P=t,this.U(),this}setContext(t,n){return null===n?delete this.R[t]:this.R[t]=n,this.U(),this}setSpan(t){return this.L=t,this.U(),this}getSpan(){return this.L}getTransaction(){const t=this.L;return t&&t.transaction}setSession(t){return t?this.A=t:delete this.A,this.U(),this}getSession(){return this.A}update(t){if(!t)return this;const n="function"==typeof t?t(this):t;if(n instanceof ee){const t=n.getScopeData();this.C={...this.C,...t.tags},this.j={...this.j,...t.extra},this.R={...this.R,...t.contexts},t.user&&Object.keys(t.user).length&&(this.O=t.user),t.level&&(this.N=t.level),t.fingerprint.length&&(this.q=t.fingerprint),n.getRequestSession()&&(this.F=n.getRequestSession()),t.propagationContext&&(this.D=t.propagationContext)}else if(a(n)){const n=t;this.C={...this.C,...n.tags},this.j={...this.j,...n.extra},this.R={...this.R,...n.contexts},n.user&&(this.O=n.user),n.level&&(this.N=n.level),n.fingerprint&&(this.q=n.fingerprint),n.requestSession&&(this.F=n.requestSession),n.propagationContext&&(this.D=n.propagationContext)}return this}clear(){return this.k=[],this.C={},this.j={},this.O={},this.R={},this.N=void 0,this.P=void 0,this.q=void 0,this.F=void 0,this.L=void 0,this.A=void 0,this.U(),this.I=[],this.D=re(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:Yt(),...t},i=this.k;return i.push(r),this.k=i.length>e?i.slice(-e):i,this.U(),this}getLastBreadcrumb(){return this.k[this.k.length-1]}clearBreadcrumbs(){return this.k=[],this.U(),this}addAttachment(t){return this.I.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this.I=[],this}getScopeData(){const{k:t,I:n,R:e,C:r,j:i,O:s,N:o,q:c,T:u,D:a,M:h,P:f,L:d}=this;return{breadcrumbs:t,attachments:n,contexts:e,tags:r,extra:i,user:s,level:o,fingerprint:c||[],eventProcessors:u,propagationContext:a,sdkProcessingMetadata:h,transactionName:f,span:d}}applyToEvent(t,n={},e=[]){Qn(t,this.getScopeData());return xn([...e,...En(),...this.T],t,n)}setSDKProcessingMetadata(t){return this.M={...this.M,...t},this}setPropagationContext(t){return this.D=t,this}getPropagationContext(){return this.D}captureException(t,n){const e=n&&n.event_id?n.event_id:ot();if(!this.H)return D.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.H.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e&&e.event_id?e.event_id:ot();if(!this.H)return D.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this.H.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},this),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:ot();return this.H?(this.H.captureEvent(t,{...n,event_id:e},this),e):(D.warn("No client configured on scope - will not capture event!"),e)}U(){this._||(this._=!0,this.S.forEach((t=>{t(this)})),this._=!1)}}function re(){return{traceId:ot(),spanId:ot().substring(16)}}const ie="7.120.3",se=parseFloat(ie),oe=100;class ce{constructor(t,n,e,r=se){let i,s;this.B=r,n?i=n:(i=new ee,i.setClient(t)),e?s=e:(s=new ee,s.setClient(t)),this.W=[{scope:i}],t&&this.bindClient(t),this.X=s}isOlderThan(t){return this.B<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const n=this.pushScope();let e;try{e=t(n)}catch(t){throw this.popScope(),t}return f(e)?e.then((t=>(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.X}getStack(){return this.W}getStackTop(){return this.W[this.W.length-1]}captureException(t,n){const e=this.G=n&&n.event_id?n.event_id:ot(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...n,event_id:e}),e}captureMessage(t,n,e){const r=this.G=e&&e.event_id?e.event_id:ot(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r}),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:ot();return t.type||(this.G=e),this.getScope().captureEvent(t,{...n,event_id:e}),e}lastEventId(){return this.G}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=oe}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:Yt(),...t},c=i?M((()=>i(o,n))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,n),e.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();e&&t(n)}run(t){const n=ae(this);try{t(this)}finally{ae(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){const e=this.J("startTransaction",t,n);return e}traceHeaders(){return this.J("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.K()}endSession(){const t=this.getStackTop().scope,n=t.getSession();n&&On(n),this.K(),t.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i=Tn}=e&&e.getOptions()||{},{userAgent:s}=E.navigator||{},o=kn({release:r,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&In(c,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}K(){const{scope:t,client:n}=this.getStackTop(),e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}J(t,...n){const e=ue().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function ue(){return E.__SENTRY__=E.__SENTRY__||{extensions:{},hub:void 0},E}function ae(t){const n=ue(),e=le(n);return pe(n,t),e}function he(){const t=ue();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(t=ue()){n=t,n&&n.__SENTRY__&&n.__SENTRY__.hub&&!le(t).isOlderThan(se)||pe(t,new ce);var n;return le(t)}(t)}function fe(){return he().getIsolationScope()}function de(t,n={}){const e=ue();return e.__SENTRY__&&e.__SENTRY__.acs?e.__SENTRY__.acs.runWithAsyncContext(t,n):t()}function le(t){return x("hub",(()=>new ce),t)}function pe(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function me(t){return(t||he()).getScope().getTransaction()}let ge=!1;function ve(){const t=me();if(t){const n="internal_error";t.setStatus(n)}}var ye;function be(t,n){t.setTag("http.status_code",String(n)),t.setData("http.response.status_code",n);const e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(n);"unknown_error"!==e&&t.setStatus(e)}function _e(t,n,e=(()=>{})){let r;try{r=t()}catch(t){throw n(t),e(),t}return function(t,n,e){if(f(t))return t.then((t=>(e(),t)),(t=>{throw n(t),e(),t}));return e(),t}(r,n,e)}function we(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=Bn(),e=t||n&&n.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}function Se(t){if(!we())return;const n=$e(t),e=he(),r=t.scope?t.scope.getSpan():Te();if(t.onlyIfParent&&!r)return;const i=(t.scope||Wn()).clone();return Ee(e,{parentSpan:r,spanContext:n,forceTransaction:t.forceTransaction,scope:i})}function Te(){return Wn().getSpan()}ve.tag="sentry_tracingErrorCallback",function(t){t.Ok="ok";t.DeadlineExceeded="deadline_exceeded";t.Unauthenticated="unauthenticated";t.PermissionDenied="permission_denied";t.NotFound="not_found";t.ResourceExhausted="resource_exhausted";t.InvalidArgument="invalid_argument";t.Unimplemented="unimplemented";t.Unavailable="unavailable";t.InternalError="internal_error";t.UnknownError="unknown_error";t.Cancelled="cancelled";t.AlreadyExists="already_exists";t.FailedPrecondition="failed_precondition";t.Aborted="aborted";t.OutOfRange="out_of_range";t.DataLoss="data_loss"}(ye||(ye={}));function Ee(t,{parentSpan:n,spanContext:e,forceTransaction:r,scope:i}){if(!we())return;const s=fe();let o;if(n&&!r)o=n.startChild(e);else if(n){const r=Yn(n),{traceId:i,spanId:s}=n.spanContext(),c=Nn(n);o=t.startTransaction({traceId:i,parentSpanId:s,parentSampled:c,...e,metadata:{dynamicSamplingContext:r,...e.metadata}})}else{const{traceId:n,dsc:r,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...i.getPropagationContext()};o=t.startTransaction({traceId:n,parentSpanId:c,parentSampled:u,...e,metadata:{dynamicSamplingContext:r,...e.metadata}})}return i.setSpan(o),function(t,n,e){t&&(H(t,ke,e),H(t,xe,n))}(o,i,s),o}function $e(t){if(t.startTime){const n={...t};return n.startTimestamp=Rn(t.startTime),delete n.startTime,n}return t}const xe="_sentryScope",ke="_sentryIsolationScope";let Ie;function Oe(t){return Ie?Ie.get(t):void 0}function Ce(t){const n=Oe(t);if(!n)return;const e={};for(const[,[t,r]]of n)e[t]||(e[t]=[]),e[t].push(G(r));return e}const je="sentry.source",Re="sentry.sample_rate",Me="sentry.op",De="sentry.origin";class Ne{constructor(t=1e3){this.V=t,this.spans=[]}add(t){this.spans.length>this.V?t.spanRecorder=void 0:this.spans.push(t)}}class Le{constructor(t={}){this.Y=t.traceId||ot(),this.Z=t.spanId||ot().substring(16),this.tt=t.startTimestamp||Qt(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this.nt={},this.setAttributes({[De]:t.origin||"manual",[Me]:t.op,...t.attributes}),this.et=t.name||t.description,t.parentSpanId&&(this.rt=t.parentSpanId),"sampled"in t&&(this.it=t.sampled),t.status&&(this.st=t.status),t.endTimestamp&&(this.ot=t.endTimestamp),void 0!==t.exclusiveTime&&(this.ct=t.exclusiveTime),this.ut=t.measurements?{...t.measurements}:{}}get name(){return this.et||""}set name(t){this.updateName(t)}get description(){return this.et}set description(t){this.et=t}get traceId(){return this.Y}set traceId(t){this.Y=t}get spanId(){return this.Z}set spanId(t){this.Z=t}set parentSpanId(t){this.rt=t}get parentSpanId(){return this.rt}get sampled(){return this.it}set sampled(t){this.it=t}get attributes(){return this.nt}set attributes(t){this.nt=t}get startTimestamp(){return this.tt}set startTimestamp(t){this.tt=t}get endTimestamp(){return this.ot}set endTimestamp(t){this.ot=t}get status(){return this.st}set status(t){this.st=t}get op(){return this.nt["sentry.op"]}set op(t){this.setAttribute(Me,t)}get origin(){return this.nt["sentry.origin"]}set origin(t){this.setAttribute(De,t)}spanContext(){const{Z:t,Y:n,it:e}=this;return{spanId:t,traceId:n,traceFlags:e?1:0}}startChild(t){const n=new Le({...t,parentSpanId:this.Z,sampled:this.it,traceId:this.Y});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const e=Kn(this);return n.transaction=e,n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){void 0===n?delete this.nt[t]:this.nt[t]=n}setAttributes(t){Object.keys(t).forEach((n=>this.setAttribute(n,t[n])))}setStatus(t){return this.st=t,this}setHttpStatus(t){return be(this,t),this}setName(t){this.updateName(t)}updateName(t){return this.et=t,this}isSuccess(){return"ok"===this.st}finish(t){return this.end(t)}end(t){if(this.ot)return;Kn(this);this.ot=Rn(t)}toTraceparent(){return jn(this)}toContext(){return G({data:this.ht(),description:this.et,endTimestamp:this.ot,op:this.op,parentSpanId:this.rt,sampled:this.it,spanId:this.Z,startTimestamp:this.tt,status:this.st,tags:this.tags,traceId:this.Y})}updateWithContext(t){return this.data=t.data||{},this.et=t.name||t.description,this.ot=t.endTimestamp,this.op=t.op,this.rt=t.parentSpanId,this.it=t.sampled,this.Z=t.spanId||this.Z,this.tt=t.startTimestamp||this.tt,this.st=t.status,this.tags=t.tags||{},this.Y=t.traceId||this.Y,this}getTraceContext(){return Cn(this)}getSpanJSON(){return G({data:this.ht(),description:this.et,op:this.nt["sentry.op"],parent_span_id:this.rt,span_id:this.Z,start_timestamp:this.tt,status:this.st,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.ot,trace_id:this.Y,origin:this.nt["sentry.origin"],ft:Ce(this),profile_id:this.nt.profile_id,exclusive_time:this.ct,measurements:Object.keys(this.ut).length>0?this.ut:void 0})}isRecording(){return!this.ot&&!!this.it}toJSON(){return this.getSpanJSON()}ht(){const{data:t,nt:n}=this,e=Object.keys(t).length>0,r=Object.keys(n).length>0;if(e||r)return e&&r?{...t,...n}:e?t:n}}class Ae extends Le{constructor(t,n){super(t),this.R={},this.dt=n||he(),this.et=t.name||"",this.lt={...t.metadata},this.gt=t.trimEnd,this.transaction=this;const e=this.lt.dynamicSamplingContext;e&&(this._frozenDynamicSamplingContext={...e})}get name(){return this.et}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this.lt,...this.nt["sentry.source"]&&{source:this.nt["sentry.source"]},...this.nt["sentry.sample_rate"]&&{sampleRate:this.nt["sentry.sample_rate"]}}}set metadata(t){this.lt=t}setName(t,n="custom"){this.et=t,this.setAttribute(je,n)}updateName(t){return this.et=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ne(t)),this.spanRecorder.add(this)}setContext(t,n){null===n?delete this.R[t]:this.R[t]=n}setMeasurement(t,n,e=""){this.ut[t]={value:n,unit:e}}setMetadata(t){this.lt={...this.lt,...t}}end(t){const n=Rn(t),e=this.vt(n);if(e)return this.dt.captureEvent(e)}toContext(){return G({...super.toContext(),name:this.et,trimEnd:this.gt})}updateWithContext(t){return super.updateWithContext(t),this.et=t.name||"",this.gt=t.trimEnd,this}getDynamicSamplingContext(){return Yn(this)}setHub(t){this.dt=t}getProfileId(){if(void 0!==this.R&&void 0!==this.R.profile)return this.R.profile.profile_id}vt(t){if(void 0!==this.ot)return;this.et||(this.et="<unlabeled transaction>"),super.end(t);const n=this.dt.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),!0!==this.it)return void(n&&n.recordDroppedEvent("sample_rate","transaction"));const e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&Dn(t).timestamp)):[];if(this.gt&&e.length>0){const t=e.map((t=>Dn(t).timestamp)).filter(Boolean);this.ot=t.reduce(((t,n)=>t>n?t:n))}const{scope:r,isolationScope:i}={scope:(s=this).yt,isolationScope:s.bt};var s;const{metadata:o}=this,{source:c}=o,u={contexts:{...this.R,trace:Cn(this)},spans:e,start_timestamp:this.tt,tags:this.tags,timestamp:this.ot,transaction:this.et,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:r,capturedSpanIsolationScope:i,...G({dynamicSamplingContext:Yn(this)})},ft:Ce(this),...c&&{transaction_info:{source:c}}};return Object.keys(this.ut).length>0&&(u.measurements=this.ut),u}}const Pe={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},qe=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Fe extends Ne{constructor(t,n,e,r){super(r),this._t=t,this.wt=n,this.transactionSpanId=e}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...e)=>(this.wt(t.spanContext().spanId),n.apply(t,e)),void 0===Dn(t).timestamp&&this._t(t.spanContext().spanId)}super.add(t)}}class He extends Ae{constructor(t,n,e=Pe.idleTimeout,r=Pe.finalTimeout,i=Pe.heartbeatInterval,s=!1,o=!1){super(t,n),this.St=n,this.Tt=e,this.Et=r,this.$t=i,this.xt=s,this.activities={},this.kt=0,this.It=!1,this.Ot=!1,this.Ct=[],this.jt=qe[4],this.Rt=!o,s&&n.getScope().setSpan(this),o||this.Mt(),setTimeout((()=>{this.It||(this.setStatus("deadline_exceeded"),this.jt=qe[3],this.end())}),this.Et)}end(t){const n=Rn(t);if(this.It=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this.jt),this.spanRecorder){for(const t of this.Ct)t(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;Dn(t).timestamp||(t.setStatus("cancelled"),t.end(n));const{start_timestamp:e,timestamp:r}=Dn(t),i=e&&e<n,s=(this.Et+this.Tt)/1e3;return i&&(r&&e&&r-e<s)}))}if(this.xt){const t=this.St.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this.Ct.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=t=>{this.It||this._t(t)},e=t=>{this.It||this.wt(t)};this.spanRecorder=new Fe(n,e,this.spanContext().spanId,t),this.Dt()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this.Ot=!1===n,this.Nt&&(clearTimeout(this.Nt),this.Nt=void 0,0===Object.keys(this.activities).length&&this.Ot&&(this.jt=qe[5],this.end(t)))}setFinishReason(t){this.jt=t}sendAutoFinishSignal(){this.Rt||(this.Mt(),this.Rt=!0)}Mt(t){this.cancelIdleTimeout(),this.Nt=setTimeout((()=>{this.It||0!==Object.keys(this.activities).length||(this.jt=qe[1],this.end(t))}),this.Tt)}_t(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this.Ot}),this.activities[t]=!0}wt(t){if(this.activities[t]&&delete this.activities[t],0===Object.keys(this.activities).length){const t=Qt();this.Ot?this.Rt&&(this.jt=qe[5],this.end(t)):this.Mt(t+this.Tt/1e3)}}Lt(){if(this.It)return;const t=Object.keys(this.activities).join("");t===this.At?this.kt++:this.kt=1,this.At=t,this.kt>=3?this.Rt&&(this.setStatus("deadline_exceeded"),this.jt=qe[0],this.end()):this.Dt()}Dt(){setTimeout((()=>{this.Lt()}),this.$t)}}function Ue(t,n,e){if(!we(n))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setAttribute(Re,Number(t.sampled)),t;let r;return"function"==typeof n.tracesSampler?(r=n.tracesSampler(e),t.setAttribute(Re,Number(r))):void 0!==e.parentSampled?r=e.parentSampled:void 0!==n.tracesSampleRate?(r=n.tracesSampleRate,t.setAttribute(Re,Number(r))):(r=1,t.setAttribute(Re,r)),Be(r)&&r?(t.sampled=Math.random()<r,t.sampled,t):(t.sampled=!1,t)}function Be(t){return!(d(t)||"number"!=typeof t&&"boolean"!=typeof t)&&!(t<0||t>1)}function We(){const t=this.getScope().getSpan();return t?{"sentry-trace":jn(t)}:{}}function ze(t,n){const e=this.getClient(),r=e&&e.getOptions()||{};(r.instrumenter||"sentry")!==(t.instrumenter||"sentry")&&(t.sampled=!1);let i=new Ae(t,this);return i=Ue(i,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...n}),i.isRecording()&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),e&&e.emit&&e.emit("startTransaction",i),i}function Xe(t,n,e,r,i,s,o,c=!1){const u=t.getClient(),a=u&&u.getOptions()||{};let h=new He(n,t,e,r,o,i,c);return h=Ue(h,a,{name:n.name,parentSampled:n.parentSampled,transactionContext:n,attributes:{...n.data,...n.attributes},...s}),h.isRecording()&&h.initSpanRecorder(a._experiments&&a._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",h),h}function Ge(){const t=ue();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=ze),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=We),ge||(ge=!0,kt(ve),Ct(ve)))}function Je(t,n,e,r){const i=yn(e),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const o=function(t,n,e,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:L(r)},...i&&{trace:G({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return hn(o,[[{type:s},t]])}function Ke(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){return e={sentry_key:t.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}},Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");var e}function Ye(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.lt?n.lt.sdk:void 0;return e||`${function(t){return`${Ke(t)}${t.projectId}/envelope/`}(t)}?${Ve(t,r)}`}const Qe=[];function Ze(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;n.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(e)?[...n,...e]:"function"==typeof e?dt(e(n)):n;const i=function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.keys(n).map((t=>n[t]))}(r),s=function(t,n){for(let e=0;e<t.length;e++)if(!0===n(t[e]))return e;return-1}(i,(t=>"Debug"===t.name));if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}function tr(t,n){for(const e of n)e&&e.afterAllSetup&&e.afterAllSetup(t)}function nr(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===Qe.indexOf(n.name)&&(n.setupOnce($n,he),Qe.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),t.on&&"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",((n,r)=>e(n,r,t)))}if(t.addEventProcessor&&"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 er(t,n){return Object.assign((function(...t){return n(...t)}),{id:t})}function rr(t){return t.replace(/[^\w\-./]+/gi,"")}const ir=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function sr(t){return[...t].reduce(((t,n)=>t+function(t){for(const[n,e]of ir)if(t===n)return e;return t}(n)),"")}function or(t,n,e,r){const i={sent_at:(new Date).toISOString()};e&&e.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(i.dsn=L(n));const s=function(t){const n=function(t){let n="";for(const e of t){const t=Object.entries(e.tags),r=t.length>0?`|#${t.map((([t,n])=>`${t}:${n}`)).join(",")}`:"";n+=`${e.name}@${e.unit}:${e.metric}|${e.metricType}${r}|T${e.timestamp}\n`}return n}(t);return[{type:"statsd",length:n.length},n]}(t);return hn(i,)}function cr(t){return void 0===t.type}function ur(t){return"transaction"===t.type}const ar={c:class{constructor(t){this.v=t}get weight(){return 1}add(t){this.v+=t}toString(){return`${this.v}`}},g:class{constructor(t){this.Pt=t,this.qt=t,this.Ft=t,this.Ht=t,this.Ut=1}get weight(){return 5}add(t){this.Pt=t,t<this.qt&&(this.qt=t),t>this.Ft&&(this.Ft=t),this.Ht+=t,this.Ut++}toString(){return`${this.Pt}:${this.qt}:${this.Ft}:${this.Ht}:${this.Ut}`}},d:class{constructor(t){this.v=[t]}get weight(){return this.v.length}add(t){this.v.push(t)}toString(){return this.v.join(":")}},s:class{constructor(t){this.first=t,this.v=new Set([t])}get weight(){return this.v.size}add(t){this.v.add(t)}toString(){return Array.from(this.v).map((t=>"string"==typeof t?function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n&=n;return n>>>0}(t):t)).join(":")}}};function hr(t){const n=he().getStackTop();n.client=t,n.scope.setClient(t)}function fr(t,n,e=Gt(t.bufferSize||30)){let r={};function i(i){const s=[];if(dn(i,((n,e)=>{const i=vn(e);if(function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,i)){const r=dr(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(n)})),0===s.length)return Wt();const o=hn(i[0],s),c=n=>{dn(o,((e,r)=>{const i=dr(e,r);t.recordDroppedEvent(n,vn(r),i)}))};return e.add((()=>n({body:pn(o,t.textEncoder)}).then((t=>(r=bn(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof q)return c("queue_overflow"),Wt();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>e.drain(t)}}function dr(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}function lr(t){return[{type:"span"},t]}const pr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],mr=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],gr="InboundFilters",vr=(t={})=>({name:gr,setupOnce(){},processEvent(n,e,r){const i=r.getOptions(),s=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:pr],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[],...t.disableTransactionDefaults?[]:mr],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,i);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,n){if(t.type||!n||!n.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);let e;try{e=t.exception.values[t.exception.values.length-1]}catch(t){}e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`));return n}(t).some((t=>y(t,n)))}(t,n.ignoreErrors))return!0;if(function(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&y(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=br(t);return!!e&&y(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=br(t);return!e||y(e,n)}(t,n.allowUrls))return!0;return!1}(n,s)?null:n}}),yr=er(gr,vr);function br(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?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}(n):null}catch(t){return null}}let _r;const wr="FunctionToString",Sr=new WeakMap,Tr=()=>({name:wr,setupOnce(){_r=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=B(this),e=Sr.has(Bn())&&void 0!==n?n:this;return _r.apply(e,t)}}catch(t){}},setup(t){Sr.set(t,!0)}}),Er=er(wr,Tr),$r="LinkedErrors",xr=er($r,((t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:$r,setupOnce(){},preprocessEvent(t,r,i){const s=i.getOptions();b(_n,s.stackParser,s.maxValueLength,e,n,t,r)}}}));var kr=Object.freeze({__proto__:null,FunctionToString:Er,InboundFilters:yr,LinkedErrors:xr});class Ir{constructor(t){this.H=t,this.Bt=new Map,this.Wt=setInterval((()=>this.flush()),5e3)}add(t,n,e,r="none",i={},s=Qt()){const o=Math.floor(s),c=n.replace(/[^\w\-.]+/gi,"_");const u=function(t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[rr(e)]=sr(String(t[e])));return n}(i),a=function(t){return t.replace(/[^\w]+/gi,"_")}(r),h=function(t,n,e,r){return`${t}${n}${e}${Object.entries(G(r)).sort(((t,n)=>t[0].localeCompare(n[0])))}`}(t,c,a,u);let f=this.Bt.get(h);const d=f&&"s"===t?f.metric.weight:0;f?(f.metric.add(e),f.timestamp<o&&(f.timestamp=o)):(f={metric:new ar[t](e),timestamp:o,metricType:t,name:c,unit:a,tags:u},this.Bt.set(h,f));!function(t,n,e,r,i,s){const o=Te();if(o){const c=Oe(o)||new Map,u=`${t}:${n}@${r}`,a=c.get(s);if(a){const[,t]=a;c.set(s,[u,{min:Math.min(t.min,e),max:Math.max(t.max,e),count:t.count+=1,sum:t.sum+=e,tags:t.tags}])}else c.set(s,[u,{min:e,max:e,count:1,sum:e,tags:i}]);Ie||(Ie=new WeakMap),Ie.set(o,c)}}(t,c,"string"==typeof e?f.metric.weight-d:e,a,i,h)}flush(){if(0!==this.Bt.size){if(this.H.captureAggregateMetrics){const t=Array.from(this.Bt).map((([,t])=>t));this.H.captureAggregateMetrics(t)}this.Bt.clear()}}close(){clearInterval(this.Wt),this.flush()}}const Or="MetricsAggregator",Cr=()=>({name:Or,setupOnce(){},setup(t){t.metricsAggregator=new Ir(t)}});function jr(t,n,e,r={}){const i=Bn(),s=Wn();if(i){if(!i.metricsAggregator)return;const{unit:o,tags:c,timestamp:u}=r,{release:a,environment:h}=i.getOptions(),f=s.getTransaction(),d={};a&&(d.release=a),h&&(d.environment=h),f&&(d.transaction=Dn(f).description||""),i.metricsAggregator.add(t,n,e,o,{...d,...c},u)}}const Rr={increment:function(t,n=1,e){jr("c",t,n,e)},distribution:function(t,n,e){jr("d",t,n,e)},set:function(t,n,e){jr("s",t,n,e)},gauge:function(t,n,e){jr("g",t,n,e)},MetricsAggregator:er(Or,Cr),metricsAggregatorIntegration:Cr},Mr=kr,Dr=E;const Nr=(t,n,e)=>{let r,i;return s=>{n.value>=0&&(s||e)&&(i=n.value-(r||0),(i||void 0===r)&&(r=n.value,n.delta=i,t(n)))}},Lr=()=>Dr.__WEB_VITALS_POLYFILL__?Dr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=Dr.performance.timing,n=Dr.performance.navigation.type,e={entryType:"navigation",startTime:0,type:2==n?"back_forward":1===n?"reload":"navigate"};for(const n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e})()):Dr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ar=()=>{const t=Lr();return t&&t.activationStart||0},Pr=(t,n)=>{const e=Lr();let r="navigate";return e&&(r=Dr.document&&Dr.document.prerendering||Ar()>0?"prerender":e.type.replace(/_/g,"-")),{name:t,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},qr=(t,n,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{n(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},e||{})),r}}catch(t){}},Fr=(t,n)=>{const e=r=>{"pagehide"!==r.type&&"hidden"!==Dr.document.visibilityState||(t(r),n&&(removeEventListener("visibilitychange",e,!0),removeEventListener("pagehide",e,!0)))};Dr.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))};let Hr=-1;const Ur=()=>(Hr<0&&(Dr.document&&Dr.document.visibilityState&&(Hr="hidden"!==Dr.document.visibilityState||Dr.document.prerendering?1/0:0),Fr((({timeStamp:t})=>{Hr=t}),!0)),{get firstHiddenTime(){return Hr}});let Br=0,Wr=1/0,zr=0;const Xr=t=>{t.forEach((t=>{t.interactionId&&(Wr=Math.min(Wr,t.interactionId),zr=Math.max(zr,t.interactionId),Br=zr?(zr-Wr)/7+1:0)}))};let Gr;const Jr=()=>{"interactionCount"in performance||Gr||(Gr=qr("event",Xr,{type:"event",buffered:!0,durationThreshold:0}))},Kr=()=>Gr?Br:performance.interactionCount||0,Vr=[],Yr={},Qr=t=>{const n=Vr[Vr.length-1],e=Yr[t.interactionId];if(e||Vr.length<10||t.duration>n.latency){if(e)e.entries.push(t),e.latency=Math.max(e.latency,t.duration);else{const n={id:t.interactionId,latency:t.duration,entries:[t]};Yr[n.id]=n,Vr.push(n)}Vr.sort(((t,n)=>n.latency-t.latency)),Vr.splice(10).forEach((t=>{delete Yr[t.id]}))}},Zr=(t,n)=>{n=n||{},Jr();const e=Pr("INP");let r;const i=t=>{t.forEach((t=>{if(t.interactionId&&Qr(t),"first-input"===t.entryType){!Vr.some((n=>n.entries.some((n=>t.duration===n.duration&&t.startTime===n.startTime))))&&Qr(t)}}));const n=(()=>{const t=Math.min(Vr.length-1,Math.floor(Kr()/50));return Vr[t]})();n&&n.latency!==e.value&&(e.value=n.latency,e.entries=n.entries,r())},s=qr("event",i,{durationThreshold:n.durationThreshold||40});r=Nr(t,e,n.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Fr((()=>{i(s.takeRecords()),e.value<0&&Kr()>0&&(e.value=0,e.entries=[]),r(!0)})))},ti={},ni=t=>{Dr.document&&(Dr.document.prerendering?addEventListener("prerenderingchange",(()=>ni(t)),!0):"complete"!==Dr.document.readyState?addEventListener("load",(()=>ni(t)),!0):setTimeout(t,0))},ei={},ri={};let ii,si,oi,ci,ui;function ai(t,n){return vi(t,n),ri[t]||(!function(t){const n={};"event"===t&&(n.durationThreshold=0);qr(t,(n=>{hi(t,{entries:n})}),n)}(t),ri[t]=!0),yi(t,n)}function hi(t,n){const e=ei[t];if(e&&e.length)for(const t of e)try{t(n)}catch(t){}}function fi(){return((t,n={})=>{const e=Pr("CLS",0);let r,i=0,s=[];const o=t=>{t.forEach((t=>{if(!t.hadRecentInput){const n=s[0],o=s[s.length-1];i&&0!==s.length&&t.startTime-o.startTime<1e3&&t.startTime-n.startTime<5e3?(i+=t.value,s.push(t)):(i=t.value,s=[t]),i>e.value&&(e.value=i,e.entries=s,r&&r())}}))},c=qr("layout-shift",o);if(c){r=Nr(t,e,n.reportAllChanges);const i=()=>{o(c.takeRecords()),r(!0)};return Fr(i),i}})((t=>{hi("cls",{metric:t}),ii=t}),{reportAllChanges:!0})}function di(){return(t=>{const n=Ur(),e=Pr("FID");let r;const i=t=>{t.startTime<n.firstHiddenTime&&(e.value=t.processingStart-t.startTime,e.entries.push(t),r(!0))},s=t=>{t.forEach(i)},o=qr("first-input",s);r=Nr(t,e),o&&Fr((()=>{s(o.takeRecords()),o.disconnect()}),!0)})((t=>{hi("fid",{metric:t}),si=t}))}function li(){return(t=>{const n=Ur(),e=Pr("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-Ar(),0);t<n.firstHiddenTime&&(e.value=t,e.entries=,r())}},s=qr("largest-contentful-paint",i);if(s){r=Nr(t,e);const n=()=>{ti[e.id]||(i(s.takeRecords()),s.disconnect(),ti[e.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{Dr.document&&addEventListener(t,n,{once:!0,capture:!0})})),Fr(n,!0),n}})((t=>{hi("lcp",{metric:t}),oi=t}))}function pi(){return((t,n)=>{n=n||{};const e=Pr("TTFB"),r=Nr(t,e,n.reportAllChanges);ni((()=>{const t=Lr();if(t){if(e.value=Math.max(t.responseStart-Ar(),0),e.value<0||e.value>performance.now())return;e.entries=[t],r(!0)}}))})((t=>{hi("ttfb",{metric:t}),ci=t}))}function mi(){return Zr((t=>{hi("inp",{metric:t}),ui=t}))}function gi(t,n,e,r,i=!1){let s;return vi(t,n),ri[t]||(s=e(),ri[t]=!0),r&&n({metric:r}),yi(t,n,i?s:void 0)}function vi(t,n){ei[t]=ei[t]||[],ei[t].push(n)}function yi(t,n,e){return()=>{e&&e();const r=ei[t];if(!r)return;const i=r.indexOf(n);-1!==i&&r.splice(i,1)}}function bi(t){return"number"==typeof t&&isFinite(t)}function _i(t,{startTimestamp:n,...e}){return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...e})}function wi(t){return t/1e3}function Si(){return Dr&&Dr.addEventListener&&Dr.performance}let Ti,Ei,$i=0,xi={};function ki(){const t=Si();if(t&&Zt){t.mark&&Dr.performance.mark("sentry-tracing-init");const n=gi("fid",(({metric:t})=>{const n=t.entries[t.entries.length-1];if(!n)return;const e=wi(Zt),r=wi(n.startTime);xi.fid={value:t.value,unit:"millisecond"},xi["mark.fid"]={value:e+r,unit:"second"}}),di,si),e=function(t,n=!1){return gi("cls",t,fi,ii,n)}((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(xi.cls={value:t.value,unit:""},Ei=n)}),!0),r=function(t,n=!1){return gi("lcp",t,li,oi,n)}((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(xi.lcp={value:t.value,unit:"millisecond"},Ti=n)}),!0),i=function(t){return gi("ttfb",t,pi,ci)}((({metric:t})=>{t.entries[t.entries.length-1]&&(xi.ttfb={value:t.value,unit:"millisecond"})}));return()=>{n(),e(),r(),i()}}return()=>{}}function Ii(t,n){if(Si()&&Zt){const e=function(t,n){return e=({metric:e})=>{if(void 0===e.value)return;const r=e.entries.find((t=>t.duration===e.value&&void 0!==Oi[t.name])),i=Bn();if(!r||!i)return;const s=Oi[r.name],o=i.getOptions(),c=wi(Zt+r.startTime),u=wi(e.value),a=void 0!==r.interactionId?t[r.interactionId]:void 0;if(void 0===a)return;const{routeName:h,parentContext:f,activeTransaction:d,user:l,replayId:p}=a,m=void 0!==l?l.email||l.id||l.ip_address:void 0,g=void 0!==d?d.getProfileId():void 0,v=new Le({startTimestamp:c,endTimestamp:c+u,op:`ui.interaction.${s}`,name:I(r.target),attributes:{release:o.release,environment:o.environment,transaction:h,...void 0!==m&&""!==m?{user:m}:{},...void 0!==g?{profile_id:g}:{},...void 0!==p?{replay_id:p}:{}},exclusiveTime:e.value,measurements:{inp:{value:e.value,unit:"millisecond"}}}),y=function(t,n,e){if(!we(n))return!1;let r;return r=void 0!==t&&"function"==typeof n.tracesSampler?n.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:Dr.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==n.tracesSampleRate?n.tracesSampleRate:1,!!Be(r)&&(!0===r?e:!1===r?0:r*e)}(f,o,n);if(y&&Math.random()<y){const t=v?function(t,n){const e={sent_at:(new Date).toISOString()};return n&&(e.dsn=L(n)),hn(e,t.map(lr))}([v],i.getDsn()):void 0,n=i&&i.getTransport();n&&t&&n.send(t).then(null,(t=>{}))}},gi("inp",e,mi,ui);var e}(t,n);return()=>{e()}}return()=>{}}const Oi={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Ci(t){const n=Si();if(!n||!Dr.performance.getEntries||!Zt)return;const e=wi(Zt),r=n.getEntries(),{op:i,start_timestamp:s}=Dn(t);if(r.slice($i).forEach((n=>{const r=wi(n.startTime),i=wi(n.duration);if(!("navigation"===t.op&&s&&e+r<s))switch(n.entryType){case"navigation":!function(t,n,e){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{ji(t,n,r,e)})),ji(t,n,"secureConnection",e,"TLS/SSL","connectEnd"),ji(t,n,"fetch",e,"cache","domainLookupStart"),ji(t,n,"domainLookup",e,"DNS"),function(t,n,e){n.responseEnd&&(_i(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:e+wi(n.requestStart),endTimestamp:e+wi(n.responseEnd)}),_i(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:e+wi(n.responseStart),endTimestamp:e+wi(n.responseEnd)}))}(t,n,e)}(t,n,e);break;case"mark":case"paint":case"measure":{!function(t,n,e,r,i){const s=i+e,o=s+r;_i(t,{description:n.name,endTimestamp:o,op:n.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(t,n,r,i,e);const s=Ur(),o=n.startTime<s.firstHiddenTime;"first-paint"===n.name&&o&&(xi.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&o&&(xi.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":!function(t,n,e,r,i,s){if("xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType)return;const o=Jt(e),c={};Ri(c,n,"transferSize","http.response_transfer_size"),Ri(c,n,"encodedBodySize","http.response_content_length"),Ri(c,n,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in n&&(c["resource.render_blocking_status"]=n.renderBlockingStatus);o.protocol&&(c["url.scheme"]=o.protocol.split(":").pop());o.host&&(c["server.address"]=o.host);c["url.same_origin"]=e.includes(Dr.location.origin)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|M男之家

GMT+8, 2026-11-11 15:39 , Processed in 0.047472 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表