@sentry/browser 6.19.1 → 6.19.2

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