@sentry/browser 5.28.0 → 5.30.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/build/bundle.es6.js +97 -20
- package/build/bundle.es6.js.map +1 -1
- package/build/bundle.es6.min.js +2 -2
- package/build/bundle.es6.min.js.map +1 -1
- package/build/bundle.js +82 -20
- package/build/bundle.js.map +1 -1
- package/build/bundle.min.js +2 -2
- package/build/bundle.min.js.map +1 -1
- package/dist/integrations/globalhandlers.d.ts +5 -2
- package/dist/integrations/globalhandlers.d.ts.map +1 -1
- package/dist/integrations/globalhandlers.js +8 -5
- package/dist/integrations/globalhandlers.js.map +1 -1
- package/dist/transports/base.d.ts.map +1 -1
- package/dist/transports/base.js +11 -1
- package/dist/transports/base.js.map +1 -1
- package/dist/transports/fetch.d.ts.map +1 -1
- package/dist/transports/fetch.js +7 -1
- package/dist/transports/fetch.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/esm/integrations/globalhandlers.d.ts +5 -2
- package/esm/integrations/globalhandlers.d.ts.map +1 -1
- package/esm/integrations/globalhandlers.js +8 -5
- package/esm/integrations/globalhandlers.js.map +1 -1
- package/esm/transports/base.d.ts.map +1 -1
- package/esm/transports/base.js +11 -1
- package/esm/transports/base.js.map +1 -1
- package/esm/transports/fetch.d.ts.map +1 -1
- package/esm/transports/fetch.js +7 -1
- package/esm/transports/fetch.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/version.js.map +1 -1
- package/package.json +5 -5
package/build/bundle.es6.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @sentry/browser 5.
|
|
2
|
-
var Sentry=function(t){var e,n,r,s;function i(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return p(t,Error)}}function o(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function c(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function u(t){return"[object String]"===Object.prototype.toString.call(t)}function a(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return"undefined"!=typeof Event&&p(t,Event)}function f(t){return"undefined"!=typeof Element&&p(t,Element)}function d(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function p(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){try{let e=t;const n=5,r=80,s=[];let i=0,o=0;const c=" > ",u=c.length;let a;for(;e&&i++<n&&!("html"===(a=m(e))||i>1&&o+s.length*u+a.length>=r);)s.push(a),o+=a.length,e=e.parentNode;return s.reverse().join(c)}catch(t){return"<unknown>"}}function m(t){const e=t,n=[];let r,s,i,o,c;if(!e||!e.tagName)return"";if(n.push(e.tagName.toLowerCase()),e.id&&n.push(`#${e.id}`),(r=e.className)&&u(r))for(s=r.split(/\s+/),c=0;c<s.length;c++)n.push(`.${s[c]}`);const a=["type","name","title","alt"];for(c=0;c<a.length;c++)i=a[c],(o=e.getAttribute(i))&&n.push(`[${i}="${o}"]`);return n.join("")}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(e||(e={})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(n||(n={})),(r=t.Severity||(t.Severity={})).Fatal="fatal",r.Error="error",r.Warning="warning",r.Log="log",r.Info="info",r.Debug="debug",r.Critical="critical",function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(s=t.Status||(t.Status={})).Unknown="unknown",s.Skipped="skipped",s.Success="success",s.RateLimit="rate_limit",s.Invalid="invalid",s.Failed="failed",function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));const v=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(const n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});class y extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,v(this,new.target.prototype)}}const g=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,j="Invalid Dsn";class w{constructor(t){"string"==typeof t?this.t(t):this.s(t),this.i()}toString(t=!1){const{host:e,path:n,pass:r,port:s,projectId:i,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${e}${s?`:${s}`:""}/${n?`${n}/`:n}${i}`}t(t){const e=g.exec(t);if(!e)throw new y(j);const[n,r,s="",i,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])}this.s({host:i,pass:s,path:u,projectId:a,port:o,protocol:n,user:r})}s(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId}i(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new y(`${j}: ${t} missing`)}),!this.projectId.match(/^\d+$/))throw new y(`${j}: Invalid projectId ${this.projectId}`);if("http"!==this.protocol&&"https"!==this.protocol)throw new y(`${j}: Invalid protocol ${this.protocol}`);if(this.port&&isNaN(parseInt(this.port,10)))throw new y(`${j}: Invalid port ${this.port}`)}}class O{constructor(){this.o="function"==typeof WeakSet,this.u=this.o?new WeakSet:[]}memoize(t){if(this.o)return!!this.u.has(t)||(this.u.add(t),!1);for(let e=0;e<this.u.length;e++){if(this.u[e]===t)return!0}return this.u.push(t),!1}unmemoize(t){if(this.o)this.u.delete(t);else for(let e=0;e<this.u.length;e++)if(this.u[e]===t){this.u.splice(e,1);break}}}const E="<anonymous>";function _(t){try{return t&&"function"==typeof t&&t.name||E}catch(t){return E}}function $(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.substr(0,e)}...`}function x(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 S(t,e){return!!u(t)&&(n=e,"[object RegExp]"===Object.prototype.toString.call(n)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e));var n}function k(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);if("function"==typeof s)try{s.prototype=s.prototype||{},Object.defineProperties(s,{__sentry_original__:{enumerable:!1,value:r}})}catch(t){}t[e]=s}function T(t){if(i(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=f(e.target)?b(e.target):Object.prototype.toString.call(e.target)}catch(t){n.target="<unknown>"}try{n.currentTarget=f(e.currentTarget)?b(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){n.currentTarget="<unknown>"}"undefined"!=typeof CustomEvent&&p(t,CustomEvent)&&(n.detail=e.detail);for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e);return n}return t}function D(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function R(t,e=3,n=102400){const r=M(t,e);return D(r)>n?R(t,e-1,n):r}function I(t,e){return"domain"===e&&t&&"object"==typeof t&&t.h?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":h(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: ${_(t)}]`:t;var n}function N(t,e,n=1/0,r=new O){if(0===n)return function(t){const e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";const n=I(t);return a(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();const s=I(e,t);if(a(s))return s;const i=T(e),o=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(o[t]=N(t,i[t],n-1,r));return r.unmemoize(e),o}function M(t,e){try{return JSON.parse(JSON.stringify(t,(t,n)=>N(t,n,e)))}catch(t){return"**non-serializable**"}}function C(t,e=40){const n=Object.keys(T(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return $(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:$(r,e)}return""}function A(t){if(h(t)){const e=t,n={};for(const t of Object.keys(e))void 0!==e[t]&&(n[t]=A(e[t]));return n}return Array.isArray(t)?t.map(A):t}function U(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}const L={};function q(){return U()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:L}function F(){const t=q(),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 B(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 H(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const e=t.exception.values[0];return e.type&&e.value?`${e.type}: ${e.value}`:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function P(t){const e=q();if(!("console"in e))return t();const n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});const s=t();return Object.keys(r).forEach(t=>{n[t]=r[t]}),s}function X(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function W(t,e={}){try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach(n=>{t.exception.values[0].mechanism[n]=e[n]})}catch(t){}}const J=6e4;const G=q(),z="Sentry Logger ";G.__SENTRY__=G.__SENTRY__||{};const V=G.__SENTRY__.logger||(G.__SENTRY__.logger=new class{constructor(){this.l=!1}disable(){this.l=!1}enable(){this.l=!0}log(...t){this.l&&P(()=>{G.console.log(`${z}[Log]: ${t.join(" ")}`)})}warn(...t){this.l&&P(()=>{G.console.warn(`${z}[Warn]: ${t.join(" ")}`)})}error(...t){this.l&&P(()=>{G.console.error(`${z}[Error]: ${t.join(" ")}`)})}});function K(){if(!("fetch"in q()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Q(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Y(){if(!K())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}const Z=q(),tt={},et={};function nt(t){if(!et[t])switch(et[t]=!0,t){case"console":!function(){if(!("console"in Z))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in Z.console&&k(Z.console,t,function(e){return function(...n){st("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,Z.console,n)}})})}();break;case"dom":!function(){if(!("document"in Z))return;Z.document.addEventListener("click",ft("click",st.bind(null,"dom")),!1),Z.document.addEventListener("keypress",dt(st.bind(null,"dom")),!1),["EventTarget","Node"].forEach(t=>{const e=Z[t]&&Z[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(k(e,"addEventListener",function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&k(n,"handleEvent",function(t){return function(e){return ft("click",st.bind(null,"dom"))(e),t.call(this,e)}}),"keypress"===e&&k(n,"handleEvent",function(t){return function(e){return dt(st.bind(null,"dom"))(e),t.call(this,e)}})):("click"===e&&ft("click",st.bind(null,"dom"),!0)(this),"keypress"===e&&dt(st.bind(null,"dom"))(this)),t.call(this,e,n,r)}}),k(e,"removeEventListener",function(t){return function(e,n,r){try{t.call(this,e,n.__sentry_wrapped__,r)}catch(t){}return t.call(this,e,n,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Z))return;const t=[],e=[],n=XMLHttpRequest.prototype;k(n,"open",function(n){return function(...r){const s=this,i=r[1];s.__sentry_xhr__={method:u(r[0])?r[0].toUpperCase():r[0],url:r[1]},u(i)&&"POST"===s.__sentry_xhr__.method&&i.match(/sentry_key/)&&(s.__sentry_own_request__=!0);const o=function(){if(4===s.readyState){try{s.__sentry_xhr__&&(s.__sentry_xhr__.status_code=s.status)}catch(t){}try{const n=t.indexOf(s);if(-1!==n){t.splice(n);const r=e.splice(n)[0];s.__sentry_xhr__&&void 0!==r[0]&&(s.__sentry_xhr__.body=r[0])}}catch(t){}st("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&"function"==typeof s.onreadystatechange?k(s,"onreadystatechange",function(t){return function(...e){return o(),t.apply(s,e)}}):s.addEventListener("readystatechange",o),n.apply(s,r)}}),k(n,"send",function(n){return function(...r){return t.push(this),e.push(r),st("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}})}();break;case"fetch":!function(){if(!function(){if(!K())return!1;const t=q();if(Q(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=Q(t.contentWindow.fetch)),n.head.removeChild(t)}catch(t){V.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}())return;k(Z,"fetch",function(t){return function(...e){const n={args:e,fetchData:{method:it(e),url:ot(e)},startTimestamp:Date.now()};return st("fetch",Object.assign({},n)),t.apply(Z,e).then(t=>(st("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),response:t})),t),t=>{throw st("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(!function(){const t=q(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}())return;const t=Z.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=ct,e=String(n);ct=e,st("history",{from:t,to:e})}return t.apply(this,e)}}Z.onpopstate=function(...e){const n=Z.location.href,r=ct;if(ct=n,st("history",{from:r,to:n}),t)return t.apply(this,e)},k(Z.history,"pushState",e),k(Z.history,"replaceState",e)}();break;case"error":pt=Z.onerror,Z.onerror=function(t,e,n,r,s){return st("error",{column:r,error:s,line:n,msg:t,url:e}),!!pt&&pt.apply(this,arguments)};break;case"unhandledrejection":bt=Z.onunhandledrejection,Z.onunhandledrejection=function(t){return st("unhandledrejection",t),!bt||bt.apply(this,arguments)};break;default:V.warn("unknown instrumentation type:",t)}}function rt(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(tt[t.type]=tt[t.type]||[],tt[t.type].push(t.callback),nt(t.type))}function st(t,e){if(t&&tt[t])for(const n of tt[t]||[])try{n(e)}catch(e){V.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${_(n)}\nError: ${e}`)}}function it(t=[]){return"Request"in Z&&p(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function ot(t=[]){return"string"==typeof t[0]?t[0]:"Request"in Z&&p(t[0],Request)?t[0].url:String(t[0])}let ct;const ut=1e3;let at,ht,lt=0;function ft(t,e,n=!1){return r=>{at=void 0,r&&ht!==r&&(ht=r,lt&&clearTimeout(lt),n?lt=setTimeout(()=>{e({event:r,name:t})}):e({event:r,name:t}))}}function dt(t){return e=>{let n;try{n=e.target}catch(t){return}const r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(at||ft("input",t)(e),clearTimeout(at),at=setTimeout(()=>{at=void 0},ut))}}let pt=null;let bt=null;var mt;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(mt||(mt={}));class vt{constructor(t){this.p=mt.PENDING,this.m=[],this.v=(t=>{this.g(mt.RESOLVED,t)}),this.j=(t=>{this.g(mt.REJECTED,t)}),this.g=((t,e)=>{this.p===mt.PENDING&&(d(e)?e.then(this.v,this.j):(this.p=t,this.O=e,this._()))}),this.$=(t=>{this.m=this.m.concat(t),this._()}),this._=(()=>{if(this.p===mt.PENDING)return;const t=this.m.slice();this.m=[],t.forEach(t=>{t.done||(this.p===mt.RESOLVED&&t.onfulfilled&&t.onfulfilled(this.O),this.p===mt.REJECTED&&t.onrejected&&t.onrejected(this.O),t.done=!0)})});try{t(this.v,this.j)}catch(t){this.j(t)}}static resolve(t){return new vt(e=>{e(t)})}static reject(t){return new vt((e,n)=>{n(t)})}static all(t){return new vt((e,n)=>{if(!Array.isArray(t))return void n(new TypeError("Promise.all requires an array as input."));if(0===t.length)return void e([]);let r=t.length;const s=[];t.forEach((t,i)=>{vt.resolve(t).then(t=>{s[i]=t,0===(r-=1)&&e(s)}).then(null,n)})})}then(t,e){return new vt((n,r)=>{this.$({done:!1,onfulfilled:e=>{if(t)try{return void n(t(e))}catch(t){return void r(t)}else n(e)},onrejected:t=>{if(e)try{return void n(e(t))}catch(t){return void r(t)}else r(t)}})})}catch(t){return this.then(t=>t,t)}finally(t){return new vt((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}toString(){return"[object SyncPromise]"}}class yt{constructor(t){this.S=t,this.k=[]}isReady(){return void 0===this.S||this.length()<this.S}add(t){return this.isReady()?(-1===this.k.indexOf(t)&&this.k.push(t),t.then(()=>this.remove(t)).then(null,()=>this.remove(t).then(null,()=>{})),t):vt.reject(new y("Not adding Promise due to buffer limit reached."))}remove(t){return this.k.splice(this.k.indexOf(t),1)[0]}length(){return this.k.length}drain(t){return new vt(e=>{const n=setTimeout(()=>{t&&t>0&&e(!1)},t);vt.all(this.k).then(()=>{clearTimeout(n),e(!0)}).then(null,()=>{e(!0)})})}}const gt={nowSeconds:()=>Date.now()/1e3};const jt=U()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){const{performance:t}=q();if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),wt=void 0===jt?gt:{nowSeconds:()=>(jt.timeOrigin+jt.now())/1e3},Ot=gt.nowSeconds.bind(gt);wt.nowSeconds.bind(wt),(()=>{const{performance:t}=q();if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()})();class Et{constructor(){this.T=!1,this.D=[],this.R=[],this.I=[],this.N={},this.M={},this.C={},this.A={}}static clone(t){const e=new Et;return t&&(e.I=[...t.I],e.M=Object.assign({},t.M),e.C=Object.assign({},t.C),e.A=Object.assign({},t.A),e.N=t.N,e.U=t.U,e.L=t.L,e.q=t.q,e.F=t.F,e.B=t.B,e.R=[...t.R]),e}addScopeListener(t){this.D.push(t)}addEventProcessor(t){return this.R.push(t),this}setUser(t){return this.N=t||{},this.q&&this.q.update({user:t}),this.H(),this}getUser(){return this.N}setTags(t){return this.M=Object.assign(Object.assign({},this.M),t),this.H(),this}setTag(t,e){return this.M=Object.assign(Object.assign({},this.M),{[t]:e}),this.H(),this}setExtras(t){return this.C=Object.assign(Object.assign({},this.C),t),this.H(),this}setExtra(t,e){return this.C=Object.assign(Object.assign({},this.C),{[t]:e}),this.H(),this}setFingerprint(t){return this.B=t,this.H(),this}setLevel(t){return this.U=t,this.H(),this}setTransactionName(t){return this.F=t,this.H(),this}setTransaction(t){return this.setTransactionName(t)}setContext(t,e){return null===e?delete this.A[t]:this.A=Object.assign(Object.assign({},this.A),{[t]:e}),this.H(),this}setSpan(t){return this.L=t,this.H(),this}getSpan(){return this.L}getTransaction(){var t,e,n,r;const s=this.getSpan();return(null===(t=s)||void 0===t?void 0:t.transaction)?null===(e=s)||void 0===e?void 0:e.transaction:(null===(r=null===(n=s)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?s.spanRecorder.spans[0]:void 0}setSession(t){return t?this.q=t:delete this.q,this.H(),this}getSession(){return this.q}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof Et?e:this}return t instanceof Et?(this.M=Object.assign(Object.assign({},this.M),t.M),this.C=Object.assign(Object.assign({},this.C),t.C),this.A=Object.assign(Object.assign({},this.A),t.A),t.N&&Object.keys(t.N).length&&(this.N=t.N),t.U&&(this.U=t.U),t.B&&(this.B=t.B)):h(t)&&(t=t,this.M=Object.assign(Object.assign({},this.M),t.tags),this.C=Object.assign(Object.assign({},this.C),t.extra),this.A=Object.assign(Object.assign({},this.A),t.contexts),t.user&&(this.N=t.user),t.level&&(this.U=t.level),t.fingerprint&&(this.B=t.fingerprint)),this}clear(){return this.I=[],this.M={},this.C={},this.N={},this.A={},this.U=void 0,this.F=void 0,this.B=void 0,this.L=void 0,this.q=void 0,this.H(),this}addBreadcrumb(t,e){const n=Object.assign({timestamp:Ot()},t);return this.I=void 0!==e&&e>=0?[...this.I,n].slice(-e):[...this.I,n],this.H(),this}clearBreadcrumbs(){return this.I=[],this.H(),this}applyToEvent(t,e){var n;if(this.C&&Object.keys(this.C).length&&(t.extra=Object.assign(Object.assign({},this.C),t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=Object.assign(Object.assign({},this.M),t.tags)),this.N&&Object.keys(this.N).length&&(t.user=Object.assign(Object.assign({},this.N),t.user)),this.A&&Object.keys(this.A).length&&(t.contexts=Object.assign(Object.assign({},this.A),t.contexts)),this.U&&(t.level=this.U),this.F&&(t.transaction=this.F),this.L){t.contexts=Object.assign({trace:this.L.getTraceContext()},t.contexts);const e=null===(n=this.L.transaction)||void 0===n?void 0:n.name;e&&(t.tags=Object.assign({transaction:e},t.tags))}return this.P(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.I],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.X([..._t(),...this.R],t,e)}X(t,e,n,r=0){return new vt((s,i)=>{const o=t[r];if(null===e||"function"!=typeof o)s(e);else{const c=o(Object.assign({},e),n);d(c)?c.then(e=>this.X(t,e,n,r+1).then(s)).then(null,i):this.X(t,c,n,r+1).then(s).then(null,i)}})}H(){this.T||(this.T=!0,this.D.forEach(t=>{t(this)}),this.T=!1)}P(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.B&&(t.fingerprint=t.fingerprint.concat(this.B)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function _t(){const t=q();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function $t(t){_t().push(t)}class xt{constructor(t){this.errors=0,this.sid=F(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=n.Ok,t&&this.update(t)}update(t={}){t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:F()),t.did&&(this.did=`${t.did}`),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),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}):this.status===n.Ok?this.update({status:n.Exited}):this.update()}toJSON(){return A({sid:`${this.sid}`,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(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:A({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})}}const St=3,kt=100,Tt=100;class Dt{constructor(t,e=new Et,n=St){this.W=n,this.J=[{}],this.getStackTop().scope=e,this.bindClient(t)}isOlderThan(t){return this.W<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Et.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.J}getStackTop(){return this.J[this.J.length-1]}captureException(t,e){const n=this.G=F();let r=e;if(!e){let e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this.V("captureException",t,Object.assign(Object.assign({},r),{event_id:n})),n}captureMessage(t,e,n){const r=this.G=F();let s=n;if(!n){let e;try{throw new Error(t)}catch(t){e=t}s={originalException:t,syntheticException:e}}return this.V("captureMessage",t,e,Object.assign(Object.assign({},s),{event_id:r})),r}captureEvent(t,e){const n=this.G=F();return this.V("captureEvent",t,Object.assign(Object.assign({},e),{event_id:n})),n}lastEventId(){return this.G}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=kt}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const o=Ot(),c=Object.assign({timestamp:o},t),u=s?P(()=>s(c,e)):c;null!==u&&n.addBreadcrumb(u,Math.min(i,Tt))}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=It(this);try{t(this)}finally{It(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return V.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startSpan(t){return this.K("startSpan",t)}startTransaction(t,e){return this.K("startTransaction",t,e)}traceHeaders(){return this.K("traceHeaders")}startSession(t){this.endSession();const{scope:e,client:n}=this.getStackTop(),{release:r,environment:s}=n&&n.getOptions()||{},i=new xt(Object.assign(Object.assign({release:r,environment:s},e&&{user:e.getUser()}),t));return e&&e.setSession(i),i}endSession(){const{scope:t,client:e}=this.getStackTop();if(!t)return;const n=t.getSession&&t.getSession();n&&(n.close(),e&&e.captureSession&&e.captureSession(n),t.setSession())}V(t,...e){const{scope:n,client:r}=this.getStackTop();r&&r[t]&&r[t](...e,n)}K(t,...e){const n=Rt().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);V.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Rt(){const t=q();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function It(t){const e=Rt(),n=Ct(e);return At(e,t),n}function Nt(){const t=Rt();return Mt(t)&&!Ct(t).isOlderThan(St)||At(t,new Dt),U()?function(t){try{const e=function(){const t=Rt().__SENTRY__;return t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active}();if(!e)return Ct(t);if(!Mt(e)||Ct(e).isOlderThan(St)){const n=Ct(t).getStackTop();At(e,new Dt(n.client,Et.clone(n.scope)))}return Ct(e)}catch(e){return Ct(t)}}(t):Ct(t)}function Mt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Ct(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Dt,t.__SENTRY__.hub)}function At(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Ut(t,...e){const n=Nt();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){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return Ut("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Lt(t){Ut("withScope",t)}const qt="7";class Ft{constructor(t){this.dsn=t,this.Y=new w(t)}getDsn(){return this.Y}getBaseApiEndpoint(){const t=this.Y,e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}getStoreEndpoint(){return this.Z("store")}getStoreEndpointWithUrlEncodedAuth(){return`${this.getStoreEndpoint()}?${this.tt()}`}getEnvelopeEndpointWithUrlEncodedAuth(){return`${this.et()}?${this.tt()}`}getStoreEndpointPath(){const t=this.Y;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,e){const n=this.Y,r=[`Sentry sentry_version=${qt}`];return r.push(`sentry_client=${t}/${e}`),r.push(`sentry_key=${n.user}`),n.pass&&r.push(`sentry_secret=${n.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const e=this.Y,n=`${this.getBaseApiEndpoint()}embed/error-page/`,r=[];r.push(`dsn=${e.toString()}`);for(const e in t)if("dsn"!==e)if("user"===e){if(!t.user)continue;t.user.name&&r.push(`name=${encodeURIComponent(t.user.name)}`),t.user.email&&r.push(`email=${encodeURIComponent(t.user.email)}`)}else r.push(`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`);return r.length?`${n}?${r.join("&")}`:n}et(){return this.Z("envelope")}Z(t){return`${this.getBaseApiEndpoint()}${this.Y.projectId}/${t}/`}tt(){const t={sentry_key:this.Y.user,sentry_version:qt};return e=t,Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&");var e}}const Bt=[];function Ht(t){const e={};return function(t){const e=t.defaultIntegrations&&[...t.defaultIntegrations]||[],n=t.integrations;let r=[];if(Array.isArray(n)){const t=n.map(t=>t.name),s=[];e.forEach(e=>{-1===t.indexOf(e.name)&&-1===s.indexOf(e.name)&&(r.push(e),s.push(e.name))}),n.forEach(t=>{-1===s.indexOf(t.name)&&(r.push(t),s.push(t.name))})}else"function"==typeof n?(r=n(e),r=Array.isArray(r)?r:[r]):r=[...e];const s=r.map(t=>t.name);return-1!==s.indexOf("Debug")&&r.push(...r.splice(s.indexOf("Debug"),1)),r}(t).forEach(t=>{e[t.name]=t,function(t){-1===Bt.indexOf(t.name)&&(t.setupOnce($t,Nt),Bt.push(t.name),V.log(`Integration installed: ${t.name}`))}(t)}),e}class Pt{constructor(t,e){this.nt={},this.rt=0,this.st=new t(e),this.it=e,e.dsn&&(this.ot=new w(e.dsn))}captureException(t,e,n){let r=e&&e.event_id;return this.ct(this.ut().eventFromException(t,e).then(t=>this.at(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let s=n&&n.event_id;const i=a(t)?this.ut().eventFromMessage(`${t}`,e,n):this.ut().eventFromException(t,n);return this.ct(i.then(t=>this.at(t,n,r)).then(t=>{s=t})),s}captureEvent(t,e,n){let r=e&&e.event_id;return this.ct(this.at(t,e,n).then(t=>{r=t})),r}captureSession(t){t.release?this.ht(t):V.warn("Discarded session because of missing release")}getDsn(){return this.ot}getOptions(){return this.it}flush(t){return this.lt(t).then(e=>this.ut().getTransport().close(t).then(t=>e&&t))}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}setupIntegrations(){this.ft()&&(this.nt=Ht(this.it))}getIntegration(t){try{return this.nt[t.id]||null}catch(e){return V.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}dt(t,e){let r,s=!1,i=!1;const o=e.exception&&e.exception.values;if(o){i=!0;for(const t of o){const e=t.mechanism;if(e&&!1===e.handled){s=!0;break}}}const c=e.user;if(!t.userAgent){const t=e.request?e.request.headers:{};for(const e in t)if("user-agent"===e.toLowerCase()){r=t[e];break}}t.update(Object.assign(Object.assign({},s&&{status:n.Crashed}),{user:c,userAgent:r,errors:t.errors+Number(i||s)}))}ht(t){this.ut().sendSession(t)}lt(t){return new vt(e=>{let n=0;const r=setInterval(()=>{0==this.rt?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}ut(){return this.st}ft(){return!1!==this.getOptions().enabled&&void 0!==this.ot}pt(t,e,n){const{normalizeDepth:r=3}=this.getOptions(),s=Object.assign(Object.assign({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:F()),timestamp:t.timestamp||Ot()});this.bt(s),this.vt(s);let i=e;n&&n.captureContext&&(i=Et.clone(i).update(n.captureContext));let o=vt.resolve(s);return i&&(o=i.applyToEvent(s,n)),o.then(t=>"number"==typeof r&&r>0?this.yt(t,r):t)}yt(t,e){if(!t)return null;const n=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:M(t.data,e)}))}),t.user&&{user:M(t.user,e)}),t.contexts&&{contexts:M(t.contexts,e)}),t.extra&&{extra:M(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n}bt(t){const e=this.getOptions(),{environment:n,release:r,dist:s,maxValueLength:i=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!==s&&(t.dist=s),t.message&&(t.message=$(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=$(o.value,i));const c=t.request;c&&c.url&&(c.url=$(c.url,i))}vt(t){const e=t.sdk,n=Object.keys(this.nt);e&&n.length>0&&(e.integrations=n)}gt(t){this.ut().sendEvent(t)}at(t,e,n){return this.jt(t,e,n).then(t=>t.event_id,t=>{V.error(t)})}jt(t,e,n){const{beforeSend:r,sampleRate:s}=this.getOptions();if(!this.ft())return vt.reject(new y("SDK not enabled, will not send event."));const i="transaction"===t.type;return!i&&"number"==typeof s&&Math.random()>s?vt.reject(new y("This event has been sampled, will not send event.")):this.pt(t,n,e).then(t=>{if(null===t)throw new y("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||i||!r)return t;const n=r(t,e);if(void 0===n)throw new y("`beforeSend` method has to return `null` or a valid event.");return d(n)?n.then(t=>t,t=>{throw new y(`beforeSend rejected with ${t}`)}):n}).then(t=>{if(null===t)throw new y("`beforeSend` returned `null`, will not send event.");const e=n&&n.getSession&&n.getSession();return!i&&e&&this.dt(e,t),this.gt(t),t}).then(null,t=>{if(t instanceof y)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new y(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}ct(t){this.rt+=1,t.then(t=>(this.rt-=1,t),t=>(this.rt-=1,t))}}class Xt{sendEvent(e){return vt.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})}close(t){return vt.resolve(!0)}}class Wt{constructor(t){this.it=t,this.it.dsn||V.warn("No DSN provided, backend will not do anything."),this.wt=this.Ot()}eventFromException(t,e){throw new y("Backend has to implement `eventFromException` method")}eventFromMessage(t,e,n){throw new y("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.wt.sendEvent(t).then(null,t=>{V.error(`Error while sending event: ${t}`)})}sendSession(t){this.wt.sendSession?this.wt.sendSession(t).then(null,t=>{V.error(`Error while sending session: ${t}`)}):V.warn("Dropping session because custom transport doesn't implement sendSession")}getTransport(){return this.wt}Ot(){return new Xt}}function Jt(t,e){return{body:`${JSON.stringify({sent_at:(new Date).toISOString()})}\n${JSON.stringify({type:"session"})}\n${JSON.stringify(t)}`,type:"session",url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function Gt(t,e){const n="transaction"===t.type,r={body:JSON.stringify(t),type:t.type||"event",url:n?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(n){const e=`${JSON.stringify({event_id:t.event_id,sent_at:(new Date).toISOString()})}\n${JSON.stringify({type:t.type})}\n${r.body}`;r.body=e}return r}let zt;class Vt{constructor(){this.name=Vt.id}setupOnce(){zt=Function.prototype.toString,Function.prototype.toString=function(...t){const e=this.__sentry_original__||this;return zt.apply(e,t)}}}Vt.id="FunctionToString";const Kt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Qt{constructor(t={}){this.it=t,this.name=Qt.id}setupOnce(){$t(t=>{const e=Nt();if(!e)return t;const n=e.getIntegration(Qt);if(n){const r=e.getClient(),s=r?r.getOptions():{},i=n.Et(s);if(n._t(t,i))return null}return t})}_t(t,e){return this.$t(t,e)?(V.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${H(t)}`),!0):this.xt(t,e)?(V.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${H(t)}`),!0):this.St(t,e)?(V.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${H(t)}.\nUrl: ${this.kt(t)}`),!0):!this.Tt(t,e)&&(V.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${H(t)}.\nUrl: ${this.kt(t)}`),!0)}$t(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}}xt(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.Dt(t).some(t=>e.ignoreErrors.some(e=>S(t,e)))}St(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;const n=this.kt(t);return!!n&&e.denyUrls.some(t=>S(n,t))}Tt(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;const n=this.kt(t);return!n||e.allowUrls.some(t=>S(n,t))}Et(t={}){return{allowUrls:[...this.it.whitelistUrls||[],...this.it.allowUrls||[],...t.whitelistUrls||[],...t.allowUrls||[]],denyUrls:[...this.it.blacklistUrls||[],...this.it.denyUrls||[],...t.blacklistUrls||[],...t.denyUrls||[]],ignoreErrors:[...this.it.ignoreErrors||[],...t.ignoreErrors||[],...Kt],ignoreInternal:void 0===this.it.ignoreInternal||this.it.ignoreInternal}}Dt(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 V.error(`Cannot extract message for event ${H(t)}`),[]}return[]}kt(t){try{if(t.stacktrace){const e=t.stacktrace.frames;return e&&e[e.length-1].filename||null}if(t.exception){const e=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return e&&e[e.length-1].filename||null}return null}catch(e){return V.error(`Cannot extract url for event ${H(t)}`),null}}}Qt.id="InboundFilters";var Yt=Object.freeze({__proto__:null,FunctionToString:Vt,InboundFilters:Qt});const Zt="?",te=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ee=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ne=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,re=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,se=/\((\S*)(?::(\d+))(?::(\d+))\)/,ie=/Minified React error #\d+;/i;function oe(t){let e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:ie.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;const e=t.stacktrace,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,s=e.split("\n"),i=[];let o;for(let t=0;t<s.length;t+=2){let e=null;(o=n.exec(s[t]))?e={url:o[2],func:o[3],args:[],line:+o[1],column:null}:(o=r.exec(s[t]))&&(e={url:o[6],func:o[3]||o[4],args:o[5]?o[5].split(","):[],line:+o[1],column:+o[2]}),e&&(!e.func&&e.line&&(e.func=Zt),i.push(e))}if(!i.length)return null;return{message:ue(t),name:t.name,stack:i}}(t))return ce(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;const e=[],n=t.stack.split("\n");let r,s,i,o;for(let c=0;c<n.length;++c){if(i=te.exec(n[c])){const t=i[2]&&0===i[2].indexOf("native");(r=i[2]&&0===i[2].indexOf("eval"))&&(s=se.exec(i[2]))&&(i[2]=s[1],i[3]=s[2],i[4]=s[3]),o={url:i[2]&&0===i[2].indexOf("address at ")?i[2].substr("address at ".length):i[2],func:i[1]||Zt,args:t?[i[2]]:[],line:i[3]?+i[3]:null,column:i[4]?+i[4]:null}}else if(i=ne.exec(n[c]))o={url:i[2],func:i[1]||Zt,args:[],line:+i[3],column:i[4]?+i[4]:null};else{if(!(i=ee.exec(n[c])))continue;(r=i[3]&&i[3].indexOf(" > eval")>-1)&&(s=re.exec(i[3]))?(i[1]=i[1]||"eval",i[3]=s[1],i[4]=s[2],i[5]=""):0!==c||i[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1),o={url:i[3],func:i[1]||Zt,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null}}!o.func&&o.line&&(o.func=Zt),e.push(o)}if(!e.length)return null;return{message:ue(t),name:t.name,stack:e}}(t))return ce(e,n)}catch(t){}return{message:ue(t),name:t&&t.name,stack:[],failed:!0}}function ce(t,e){try{return Object.assign(Object.assign({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function ue(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}const ae=50;function he(t){const e=fe(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function le(t){return{exception:{values:[he(t)]}}}function fe(t){if(!t||!t.length)return[];let e=t;const n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,ae).map(t=>({colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line})).reverse()}function de(e,n,r){const s=be(n,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return W(s,{handled:!0,type:"generic"}),s.level=t.Severity.Error,r&&r.event_id&&(s.event_id=r.event_id),vt.resolve(s)}function pe(e,n,r=t.Severity.Info,s){const i=me(n,s&&s.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=r,s&&s.event_id&&(i.event_id=s.event_id),vt.resolve(i)}function be(t,e,n={}){let r;if(o(t)&&t.error){return r=le(oe(t=t.error))}if(c(t)||(s=t,"[object DOMException]"===Object.prototype.toString.call(s))){const s=t,i=s.name||(c(s)?"DOMError":"DOMException"),o=s.message?`${i}: ${s.message}`:i;return X(r=me(o,e,n),o),"code"in s&&(r.tags=Object.assign(Object.assign({},r.tags),{"DOMException.code":`${s.code}`})),r}var s;if(i(t))return r=le(oe(t));if(h(t)||l(t)){return W(r=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: ${C(t)}`}]},extra:{__serialized__:R(t)}};if(e){const t=fe(oe(e).stack);r.stacktrace={frames:t}}return r}(t,e,n.rejection),{synthetic:!0}),r}return X(r=me(t,e,n),`${t}`,void 0),W(r,{synthetic:!0}),r}function me(t,e,n={}){const r={message:t};if(n.attachStacktrace&&e){const t=fe(oe(e).stack);r.stacktrace={frames:t}}return r}class ve{constructor(t){this.options=t,this.k=new yt(30),this.Rt={},this.It=new Ft(this.options.dsn),this.url=this.It.getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){throw new y("Transport Class has to implement `sendEvent` method")}close(t){return this.k.drain(t)}Nt({requestType:e,response:n,headers:r,resolve:s,reject:i}){const o=t.Status.fromHttpCode(n.status);this.Mt(r)&&V.warn(`Too many requests, backing off till: ${this.Ct(e)}`),o!==t.Status.Success?i(n):s({status:o})}Ct(t){return this.Rt[t]||this.Rt.all}At(t){return this.Ct(t)>new Date(Date.now())}Mt(t){const e=Date.now(),n=t["x-sentry-rate-limits"],r=t["retry-after"];if(n){for(const t of n.trim().split(",")){const n=t.split(":",2),r=parseInt(n[0],10),s=1e3*(isNaN(r)?60:r);for(const t of n[1].split(";"))this.Rt[t||"all"]=new Date(e+s)}return!0}return!!r&&(this.Rt.all=new Date(e+function(t,e){if(!e)return J;const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?J:r-t}(e,r)),!0)}}const ye=q();class ge extends ve{sendEvent(t){return this.Ut(Gt(t,this.It),t)}sendSession(t){return this.Ut(Jt(t,this.It),t)}Ut(t,e){if(this.At(t.type))return Promise.reject({event:e,type:t.type,reason:`Transport locked till ${this.Ct(t.type)} due to too many requests.`,status:429});const n={body:t.body,method:"POST",referrerPolicy:Y()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this.k.add(new vt((e,r)=>{ye.fetch(t.url,n).then(n=>{const s={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};this.Nt({requestType:t.type,response:n,headers:s,resolve:e,reject:r})}).catch(r)}))}}class je extends ve{sendEvent(t){return this.Ut(Gt(t,this.It),t)}sendSession(t){return this.Ut(Jt(t,this.It),t)}Ut(t,e){return this.At(t.type)?Promise.reject({event:e,type:t.type,reason:`Transport locked till ${this.Ct(t.type)} due to too many requests.`,status:429}):this.k.add(new vt((e,n)=>{const r=new XMLHttpRequest;r.onreadystatechange=(()=>{if(4===r.readyState){const s={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};this.Nt({requestType:t.type,response:r,headers:s,resolve:e,reject:n})}}),r.open("POST",t.url);for(const t in this.options.headers)this.options.headers.hasOwnProperty(t)&&r.setRequestHeader(t,this.options.headers[t]);r.send(t.body)}))}}var we=Object.freeze({__proto__:null,BaseTransport:ve,FetchTransport:ge,XHRTransport:je});class Oe extends Wt{eventFromException(t,e){return de(this.it,t,e)}eventFromMessage(e,n=t.Severity.Info,r){return pe(this.it,e,n,r)}Ot(){if(!this.it.dsn)return super.Ot();const t=Object.assign(Object.assign({},this.it.transportOptions),{dsn:this.it.dsn});return this.it.transport?new this.it.transport(t):K()?new ge(t):new je(t)}}let Ee=0;function _e(){return Ee>0}function $e(t,e={},n){if("function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=r.map(t=>$e(t,e));return t.handleEvent?t.handleEvent.apply(this,s):t.apply(this,s)}catch(t){throw Ee+=1,setTimeout(()=>{Ee-=1}),Lt(n=>{n.addEventProcessor(t=>{const n=Object.assign({},t);return e.mechanism&&(X(n,void 0,void 0),W(n,e.mechanism)),n.extra=Object.assign(Object.assign({},n.extra),{arguments:r}),n}),captureException(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function xe(t={}){if(!t.eventId)return void V.error("Missing eventId option in showReportDialog call");if(!t.dsn)return void V.error("Missing dsn option in showReportDialog call");const e=document.createElement("script");e.async=!0,e.src=new Ft(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}class Se{constructor(t){this.name=Se.id,this.Lt=!1,this.qt=!1,this.it=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,this.it.onerror&&(V.log("Global Handler attached: onerror"),this.Ft()),this.it.onunhandledrejection&&(V.log("Global Handler attached: onunhandledrejection"),this.Bt())}Ft(){this.Lt||(rt({callback:t=>{const e=t.error,n=Nt(),r=n.getIntegration(Se),s=e&&!0===e.__sentry_own_request__;if(!r||_e()||s)return;const i=n.getClient(),o=a(e)?this.Ht(t.msg,t.url,t.line,t.column):this.Pt(be(e,void 0,{attachStacktrace:i&&i.getOptions().attachStacktrace,rejection:!1}),t.url,t.line,t.column);W(o,{handled:!1,type:"onerror"}),n.captureEvent(o,{originalException:e})},type:"error"}),this.Lt=!0)}Bt(){this.qt||(rt({callback:e=>{let n=e;try{"reason"in e?n=e.reason:"detail"in e&&"reason"in e.detail&&(n=e.detail.reason)}catch(t){}const r=Nt(),s=r.getIntegration(Se),i=n&&!0===n.__sentry_own_request__;if(!s||_e()||i)return!0;const o=r.getClient(),c=a(n)?this.Xt(n):be(n,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!0});c.level=t.Severity.Error,W(c,{handled:!1,type:"onunhandledrejection"}),r.captureEvent(c,{originalException:n})},type:"unhandledrejection"}),this.qt=!0)}Ht(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i,c=o(t)?t.message:t;if(u(c)){const t=c.match(s);t&&(i=t[1],c=t[2])}const a={exception:{values:[{type:i||"Error",value:c}]}};return this.Pt(a,e,n,r)}Xt(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${t}`}]}}}Pt(t,e,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];const s=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,o=u(e)&&e.length>0?e:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:s,filename:o,function:"?",in_app:!0,lineno:i}),t}}Se.id="GlobalHandlers";const ke=["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 Te{constructor(t){this.name=Te.id,this.it=Object.assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}setupOnce(){const t=q();if(this.it.setTimeout&&k(t,"setTimeout",this.Wt.bind(this)),this.it.setInterval&&k(t,"setInterval",this.Wt.bind(this)),this.it.requestAnimationFrame&&k(t,"requestAnimationFrame",this.Jt.bind(this)),this.it.XMLHttpRequest&&"XMLHttpRequest"in t&&k(XMLHttpRequest.prototype,"send",this.Gt.bind(this)),this.it.eventTarget){(Array.isArray(this.it.eventTarget)?this.it.eventTarget:ke).forEach(this.zt.bind(this))}}Wt(t){return function(...e){const n=e[0];return e[0]=$e(n,{mechanism:{data:{function:_(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}Jt(t){return function(e){return t.call(this,$e(e,{mechanism:{data:{function:"requestAnimationFrame",handler:_(t)},handled:!0,type:"instrument"}}))}}zt(t){const e=q(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(k(n,"addEventListener",function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=$e(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:_(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,$e(r,{mechanism:{data:{function:"addEventListener",handler:_(r),target:t},handled:!0,type:"instrument"}}),s)}}),k(n,"removeEventListener",function(t){return function(e,n,r){var s;const i=n;try{const n=null===(s=i)||void 0===s?void 0:s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}}))}Gt(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&k(n,t,function(e){const n={mechanism:{data:{function:t,handler:_(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(n.mechanism.data.handler=_(e.__sentry_original__)),$e(e,n)})}),t.apply(this,e)}}}Te.id="TryCatch";class De{constructor(t){this.name=De.id,this.it=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}addSentryBreadcrumb(t){this.it.sentry&&Nt().addBreadcrumb({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:H(t)},{event:t})}setupOnce(){this.it.console&&rt({callback:(...t)=>{this.Vt(...t)},type:"console"}),this.it.dom&&rt({callback:(...t)=>{this.Kt(...t)},type:"dom"}),this.it.xhr&&rt({callback:(...t)=>{this.Qt(...t)},type:"xhr"}),this.it.fetch&&rt({callback:(...t)=>{this.Yt(...t)},type:"fetch"}),this.it.history&&rt({callback:(...t)=>{this.Zt(...t)},type:"history"})}Vt(e){const n={category:"console",data:{arguments:e.args,logger:"console"},level:t.Severity.fromString(e.level),message:x(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${x(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Nt().addBreadcrumb(n,{input:e.args,level:e.level})}Kt(t){let e;try{e=t.event.target?b(t.event.target):b(t.event)}catch(t){e="<unknown>"}0!==e.length&&Nt().addBreadcrumb({category:`ui.${t.name}`,message:e},{event:t.event,name:t.name})}Qt(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:s}=t.xhr.__sentry_xhr__||{};Nt().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:s})}else;}Yt(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Nt().addBreadcrumb({category:"fetch",data:e.fetchData,level:t.Severity.Error,type:"http"},{data:e.error,input:e.args}):Nt().addBreadcrumb({category:"fetch",data:Object.assign(Object.assign({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}Zt(t){const e=q();let n=t.from,r=t.to;const s=B(e.location.href);let i=B(n);const o=B(r);i.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),Nt().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}}De.id="Breadcrumbs";const Re="cause",Ie=5;class Ne{constructor(t={}){this.name=Ne.id,this.te=t.key||Re,this.S=t.limit||Ie}setupOnce(){$t((t,e)=>{const n=Nt().getIntegration(Ne);return n?n.ee(t,e):t})}ee(t,e){if(!(t.exception&&t.exception.values&&e&&p(e.originalException,Error)))return t;const n=this.ne(e.originalException,this.te);return t.exception.values=[...n,...t.exception.values],t}ne(t,e,n=[]){if(!p(t[e],Error)||n.length+1>=this.S)return n;const r=he(oe(t[e]));return this.ne(t[e],e,[r,...n])}}Ne.id="LinkedErrors";const Me=q();class Ce{constructor(){this.name=Ce.id}setupOnce(){$t(t=>{var e,n,r;if(Nt().getIntegration(Ce)){if(!Me.navigator&&!Me.location&&!Me.document)return t;const s=(null===(e=t.request)||void 0===e?void 0:e.url)||(null===(n=Me.location)||void 0===n?void 0:n.href),{referrer:i}=Me.document||{},{userAgent:o}=Me.navigator||{},c=Object.assign(Object.assign(Object.assign({},null===(r=t.request)||void 0===r?void 0:r.headers),i&&{Referer:i}),o&&{"User-Agent":o}),u=Object.assign(Object.assign({},s&&{url:s}),{headers:c});return Object.assign(Object.assign({},t),{request:u})}return t})}}Ce.id="UserAgent";var Ae=Object.freeze({__proto__:null,GlobalHandlers:Se,TryCatch:Te,Breadcrumbs:De,LinkedErrors:Ne,UserAgent:Ce});const Ue="sentry.javascript.browser",Le="5.28.0";class qe extends Pt{constructor(t={}){super(Oe,t)}showReportDialog(t={}){q().document&&(this.ft()?xe(Object.assign(Object.assign({},t),{dsn:t.dsn||this.getDsn()})):V.error("Trying to call showReportDialog with Sentry Client disabled"))}pt(t,e,n){return t.platform=t.platform||"javascript",t.sdk=Object.assign(Object.assign({},t.sdk),{name:Ue,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:Le}],version:Le}),super.pt(t,e,n)}gt(t){const e=this.getIntegration(De);e&&e.addSentryBreadcrumb(t),super.gt(t)}}const Fe=[new Qt,new Vt,new Te,new De,new Se,new Ne,new Ce];let Be={};const He=q();He.Sentry&&He.Sentry.Integrations&&(Be=He.Sentry.Integrations);const Pe=Object.assign(Object.assign(Object.assign({},Be),Yt),Ae);return t.BrowserClient=qe,t.Hub=Dt,t.Integrations=Pe,t.SDK_NAME=Ue,t.SDK_VERSION=Le,t.Scope=Et,t.Transports=we,t.addBreadcrumb=function(t){Ut("addBreadcrumb",t)},t.addGlobalEventProcessor=$t,t.captureEvent=function(t){return Ut("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,e){let n;try{throw new Error(t)}catch(t){n=t}const r="string"!=typeof e?{captureContext:e}:void 0;return Ut("captureMessage",t,"string"==typeof e?e:void 0,Object.assign({originalException:t,syntheticException:n},r))},t.close=function(t){const e=Nt().getClient();return e?e.close(t):vt.reject(!1)},t.configureScope=function(t){Ut("configureScope",t)},t.defaultIntegrations=Fe,t.eventFromException=de,t.eventFromMessage=pe,t.flush=function(t){const e=Nt().getClient();return e?e.flush(t):vt.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=Nt,t.getHubFromCarrier=Ct,t.init=function(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=Fe),void 0===t.release){const e=q();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!1),function(t,e){!0===e.debug&&V.enable();const n=Nt(),r=new t(e);n.bindClient(r)}(qe,t),t.autoSessionTracking&&function(){const t=q(),e=Nt();let n="complete"===document.readyState,r=!1;const s=()=>{r&&n&&e.endSession()},i=()=>{n=!0,s(),t.removeEventListener("load",i)};e.startSession(),n||t.addEventListener("load",i);try{const t=new PerformanceObserver((t,n)=>{t.getEntries().forEach(t=>{"first-contentful-paint"===t.name&&t.startTime<e&&(n.disconnect(),r=!0,s())})});let e="hidden"===document.visibilityState?0:1/0;document.addEventListener("visibilitychange",t=>{e=Math.min(e,t.timeStamp)},{once:!0}),t.observe({type:"paint",buffered:!0})}catch(t){r=!0,s()}}()},t.injectReportDialog=xe,t.lastEventId=function(){return Nt().lastEventId()},t.makeMain=It,t.onLoad=function(t){t()},t.setContext=function(t,e){Ut("setContext",t,e)},t.setExtra=function(t,e){Ut("setExtra",t,e)},t.setExtras=function(t){Ut("setExtras",t)},t.setTag=function(t,e){Ut("setTag",t,e)},t.setTags=function(t){Ut("setTags",t)},t.setUser=function(t){Ut("setUser",t)},t.showReportDialog=function(t={}){t.eventId||(t.eventId=Nt().lastEventId());const e=Nt().getClient();e&&e.showReportDialog(t)},t.startTransaction=function(t,e){return Ut("startTransaction",Object.assign({},t),e)},t.withScope=Lt,t.wrap=function(t){return $e(t)()},t}({});
|
|
1
|
+
/*! @sentry/browser 5.30.0 (6de2dd4) | https://github.com/getsentry/sentry-javascript */
|
|
2
|
+
var Sentry=function(t){var e,n,r,s,i;function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(t,Error)}}function c(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function u(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function h(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(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 m(t){try{let e=t;const n=5,r=80,s=[];let i=0,o=0;const c=" > ",u=c.length;let a;for(;e&&i++<n&&!("html"===(a=y(e))||i>1&&o+s.length*u+a.length>=r);)s.push(a),o+=a.length,e=e.parentNode;return s.reverse().join(c)}catch(t){return"<unknown>"}}function y(t){const e=t,n=[];let r,s,i,o,c;if(!e||!e.tagName)return"";if(n.push(e.tagName.toLowerCase()),e.id&&n.push(`#${e.id}`),(r=e.className)&&a(r))for(s=r.split(/\s+/),c=0;c<s.length;c++)n.push(`.${s[c]}`);const u=["type","name","title","alt"];for(c=0;c<u.length;c++)i=u[c],(o=e.getAttribute(i))&&n.push(`[${i}="${o}"]`);return n.join("")}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(e||(e={})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(n||(n={})),(r=t.Severity||(t.Severity={})).Fatal="fatal",r.Error="error",r.Warning="warning",r.Log="log",r.Info="info",r.Debug="debug",r.Critical="critical",function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(s=t.Status||(t.Status={})).Unknown="unknown",s.Skipped="skipped",s.Success="success",s.RateLimit="rate_limit",s.Invalid="invalid",s.Failed="failed",function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(i||(i={}));const v=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(const n in e)t.hasOwnProperty(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,v(this,new.target.prototype)}}const j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,O="Invalid Dsn";class w{constructor(t){"string"==typeof t?this.t(t):this.s(t),this.i()}toString(t=!1){const{host:e,path:n,pass:r,port:s,projectId:i,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${e}${s?`:${s}`:""}/${n?`${n}/`:n}${i}`}t(t){const e=j.exec(t);if(!e)throw new g(O);const[n,r,s="",i,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])}this.s({host:i,pass:s,path:u,projectId:a,port:o,protocol:n,user:r})}s(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId}i(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new g(`${O}: ${t} missing`)}),!this.projectId.match(/^\d+$/))throw new g(`${O}: Invalid projectId ${this.projectId}`);if("http"!==this.protocol&&"https"!==this.protocol)throw new g(`${O}: Invalid protocol ${this.protocol}`);if(this.port&&isNaN(parseInt(this.port,10)))throw new g(`${O}: Invalid port ${this.port}`)}}class E{constructor(){this.o="function"==typeof WeakSet,this.u=this.o?new WeakSet:[]}memoize(t){if(this.o)return!!this.u.has(t)||(this.u.add(t),!1);for(let e=0;e<this.u.length;e++){if(this.u[e]===t)return!0}return this.u.push(t),!1}unmemoize(t){if(this.o)this.u.delete(t);else for(let e=0;e<this.u.length;e++)if(this.u[e]===t){this.u.splice(e,1);break}}}const _="<anonymous>";function $(t){try{return t&&"function"==typeof t&&t.name||_}catch(t){return _}}function x(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.substr(0,e)}...`}function S(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 k(t,e){return!!a(t)&&(n=e,"[object RegExp]"===Object.prototype.toString.call(n)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e));var n}function T(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);if("function"==typeof s)try{s.prototype=s.prototype||{},Object.defineProperties(s,{__sentry_original__:{enumerable:!1,value:r}})}catch(t){}t[e]=s}function D(t){if(o(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(f(t)){const e=t,n={};n.type=e.type;try{n.target=d(e.target)?m(e.target):Object.prototype.toString.call(e.target)}catch(t){n.target="<unknown>"}try{n.currentTarget=d(e.currentTarget)?m(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);return n}return t}function R(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function I(t,e=3,n=102400){const r=C(t,e);return R(r)>n?I(t,e-1,n):r}function N(t,e){return"domain"===e&&t&&"object"==typeof t&&t.h?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":l(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: ${$(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:t;var n}function M(t,e,n=1/0,r=new E){if(0===n)return function(t){const e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";const n=N(t);return h(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();const s=N(e,t);if(h(s))return s;const i=D(e),o=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(o[t]=M(t,i[t],n-1,r));return r.unmemoize(e),o}function C(t,e){try{return JSON.parse(JSON.stringify(t,(t,n)=>M(t,n,e)))}catch(t){return"**non-serializable**"}}function A(t,e=40){const n=Object.keys(D(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return x(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:x(r,e)}return""}function U(t){if(l(t)){const e=t,n={};for(const t of Object.keys(e))void 0!==e[t]&&(n[t]=U(e[t]));return n}return Array.isArray(t)?t.map(U):t}function L(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}const q={};function F(){return L()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:q}function B(){const t=F(),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 H(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 P(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const e=t.exception.values[0];return e.type&&e.value?`${e.type}: ${e.value}`:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function W(t){const e=F();if(!("console"in e))return t();const n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});const s=t();return Object.keys(r).forEach(t=>{n[t]=r[t]}),s}function X(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function J(t,e={}){try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach(n=>{t.exception.values[0].mechanism[n]=e[n]})}catch(t){}}const G=6e4;const z=F(),V="Sentry Logger ";z.__SENTRY__=z.__SENTRY__||{};const K=z.__SENTRY__.logger||(z.__SENTRY__.logger=new class{constructor(){this.l=!1}disable(){this.l=!1}enable(){this.l=!0}log(...t){this.l&&W(()=>{z.console.log(`${V}[Log]: ${t.join(" ")}`)})}warn(...t){this.l&&W(()=>{z.console.warn(`${V}[Warn]: ${t.join(" ")}`)})}error(...t){this.l&&W(()=>{z.console.error(`${V}[Error]: ${t.join(" ")}`)})}});function Q(){if(!("fetch"in F()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Y(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Z(){if(!Q())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}const tt=F(),et={},nt={};function rt(t){if(!nt[t])switch(nt[t]=!0,t){case"console":!function(){if(!("console"in tt))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in tt.console&&T(tt.console,t,function(e){return function(...n){it("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,tt.console,n)}})})}();break;case"dom":!function(){if(!("document"in tt))return;tt.document.addEventListener("click",dt("click",it.bind(null,"dom")),!1),tt.document.addEventListener("keypress",pt(it.bind(null,"dom")),!1),["EventTarget","Node"].forEach(t=>{const e=tt[t]&&tt[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(T(e,"addEventListener",function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&T(n,"handleEvent",function(t){return function(e){return dt("click",it.bind(null,"dom"))(e),t.call(this,e)}}),"keypress"===e&&T(n,"handleEvent",function(t){return function(e){return pt(it.bind(null,"dom"))(e),t.call(this,e)}})):("click"===e&&dt("click",it.bind(null,"dom"),!0)(this),"keypress"===e&&pt(it.bind(null,"dom"))(this)),t.call(this,e,n,r)}}),T(e,"removeEventListener",function(t){return function(e,n,r){try{t.call(this,e,n.__sentry_wrapped__,r)}catch(t){}return t.call(this,e,n,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in tt))return;const t=[],e=[],n=XMLHttpRequest.prototype;T(n,"open",function(n){return function(...r){const s=this,i=r[1];s.__sentry_xhr__={method:a(r[0])?r[0].toUpperCase():r[0],url:r[1]},a(i)&&"POST"===s.__sentry_xhr__.method&&i.match(/sentry_key/)&&(s.__sentry_own_request__=!0);const o=function(){if(4===s.readyState){try{s.__sentry_xhr__&&(s.__sentry_xhr__.status_code=s.status)}catch(t){}try{const n=t.indexOf(s);if(-1!==n){t.splice(n);const r=e.splice(n)[0];s.__sentry_xhr__&&void 0!==r[0]&&(s.__sentry_xhr__.body=r[0])}}catch(t){}it("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&"function"==typeof s.onreadystatechange?T(s,"onreadystatechange",function(t){return function(...e){return o(),t.apply(s,e)}}):s.addEventListener("readystatechange",o),n.apply(s,r)}}),T(n,"send",function(n){return function(...r){return t.push(this),e.push(r),it("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}})}();break;case"fetch":!function(){if(!function(){if(!Q())return!1;const t=F();if(Y(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=Y(t.contentWindow.fetch)),n.head.removeChild(t)}catch(t){K.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}())return;T(tt,"fetch",function(t){return function(...e){const n={args:e,fetchData:{method:ot(e),url:ct(e)},startTimestamp:Date.now()};return it("fetch",Object.assign({},n)),t.apply(tt,e).then(t=>(it("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),response:t})),t),t=>{throw it("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(!function(){const t=F(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}())return;const t=tt.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=ut,e=String(n);ut=e,it("history",{from:t,to:e})}return t.apply(this,e)}}tt.onpopstate=function(...e){const n=tt.location.href,r=ut;if(ut=n,it("history",{from:r,to:n}),t)return t.apply(this,e)},T(tt.history,"pushState",e),T(tt.history,"replaceState",e)}();break;case"error":bt=tt.onerror,tt.onerror=function(t,e,n,r,s){return it("error",{column:r,error:s,line:n,msg:t,url:e}),!!bt&&bt.apply(this,arguments)};break;case"unhandledrejection":mt=tt.onunhandledrejection,tt.onunhandledrejection=function(t){return it("unhandledrejection",t),!mt||mt.apply(this,arguments)};break;default:K.warn("unknown instrumentation type:",t)}}function st(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(et[t.type]=et[t.type]||[],et[t.type].push(t.callback),rt(t.type))}function it(t,e){if(t&&et[t])for(const n of et[t]||[])try{n(e)}catch(e){K.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${$(n)}\nError: ${e}`)}}function ot(t=[]){return"Request"in tt&&b(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function ct(t=[]){return"string"==typeof t[0]?t[0]:"Request"in tt&&b(t[0],Request)?t[0].url:String(t[0])}let ut;const at=1e3;let ht,lt,ft=0;function dt(t,e,n=!1){return r=>{ht=void 0,r&<!==r&&(lt=r,ft&&clearTimeout(ft),n?ft=setTimeout(()=>{e({event:r,name:t})}):e({event:r,name:t}))}}function pt(t){return e=>{let n;try{n=e.target}catch(t){return}const r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(ht||dt("input",t)(e),clearTimeout(ht),ht=setTimeout(()=>{ht=void 0},at))}}let bt=null;let mt=null;var yt;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(yt||(yt={}));class vt{constructor(t){this.p=yt.PENDING,this.m=[],this.v=(t=>{this.g(yt.RESOLVED,t)}),this.j=(t=>{this.g(yt.REJECTED,t)}),this.g=((t,e)=>{this.p===yt.PENDING&&(p(e)?e.then(this.v,this.j):(this.p=t,this.O=e,this._()))}),this.$=(t=>{this.m=this.m.concat(t),this._()}),this._=(()=>{if(this.p===yt.PENDING)return;const t=this.m.slice();this.m=[],t.forEach(t=>{t.done||(this.p===yt.RESOLVED&&t.onfulfilled&&t.onfulfilled(this.O),this.p===yt.REJECTED&&t.onrejected&&t.onrejected(this.O),t.done=!0)})});try{t(this.v,this.j)}catch(t){this.j(t)}}static resolve(t){return new vt(e=>{e(t)})}static reject(t){return new vt((e,n)=>{n(t)})}static all(t){return new vt((e,n)=>{if(!Array.isArray(t))return void n(new TypeError("Promise.all requires an array as input."));if(0===t.length)return void e([]);let r=t.length;const s=[];t.forEach((t,i)=>{vt.resolve(t).then(t=>{s[i]=t,0===(r-=1)&&e(s)}).then(null,n)})})}then(t,e){return new vt((n,r)=>{this.$({done:!1,onfulfilled:e=>{if(t)try{return void n(t(e))}catch(t){return void r(t)}else n(e)},onrejected:t=>{if(e)try{return void n(e(t))}catch(t){return void r(t)}else r(t)}})})}catch(t){return this.then(t=>t,t)}finally(t){return new vt((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}toString(){return"[object SyncPromise]"}}class gt{constructor(t){this.S=t,this.k=[]}isReady(){return void 0===this.S||this.length()<this.S}add(t){return this.isReady()?(-1===this.k.indexOf(t)&&this.k.push(t),t.then(()=>this.remove(t)).then(null,()=>this.remove(t).then(null,()=>{})),t):vt.reject(new g("Not adding Promise due to buffer limit reached."))}remove(t){return this.k.splice(this.k.indexOf(t),1)[0]}length(){return this.k.length}drain(t){return new vt(e=>{const n=setTimeout(()=>{t&&t>0&&e(!1)},t);vt.all(this.k).then(()=>{clearTimeout(n),e(!0)}).then(null,()=>{e(!0)})})}}const jt={nowSeconds:()=>Date.now()/1e3};const Ot=L()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){const{performance:t}=F();if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),wt=void 0===Ot?jt:{nowSeconds:()=>(Ot.timeOrigin+Ot.now())/1e3},Et=jt.nowSeconds.bind(jt);wt.nowSeconds.bind(wt),(()=>{const{performance:t}=F();if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()})();class _t{constructor(){this.T=!1,this.D=[],this.R=[],this.I=[],this.N={},this.M={},this.C={},this.A={}}static clone(t){const e=new _t;return t&&(e.I=[...t.I],e.M=Object.assign({},t.M),e.C=Object.assign({},t.C),e.A=Object.assign({},t.A),e.N=t.N,e.U=t.U,e.L=t.L,e.q=t.q,e.F=t.F,e.B=t.B,e.R=[...t.R]),e}addScopeListener(t){this.D.push(t)}addEventProcessor(t){return this.R.push(t),this}setUser(t){return this.N=t||{},this.q&&this.q.update({user:t}),this.H(),this}getUser(){return this.N}setTags(t){return this.M=Object.assign(Object.assign({},this.M),t),this.H(),this}setTag(t,e){return this.M=Object.assign(Object.assign({},this.M),{[t]:e}),this.H(),this}setExtras(t){return this.C=Object.assign(Object.assign({},this.C),t),this.H(),this}setExtra(t,e){return this.C=Object.assign(Object.assign({},this.C),{[t]:e}),this.H(),this}setFingerprint(t){return this.B=t,this.H(),this}setLevel(t){return this.U=t,this.H(),this}setTransactionName(t){return this.F=t,this.H(),this}setTransaction(t){return this.setTransactionName(t)}setContext(t,e){return null===e?delete this.A[t]:this.A=Object.assign(Object.assign({},this.A),{[t]:e}),this.H(),this}setSpan(t){return this.L=t,this.H(),this}getSpan(){return this.L}getTransaction(){var t,e,n,r;const s=this.getSpan();return(null===(t=s)||void 0===t?void 0:t.transaction)?null===(e=s)||void 0===e?void 0:e.transaction:(null===(r=null===(n=s)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?s.spanRecorder.spans[0]:void 0}setSession(t){return t?this.q=t:delete this.q,this.H(),this}getSession(){return this.q}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof _t?e:this}return t instanceof _t?(this.M=Object.assign(Object.assign({},this.M),t.M),this.C=Object.assign(Object.assign({},this.C),t.C),this.A=Object.assign(Object.assign({},this.A),t.A),t.N&&Object.keys(t.N).length&&(this.N=t.N),t.U&&(this.U=t.U),t.B&&(this.B=t.B)):l(t)&&(t=t,this.M=Object.assign(Object.assign({},this.M),t.tags),this.C=Object.assign(Object.assign({},this.C),t.extra),this.A=Object.assign(Object.assign({},this.A),t.contexts),t.user&&(this.N=t.user),t.level&&(this.U=t.level),t.fingerprint&&(this.B=t.fingerprint)),this}clear(){return this.I=[],this.M={},this.C={},this.N={},this.A={},this.U=void 0,this.F=void 0,this.B=void 0,this.L=void 0,this.q=void 0,this.H(),this}addBreadcrumb(t,e){const n=Object.assign({timestamp:Et()},t);return this.I=void 0!==e&&e>=0?[...this.I,n].slice(-e):[...this.I,n],this.H(),this}clearBreadcrumbs(){return this.I=[],this.H(),this}applyToEvent(t,e){var n;if(this.C&&Object.keys(this.C).length&&(t.extra=Object.assign(Object.assign({},this.C),t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=Object.assign(Object.assign({},this.M),t.tags)),this.N&&Object.keys(this.N).length&&(t.user=Object.assign(Object.assign({},this.N),t.user)),this.A&&Object.keys(this.A).length&&(t.contexts=Object.assign(Object.assign({},this.A),t.contexts)),this.U&&(t.level=this.U),this.F&&(t.transaction=this.F),this.L){t.contexts=Object.assign({trace:this.L.getTraceContext()},t.contexts);const e=null===(n=this.L.transaction)||void 0===n?void 0:n.name;e&&(t.tags=Object.assign({transaction:e},t.tags))}return this.P(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.I],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.W([...$t(),...this.R],t,e)}W(t,e,n,r=0){return new vt((s,i)=>{const o=t[r];if(null===e||"function"!=typeof o)s(e);else{const c=o(Object.assign({},e),n);p(c)?c.then(e=>this.W(t,e,n,r+1).then(s)).then(null,i):this.W(t,c,n,r+1).then(s).then(null,i)}})}H(){this.T||(this.T=!0,this.D.forEach(t=>{t(this)}),this.T=!1)}P(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.B&&(t.fingerprint=t.fingerprint.concat(this.B)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function $t(){const t=F();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function xt(t){$t().push(t)}class St{constructor(t){this.errors=0,this.sid=B(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=n.Ok,t&&this.update(t)}update(t={}){t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:B()),t.did&&(this.did=`${t.did}`),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),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}):this.status===n.Ok?this.update({status:n.Exited}):this.update()}toJSON(){return U({sid:`${this.sid}`,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(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:U({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})}}const kt=3,Tt=100,Dt=100;class Rt{constructor(t,e=new _t,n=kt){this.X=n,this.J=[{}],this.getStackTop().scope=e,this.bindClient(t)}isOlderThan(t){return this.X<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=_t.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.J}getStackTop(){return this.J[this.J.length-1]}captureException(t,e){const n=this.G=B();let r=e;if(!e){let e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this.V("captureException",t,Object.assign(Object.assign({},r),{event_id:n})),n}captureMessage(t,e,n){const r=this.G=B();let s=n;if(!n){let e;try{throw new Error(t)}catch(t){e=t}s={originalException:t,syntheticException:e}}return this.V("captureMessage",t,e,Object.assign(Object.assign({},s),{event_id:r})),r}captureEvent(t,e){const n=this.G=B();return this.V("captureEvent",t,Object.assign(Object.assign({},e),{event_id:n})),n}lastEventId(){return this.G}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=Tt}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const o=Et(),c=Object.assign({timestamp:o},t),u=s?W(()=>s(c,e)):c;null!==u&&n.addBreadcrumb(u,Math.min(i,Dt))}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=Nt(this);try{t(this)}finally{Nt(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return K.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startSpan(t){return this.K("startSpan",t)}startTransaction(t,e){return this.K("startTransaction",t,e)}traceHeaders(){return this.K("traceHeaders")}startSession(t){this.endSession();const{scope:e,client:n}=this.getStackTop(),{release:r,environment:s}=n&&n.getOptions()||{},i=new St(Object.assign(Object.assign({release:r,environment:s},e&&{user:e.getUser()}),t));return e&&e.setSession(i),i}endSession(){const{scope:t,client:e}=this.getStackTop();if(!t)return;const n=t.getSession&&t.getSession();n&&(n.close(),e&&e.captureSession&&e.captureSession(n),t.setSession())}V(t,...e){const{scope:n,client:r}=this.getStackTop();r&&r[t]&&r[t](...e,n)}K(t,...e){const n=It().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);K.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function It(){const t=F();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Nt(t){const e=It(),n=At(e);return Ut(e,t),n}function Mt(){const t=It();return Ct(t)&&!At(t).isOlderThan(kt)||Ut(t,new Rt),L()?function(t){try{const e=function(){const t=It().__SENTRY__;return t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active}();if(!e)return At(t);if(!Ct(e)||At(e).isOlderThan(kt)){const n=At(t).getStackTop();Ut(e,new Rt(n.client,_t.clone(n.scope)))}return At(e)}catch(e){return At(t)}}(t):At(t)}function Ct(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function At(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Rt,t.__SENTRY__.hub)}function Ut(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Lt(t,...e){const n=Mt();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){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return Lt("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function qt(t){Lt("withScope",t)}const Ft="7";class Bt{constructor(t){this.dsn=t,this.Y=new w(t)}getDsn(){return this.Y}getBaseApiEndpoint(){const t=this.Y,e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}getStoreEndpoint(){return this.Z("store")}getStoreEndpointWithUrlEncodedAuth(){return`${this.getStoreEndpoint()}?${this.tt()}`}getEnvelopeEndpointWithUrlEncodedAuth(){return`${this.et()}?${this.tt()}`}getStoreEndpointPath(){const t=this.Y;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,e){const n=this.Y,r=[`Sentry sentry_version=${Ft}`];return r.push(`sentry_client=${t}/${e}`),r.push(`sentry_key=${n.user}`),n.pass&&r.push(`sentry_secret=${n.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const e=this.Y,n=`${this.getBaseApiEndpoint()}embed/error-page/`,r=[];r.push(`dsn=${e.toString()}`);for(const e in t)if("dsn"!==e)if("user"===e){if(!t.user)continue;t.user.name&&r.push(`name=${encodeURIComponent(t.user.name)}`),t.user.email&&r.push(`email=${encodeURIComponent(t.user.email)}`)}else r.push(`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`);return r.length?`${n}?${r.join("&")}`:n}et(){return this.Z("envelope")}Z(t){return`${this.getBaseApiEndpoint()}${this.Y.projectId}/${t}/`}tt(){const t={sentry_key:this.Y.user,sentry_version:Ft};return e=t,Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&");var e}}const Ht=[];function Pt(t){const e={};return function(t){const e=t.defaultIntegrations&&[...t.defaultIntegrations]||[],n=t.integrations;let r=[];if(Array.isArray(n)){const t=n.map(t=>t.name),s=[];e.forEach(e=>{-1===t.indexOf(e.name)&&-1===s.indexOf(e.name)&&(r.push(e),s.push(e.name))}),n.forEach(t=>{-1===s.indexOf(t.name)&&(r.push(t),s.push(t.name))})}else"function"==typeof n?(r=n(e),r=Array.isArray(r)?r:[r]):r=[...e];const s=r.map(t=>t.name);return-1!==s.indexOf("Debug")&&r.push(...r.splice(s.indexOf("Debug"),1)),r}(t).forEach(t=>{e[t.name]=t,function(t){-1===Ht.indexOf(t.name)&&(t.setupOnce(xt,Mt),Ht.push(t.name),K.log(`Integration installed: ${t.name}`))}(t)}),e}class Wt{constructor(t,e){this.nt={},this.rt=0,this.st=new t(e),this.it=e,e.dsn&&(this.ot=new w(e.dsn))}captureException(t,e,n){let r=e&&e.event_id;return this.ct(this.ut().eventFromException(t,e).then(t=>this.at(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let s=n&&n.event_id;const i=h(t)?this.ut().eventFromMessage(String(t),e,n):this.ut().eventFromException(t,n);return this.ct(i.then(t=>this.at(t,n,r)).then(t=>{s=t})),s}captureEvent(t,e,n){let r=e&&e.event_id;return this.ct(this.at(t,e,n).then(t=>{r=t})),r}captureSession(t){t.release?this.ht(t):K.warn("Discarded session because of missing release")}getDsn(){return this.ot}getOptions(){return this.it}flush(t){return this.lt(t).then(e=>this.ut().getTransport().close(t).then(t=>e&&t))}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}setupIntegrations(){this.ft()&&(this.nt=Pt(this.it))}getIntegration(t){try{return this.nt[t.id]||null}catch(e){return K.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}dt(t,e){let r,s=!1,i=!1;const o=e.exception&&e.exception.values;if(o){i=!0;for(const t of o){const e=t.mechanism;if(e&&!1===e.handled){s=!0;break}}}const c=e.user;if(!t.userAgent){const t=e.request?e.request.headers:{};for(const e in t)if("user-agent"===e.toLowerCase()){r=t[e];break}}t.update(Object.assign(Object.assign({},s&&{status:n.Crashed}),{user:c,userAgent:r,errors:t.errors+Number(i||s)}))}ht(t){this.ut().sendSession(t)}lt(t){return new vt(e=>{let n=0;const r=setInterval(()=>{0==this.rt?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}ut(){return this.st}ft(){return!1!==this.getOptions().enabled&&void 0!==this.ot}pt(t,e,n){const{normalizeDepth:r=3}=this.getOptions(),s=Object.assign(Object.assign({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:B()),timestamp:t.timestamp||Et()});this.bt(s),this.yt(s);let i=e;n&&n.captureContext&&(i=_t.clone(i).update(n.captureContext));let o=vt.resolve(s);return i&&(o=i.applyToEvent(s,n)),o.then(t=>"number"==typeof r&&r>0?this.vt(t,r):t)}vt(t,e){if(!t)return null;const n=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:C(t.data,e)}))}),t.user&&{user:C(t.user,e)}),t.contexts&&{contexts:C(t.contexts,e)}),t.extra&&{extra:C(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n}bt(t){const e=this.getOptions(),{environment:n,release:r,dist:s,maxValueLength:i=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!==s&&(t.dist=s),t.message&&(t.message=x(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=x(o.value,i));const c=t.request;c&&c.url&&(c.url=x(c.url,i))}yt(t){const e=t.sdk,n=Object.keys(this.nt);e&&n.length>0&&(e.integrations=n)}gt(t){this.ut().sendEvent(t)}at(t,e,n){return this.jt(t,e,n).then(t=>t.event_id,t=>{K.error(t)})}jt(t,e,n){const{beforeSend:r,sampleRate:s}=this.getOptions();if(!this.ft())return vt.reject(new g("SDK not enabled, will not send event."));const i="transaction"===t.type;return!i&&"number"==typeof s&&Math.random()>s?vt.reject(new g(`Discarding event because it's not included in the random sample (sampling rate = ${s})`)):this.pt(t,n,e).then(t=>{if(null===t)throw new g("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||i||!r)return t;const n=r(t,e);if(void 0===n)throw new g("`beforeSend` method has to return `null` or a valid event.");return p(n)?n.then(t=>t,t=>{throw new g(`beforeSend rejected with ${t}`)}):n}).then(t=>{if(null===t)throw new g("`beforeSend` returned `null`, will not send event.");const e=n&&n.getSession&&n.getSession();return!i&&e&&this.dt(e,t),this.gt(t),t}).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}`)})}ct(t){this.rt+=1,t.then(t=>(this.rt-=1,t),t=>(this.rt-=1,t))}}class Xt{sendEvent(e){return vt.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})}close(t){return vt.resolve(!0)}}class Jt{constructor(t){this.it=t,this.it.dsn||K.warn("No DSN provided, backend will not do anything."),this.Ot=this.wt()}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.Ot.sendEvent(t).then(null,t=>{K.error(`Error while sending event: ${t}`)})}sendSession(t){this.Ot.sendSession?this.Ot.sendSession(t).then(null,t=>{K.error(`Error while sending session: ${t}`)}):K.warn("Dropping session because custom transport doesn't implement sendSession")}getTransport(){return this.Ot}wt(){return new Xt}}function Gt(t,e){return{body:`${JSON.stringify({sent_at:(new Date).toISOString()})}\n${JSON.stringify({type:"session"})}\n${JSON.stringify(t)}`,type:"session",url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function zt(t,e){const n=t.tags||{},{__sentry_samplingMethod:r,__sentry_sampleRate:s}=n,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&(n[r[s]]=t[r[s]])}return n}(n,["__sentry_samplingMethod","__sentry_sampleRate"]);t.tags=i;const o="transaction"===t.type,c={body:JSON.stringify(t),type:t.type||"event",url:o?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(o){const e=`${JSON.stringify({event_id:t.event_id,sent_at:(new Date).toISOString()})}\n${JSON.stringify({type:t.type,sample_rates:[{id:r,rate:s}]})}\n${c.body}`;c.body=e}return c}let Vt;class Kt{constructor(){this.name=Kt.id}setupOnce(){Vt=Function.prototype.toString,Function.prototype.toString=function(...t){const e=this.__sentry_original__||this;return Vt.apply(e,t)}}}Kt.id="FunctionToString";const Qt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Yt{constructor(t={}){this.it=t,this.name=Yt.id}setupOnce(){xt(t=>{const e=Mt();if(!e)return t;const n=e.getIntegration(Yt);if(n){const r=e.getClient(),s=r?r.getOptions():{},i=n.Et(s);if(n._t(t,i))return null}return t})}_t(t,e){return this.$t(t,e)?(K.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${P(t)}`),!0):this.xt(t,e)?(K.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${P(t)}`),!0):this.St(t,e)?(K.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${P(t)}.\nUrl: ${this.kt(t)}`),!0):!this.Tt(t,e)&&(K.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${P(t)}.\nUrl: ${this.kt(t)}`),!0)}$t(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}}xt(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.Dt(t).some(t=>e.ignoreErrors.some(e=>k(t,e)))}St(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;const n=this.kt(t);return!!n&&e.denyUrls.some(t=>k(n,t))}Tt(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;const n=this.kt(t);return!n||e.allowUrls.some(t=>k(n,t))}Et(t={}){return{allowUrls:[...this.it.whitelistUrls||[],...this.it.allowUrls||[],...t.whitelistUrls||[],...t.allowUrls||[]],denyUrls:[...this.it.blacklistUrls||[],...this.it.denyUrls||[],...t.blacklistUrls||[],...t.denyUrls||[]],ignoreErrors:[...this.it.ignoreErrors||[],...t.ignoreErrors||[],...Qt],ignoreInternal:void 0===this.it.ignoreInternal||this.it.ignoreInternal}}Dt(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 K.error(`Cannot extract message for event ${P(t)}`),[]}return[]}kt(t){try{if(t.stacktrace){const e=t.stacktrace.frames;return e&&e[e.length-1].filename||null}if(t.exception){const e=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return e&&e[e.length-1].filename||null}return null}catch(e){return K.error(`Cannot extract url for event ${P(t)}`),null}}}Yt.id="InboundFilters";var Zt=Object.freeze({__proto__:null,FunctionToString:Kt,InboundFilters:Yt});const te="?",ee=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,re=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,se=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ie=/\((\S*)(?::(\d+))(?::(\d+))\)/,oe=/Minified React error #\d+;/i;function ce(t){let e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:oe.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;const e=t.stacktrace,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,s=e.split("\n"),i=[];let o;for(let t=0;t<s.length;t+=2){let e=null;(o=n.exec(s[t]))?e={url:o[2],func:o[3],args:[],line:+o[1],column:null}:(o=r.exec(s[t]))&&(e={url:o[6],func:o[3]||o[4],args:o[5]?o[5].split(","):[],line:+o[1],column:+o[2]}),e&&(!e.func&&e.line&&(e.func=te),i.push(e))}if(!i.length)return null;return{message:ae(t),name:t.name,stack:i}}(t))return ue(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;const e=[],n=t.stack.split("\n");let r,s,i,o;for(let c=0;c<n.length;++c){if(i=ee.exec(n[c])){const t=i[2]&&0===i[2].indexOf("native");(r=i[2]&&0===i[2].indexOf("eval"))&&(s=ie.exec(i[2]))&&(i[2]=s[1],i[3]=s[2],i[4]=s[3]),o={url:i[2]&&0===i[2].indexOf("address at ")?i[2].substr("address at ".length):i[2],func:i[1]||te,args:t?[i[2]]:[],line:i[3]?+i[3]:null,column:i[4]?+i[4]:null}}else if(i=re.exec(n[c]))o={url:i[2],func:i[1]||te,args:[],line:+i[3],column:i[4]?+i[4]:null};else{if(!(i=ne.exec(n[c])))continue;(r=i[3]&&i[3].indexOf(" > eval")>-1)&&(s=se.exec(i[3]))?(i[1]=i[1]||"eval",i[3]=s[1],i[4]=s[2],i[5]=""):0!==c||i[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1),o={url:i[3],func:i[1]||te,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null}}!o.func&&o.line&&(o.func=te),e.push(o)}if(!e.length)return null;return{message:ae(t),name:t.name,stack:e}}(t))return ue(e,n)}catch(t){}return{message:ae(t),name:t&&t.name,stack:[],failed:!0}}function ue(t,e){try{return Object.assign(Object.assign({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function ae(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}const he=50;function le(t){const e=de(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function fe(t){return{exception:{values:[le(t)]}}}function de(t){if(!t||!t.length)return[];let e=t;const n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,he).map(t=>({colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line})).reverse()}function pe(e,n,r){const s=me(n,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return J(s,{handled:!0,type:"generic"}),s.level=t.Severity.Error,r&&r.event_id&&(s.event_id=r.event_id),vt.resolve(s)}function be(e,n,r=t.Severity.Info,s){const i=ye(n,s&&s.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=r,s&&s.event_id&&(i.event_id=s.event_id),vt.resolve(i)}function me(t,e,n={}){let r;if(c(t)&&t.error){return r=fe(ce(t=t.error))}if(u(t)||(s=t,"[object DOMException]"===Object.prototype.toString.call(s))){const s=t,i=s.name||(u(s)?"DOMError":"DOMException"),o=s.message?`${i}: ${s.message}`:i;return X(r=ye(o,e,n),o),"code"in s&&(r.tags=Object.assign(Object.assign({},r.tags),{"DOMException.code":`${s.code}`})),r}var s;if(o(t))return r=fe(ce(t));if(l(t)||f(t)){return J(r=function(t,e,n){const r={exception:{values:[{type:f(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:`Non-Error ${n?"promise rejection":"exception"} captured with keys: ${A(t)}`}]},extra:{__serialized__:I(t)}};if(e){const t=de(ce(e).stack);r.stacktrace={frames:t}}return r}(t,e,n.rejection),{synthetic:!0}),r}return X(r=ye(t,e,n),`${t}`,void 0),J(r,{synthetic:!0}),r}function ye(t,e,n={}){const r={message:t};if(n.attachStacktrace&&e){const t=de(ce(e).stack);r.stacktrace={frames:t}}return r}class ve{constructor(t){this.options=t,this.k=new gt(30),this.Rt={},this.It=new Bt(this.options.dsn),this.url=this.It.getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){throw new g("Transport Class has to implement `sendEvent` method")}close(t){return this.k.drain(t)}Nt({requestType:e,response:n,headers:r,resolve:s,reject:i}){const o=t.Status.fromHttpCode(n.status);this.Mt(r)&&K.warn(`Too many requests, backing off until: ${this.Ct(e)}`),o!==t.Status.Success?i(n):s({status:o})}Ct(t){return this.Rt[t]||this.Rt.all}At(t){return this.Ct(t)>new Date(Date.now())}Mt(t){const e=Date.now(),n=t["x-sentry-rate-limits"],r=t["retry-after"];if(n){for(const t of n.trim().split(",")){const n=t.split(":",2),r=parseInt(n[0],10),s=1e3*(isNaN(r)?60:r);for(const t of n[1].split(";"))this.Rt[t||"all"]=new Date(e+s)}return!0}return!!r&&(this.Rt.all=new Date(e+function(t,e){if(!e)return G;const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?G:r-t}(e,r)),!0)}}const ge=F();class je extends ve{sendEvent(t){return this.Ut(zt(t,this.It),t)}sendSession(t){return this.Ut(Gt(t,this.It),t)}Ut(t,e){if(this.At(t.type))return Promise.reject({event:e,type:t.type,reason:`Transport locked till ${this.Ct(t.type)} due to too many requests.`,status:429});const n={body:t.body,method:"POST",referrerPolicy:Z()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this.k.add(new vt((e,r)=>{ge.fetch(t.url,n).then(n=>{const s={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};this.Nt({requestType:t.type,response:n,headers:s,resolve:e,reject:r})}).catch(r)}))}}class Oe extends ve{sendEvent(t){return this.Ut(zt(t,this.It),t)}sendSession(t){return this.Ut(Gt(t,this.It),t)}Ut(t,e){return this.At(t.type)?Promise.reject({event:e,type:t.type,reason:`Transport locked till ${this.Ct(t.type)} due to too many requests.`,status:429}):this.k.add(new vt((e,n)=>{const r=new XMLHttpRequest;r.onreadystatechange=(()=>{if(4===r.readyState){const s={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};this.Nt({requestType:t.type,response:r,headers:s,resolve:e,reject:n})}}),r.open("POST",t.url);for(const t in this.options.headers)this.options.headers.hasOwnProperty(t)&&r.setRequestHeader(t,this.options.headers[t]);r.send(t.body)}))}}var we=Object.freeze({__proto__:null,BaseTransport:ve,FetchTransport:je,XHRTransport:Oe});class Ee extends Jt{eventFromException(t,e){return pe(this.it,t,e)}eventFromMessage(e,n=t.Severity.Info,r){return be(this.it,e,n,r)}wt(){if(!this.it.dsn)return super.wt();const t=Object.assign(Object.assign({},this.it.transportOptions),{dsn:this.it.dsn});return this.it.transport?new this.it.transport(t):Q()?new je(t):new Oe(t)}}let _e=0;function $e(){return _e>0}function xe(t,e={},n){if("function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=r.map(t=>xe(t,e));return t.handleEvent?t.handleEvent.apply(this,s):t.apply(this,s)}catch(t){throw _e+=1,setTimeout(()=>{_e-=1}),qt(n=>{n.addEventProcessor(t=>{const n=Object.assign({},t);return e.mechanism&&(X(n,void 0,void 0),J(n,e.mechanism)),n.extra=Object.assign(Object.assign({},n.extra),{arguments:r}),n}),captureException(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function Se(t={}){if(!t.eventId)return void K.error("Missing eventId option in showReportDialog call");if(!t.dsn)return void K.error("Missing dsn option in showReportDialog call");const e=document.createElement("script");e.async=!0,e.src=new Bt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}class ke{constructor(t){this.name=ke.id,this.Lt=!1,this.qt=!1,this.it=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,this.it.onerror&&(K.log("Global Handler attached: onerror"),this.Ft()),this.it.onunhandledrejection&&(K.log("Global Handler attached: onunhandledrejection"),this.Bt())}Ft(){this.Lt||(st({callback:t=>{const e=t.error,n=Mt(),r=n.getIntegration(ke),s=e&&!0===e.__sentry_own_request__;if(!r||$e()||s)return;const i=n.getClient(),o=h(e)?this.Ht(t.msg,t.url,t.line,t.column):this.Pt(me(e,void 0,{attachStacktrace:i&&i.getOptions().attachStacktrace,rejection:!1}),t.url,t.line,t.column);J(o,{handled:!1,type:"onerror"}),n.captureEvent(o,{originalException:e})},type:"error"}),this.Lt=!0)}Bt(){this.qt||(st({callback:e=>{let n=e;try{"reason"in e?n=e.reason:"detail"in e&&"reason"in e.detail&&(n=e.detail.reason)}catch(t){}const r=Mt(),s=r.getIntegration(ke),i=n&&!0===n.__sentry_own_request__;if(!s||$e()||i)return!0;const o=r.getClient(),c=h(n)?this.Wt(n):me(n,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!0});c.level=t.Severity.Error,J(c,{handled:!1,type:"onunhandledrejection"}),r.captureEvent(c,{originalException:n})},type:"unhandledrejection"}),this.qt=!0)}Ht(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i,o=c(t)?t.message:t;if(a(o)){const t=o.match(s);t&&(i=t[1],o=t[2])}const u={exception:{values:[{type:i||"Error",value:o}]}};return this.Pt(u,e,n,r)}Wt(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}Pt(t,e,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];const s=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,o=a(e)&&e.length>0?e:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:s,filename:o,function:"?",in_app:!0,lineno:i}),t}}ke.id="GlobalHandlers";const Te=["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 De{constructor(t){this.name=De.id,this.it=Object.assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}setupOnce(){const t=F();if(this.it.setTimeout&&T(t,"setTimeout",this.Xt.bind(this)),this.it.setInterval&&T(t,"setInterval",this.Xt.bind(this)),this.it.requestAnimationFrame&&T(t,"requestAnimationFrame",this.Jt.bind(this)),this.it.XMLHttpRequest&&"XMLHttpRequest"in t&&T(XMLHttpRequest.prototype,"send",this.Gt.bind(this)),this.it.eventTarget){(Array.isArray(this.it.eventTarget)?this.it.eventTarget:Te).forEach(this.zt.bind(this))}}Xt(t){return function(...e){const n=e[0];return e[0]=xe(n,{mechanism:{data:{function:$(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}Jt(t){return function(e){return t.call(this,xe(e,{mechanism:{data:{function:"requestAnimationFrame",handler:$(t)},handled:!0,type:"instrument"}}))}}zt(t){const e=F(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(T(n,"addEventListener",function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=xe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:$(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,xe(r,{mechanism:{data:{function:"addEventListener",handler:$(r),target:t},handled:!0,type:"instrument"}}),s)}}),T(n,"removeEventListener",function(t){return function(e,n,r){var s;const i=n;try{const n=null===(s=i)||void 0===s?void 0:s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}}))}Gt(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&T(n,t,function(e){const n={mechanism:{data:{function:t,handler:$(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(n.mechanism.data.handler=$(e.__sentry_original__)),xe(e,n)})}),t.apply(this,e)}}}De.id="TryCatch";class Re{constructor(t){this.name=Re.id,this.it=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}addSentryBreadcrumb(t){this.it.sentry&&Mt().addBreadcrumb({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:P(t)},{event:t})}setupOnce(){this.it.console&&st({callback:(...t)=>{this.Vt(...t)},type:"console"}),this.it.dom&&st({callback:(...t)=>{this.Kt(...t)},type:"dom"}),this.it.xhr&&st({callback:(...t)=>{this.Qt(...t)},type:"xhr"}),this.it.fetch&&st({callback:(...t)=>{this.Yt(...t)},type:"fetch"}),this.it.history&&st({callback:(...t)=>{this.Zt(...t)},type:"history"})}Vt(e){const n={category:"console",data:{arguments:e.args,logger:"console"},level:t.Severity.fromString(e.level),message:S(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${S(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Mt().addBreadcrumb(n,{input:e.args,level:e.level})}Kt(t){let e;try{e=t.event.target?m(t.event.target):m(t.event)}catch(t){e="<unknown>"}0!==e.length&&Mt().addBreadcrumb({category:`ui.${t.name}`,message:e},{event:t.event,name:t.name})}Qt(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:s}=t.xhr.__sentry_xhr__||{};Mt().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:s})}else;}Yt(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Mt().addBreadcrumb({category:"fetch",data:e.fetchData,level:t.Severity.Error,type:"http"},{data:e.error,input:e.args}):Mt().addBreadcrumb({category:"fetch",data:Object.assign(Object.assign({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}Zt(t){const e=F();let n=t.from,r=t.to;const s=H(e.location.href);let i=H(n);const o=H(r);i.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),Mt().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}}Re.id="Breadcrumbs";const Ie="cause",Ne=5;class Me{constructor(t={}){this.name=Me.id,this.te=t.key||Ie,this.S=t.limit||Ne}setupOnce(){xt((t,e)=>{const n=Mt().getIntegration(Me);return n?n.ee(t,e):t})}ee(t,e){if(!(t.exception&&t.exception.values&&e&&b(e.originalException,Error)))return t;const n=this.ne(e.originalException,this.te);return t.exception.values=[...n,...t.exception.values],t}ne(t,e,n=[]){if(!b(t[e],Error)||n.length+1>=this.S)return n;const r=le(ce(t[e]));return this.ne(t[e],e,[r,...n])}}Me.id="LinkedErrors";const Ce=F();class Ae{constructor(){this.name=Ae.id}setupOnce(){xt(t=>{var e,n,r;if(Mt().getIntegration(Ae)){if(!Ce.navigator&&!Ce.location&&!Ce.document)return t;const s=(null===(e=t.request)||void 0===e?void 0:e.url)||(null===(n=Ce.location)||void 0===n?void 0:n.href),{referrer:i}=Ce.document||{},{userAgent:o}=Ce.navigator||{},c=Object.assign(Object.assign(Object.assign({},null===(r=t.request)||void 0===r?void 0:r.headers),i&&{Referer:i}),o&&{"User-Agent":o}),u=Object.assign(Object.assign({},s&&{url:s}),{headers:c});return Object.assign(Object.assign({},t),{request:u})}return t})}}Ae.id="UserAgent";var Ue=Object.freeze({__proto__:null,GlobalHandlers:ke,TryCatch:De,Breadcrumbs:Re,LinkedErrors:Me,UserAgent:Ae});const Le="sentry.javascript.browser",qe="5.30.0";class Fe extends Wt{constructor(t={}){super(Ee,t)}showReportDialog(t={}){F().document&&(this.ft()?Se(Object.assign(Object.assign({},t),{dsn:t.dsn||this.getDsn()})):K.error("Trying to call showReportDialog with Sentry Client disabled"))}pt(t,e,n){return t.platform=t.platform||"javascript",t.sdk=Object.assign(Object.assign({},t.sdk),{name:Le,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:qe}],version:qe}),super.pt(t,e,n)}gt(t){const e=this.getIntegration(Re);e&&e.addSentryBreadcrumb(t),super.gt(t)}}const Be=[new Yt,new Kt,new De,new Re,new ke,new Me,new Ae];let He={};const Pe=F();Pe.Sentry&&Pe.Sentry.Integrations&&(He=Pe.Sentry.Integrations);const We=Object.assign(Object.assign(Object.assign({},He),Zt),Ue);return t.BrowserClient=Fe,t.Hub=Rt,t.Integrations=We,t.SDK_NAME=Le,t.SDK_VERSION=qe,t.Scope=_t,t.Transports=we,t.addBreadcrumb=function(t){Lt("addBreadcrumb",t)},t.addGlobalEventProcessor=xt,t.captureEvent=function(t){return Lt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,e){let n;try{throw new Error(t)}catch(t){n=t}const r="string"!=typeof e?{captureContext:e}:void 0;return Lt("captureMessage",t,"string"==typeof e?e:void 0,Object.assign({originalException:t,syntheticException:n},r))},t.close=function(t){const e=Mt().getClient();return e?e.close(t):vt.reject(!1)},t.configureScope=function(t){Lt("configureScope",t)},t.defaultIntegrations=Be,t.eventFromException=pe,t.eventFromMessage=be,t.flush=function(t){const e=Mt().getClient();return e?e.flush(t):vt.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=Mt,t.getHubFromCarrier=At,t.init=function(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=Be),void 0===t.release){const e=F();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!1),function(t,e){!0===e.debug&&K.enable();const n=Mt(),r=new t(e);n.bindClient(r)}(Fe,t),t.autoSessionTracking&&function(){const t=F(),e=Mt();let n="complete"===document.readyState,r=!1;const s=()=>{r&&n&&e.endSession()},i=()=>{n=!0,s(),t.removeEventListener("load",i)};e.startSession(),n||t.addEventListener("load",i);try{const t=new PerformanceObserver((t,n)=>{t.getEntries().forEach(t=>{"first-contentful-paint"===t.name&&t.startTime<e&&(n.disconnect(),r=!0,s())})});let e="hidden"===document.visibilityState?0:1/0;document.addEventListener("visibilitychange",t=>{e=Math.min(e,t.timeStamp)},{once:!0}),t.observe({type:"paint",buffered:!0})}catch(t){r=!0,s()}}()},t.injectReportDialog=Se,t.lastEventId=function(){return Mt().lastEventId()},t.makeMain=Nt,t.onLoad=function(t){t()},t.setContext=function(t,e){Lt("setContext",t,e)},t.setExtra=function(t,e){Lt("setExtra",t,e)},t.setExtras=function(t){Lt("setExtras",t)},t.setTag=function(t,e){Lt("setTag",t,e)},t.setTags=function(t){Lt("setTags",t)},t.setUser=function(t){Lt("setUser",t)},t.showReportDialog=function(t={}){t.eventId||(t.eventId=Mt().lastEventId());const e=Mt().getClient();e&&e.showReportDialog(t)},t.startTransaction=function(t,e){return Lt("startTransaction",Object.assign({},t),e)},t.withScope=qt,t.wrap=function(t){return xe(t)()},t}({});
|
|
3
3
|
//# sourceMappingURL=bundle.es6.min.js.map
|