@sentry/browser 6.19.2 → 6.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle.debug.min.js +3 -0
- package/build/bundle.debug.min.js.map +1 -0
- package/build/bundle.es6.debug.min.js +3 -0
- package/build/bundle.es6.debug.min.js.map +1 -0
- package/{bundles → build}/bundle.es6.js +476 -270
- package/build/bundle.es6.js.map +1 -0
- package/build/bundle.es6.min.js +3 -0
- package/build/bundle.es6.min.js.map +1 -0
- package/{bundles → build}/bundle.js +486 -289
- package/build/bundle.js.map +1 -0
- package/build/bundle.min.js +3 -0
- package/build/bundle.min.js.map +1 -0
- package/dist/backend.d.ts.map +1 -1
- package/dist/backend.js +8 -0
- package/dist/backend.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -1
- package/dist/client.js.map +1 -1
- package/dist/eventbuilder.d.ts.map +1 -1
- package/dist/eventbuilder.js.map +1 -1
- package/dist/exports.d.ts.map +1 -1
- package/dist/exports.js.map +1 -1
- package/dist/flags.d.ts +3 -0
- package/dist/flags.d.ts.map +1 -0
- package/dist/flags.js +17 -0
- package/dist/flags.js.map +1 -0
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +3 -2
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/breadcrumbs.d.ts.map +1 -1
- package/dist/integrations/breadcrumbs.js.map +1 -1
- package/dist/integrations/dedupe.d.ts.map +1 -1
- package/dist/integrations/dedupe.js +2 -1
- package/dist/integrations/dedupe.js.map +1 -1
- package/dist/integrations/globalhandlers.d.ts.map +1 -1
- package/dist/integrations/globalhandlers.js +2 -1
- package/dist/integrations/globalhandlers.js.map +1 -1
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/linkederrors.d.ts.map +1 -1
- package/dist/integrations/linkederrors.js.map +1 -1
- package/dist/integrations/trycatch.d.ts.map +1 -1
- package/dist/integrations/trycatch.js.map +1 -1
- package/dist/integrations/useragent.d.ts.map +1 -1
- package/dist/integrations/useragent.js.map +1 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +4 -3
- package/dist/sdk.js.map +1 -1
- package/dist/stack-parsers.d.ts.map +1 -1
- package/dist/stack-parsers.js.map +1 -1
- package/dist/transports/base.d.ts.map +1 -1
- package/dist/transports/base.js +7 -6
- package/dist/transports/base.js.map +1 -1
- package/dist/transports/fetch.d.ts.map +1 -1
- package/dist/transports/fetch.js.map +1 -1
- package/dist/transports/index.d.ts +2 -0
- package/dist/transports/index.d.ts.map +1 -1
- package/dist/transports/index.js +4 -0
- package/dist/transports/index.js.map +1 -1
- package/dist/transports/new-fetch.d.ts +10 -0
- package/dist/transports/new-fetch.d.ts.map +1 -0
- package/dist/transports/new-fetch.js +27 -0
- package/dist/transports/new-fetch.js.map +1 -0
- package/dist/transports/new-xhr.d.ts +11 -0
- package/dist/transports/new-xhr.d.ts.map +1 -0
- package/dist/transports/new-xhr.js +46 -0
- package/dist/transports/new-xhr.js.map +1 -0
- package/dist/transports/utils.d.ts.map +1 -1
- package/dist/transports/utils.js +2 -1
- package/dist/transports/utils.js.map +1 -1
- package/dist/transports/xhr.d.ts.map +1 -1
- package/dist/transports/xhr.js.map +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js.map +1 -1
- package/esm/backend.d.ts.map +1 -1
- package/esm/backend.js +10 -2
- package/esm/backend.js.map +1 -1
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +3 -2
- package/esm/client.js.map +1 -1
- package/esm/eventbuilder.d.ts.map +1 -1
- package/esm/eventbuilder.js.map +1 -1
- package/esm/exports.d.ts.map +1 -1
- package/esm/exports.js.map +1 -1
- package/esm/flags.d.ts +3 -0
- package/esm/flags.d.ts.map +1 -0
- package/esm/flags.js +16 -0
- package/esm/flags.js.map +1 -0
- package/esm/helpers.d.ts.map +1 -1
- package/esm/helpers.js +4 -3
- package/esm/helpers.js.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/integrations/breadcrumbs.d.ts.map +1 -1
- package/esm/integrations/breadcrumbs.js.map +1 -1
- package/esm/integrations/dedupe.d.ts.map +1 -1
- package/esm/integrations/dedupe.js +3 -2
- package/esm/integrations/dedupe.js.map +1 -1
- package/esm/integrations/globalhandlers.d.ts.map +1 -1
- package/esm/integrations/globalhandlers.js +3 -2
- package/esm/integrations/globalhandlers.js.map +1 -1
- package/esm/integrations/index.d.ts.map +1 -1
- package/esm/integrations/index.js.map +1 -1
- package/esm/integrations/linkederrors.d.ts.map +1 -1
- package/esm/integrations/linkederrors.js.map +1 -1
- package/esm/integrations/trycatch.d.ts.map +1 -1
- package/esm/integrations/trycatch.js.map +1 -1
- package/esm/integrations/useragent.d.ts.map +1 -1
- package/esm/integrations/useragent.js.map +1 -1
- package/esm/sdk.d.ts.map +1 -1
- package/esm/sdk.js +5 -4
- package/esm/sdk.js.map +1 -1
- package/esm/stack-parsers.d.ts.map +1 -1
- package/esm/stack-parsers.js.map +1 -1
- package/esm/transports/base.d.ts.map +1 -1
- package/esm/transports/base.js +8 -7
- package/esm/transports/base.js.map +1 -1
- package/esm/transports/fetch.d.ts.map +1 -1
- package/esm/transports/fetch.js.map +1 -1
- package/esm/transports/index.d.ts +2 -0
- package/esm/transports/index.d.ts.map +1 -1
- package/esm/transports/index.js +2 -0
- package/esm/transports/index.js.map +1 -1
- package/esm/transports/new-fetch.d.ts +10 -0
- package/esm/transports/new-fetch.d.ts.map +1 -0
- package/esm/transports/new-fetch.js +25 -0
- package/esm/transports/new-fetch.js.map +1 -0
- package/esm/transports/new-xhr.d.ts +11 -0
- package/esm/transports/new-xhr.d.ts.map +1 -0
- package/esm/transports/new-xhr.js +44 -0
- package/esm/transports/new-xhr.js.map +1 -0
- package/esm/transports/utils.d.ts.map +1 -1
- package/esm/transports/utils.js +3 -2
- package/esm/transports/utils.js.map +1 -1
- package/esm/transports/xhr.d.ts.map +1 -1
- package/esm/transports/xhr.js.map +1 -1
- package/esm/version.d.ts.map +1 -1
- package/esm/version.js.map +1 -1
- package/package.json +6 -45
- package/types/backend.d.ts.map +1 -1
- package/types/client.d.ts.map +1 -1
- package/types/eventbuilder.d.ts.map +1 -1
- package/types/exports.d.ts.map +1 -1
- package/types/flags.d.ts +3 -0
- package/types/flags.d.ts.map +1 -0
- package/types/helpers.d.ts.map +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/integrations/breadcrumbs.d.ts.map +1 -1
- package/types/integrations/dedupe.d.ts.map +1 -1
- package/types/integrations/globalhandlers.d.ts.map +1 -1
- package/types/integrations/index.d.ts.map +1 -1
- package/types/integrations/linkederrors.d.ts.map +1 -1
- package/types/integrations/trycatch.d.ts.map +1 -1
- package/types/integrations/useragent.d.ts.map +1 -1
- package/types/sdk.d.ts.map +1 -1
- package/types/stack-parsers.d.ts.map +1 -1
- package/types/transports/base.d.ts.map +1 -1
- package/types/transports/fetch.d.ts.map +1 -1
- package/types/transports/index.d.ts +2 -0
- package/types/transports/index.d.ts.map +1 -1
- package/types/transports/new-fetch.d.ts +10 -0
- package/types/transports/new-fetch.d.ts.map +1 -0
- package/types/transports/new-xhr.d.ts +11 -0
- package/types/transports/new-xhr.d.ts.map +1 -0
- package/types/transports/utils.d.ts.map +1 -1
- package/types/transports/xhr.d.ts.map +1 -1
- package/types/version.d.ts.map +1 -1
- package/bundles/bundle.debug.min.js +0 -3
- package/bundles/bundle.debug.min.js.map +0 -1
- package/bundles/bundle.es6.debug.min.js +0 -3
- package/bundles/bundle.es6.debug.min.js.map +0 -1
- package/bundles/bundle.es6.js.map +0 -1
- package/bundles/bundle.es6.min.js +0 -3
- package/bundles/bundle.es6.min.js.map +0 -1
- package/bundles/bundle.js.map +0 -1
- package/bundles/bundle.min.js +0 -3
- package/bundles/bundle.min.js.map +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! @sentry/browser 6.19.2 (f49c509) | https://github.com/getsentry/sentry-javascript */
|
|
2
|
-
var Sentry=function(t){var n;t.Severity=void 0,(n=t.Severity||(t.Severity={})).Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical";const e={};function r(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:e}const i=Object.prototype.toString;function s(t){switch(i.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(t,Error)}}function o(t,n){return i.call(t)===`[object ${n}]`}function c(t){return o(t,"ErrorEvent")}function u(t){return o(t,"DOMError")}function a(t){return o(t,"String")}function h(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function f(t){return o(t,"Object")}function l(t){return"undefined"!=typeof Event&&b(t,Event)}function d(t){return"undefined"!=typeof Element&&b(t,Element)}function p(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function b(t,n){try{return t instanceof n}catch(t){return!1}}function y(t,n){try{let e=t;const r=5,i=80,s=[];let o=0,c=0;const u=" > ",a=u.length;let h;for(;e&&o++<r&&(h=v(e,n),!("html"===h||o>1&&c+s.length*a+h.length>=i));)s.push(h),c+=h.length,e=e.parentNode;return s.reverse().join(u)}catch(t){return"<unknown>"}}function v(t,n){const e=t,r=[];let i,s,o,c,u;if(!e||!e.tagName)return"";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&&a(i))for(s=i.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const f=["type","name","title","alt"];for(u=0;u<f.length;u++)o=f[u],c=e.getAttribute(o),c&&r.push(`[${o}="${c}"]`);return r.join("")}const m=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(const e in n)Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n[e]);return t});class g extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,m(this,new.target.prototype)}}const j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function O(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 w(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function E(t){const n="string"==typeof t?function(t){const n=j.exec(t);if(!n)throw new g(`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 w({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):w(t);return function(t){const{port:n,projectId:e,protocol:r}=t;if(["protocol","publicKey","host","projectId"].forEach((n=>{if(!t[n])throw new g(`Invalid Sentry Dsn: ${n} missing`)})),!e.match(/^\d+$/))throw new g(`Invalid Sentry Dsn: Invalid projectId ${e}`);if(!function(t){return"http"===t||"https"===t}(r))throw new g(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(n&&isNaN(parseInt(n,10)))throw new g(`Invalid Sentry Dsn: Invalid port ${n}`)}(n),n}const x=["fatal","error","warning","log","info","debug","critical"],$=r(),_="Sentry Logger ",S=["debug","info","warn","error","log","assert"];function k(t){const n=r();if(!("console"in n))return t();const e=n.console,i={};S.forEach((t=>{t in n.console&&e[t].__sentry_original__&&(i[t]=e[t],e[t]=e[t].__sentry_original__)}));const s=t();return Object.keys(i).forEach((t=>{e[t]=i[t]})),s}const T=$.__SENTRY__||{},D=T.logger||new class{constructor(){this.t=!1}disable(){this.t=!1}enable(){this.t=!0}log(...t){this.t&&k((()=>{$.console.log(`${_}[Log]:`,...t)}))}warn(...t){this.t&&k((()=>{$.console.warn(`${_}[Warn]:`,...t)}))}error(...t){this.t&&k((()=>{$.console.error(`${_}[Error]:`,...t)}))}};function R(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.substr(0,n)}...`}function I(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function N(t,n){return!!a(t)&&(o(n,"RegExp")?n.test(t):"string"==typeof n&&-1!==t.indexOf(n))}function M(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);if("function"==typeof i)try{q(i,r)}catch(t){}t[n]=i}function C(t,n,e){Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}function q(t,n){const e=n.prototype||{};t.prototype=n.prototype=e,C(t,"__sentry_original__",n)}function L(t){return t.__sentry_original__}function U(t){if(s(t)){const n=t,e={message:n.message,name:n.name,stack:n.stack};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}if(l(t)){const n=t,e={};e.type=n.type;try{e.target=d(n.target)?y(n.target):Object.prototype.toString.call(n.target)}catch(t){e.target="<unknown>"}try{e.currentTarget=d(n.currentTarget)?y(n.currentTarget):Object.prototype.toString.call(n.currentTarget)}catch(t){e.currentTarget="<unknown>"}"undefined"!=typeof CustomEvent&&b(t,CustomEvent)&&(e.detail=n.detail);for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}return t}function A(t,n=40){const e=Object.keys(U(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return R(e[0],n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:R(r,n)}return""}function F(t){if(f(t)){const n=t,e={};for(const t of Object.keys(n))void 0!==n[t]&&(e[t]=F(n[t]));return e}return Array.isArray(t)?t.map(F):t}T.logger=D,$.__SENTRY__=T;function B(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0)=>{const r=[];for(const i of t.split("\n").slice(e))for(const t of n){const n=t(i);if(n){r.push(n);break}}return function(t){if(!t.length)return[];let n=t;const e=n[0].function||"",r=n[n.length-1].function||"";-1===e.indexOf("captureMessage")&&-1===e.indexOf("captureException")||(n=n.slice(1));-1!==r.indexOf("sentryWrapped")&&(n=n.slice(0,-1));return n.slice(0,50).map((t=>Object.assign(Object.assign({},t),{filename:t.filename||n[0].filename,function:t.function||"?"}))).reverse()}(r)}}const H="<anonymous>";function P(t){try{return t&&"function"==typeof t&&t.name||H}catch(t){return H}}function X(){if(!("fetch"in r()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function z(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function J(){if(!X())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}const W=r(),K={},G={};function V(t){if(!G[t])switch(G[t]=!0,t){case"console":!function(){if(!("console"in W))return;S.forEach((function(t){t in W.console&&M(W.console,t,(function(n){return function(...e){Y("console",{args:e,level:t}),n&&n.apply(W.console,e)}}))}))}();break;case"dom":!function(){if(!("document"in W))return;const t=Y.bind(null,"dom"),n=it(t,!0);W.document.addEventListener("click",n,!1),W.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=W[n]&&W[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(M(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=it(t);o.handler=r,n.call(this,e,r,i)}o.refCount+=1}catch(t){}return n.call(this,e,r,i)}})),M(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-=1,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)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in W))return;const t=XMLHttpRequest.prototype;M(t,"open",(function(t){return function(...n){const e=this,r=n[1],i=e.__sentry_xhr__={method:a(n[0])?n[0].toUpperCase():n[0],url:n[1]};a(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const s=function(){if(4===e.readyState){try{i.status_code=e.status}catch(t){}Y("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:e})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?M(e,"onreadystatechange",(function(t){return function(...n){return s(),t.apply(e,n)}})):e.addEventListener("readystatechange",s),t.apply(e,n)}})),M(t,"send",(function(t){return function(...n){return this.__sentry_xhr__&&void 0!==n[0]&&(this.__sentry_xhr__.body=n[0]),Y("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}();break;case"fetch":!function(){if(!function(){if(!X())return!1;const t=r();if(z(t.fetch))return!0;let n=!1;const e=t.document;if(e&&"function"==typeof e.createElement)try{const t=e.createElement("iframe");t.hidden=!0,e.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(n=z(t.contentWindow.fetch)),e.head.removeChild(t)}catch(t){D.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n}())return;M(W,"fetch",(function(t){return function(...n){const e={args:n,fetchData:{method:Z(n),url:tt(n)},startTimestamp:Date.now()};return Y("fetch",Object.assign({},e)),t.apply(W,n).then((t=>(Y("fetch",Object.assign(Object.assign({},e),{endTimestamp:Date.now(),response:t})),t)),(t=>{throw Y("fetch",Object.assign(Object.assign({},e),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!function(){const t=r(),n=t.chrome,e=n&&n.app&&n.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&i}())return;const t=W.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=nt,n=String(e);nt=n,Y("history",{from:t,to:n})}return t.apply(this,n)}}W.onpopstate=function(...n){const e=W.location.href,r=nt;if(nt=e,Y("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},M(W.history,"pushState",n),M(W.history,"replaceState",n)}();break;case"error":st=W.onerror,W.onerror=function(t,n,e,r,i){return Y("error",{column:r,error:i,line:e,msg:t,url:n}),!!st&&st.apply(this,arguments)};break;case"unhandledrejection":ot=W.onunhandledrejection,W.onunhandledrejection=function(t){return Y("unhandledrejection",t),!ot||ot.apply(this,arguments)};break;default:return void D.warn("unknown instrumentation type:",t)}}function Q(t,n){K[t]=K[t]||[],K[t].push(n),V(t)}function Y(t,n){if(t&&K[t])for(const e of K[t]||[])try{e(n)}catch(n){D.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${P(e)}\nError:`,n)}}function Z(t=[]){return"Request"in W&&b(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function tt(t=[]){return"string"==typeof t[0]?t[0]:"Request"in W&&b(t[0],Request)?t[0].url:String(t[0])}let nt;let et,rt;function it(t,n=!1){return e=>{if(!e||rt===e)return;if(function(t){if("keypress"!==t.type)return!1;try{const n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(e))return;const r="keypress"===e.type?"input":e.type;(void 0===et||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(rt,e))&&(t({event:e,name:r,global:n}),rt=e),clearTimeout(et),et=W.setTimeout((()=>{et=void 0}),1e3)}}let st=null;let ot=null;function ct(){const t=r(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){const t=new Uint16Array(8);n.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=t=>{let n=t.toString(16);for(;n.length<4;)n=`0${n}`;return n};return e(t[0])+e(t[1])+e(t[2])+e(t[3])+e(t[4])+e(t[5])+e(t[6])+e(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)}))}function ut(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],relative:n[5]+e+r}}function at(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ht(t){const{message:n,event_id:e}=t;if(n)return n;const r=at(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function ft(t,n,e){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=n||""),s.type||(s.type=e||"Error")}function lt(t,n){const e=at(t);if(!e)return;const r=e.mechanism;if(e.mechanism=Object.assign(Object.assign(Object.assign({},{type:"generic",handled:!0}),r),n),n&&"data"in n){const t=Object.assign(Object.assign({},r&&r.data),n.data);e.mechanism.data=t}}function dt(t){if(t&&t.__sentry_captured__)return!0;try{C(t,"__sentry_captured__",!0)}catch(t){}return!1}function pt(t,n=1/0,e=1/0){try{return yt("",t,n,e)}catch(t){return"**non-serializable**"}}function bt(t,n=3,e=102400){const r=pt(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?bt(t,n-1,e):r;var i}function yt(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(0===e)return function(t){if("string"==typeof t)return t;const n=Object.prototype.toString.call(t);if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";const e=vt(t);return h(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();const c=vt(n,t);if(h(c))return c;const u=U(n),a=Array.isArray(n)?[]:{};if(s(n))return"[Circular ~]";let f=0;for(const t in u){if(!Object.prototype.hasOwnProperty.call(u,t))continue;if(f>=r){a[t]="[MaxProperties ~]";break}f+=1;const n=u[t];a[t]=yt(t,n,e-1,r,i)}return o(n),a}function vt(t,n){return"domain"===n&&t&&"object"==typeof t&&t.i?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":f(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${P(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:t;var e}function mt(t){return new jt((n=>{n(t)}))}function gt(t){return new jt(((n,e)=>{e(t)}))}class jt{constructor(t){this.o=0,this.u=[],this.h=t=>{this.l(1,t)},this.p=t=>{this.l(2,t)},this.l=(t,n)=>{0===this.o&&(p(n)?n.then(this.h,this.p):(this.o=t,this.v=n,this.m()))},this.m=()=>{if(0===this.o)return;const t=this.u.slice();this.u=[],t.forEach((t=>{t[0]||(1===this.o&&t[1](this.v),2===this.o&&t[2](this.v),t[0]=!0)}))};try{t(this.h,this.p)}catch(t){this.p(t)}}then(t,n){return new jt(((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.m()}))}catch(t){return this.then((t=>t),t)}finally(t){return new jt(((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)}))}))}}function Ot(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 gt(new g("Not adding Promise due to buffer limit 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 jt(((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{mt(t).then((()=>{--i||(clearTimeout(s),e(!0))}),r)}))}))}}}function wt(n){return"warn"===n?t.Severity.Warning:function(t){return-1!==x.indexOf(t)}(n)?n:t.Severity.Log}const Et={nowSeconds:()=>Date.now()/1e3};const xt=function(){const{performance:t}=r();if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),$t=void 0===xt?Et:{nowSeconds:()=>(xt.timeOrigin+xt.now())/1e3},_t=Et.nowSeconds.bind(Et),St=$t.nowSeconds.bind($t);function kt(t,n=[]){return[t,n]}function Tt(t){const[n,e]=t,r=JSON.stringify(n);return e.reduce(((t,n)=>{const[e,r]=n,i=h(r)?String(r):JSON.stringify(r);return`${t}\n${JSON.stringify(e)}\n${i}`}),r)}(()=>{const{performance:t}=r();if(!t||!t.now)return;const n=36e5,e=t.now(),i=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+e-i):n,o=s<n,c=t.timing&&t.timing.navigationStart,u="number"==typeof c?Math.abs(c+e-i):n;(o||u<n)&&(s<=u&&t.timeOrigin)})();function Dt(t,n){return t[n]||t.all||0}function Rt(t,n,e=Date.now()){const r=Object.assign({},t),i=n["x-sentry-rate-limits"],s=n["retry-after"];if(i)for(const t of i.trim().split(",")){const n=t.split(":",2),i=parseInt(n[0],10),s=1e3*(isNaN(i)?60:i);if(n[1])for(const t of n[1].split(";"))r[t]=e+s;else r.all=e+s}else s&&(r.all=e+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,e));return r}class It{constructor(){this.g=!1,this.j=[],this.O=[],this._=[],this.S={},this.k={},this.T={},this.D={},this.R={}}static clone(t){const n=new It;return t&&(n._=[...t._],n.k=Object.assign({},t.k),n.T=Object.assign({},t.T),n.D=Object.assign({},t.D),n.S=t.S,n.I=t.I,n.N=t.N,n.M=t.M,n.C=t.C,n.q=t.q,n.O=[...t.O],n.L=t.L),n}addScopeListener(t){this.j.push(t)}addEventProcessor(t){return this.O.push(t),this}setUser(t){return this.S=t||{},this.M&&this.M.update({user:t}),this.U(),this}getUser(){return this.S}getRequestSession(){return this.L}setRequestSession(t){return this.L=t,this}setTags(t){return this.k=Object.assign(Object.assign({},this.k),t),this.U(),this}setTag(t,n){return this.k=Object.assign(Object.assign({},this.k),{[t]:n}),this.U(),this}setExtras(t){return this.T=Object.assign(Object.assign({},this.T),t),this.U(),this}setExtra(t,n){return this.T=Object.assign(Object.assign({},this.T),{[t]:n}),this.U(),this}setFingerprint(t){return this.q=t,this.U(),this}setLevel(t){return this.I=t,this.U(),this}setTransactionName(t){return this.C=t,this.U(),this}setTransaction(t){return this.setTransactionName(t)}setContext(t,n){return null===n?delete this.D[t]:this.D=Object.assign(Object.assign({},this.D),{[t]:n}),this.U(),this}setSpan(t){return this.N=t,this.U(),this}getSpan(){return this.N}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.M=t:delete this.M,this.U(),this}getSession(){return this.M}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof It?n:this}return t instanceof It?(this.k=Object.assign(Object.assign({},this.k),t.k),this.T=Object.assign(Object.assign({},this.T),t.T),this.D=Object.assign(Object.assign({},this.D),t.D),t.S&&Object.keys(t.S).length&&(this.S=t.S),t.I&&(this.I=t.I),t.q&&(this.q=t.q),t.L&&(this.L=t.L)):f(t)&&(t=t,this.k=Object.assign(Object.assign({},this.k),t.tags),this.T=Object.assign(Object.assign({},this.T),t.extra),this.D=Object.assign(Object.assign({},this.D),t.contexts),t.user&&(this.S=t.user),t.level&&(this.I=t.level),t.fingerprint&&(this.q=t.fingerprint),t.requestSession&&(this.L=t.requestSession)),this}clear(){return this._=[],this.k={},this.T={},this.S={},this.D={},this.I=void 0,this.C=void 0,this.q=void 0,this.L=void 0,this.N=void 0,this.M=void 0,this.U(),this}addBreadcrumb(t,n){const e="number"==typeof n?Math.min(n,100):100;if(e<=0)return this;const r=Object.assign({timestamp:_t()},t);return this._=[...this._,r].slice(-e),this.U(),this}clearBreadcrumbs(){return this._=[],this.U(),this}applyToEvent(t,n){if(this.T&&Object.keys(this.T).length&&(t.extra=Object.assign(Object.assign({},this.T),t.extra)),this.k&&Object.keys(this.k).length&&(t.tags=Object.assign(Object.assign({},this.k),t.tags)),this.S&&Object.keys(this.S).length&&(t.user=Object.assign(Object.assign({},this.S),t.user)),this.D&&Object.keys(this.D).length&&(t.contexts=Object.assign(Object.assign({},this.D),t.contexts)),this.I&&(t.level=this.I),this.C&&(t.transaction=this.C),this.N){t.contexts=Object.assign({trace:this.N.getTraceContext()},t.contexts);const n=this.N.transaction&&this.N.transaction.name;n&&(t.tags=Object.assign({transaction:n},t.tags))}return this.A(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.R,this.F([...Nt(),...this.O],t,n)}setSDKProcessingMetadata(t){return this.R=Object.assign(Object.assign({},this.R),t),this}F(t,n,e,r=0){return new jt(((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o(Object.assign({},n),e);p(c)?c.then((n=>this.F(t,n,e,r+1).then(i))).then(null,s):this.F(t,c,e,r+1).then(i).then(null,s)}}))}U(){this.g||(this.g=!0,this.j.forEach((t=>{t(this)})),this.g=!1)}A(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.q&&(t.fingerprint=t.fingerprint.concat(this.q)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Nt(){const t=r();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Mt(t){Nt().push(t)}class Ct{constructor(t){this.errors=0,this.sid=ct(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;const n=St();this.timestamp=n,this.started=n,t&&this.update(t)}update(t={}){if(t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||St(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:ct()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=`${t.did}`),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{const t=this.timestamp-this.started;this.duration=t>=0?t:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)}close(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()}toJSON(){return F({sid:`${this.sid}`,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?`${this.did}`:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})}}const qt=100;class Lt{constructor(t,n=new It,e=4){this.B=e,this.H=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}isOlderThan(t){return this.B<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=It.clone(this.getScope());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();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.H}getStackTop(){return this.H[this.H.length-1]}captureException(t,n){const e=this.P=n&&n.event_id?n.event_id:ct();let r=n;if(!n){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}r={originalException:t,syntheticException:n}}return this.X("captureException",t,Object.assign(Object.assign({},r),{event_id:e})),e}captureMessage(t,n,e){const r=this.P=e&&e.event_id?e.event_id:ct();let i=e;if(!e){let n;try{throw new Error(t)}catch(t){n=t}i={originalException:t,syntheticException:n}}return this.X("captureMessage",t,n,Object.assign(Object.assign({},i),{event_id:r})),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:ct();return"transaction"!==t.type&&(this.P=e),this.X("captureEvent",t,Object.assign(Object.assign({},n),{event_id:e})),e}lastEventId(){return this.P}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!e||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=qt}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o=_t(),c=Object.assign({timestamp:o},t),u=i?k((()=>i(c,n))):c;null!==u&&e.addBreadcrumb(u,s)}setUser(t){const n=this.getScope();n&&n.setUser(t)}setTags(t){const n=this.getScope();n&&n.setTags(t)}setExtras(t){const n=this.getScope();n&&n.setExtras(t)}setTag(t,n){const e=this.getScope();e&&e.setTag(t,n)}setExtra(t,n){const e=this.getScope();e&&e.setExtra(t,n)}setContext(t,n){const e=this.getScope();e&&e.setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();n&&e&&t(n)}run(t){const n=At(this);try{t(this)}finally{At(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return D.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startSpan(t){return this.J("startSpan",t)}startTransaction(t,n){return this.J("startTransaction",t,n)}traceHeaders(){return this.J("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.W()}endSession(){const t=this.getStackTop(),n=t&&t.scope,e=n&&n.getSession();e&&e.close(),this.W(),n&&n.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:i,environment:s}=e&&e.getOptions()||{},o=r(),{userAgent:c}=o.navigator||{},u=new Ct(Object.assign(Object.assign(Object.assign({release:i,environment:s},n&&{user:n.getUser()}),c&&{userAgent:c}),t));if(n){const t=n.getSession&&n.getSession();t&&"ok"===t.status&&t.update({status:"exited"}),this.endSession(),n.setSession(u)}return u}W(){const{scope:t,client:n}=this.getStackTop();if(!t)return;const e=t.getSession&&t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}X(t,...n){const{scope:e,client:r}=this.getStackTop();r&&r[t]&&r[t](...n,e)}J(t,...n){const e=Ut().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n);D.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Ut(){const t=r();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function At(t){const n=Ut(),e=Bt(n);return Ht(n,t),e}function Ft(){const t=Ut();var n;return(n=t)&&n.__SENTRY__&&n.__SENTRY__.hub&&!Bt(t).isOlderThan(4)||Ht(t,new Lt),Bt(t)}function Bt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Lt),t.__SENTRY__.hub}function Ht(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function Pt(t,...n){const e=Ft();if(e&&e[t])return e[t](...n);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t,n){return Pt("captureException",t,{captureContext:n,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function Xt(t){Pt("withScope",t)}function zt(t,n,e){return{initDsn:t,metadata:n||{},dsn:E(t),tunnel:e}}function Jt(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function Wt(t,n){return`${Jt(t)}${t.projectId}/${n}/`}function Kt(t){return n={sentry_key:t.publicKey,sentry_version:"7"},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function Gt(t){return`${function(t){return Wt(t,"store")}(t)}?${Kt(t)}`}function Vt(t,n){return n||`${function(t){return Wt(t,"envelope")}(t)}?${Kt(t)}`}const Qt=[];function Yt(t){return t.reduce(((t,n)=>(t.every((t=>n.name!==t.name))&&t.push(n),t)),[])}function Zt(t){const n={};return function(t){const n=t.defaultIntegrations&&[...t.defaultIntegrations]||[],e=t.integrations;let r=[...Yt(n)];Array.isArray(e)?r=[...r.filter((t=>e.every((n=>n.name!==t.name)))),...Yt(e)]:"function"==typeof e&&(r=e(r),r=Array.isArray(r)?r:[r]);const i=r.map((t=>t.name)),s="Debug";return-1!==i.indexOf(s)&&r.push(...r.splice(i.indexOf(s),1)),r}(t).forEach((t=>{n[t.name]=t,function(t){-1===Qt.indexOf(t.name)&&(t.setupOnce(Mt,Ft),Qt.push(t.name),D.log(`Integration installed: ${t.name}`))}(t)})),C(n,"initialized",!0),n}const tn="Not capturing exception because it's already been captured.";function nn(t){if(!t.metadata||!t.metadata.sdk)return;const{name:n,version:e}=t.metadata.sdk;return{name:n,version:e}}function en(t,n){const e=nn(n),r="aggregates"in t?"sessions":"session";return[kt(Object.assign(Object.assign({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!n.tunnel&&{dsn:O(n.dsn)}),[[{type:r},t]]),r]}class rn{sendEvent(t){return mt({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})}close(t){return mt(!0)}}const sn="6.19.2";let on;class cn{constructor(){this.name=cn.id}setupOnce(){on=Function.prototype.toString,Function.prototype.toString=function(...t){const n=L(this)||this;return on.apply(n,t)}}}cn.id="FunctionToString";const un=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class an{constructor(t={}){this.K=t,this.name=an.id}setupOnce(t,n){t((t=>{const e=n();if(e){const n=e.getIntegration(an);if(n){const r=e.getClient(),i=r?r.getOptions():{},s=function(t={},n={}){return{allowUrls:[...t.whitelistUrls||[],...t.allowUrls||[],...n.whitelistUrls||[],...n.allowUrls||[]],denyUrls:[...t.blacklistUrls||[],...t.denyUrls||[],...n.blacklistUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...un],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(n.K,i);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return D.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ht(t)}`),!0;if(function(t,n){if(!n||!n.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{const{type:n="",value:e=""}=t.exception.values&&t.exception.values[0]||{};return[`${e}`,`${n}: ${e}`]}catch(n){return D.error(`Cannot extract message for event ${ht(t)}`),[]}return[]}(t).some((t=>n.some((n=>N(t,n)))))}(t,n.ignoreErrors))return D.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ht(t)}`),!0;if(function(t,n){if(!n||!n.length)return!1;const e=fn(t);return!!e&&n.some((t=>N(e,t)))}(t,n.denyUrls))return D.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ht(t)}.\nUrl: ${fn(t)}`),!0;if(!function(t,n){if(!n||!n.length)return!0;const e=fn(t);return!e||n.some((t=>N(e,t)))}(t,n.allowUrls))return D.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ht(t)}.\nUrl: ${fn(t)}`),!0;return!1}(t,s)?null:t}}return t}))}}function hn(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}function fn(t){try{if(t.stacktrace)return hn(t.stacktrace.frames);let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?hn(n):null}catch(n){return D.error(`Cannot extract url for event ${ht(t)}`),null}}an.id="InboundFilters";var ln=Object.freeze({__proto__:null,FunctionToString:cn,InboundFilters:an});const dn="?";function pn(t,n,e,r){const i={filename:t,function:n,in_app:!0};return void 0!==e&&(i.lineno=e),void 0!==r&&(i.colno=r),i}const bn=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yn=/\((\S*)(?::(\d+))(?::(\d+))\)/,vn=[30,t=>{const n=bn.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=yn.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Sn(n[1]||dn,n[2]);return pn(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],mn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,jn=[50,t=>{const n=mn.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=gn.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]||dn;return[e,t]=Sn(e,t),pn(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],On=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wn=[40,t=>{const n=On.exec(t);return n?pn(n[2],n[1]||dn,+n[3],n[4]?+n[4]:void 0):void 0}],En=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,xn=[10,t=>{const n=En.exec(t);return n?pn(n[2],n[3]||dn,+n[1]):void 0}],$n=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,_n=[20,t=>{const n=$n.exec(t);return n?pn(n[5],n[3]||n[4]||dn,+n[1],+n[2]):void 0}],Sn=(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]:dn,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};function kn(t){const n=Dn(t),e={type:t&&t.name,value:In(t)};return n.length&&(e.stacktrace={frames:n}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function Tn(t){return{exception:{values:[kn(t)]}}}function Dn(t){const n=t.stacktrace||t.stack||"",e=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Rn.test(t.message))return 1}return 0}(t);try{return B(xn,_n,vn,wn,jn)(n,e)}catch(t){}return[]}const Rn=/Minified React error #\d+;/i;function In(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function Nn(n,e,r){const i=Cn(n,e&&e.syntheticException||void 0,r);return lt(i),i.level=t.Severity.Error,e&&e.event_id&&(i.event_id=e.event_id),mt(i)}function Mn(n,e=t.Severity.Info,r,i){const s=qn(n,r&&r.syntheticException||void 0,i);return s.level=e,r&&r.event_id&&(s.event_id=r.event_id),mt(s)}function Cn(t,n,e,r){let i;if(c(t)&&t.error){return Tn(t.error)}if(u(t)||o(t,"DOMException")){const r=t;if("stack"in t)i=Tn(t);else{const t=r.name||(u(r)?"DOMError":"DOMException"),s=r.message?`${t}: ${r.message}`:t;i=qn(s,n,e),ft(i,s)}return"code"in r&&(i.tags=Object.assign(Object.assign({},i.tags),{"DOMException.code":`${r.code}`})),i}if(s(t))return Tn(t);if(f(t)||l(t)){return i=function(t,n,e){const r={exception:{values:[{type:l(t)?t.constructor.name:e?"UnhandledRejection":"Error",value:`Non-Error ${e?"promise rejection":"exception"} captured with keys: ${A(t)}`}]},extra:{__serialized__:bt(t)}};if(n){const t=Dn(n);t.length&&(r.stacktrace={frames:t})}return r}(t,n,r),lt(i,{synthetic:!0}),i}return i=qn(t,n,e),ft(i,`${t}`,void 0),lt(i,{synthetic:!0}),i}function qn(t,n,e){const r={message:t};if(e&&n){const t=Dn(n);t.length&&(r.stacktrace={frames:t})}return r}const Ln=r();let Un;function An(){if(Un)return Un;if(z(Ln.fetch))return Un=Ln.fetch.bind(Ln);const t=Ln.document;let n=Ln.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(t){D.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Un=n.bind(Ln)}function Fn(t,n){if("[object Navigator]"===Object.prototype.toString.call(Ln&&Ln.navigator)&&"function"==typeof Ln.navigator.sendBeacon){return Ln.navigator.sendBeacon.bind(Ln.navigator)(t,n)}if(X()){const e=An();e(t,{body:n,method:"POST",credentials:"omit",keepalive:!0}).then(null,(t=>{console.error(t)}))}else;}function Bn(t){return"event"===t?"error":t}const Hn=r();class Pn{constructor(t){this.options=t,this.G=Ot(30),this.V={},this.Y={},this.Z=zt(t.dsn,t.tt,t.tunnel),this.url=Gt(this.Z.dsn),this.options.sendClientReports&&Hn.document&&Hn.document.addEventListener("visibilitychange",(()=>{"hidden"===Hn.document.visibilityState&&this.nt()}))}sendEvent(t){return this.et(function(t,n){const e=nn(n),r=t.type||"event",i="transaction"===r||!!n.tunnel,{transactionSampling:s}=t.sdkProcessingMetadata||{},{method:o,rate:c}=s||{};let u;!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,n.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{u=JSON.stringify(t)}catch(n){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=n;try{u=JSON.stringify(pt(t))}catch(t){const n=t;u=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:n.message,stack:n.stack}})}}const a={body:u,type:r,url:i?Vt(n.dsn,n.tunnel):Gt(n.dsn)};if(i){const i=kt(Object.assign(Object.assign({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!n.tunnel&&{dsn:O(n.dsn)}),[[{type:r,sample_rates:[{id:o,rate:c}]},a.body]]);a.body=Tt(i)}return a}(t,this.Z),t)}sendSession(t){return this.et(function(t,n){const[e,r]=en(t,n);return{body:Tt(e),type:r,url:Vt(n.dsn,n.tunnel)}}(t,this.Z),t)}close(t){return this.G.drain(t)}recordLostEvent(t,n){var e;if(!this.options.sendClientReports)return;const r=`${Bn(n)}:${t}`;D.log(`Adding outcome: ${r}`),this.Y[r]=(null!=(e=this.Y[r])?e:0)+1}nt(){if(!this.options.sendClientReports)return;const t=this.Y;if(this.Y={},!Object.keys(t).length)return void D.log("No outcomes to flush");D.log(`Flushing outcomes:\n${JSON.stringify(t,null,2)}`);const n=Vt(this.Z.dsn,this.Z.tunnel),e=Object.keys(t).map((n=>{const[e,r]=n.split(":");return{reason:r,category:e,quantity:t[n]}})),r=(i=e,kt((s=this.Z.tunnel&&O(this.Z.dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:o||_t(),discarded_events:i}]]));var i,s,o;try{Fn(n,Tt(r))}catch(t){D.error(t)}}rt({requestType:t,response:n,headers:e,resolve:r,reject:i}){const s=(o=n.status)>=200&&o<300?"success":429===o?"rate_limit":o>=400&&o<500?"invalid":o>=500?"failed":"unknown";var o;this.V=Rt(this.V,e),this.it(t)&&D.warn(`Too many ${t} requests, backing off until: ${this.st(t)}`),"success"!==s?i(n):r({status:s})}st(t){const n=Bn(t);return new Date(Dt(this.V,n))}it(t){const n=Bn(t);return function(t,n,e=Date.now()){return Dt(t,n)>e}(this.V,n)}}class Xn extends Pn{constructor(t,n=An()){super(t),this.ot=n}et(t,n){if(this.it(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.st(t.type)} due to too many requests.`,status:429});const e={body:t.body,method:"POST",referrerPolicy:J()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(e,this.options.fetchParameters),void 0!==this.options.headers&&(e.headers=this.options.headers),this.G.add((()=>new jt(((n,r)=>{this.ot(t.url,e).then((e=>{const i={"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")};this.rt({requestType:t.type,response:e,headers:i,resolve:n,reject:r})})).catch(r)})))).then(void 0,(n=>{throw n instanceof g?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),n}))}}class zn extends Pn{et(t,n){return this.it(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.st(t.type)} due to too many requests.`,status:429})):this.G.add((()=>new jt(((n,e)=>{const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState){const i={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};this.rt({requestType:t.type,response:r,headers:i,resolve:n,reject:e})}},r.open("POST",t.url);for(const t in this.options.headers)Object.prototype.hasOwnProperty.call(this.options.headers,t)&&r.setRequestHeader(t,this.options.headers[t]);r.send(t.body)})))).then(void 0,(n=>{throw n instanceof g?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),n}))}}var Jn=Object.freeze({__proto__:null,BaseTransport:Pn,FetchTransport:Xn,XHRTransport:zn});class Wn extends class{constructor(t){this.K=t,this.K.dsn||D.warn("No DSN provided, backend will not do anything."),this.ct=this.ut()}eventFromException(t,n){throw new g("Backend has to implement `eventFromException` method")}eventFromMessage(t,n,e){throw new g("Backend has to implement `eventFromMessage` method")}sendEvent(t){if(this.at&&this.K.dsn&&this.K.ht&&this.K.ht.newTransport){const n=function(t,n){const e=nn(n),r=t.type||"event",{transactionSampling:i}=t.sdkProcessingMetadata||{},{method:s,rate:o}=i||{};return kt(Object.assign(Object.assign({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!n.tunnel&&{dsn:O(n.dsn)}),[[{type:r,sample_rates:[{id:s,rate:o}]},t]])}(t,zt(this.K.dsn,this.K.tt,this.K.tunnel));this.at.send(n).then(null,(t=>{D.error("Error while sending event:",t)}))}else this.ct.sendEvent(t).then(null,(t=>{D.error("Error while sending event:",t)}))}sendSession(t){if(this.ct.sendSession)if(this.at&&this.K.dsn&&this.K.ht&&this.K.ht.newTransport){const n=zt(this.K.dsn,this.K.tt,this.K.tunnel),[e]=en(t,n);this.at.send(e).then(null,(t=>{D.error("Error while sending session:",t)}))}else this.ct.sendSession(t).then(null,(t=>{D.error("Error while sending session:",t)}));else D.warn("Dropping session because custom transport doesn't implement sendSession")}getTransport(){return this.ct}ut(){return new rn}}{eventFromException(t,n){return Nn(t,n,this.K.attachStacktrace)}eventFromMessage(n,e=t.Severity.Info,r){return Mn(n,e,r,this.K.attachStacktrace)}ut(){if(!this.K.dsn)return super.ut();const t=Object.assign(Object.assign({},this.K.transportOptions),{dsn:this.K.dsn,tunnel:this.K.tunnel,sendClientReports:this.K.sendClientReports,tt:this.K.tt});return this.K.transport?new this.K.transport(t):X()?new Xn(t):new zn(t)}}const Kn=r();let Gn=0;function Vn(){return Gn>0}function Qn(){Gn+=1,setTimeout((()=>{Gn-=1}))}function Yn(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(L(t))return t}catch(n){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);const i=r.map((t=>Yn(t,n)));return t.apply(this,i)}catch(t){throw Qn(),Xt((e=>{e.addEventProcessor((t=>(n.mechanism&&(ft(t,void 0,void 0),lt(t,n.mechanism)),t.extra=Object.assign(Object.assign({},t.extra),{arguments:r}),t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}q(sentryWrapped,t),C(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function Zn(t={}){if(!Kn.document)return;if(!t.eventId)return void D.error("Missing eventId option in showReportDialog call");if(!t.dsn)return void D.error("Missing dsn option in showReportDialog call");const n=Kn.document.createElement("script");n.async=!0,n.src=function(t,n){const e=E(t),r=`${Jt(e)}embed/error-page/`;let i=`dsn=${O(e)}`;for(const t in n)if("dsn"!==t)if("user"===t){if(!n.user)continue;n.user.name&&(i+=`&name=${encodeURIComponent(n.user.name)}`),n.user.email&&(i+=`&email=${encodeURIComponent(n.user.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${i}`}(t.dsn,t),t.onLoad&&(n.onload=t.onLoad);const e=Kn.document.head||Kn.document.body;e&&e.appendChild(n)}class te{constructor(t){this.name=te.id,this.ft={onerror:ne,onunhandledrejection:ee},this.K=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50;const t=this.K;for(const e in t){const r=this.ft[e];r&&t[e]&&(n=e,D.log(`Global Handler attached: ${n}`),r(),this.ft[e]=void 0)}var n}}function ne(){Q("error",(n=>{const[e,r]=se();if(!e.getIntegration(te))return;const{msg:i,url:s,line:o,column:u,error:h}=n;if(Vn()||h&&h.__sentry_own_request__)return;const f=void 0===h&&a(i)?function(t,n,e,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=c(t)?t.message:t,o="Error";const u=s.match(i);u&&(o=u[1],s=u[2]);return re({exception:{values:[{type:o,value:s}]}},n,e,r)}(i,s,o,u):re(Cn(h||i,void 0,r,!1),s,o,u);f.level=t.Severity.Error,ie(e,h,f,"onerror")}))}function ee(){Q("unhandledrejection",(n=>{const[e,r]=se();if(!e.getIntegration(te))return;let i=n;try{"reason"in n?i=n.reason:"detail"in n&&"reason"in n.detail&&(i=n.detail.reason)}catch(t){}if(Vn()||i&&i.__sentry_own_request__)return!0;const s=h(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Cn(i,void 0,r,!0);s.level=t.Severity.Error,ie(e,i,s,"onunhandledrejection")}))}function re(t,n,e,i){const s=t.exception=t.exception||{},o=s.values=s.values||[],c=o[0]=o[0]||{},u=c.stacktrace=c.stacktrace||{},h=u.frames=u.frames||[],f=isNaN(parseInt(i,10))?void 0:i,l=isNaN(parseInt(e,10))?void 0:e,d=a(n)&&n.length>0?n:function(){const t=r();try{return t.document.location.href}catch(t){return""}}();return 0===h.length&&h.push({colno:f,filename:d,function:"?",in_app:!0,lineno:l}),t}function ie(t,n,e,r){lt(e,{handled:!1,type:r}),t.captureEvent(e,{originalException:n})}function se(){const t=Ft(),n=t.getClient();return[t,n&&n.getOptions().attachStacktrace]}te.id="GlobalHandlers";const oe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ce{constructor(t){this.name=ce.id,this.K=Object.assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}setupOnce(){const t=r();this.K.setTimeout&&M(t,"setTimeout",ue),this.K.setInterval&&M(t,"setInterval",ue),this.K.requestAnimationFrame&&M(t,"requestAnimationFrame",ae),this.K.XMLHttpRequest&&"XMLHttpRequest"in t&&M(XMLHttpRequest.prototype,"send",he);const n=this.K.eventTarget;if(n){(Array.isArray(n)?n:oe).forEach(fe)}}}function ue(t){return function(...n){const e=n[0];return n[0]=Yn(e,{mechanism:{data:{function:P(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function ae(t){return function(n){return t.apply(this,[Yn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:P(t)},handled:!0,type:"instrument"}})])}}function he(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&M(e,t,(function(n){const e={mechanism:{data:{function:t,handler:P(n)},handled:!0,type:"instrument"}},r=L(n);return r&&(e.mechanism.data.handler=P(r)),Yn(n,e)}))})),t.apply(this,n)}}function fe(t){const n=r(),e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(M(e,"addEventListener",(function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Yn(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:P(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.apply(this,[e,Yn(r,{mechanism:{data:{function:"addEventListener",handler:P(r),target:t},handled:!0,type:"instrument"}}),i])}})),M(e,"removeEventListener",(function(t){return function(n,e,r){const i=e;try{const e=i&&i.__sentry_wrapped__;e&&t.call(this,n,e,r)}catch(t){}return t.call(this,n,i,r)}})))}ce.id="TryCatch";class le{constructor(t){this.name=le.id,this.K=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}addSentryBreadcrumb(t){this.K.sentry&&Ft().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ht(t)},{event:t})}setupOnce(){this.K.console&&Q("console",de),this.K.dom&&Q("dom",function(t){function n(n){let e,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{e=n.event.target?y(n.event.target,r):y(n.event,r)}catch(t){e="<unknown>"}0!==e.length&&Ft().addBreadcrumb({category:`ui.${n.name}`,message:e},{event:n.event,name:n.name,global:n.global})}return n}(this.K.dom)),this.K.xhr&&Q("xhr",pe),this.K.fetch&&Q("fetch",be),this.K.history&&Q("history",ye)}}function de(t){const n={category:"console",data:{arguments:t.args,logger:"console"},level:wt(t.level),message:I(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${I(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Ft().addBreadcrumb(n,{input:t.args,level:t.level})}function pe(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:n,url:e,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};Ft().addBreadcrumb({category:"xhr",data:{method:n,url:e,status_code:r},type:"http"},{xhr:t.xhr,input:i})}else;}function be(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Ft().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Ft().addBreadcrumb({category:"fetch",data:Object.assign(Object.assign({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))}function ye(t){const n=r();let e=t.from,i=t.to;const s=ut(n.location.href);let o=ut(e);const c=ut(i);o.path||(o=s),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),s.protocol===o.protocol&&s.host===o.host&&(e=o.relative),Ft().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}le.id="Breadcrumbs";class ve{constructor(t={}){this.name=ve.id,this.lt=t.key||"cause",this.dt=t.limit||5}setupOnce(){Mt(((t,n)=>{const e=Ft().getIntegration(ve);return e?function(t,n,e,r){if(!(e.exception&&e.exception.values&&r&&b(r.originalException,Error)))return e;const i=me(n,r.originalException,t);return e.exception.values=[...i,...e.exception.values],e}(e.lt,e.dt,t,n):t}))}}function me(t,n,e,r=[]){if(!b(n[e],Error)||r.length+1>=t)return r;const i=kn(n[e]);return me(t,n[e],e,[i,...r])}ve.id="LinkedErrors";const ge=r();class je{constructor(){this.name=je.id}setupOnce(){Mt((t=>{if(Ft().getIntegration(je)){if(!ge.navigator&&!ge.location&&!ge.document)return t;const n=t.request&&t.request.url||ge.location&&ge.location.href,{referrer:e}=ge.document||{},{userAgent:r}=ge.navigator||{},i=Object.assign(Object.assign(Object.assign({},t.request&&t.request.headers),e&&{Referer:e}),r&&{"User-Agent":r}),s=Object.assign(Object.assign({},n&&{url:n}),{headers:i});return Object.assign(Object.assign({},t),{request:s})}return t}))}}je.id="UserAgent";class Oe{constructor(){this.name=Oe.id}setupOnce(t,n){t((t=>{const e=n().getIntegration(Oe);if(e){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(!Ee(t,n))return!1;if(!we(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=xe(n),r=xe(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Ee(t,n))return!1;if(!we(t,n))return!1;return!0}(t,n))return!0;return!1}(t,e.bt))return D.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){return e.bt=t}return e.bt=t}return t}))}}function we(t,n){let e=$e(t),r=$e(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(e=e,r=r,r.length!==e.length)return!1;for(let t=0;t<r.length;t++){const n=r[t],i=e[t];if(n.filename!==i.filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function)return!1}return!0}function Ee(t,n){let e=t.fingerprint,r=n.fingerprint;if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;e=e,r=r;try{return!(e.join("")!==r.join(""))}catch(t){return!1}}function xe(t){return t.exception&&t.exception.values&&t.exception.values[0]}function $e(t){const n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames}Oe.id="Dedupe";var _e=Object.freeze({__proto__:null,GlobalHandlers:te,TryCatch:ce,Breadcrumbs:le,LinkedErrors:ve,UserAgent:je,Dedupe:Oe});class Se extends class{constructor(t,n){this.yt={},this.vt=0,this.gt=new t(n),this.K=n,n.dsn&&(this.jt=E(n.dsn))}captureException(t,n,e){if(dt(t))return void D.log(tn);let r=n&&n.event_id;return this.Ot(this.wt().eventFromException(t,n).then((t=>this.Et(t,n,e))).then((t=>{r=t}))),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const s=h(t)?this.wt().eventFromMessage(String(t),n,e):this.wt().eventFromException(t,e);return this.Ot(s.then((t=>this.Et(t,e,r))).then((t=>{i=t}))),i}captureEvent(t,n,e){if(n&&n.originalException&&dt(n.originalException))return void D.log(tn);let r=n&&n.event_id;return this.Ot(this.Et(t,n,e).then((t=>{r=t}))),r}captureSession(t){this.xt()?"string"!=typeof t.release?D.warn("Discarded session because of missing or non-string release"):(this.$t(t),t.update({init:!1})):D.warn("SDK not enabled, will not capture session.")}getDsn(){return this.jt}getOptions(){return this.K}getTransport(){return this.wt().getTransport()}flush(t){return this._t(t).then((n=>this.getTransport().close(t).then((t=>n&&t))))}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this.xt()&&!this.yt.initialized&&(this.yt=Zt(this.K))}getIntegration(t){try{return this.yt[t.id]||null}catch(n){return D.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}St(t,n){let e=!1,r=!1;const i=n.exception&&n.exception.values;if(i){r=!0;for(const t of i){const n=t.mechanism;if(n&&!1===n.handled){e=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&e)&&(t.update(Object.assign(Object.assign({},e&&{status:"crashed"}),{errors:t.errors||Number(r||e)})),this.captureSession(t))}$t(t){this.wt().sendSession(t)}_t(t){return new jt((n=>{let e=0;const r=setInterval((()=>{0==this.vt?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}wt(){return this.gt}xt(){return!1!==this.getOptions().enabled&&void 0!==this.jt}kt(t,n,e){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions(),s=Object.assign(Object.assign({},t),{event_id:t.event_id||(e&&e.event_id?e.event_id:ct()),timestamp:t.timestamp||_t()});this.Tt(s),this.Dt(s);let o=n;e&&e.captureContext&&(o=It.clone(o).update(e.captureContext));let c=mt(s);return o&&(c=o.applyToEvent(s,e)),c.then((t=>(t&&(t.sdkProcessingMetadata=Object.assign(Object.assign({},t.sdkProcessingMetadata),{normalizeDepth:pt(r)})),"number"==typeof r&&r>0?this.Rt(t,r,i):t)))}Rt(t,n,e){if(!t)return null;const r=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>Object.assign(Object.assign({},t),t.data&&{data:pt(t.data,n,e)})))}),t.user&&{user:pt(t.user,n,e)}),t.contexts&&{contexts:pt(t.contexts,n,e)}),t.extra&&{extra:pt(t.extra,n,e)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),t.sdkProcessingMetadata=Object.assign(Object.assign({},t.sdkProcessingMetadata),{baseClientNormalized:!0}),r}Tt(t){const n=this.getOptions(),{environment:e,release:r,dist:i,maxValueLength:s=250}=n;"environment"in t||(t.environment="environment"in n?e:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=R(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=R(o.value,s));const c=t.request;c&&c.url&&(c.url=R(c.url,s))}Dt(t){const n=Object.keys(this.yt);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}It(t){this.wt().sendEvent(t)}Et(t,n,e){return this.Nt(t,n,e).then((t=>t.event_id),(t=>{D.error(t)}))}Nt(t,n,e){const{beforeSend:r,sampleRate:i}=this.getOptions(),s=this.getTransport();function o(t,n){s.recordLostEvent&&s.recordLostEvent(t,n)}if(!this.xt())return gt(new g("SDK not enabled, will not capture event."));const c="transaction"===t.type;return!c&&"number"==typeof i&&Math.random()>i?(o("sample_rate","event"),gt(new g(`Discarding event because it's not included in the random sample (sampling rate = ${i})`))):this.kt(t,e,n).then((e=>{if(null===e)throw o("event_processor",t.type||"event"),new g("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||c||!r)return e;return function(t){const n="`beforeSend` method has to return `null` or a valid event.";if(p(t))return t.then((t=>{if(!f(t)&&null!==t)throw new g(n);return t}),(t=>{throw new g(`beforeSend rejected with ${t}`)}));if(!f(t)&&null!==t)throw new g(n);return t}(r(e,n))})).then((n=>{if(null===n)throw o("before_send",t.type||"event"),new g("`beforeSend` returned `null`, will not send event.");const r=e&&e.getSession&&e.getSession();return!c&&r&&this.St(r,n),this.It(n),n})).then(null,(t=>{if(t instanceof g)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new g(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}Ot(t){this.vt+=1,t.then((t=>(this.vt-=1,t)),(t=>(this.vt-=1,t)))}}{constructor(t={}){t.tt=t.tt||{},t.tt.sdk=t.tt.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:sn}],version:sn},super(Wn,t)}showReportDialog(t={}){r().document&&(this.xt()?Zn(Object.assign(Object.assign({},t),{dsn:t.dsn||this.getDsn()})):D.error("Trying to call showReportDialog with Sentry Client disabled"))}kt(t,n,e){return t.platform=t.platform||"javascript",super.kt(t,n,e)}It(t){const n=this.getIntegration(le);n&&n.addSentryBreadcrumb(t),super.It(t)}}const ke=[new an,new cn,new ce,new le,new te,new ve,new Oe,new je];function Te(t){t.startSession({ignoreDuration:!0}),t.captureSession()}let De={};const Re=r();Re.Sentry&&Re.Sentry.Integrations&&(De=Re.Sentry.Integrations);const Ie=Object.assign(Object.assign(Object.assign({},De),ln),_e);return t.BrowserClient=Se,t.Hub=Lt,t.Integrations=Ie,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=sn,t.Scope=It,t.Session=Ct,t.Transports=Jn,t.addBreadcrumb=function(t){Pt("addBreadcrumb",t)},t.addGlobalEventProcessor=Mt,t.captureEvent=function(t){return Pt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){const e=new Error(t),r="string"!=typeof n?{captureContext:n}:void 0;return Pt("captureMessage",t,"string"==typeof n?n:void 0,Object.assign({originalException:t,syntheticException:e},r))},t.close=function(t){const n=Ft().getClient();return n?n.close(t):(D.warn("Cannot flush events and disable SDK. No client defined."),mt(!1))},t.configureScope=function(t){Pt("configureScope",t)},t.defaultIntegrations=ke,t.eventFromException=Nn,t.eventFromMessage=Mn,t.flush=function(t){const n=Ft().getClient();return n?n.flush(t):(D.warn("Cannot flush events. No client defined."),mt(!1))},t.forceLoad=function(){},t.getCurrentHub=Ft,t.getHubFromCarrier=Bt,t.init=function(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=ke),void 0===t.release){const n=r();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,n){!0===n.debug&&D.enable();const e=Ft(),r=e.getScope();r&&r.update(n.initialScope);const i=new t(n);e.bindClient(i)}(Se,t),t.autoSessionTracking&&function(){const t=r();if(void 0===t.document)return void D.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");const n=Ft();if(!n.captureSession)return;Te(n),Q("history",(({from:t,to:n})=>{void 0!==t&&t!==n&&Te(Ft())}))}()},t.injectReportDialog=Zn,t.lastEventId=function(){return Ft().lastEventId()},t.makeMain=At,t.onLoad=function(t){t()},t.setContext=function(t,n){Pt("setContext",t,n)},t.setExtra=function(t,n){Pt("setExtra",t,n)},t.setExtras=function(t){Pt("setExtras",t)},t.setTag=function(t,n){Pt("setTag",t,n)},t.setTags=function(t){Pt("setTags",t)},t.setUser=function(t){Pt("setUser",t)},t.showReportDialog=function(t={}){const n=Ft(),e=n.getScope();e&&(t.user=Object.assign(Object.assign({},e.getUser()),t.user)),t.eventId||(t.eventId=n.lastEventId());const r=n.getClient();r&&r.showReportDialog(t)},t.startTransaction=function(t,n){return Pt("startTransaction",Object.assign({},t),n)},t.withScope=Xt,t.wrap=function(t){return Yn(t)()},t}({});
|
|
3
|
-
//# sourceMappingURL=bundle.es6.debug.min.js.map
|