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