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