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