@sentry/browser 6.19.5 → 6.19.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- /*! @sentry/browser 6.19.5 (755d2cd) | 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}function f(t,n,r){var e=r||c(),i=e.__SENTRY__=e.__SENTRY__||{};return i[t]||(i[t]=n())}var h=Object.prototype.toString;function v(t){switch(h.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return x(t,Error)}}function d(t,n){return h.call(t)==="[object "+n+"]"}function l(t){return d(t,"ErrorEvent")}function p(t){return d(t,"DOMError")}function y(t){return d(t,"String")}function m(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function b(t){return d(t,"Object")}function w(t){return"undefined"!=typeof Event&&x(t,Event)}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function x(t,n){try{return t instanceof n}catch(t){return!1}}function E(t,n){try{for(var r=t,e=[],i=0,o=0,u=" > ".length,a=void 0;r&&i++<5&&!("html"===(a=S(r,n))||i>1&&o+e.length*u+a.length>=80);)e.push(a),o+=a.length,r=r.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function S(t,n){var r,e,i,o,u,a=t,s=[];if(!a||!a.tagName)return"";s.push(a.tagName.toLowerCase());var c=n&&n.length?n.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(c&&c.length)c.forEach((function(t){s.push("["+t[0]+'="'+t[1]+'"]')}));else if(a.id&&s.push("#"+a.id),(r=a.className)&&y(r))for(e=r.split(/\s+/),u=0;u<e.length;u++)s.push("."+e[u]);var f=["type","name","title","alt"];for(u=0;u<f.length;u++)i=f[u],(o=a.getAttribute(i))&&s.push("["+i+'="'+o+'"]');return s.join("")}var _=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=n[r]);return t});var k=function(t){function n(n){var r=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=r.prototype.constructor.name,_(e,r.prototype),e}return r(n,t),n}(Error),j=/^(?:(\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 T(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 D(t){var n="string"==typeof t?function(t){var n=j.exec(t);if(!n)throw new k("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 T({host:s,pass:a,path:h,projectId:v,port:f,protocol:e,publicKey:i})}(t):T(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 k("Invalid Sentry Dsn: "+n+" missing")})),!r.match(/^\d+$/))throw new k("Invalid Sentry Dsn: Invalid projectId "+r);if(!function(t){return"http"===t||"https"===t}(e))throw new k("Invalid Sentry Dsn: Invalid protocol "+e);if(n&&isNaN(parseInt(n,10)))throw new k("Invalid Sentry Dsn: Invalid port "+n)}(n),n}var R,N=["fatal","error","warning","log","info","debug","critical"],I=c(),C="Sentry Logger ",M=["debug","info","warn","error","log","assert"];function q(t){var n=c();if(!("console"in n))return t();var r=n.console,e={};M.forEach((function(t){var i=r[t]&&r[t].__sentry_original__;t in n.console&&i&&(e[t]=r[t],r[t]=i)}));try{return t()}finally{Object.keys(e).forEach((function(t){r[t]=e[t]}))}}function A(){var t=!1,n={enable:function(){t=!0},disable:function(){t=!1}};return M.forEach((function(r){n[r]=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];t&&q((function(){var t;(t=I.console)[r].apply(t,a([C+"["+r+"]:"],n))}))}})),n}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!!y(t)&&(d(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(v(t))n=i({message:t.message,name:t.name,stack:t.stack},J(t));else if(w(t)){var r=t;n=i({type:r.type,target:B(r.target),currentTarget:B(r.currentTarget)},J(r)),"undefined"!=typeof CustomEvent&&x(t,CustomEvent)&&(n.detail=r.detail)}return n}function B(t){try{return n=t,"undefined"!=typeof Element&&x(n,Element)?E(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var n}function J(t){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function W(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(b(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}R=f("logger",A);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;M.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:y(n[0])?n[0].toUpperCase():n[0],url:n[1]};y(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);var u=function(){if(4===e.readyState){try{o.status_code=e.status}catch(t){}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){R.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 R.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){R.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&&x(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&&x(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],h=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.t?"[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 b(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,m=v(n)||w(n)?$(n):n;for(var g in m)if(Object.prototype.hasOwnProperty.call(m,g)){if(y>=e){p[g]="[MaxProperties ~]";break}var x=m[g];p[g]=_t(g,x,r-1,e,i),y+=1}return h(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.i=0,this.o=[],this.u=function(t){n.h(1,t)},this.v=function(t){n.h(2,t)},this.h=function(t,r){0===n.i&&(g(r)?r.then(n.u,n.v):(n.i=t,n.l=r,n.p()))},this.p=function(){if(0!==n.i){var t=n.o.slice();n.o=[],t.forEach((function(t){t[0]||(1===n.i&&t[1](n.l),2===n.i&&t[2](n.l),t[0]=!0)}))}};try{t(this.u,this.v)}catch(t){this.v(t)}}return t.prototype.then=function(n,r){var e=this;return new t((function(t,i){e.o.push([!1,function(r){if(n)try{t(n(r))}catch(t){i(t)}else t(r)},function(n){if(r)try{t(r(n))}catch(t){i(t)}else i(n)}]),e.p()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(n){var r=this;return new t((function(t,e){var i,o;return r.then((function(t){o=!1,i=t,n&&n()}),(function(t){o=!0,i=t,n&&n()})).then((function(){o?e(i):t(i)}))}))},t}();function Tt(t){var n=[];function r(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(e){if(!(void 0===t||n.length<t))return jt(new k("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!==N.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=m(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.m=!1,this.g=[],this.S=[],this._=[],this.k={},this.j={},this.O={},this.T={},this.D={}}return t.clone=function(n){var r=new t;return n&&(r._=a(n._),r.j=i({},n.j),r.O=i({},n.O),r.T=i({},n.T),r.k=n.k,r.R=n.R,r.N=n.N,r.I=n.I,r.C=n.C,r.M=n.M,r.S=a(n.S),r.q=n.q),r},t.prototype.addScopeListener=function(t){this.g.push(t)},t.prototype.addEventProcessor=function(t){return this.S.push(t),this},t.prototype.setUser=function(t){return this.k=t||{},this.I&&this.I.update({user:t}),this.A(),this},t.prototype.getUser=function(){return this.k},t.prototype.getRequestSession=function(){return this.q},t.prototype.setRequestSession=function(t){return this.q=t,this},t.prototype.setTags=function(t){return this.j=i(i({},this.j),t),this.A(),this},t.prototype.setTag=function(t,n){var r;return this.j=i(i({},this.j),((r={})[t]=n,r)),this.A(),this},t.prototype.setExtras=function(t){return this.O=i(i({},this.O),t),this.A(),this},t.prototype.setExtra=function(t,n){var r;return this.O=i(i({},this.O),((r={})[t]=n,r)),this.A(),this},t.prototype.setFingerprint=function(t){return this.M=t,this.A(),this},t.prototype.setLevel=function(t){return this.R=t,this.A(),this},t.prototype.setTransactionName=function(t){return this.C=t,this.A(),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.A(),this},t.prototype.setSpan=function(t){return this.N=t,this.A(),this},t.prototype.getSpan=function(){return this.N},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this.I=t:delete this.I,this.A(),this},t.prototype.getSession=function(){return this.I},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.j=i(i({},this.j),n.j),this.O=i(i({},this.O),n.O),this.T=i(i({},this.T),n.T),n.k&&Object.keys(n.k).length&&(this.k=n.k),n.R&&(this.R=n.R),n.M&&(this.M=n.M),n.q&&(this.q=n.q)):b(n)&&(n=n,this.j=i(i({},this.j),n.tags),this.O=i(i({},this.O),n.extra),this.T=i(i({},this.T),n.contexts),n.user&&(this.k=n.user),n.level&&(this.R=n.level),n.fingerprint&&(this.M=n.fingerprint),n.requestSession&&(this.q=n.requestSession)),this},t.prototype.clear=function(){return this._=[],this.j={},this.O={},this.k={},this.T={},this.R=void 0,this.C=void 0,this.M=void 0,this.q=void 0,this.N=void 0,this.I=void 0,this.A(),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._=a(this._,[e]).slice(-r),this.A(),this},t.prototype.clearBreadcrumbs=function(){return this._=[],this.A(),this},t.prototype.applyToEvent=function(t,n){if(this.O&&Object.keys(this.O).length&&(t.extra=i(i({},this.O),t.extra)),this.j&&Object.keys(this.j).length&&(t.tags=i(i({},this.j),t.tags)),this.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.C&&(t.transaction=this.C),this.N){t.contexts=i({trace:this.N.getTraceContext()},t.contexts);var r=this.N.transaction&&this.N.transaction.name;r&&(t.tags=i({transaction:r},t.tags))}return this.L(t),t.breadcrumbs=a(t.breadcrumbs||[],this._),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.D,this.U(a(Ft(),this.S),t,n)},t.prototype.setSDKProcessingMetadata=function(t){return this.D=i(i({},this.D),t),this},t.prototype.U=function(t,n,r,e){var o=this;return void 0===e&&(e=0),new Ot((function(u,a){var 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.U(t,n,r,e+1).then(u)})).then(null,a):o.U(t,c,r,e+1).then(u).then(null,a)}}))},t.prototype.A=function(){var t=this;this.m||(this.m=!0,this.g.forEach((function(n){n(t)})),this.m=!1)},t.prototype.L=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.M&&(t.fingerprint=t.fingerprint.concat(this.M)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function Ft(){return f("globalEventProcessors",(function(){return[]}))}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.H=r,this.P=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.H<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.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: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.F("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: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.F("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.X=r),this.F("captureEvent",t,i(i({},n),{event_id:r})),r},t.prototype.lastEventId=function(){return this.X},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),e=r.scope,o=r.client;if(e&&o){var u=o.getOptions&&o.getOptions()||{},a=u.beforeBreadcrumb,s=void 0===a?null:a,c=u.maxBreadcrumbs,f=void 0===c?100:c;if(!(f<=0)){var h=Mt(),v=i({timestamp:h},t),d=s?q((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 R.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this.B("startSpan",t)},t.prototype.startTransaction=function(t,n){return this.B("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this.B("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.F=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.B=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var e=Jt(),i=e.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,n);R.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function Jt(){var t=c();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Wt(t){var n=Jt(),r=Gt(n);return Vt(n,t),r}function Kt(){var t,n=Jt();return(t=n)&&t.__SENTRY__&&t.__SENTRY__.hub&&!Gt(n).isOlderThan(4)||Vt(n,new Bt),Gt(n)}function Gt(t){return f("hub",(function(){return new Bt}),t)}function Vt(t,n){return!!t&&((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:D(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),R.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.W={},this.K=0,this.G=new t(n),this.V=n,n.dsn&&(this.Y=D(n.dsn))}return t.prototype.captureException=function(t,n,r){var e=this;if(!xt(t)){var i=n&&n.event_id;return this.Z(this.tt().eventFromException(t,n).then((function(t){return e.nt(t,n,r)})).then((function(t){i=t}))),i}R.log(cn)},t.prototype.captureMessage=function(t,n,r,e){var i=this,o=r&&r.event_id,u=m(t)?this.tt().eventFromMessage(String(t),n,r):this.tt().eventFromException(t,r);return this.Z(u.then((function(t){return i.nt(t,r,e)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,n,r){if(!(n&&n.originalException&&xt(n.originalException))){var e=n&&n.event_id;return this.Z(this.nt(t,n,r).then((function(t){e=t}))),e}R.log(cn)},t.prototype.captureSession=function(t){this.rt()?"string"!=typeof t.release?R.warn("Discarded session because of missing or non-string release"):(this.et(t),t.update({init:!1})):R.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this.Y},t.prototype.getOptions=function(){return this.V},t.prototype.getTransport=function(){return this.tt().getTransport()},t.prototype.flush=function(t){var n=this;return this.it(t).then((function(r){return n.getTransport().close(t).then((function(t){return r&&t}))}))},t.prototype.close=function(t){var n=this;return this.flush(t).then((function(t){return n.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this.rt()&&!this.W.initialized&&(this.W=sn(this.V))},t.prototype.getIntegration=function(t){try{return this.W[t.id]||null}catch(n){return R.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype.ot=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.et=function(t){this.tt().sendSession(t)},t.prototype.it=function(t){var n=this;return new Ot((function(r){var e=0,i=setInterval((function(){0==n.K?(clearInterval(i),r(!0)):(e+=1,t&&e>=t&&(clearInterval(i),r(!1)))}),1)}))},t.prototype.tt=function(){return this.G},t.prototype.rt=function(){return!1!==this.getOptions().enabled&&void 0!==this.Y},t.prototype.ut=function(t,n,r){var e=this,o=this.getOptions(),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.at(f),this.st(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)+" ("+typeof a+")"})),"number"==typeof a&&a>0?e.ct(t,a,c):t}))},t.prototype.ct=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.at=function(t){var n=this.getOptions(),r=n.environment,e=n.release,i=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==e&&(t.release=e),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=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.st=function(t){var n=Object.keys(this.W);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=a(t.sdk.integrations||[],n))},t.prototype.ft=function(t){this.tt().sendEvent(t)},t.prototype.nt=function(t,n,r){return this.ht(t,n,r).then((function(t){return t.event_id}),(function(t){R.error(t)}))},t.prototype.ht=function(t,n,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate,a=this.getTransport();function s(t,n){a.recordLostEvent&&a.recordLostEvent(t,n)}if(!this.rt())return jt(new k("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 k("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this.ut(t,r,n).then((function(r){if(null===r)throw s("event_processor",t.type||"event"),new k("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(!b(t)&&null!==t)throw new k(n);return t}),(function(t){throw new k("beforeSend rejected with "+t)}));if(!b(t)&&null!==t)throw new k(n);return t}(o(r,n))})).then((function(n){if(null===n)throw s("before_send",t.type||"event"),new k("`beforeSend` returned `null`, will not send event.");var i=r&&r.getSession&&r.getSession();return!c&&i&&e.ot(i,n),e.ft(n),n})).then(null,(function(t){if(t instanceof k)throw t;throw e.captureException(t,{data:{__sentry__:!0},originalException:t}),new k("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype.Z=function(t){var n=this;this.K+=1,t.then((function(t){return n.K-=1,t}),(function(t){return n.K-=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:O(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.V=t,this.V.dsn||R.warn("No DSN provided, backend will not do anything."),this.vt=this.dt()}return t.prototype.eventFromException=function(t,n){throw new k("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new k("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this.lt&&this.V.dsn&&this.V._experiments&&this.V._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:O(n.dsn)}),[[{type:e,sample_rates:[{id:u,rate:a}]},t]])}(t,Zt(this.V.dsn,this.V.yt,this.V.tunnel));this.lt.send(n).then(null,(function(t){R.error("Error while sending event:",t)}))}else this.vt.sendEvent(t).then(null,(function(t){R.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this.vt.sendSession)if(this.lt&&this.V.dsn&&this.V._experiments&&this.V._experiments.newTransport){var n=u(dn(t,Zt(this.V.dsn,this.V.yt,this.V.tunnel)),1)[0];this.lt.send(n).then(null,(function(t){R.error("Error while sending session:",t)}))}else this.vt.sendSession(t).then(null,(function(t){R.error("Error while sending session:",t)}));else R.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.vt},t.prototype.dt=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.5",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.V=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.V,u);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return R.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 R.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 R.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 R.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 R.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 R.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 Jn(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 Wn(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(l(t)&&t.error)return Fn(t.error);if(p(t)||d(t,"DOMException")){var u=t;if("stack"in t)o=Fn(t);else{var a=u.name||(p(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 v(t)?Fn(t):b(t)||w(t)?(o=function(t,n,r){var e={exception:{values:[{type:w(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+W(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){R.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.bt=Tt(30),this.wt={},this.gt={},this.xt=Zt(t.dsn,t.yt,t.tunnel),this.url=en(this.xt.dsn),this.options.sendClientReports&&nr.document&&nr.document.addEventListener("visibilitychange",(function(){"hidden"===nr.document.visibilityState&&n.Et()}))}return t.prototype.sendEvent=function(t){return this.St(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:O(n.dsn)}),[[{type:o,sample_rates:[{id:s,rate:c}]},h.body]]);h.body=Lt(v)}return h}(t,this.xt),t)},t.prototype.sendSession=function(t){return this.St(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.xt),t)},t.prototype.close=function(t){return this.bt.drain(t)},t.prototype.recordLostEvent=function(t,n){var r;if(this.options.sendClientReports){var e=tr(n)+":"+t;R.log("Adding outcome: "+e),this.gt[e]=(null!=(r=this.gt[e])?r:0)+1}},t.prototype.Et=function(){if(this.options.sendClientReports){var t=this.gt;if(this.gt={},Object.keys(t).length){R.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var n,r,e,i=on(this.xt.dsn,this.xt.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.xt.tunnel&&O(this.xt.dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||Mt(),discarded_events:n}]]));try{Zn(i,Lt(a))}catch(t){R.error(t)}}else R.log("No outcomes to flush")}},t.prototype._t=function(t){var n=t.requestType,r=t.response,e=t.headers,i=t.resolve,o=t.reject,u=Rt(r.status);this.wt=Pt(this.wt,e),this.kt(n)&&R.warn("Too many "+n+" requests, backing off until: "+this.jt(n)),"success"!==u?o(r):i({status:u})},t.prototype.jt=function(t){var n=tr(t);return new Date(Ut(this.wt,n))},t.prototype.kt=function(t){var n=tr(t);return Ht(this.wt,n)},t}(),er=function(t){function n(n,r){void 0===r&&(r=Yn());var e=t.call(this,n)||this;return e.Ot=r,e}return r(n,t),n.prototype.St=function(t,n){var r=this;if(this.kt(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.jt(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.bt.add((function(){return new Ot((function(n,i){r.Ot(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._t({requestType:t.type,response:e,headers:o,resolve:n,reject:i})})).catch(i)}))})).then(void 0,(function(n){throw n instanceof k?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.St=function(t,n){var r=this;return this.kt(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.jt(t.type)+" due to too many requests.",status:429})):this.bt.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._t({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 k?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 Jn(t,n,this.V.attachStacktrace)},e.prototype.eventFromMessage=function(n,r,e){return void 0===r&&(r=t.Severity.Info),Wn(n,r,e,this.V.attachStacktrace)},e.prototype.dt=function(){if(!this.V.dsn)return n.prototype.dt.call(this);var t=i(i({},this.V.transportOptions),{dsn:this.V.dsn,tunnel:this.V.tunnel,sendClientReports:this.V.sendClientReports,yt:this.V.yt}),r=Zt(t.dsn,t.yt,t.tunnel),e=on(r.dsn,r.tunnel);if(this.V.transport)return new this.V.transport(t);if(Y()){var o=i({},t.fetchParameters);return this.lt=or({requestOptions:o,url:e}),new er(t)}return this.lt=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=D(t),e=tn(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=cr.document.head||cr.document.body;r&&r.appendChild(n)}else R.error("Missing dsn option in showReportDialog call");else R.error("Missing eventId option in showReportDialog call")}var pr=function(){function t(n){this.name=t.id,this.Tt={onerror:yr,onunhandledrejection:mr},this.V=i({onerror:!0,onunhandledrejection:!0},n)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t,n=this.V;for(var r in n){var e=this.Tt[r];e&&n[r]&&(t=r,R.log("Global Handler attached: "+t),e(),this.Tt[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&&y(o)?function(t,n,r,e){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=l(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=m(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=y(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.V=i({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=c();this.V.setTimeout&&P(t,"setTimeout",Sr),this.V.setInterval&&P(t,"setInterval",Sr),this.V.requestAnimationFrame&&P(t,"requestAnimationFrame",_r),this.V.XMLHttpRequest&&"XMLHttpRequest"in t&&P(XMLHttpRequest.prototype,"send",kr);var n=this.V.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.V=i({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.addSentryBreadcrumb=function(t){this.V.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.V.console&&ut("console",Tr),this.V.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?E(n.event.target,e):E(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.V.dom)),this.V.xhr&&ut("xhr",Dr),this.V.fetch&&ut("fetch",Rr),this.V.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.Dt=n.key||"cause",this.Rt=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&&x(e.originalException,Error)))return r;var i=Cr(n,e.originalException,t);return r.exception.values=a(i,r.exception.values),r}(e.Dt,e.Rt,n,r):n}))},t.id="LinkedErrors",t}();function Cr(t,n,r,e){if(void 0===e&&(e=[]),!x(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.Nt))return R.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return e.Nt=n}return e.Nt=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.yt=n.yt||{},n.yt.sdk=n.yt.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.rt()?lr(i(i({},t),{dsn:t.dsn||this.getDsn()})):R.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.ut=function(n,r,e){return n.platform=n.platform||"javascript",t.prototype.ut.call(this,n,r,e)},n.prototype.ft=function(n){var r=this.getIntegration(Or);r&&r.addSentryBreadcrumb(n),t.prototype.ft.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={},Jr=c();Jr.Sentry&&Jr.Sentry.Integrations&&(Br=Jr.Sentry.Integrations);var Wr=i(i(i({},Br),kn),Xr);return t.BrowserClient=Fr,t.Hub=Bt,t.Integrations=Wr,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):(R.warn("Cannot flush events and disable SDK. No client defined."),kt(!1))},t.configureScope=function(t){Qt("configureScope",t)},t.defaultIntegrations=zr,t.eventFromException=Jn,t.eventFromMessage=Wn,t.flush=function(t){var n=Kt().getClient();return n?n.flush(t):(R.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&&R.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 R.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=Wt,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}({});
1
+ /*! @sentry/browser 6.19.6 (20eb6d0) | 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}function f(t,n,r){var e=r||c(),i=e.__SENTRY__=e.__SENTRY__||{};return i[t]||(i[t]=n())}var h=Object.prototype.toString;function v(t){switch(h.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return x(t,Error)}}function d(t,n){return h.call(t)==="[object "+n+"]"}function l(t){return d(t,"ErrorEvent")}function p(t){return d(t,"DOMError")}function y(t){return d(t,"String")}function m(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function b(t){return d(t,"Object")}function w(t){return"undefined"!=typeof Event&&x(t,Event)}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function x(t,n){try{return t instanceof n}catch(t){return!1}}function E(t,n){try{for(var r=t,e=[],i=0,o=0,u=" > ".length,a=void 0;r&&i++<5&&!("html"===(a=S(r,n))||i>1&&o+e.length*u+a.length>=80);)e.push(a),o+=a.length,r=r.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function S(t,n){var r,e,i,o,u,a=t,s=[];if(!a||!a.tagName)return"";s.push(a.tagName.toLowerCase());var c=n&&n.length?n.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(c&&c.length)c.forEach((function(t){s.push("["+t[0]+'="'+t[1]+'"]')}));else if(a.id&&s.push("#"+a.id),(r=a.className)&&y(r))for(e=r.split(/\s+/),u=0;u<e.length;u++)s.push("."+e[u]);var f=["type","name","title","alt"];for(u=0;u<f.length;u++)i=f[u],(o=a.getAttribute(i))&&s.push("["+i+'="'+o+'"]');return s.join("")}var _=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=n[r]);return t});var k=function(t){function n(n){var r=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=r.prototype.constructor.name,_(e,r.prototype),e}return r(n,t),n}(Error),j=/^(?:(\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 T(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 D(t){var n="string"==typeof t?function(t){var n=j.exec(t);if(!n)throw new k("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 T({host:s,pass:a,path:h,projectId:v,port:f,protocol:e,publicKey:i})}(t):T(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 k("Invalid Sentry Dsn: "+n+" missing")})),!r.match(/^\d+$/))throw new k("Invalid Sentry Dsn: Invalid projectId "+r);if(!function(t){return"http"===t||"https"===t}(e))throw new k("Invalid Sentry Dsn: Invalid protocol "+e);if(n&&isNaN(parseInt(n,10)))throw new k("Invalid Sentry Dsn: Invalid port "+n)}(n),n}var R,N=["fatal","error","warning","log","info","debug","critical"],I=c(),C="Sentry Logger ",M=["debug","info","warn","error","log","assert"];function q(t){var n=c();if(!("console"in n))return t();var r=n.console,e={};M.forEach((function(t){var i=r[t]&&r[t].__sentry_original__;t in n.console&&i&&(e[t]=r[t],r[t]=i)}));try{return t()}finally{Object.keys(e).forEach((function(t){r[t]=e[t]}))}}function A(){var t=!1,n={enable:function(){t=!0},disable:function(){t=!1}};return M.forEach((function(r){n[r]=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];t&&q((function(){var t;(t=I.console)[r].apply(t,a([C+"["+r+"]:"],n))}))}})),n}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!!y(t)&&(d(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(v(t))n=i({message:t.message,name:t.name,stack:t.stack},J(t));else if(w(t)){var r=t;n=i({type:r.type,target:B(r.target),currentTarget:B(r.currentTarget)},J(r)),"undefined"!=typeof CustomEvent&&x(t,CustomEvent)&&(n.detail=r.detail)}return n}function B(t){try{return n=t,"undefined"!=typeof Element&&x(n,Element)?E(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var n}function J(t){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function W(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(b(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}R=f("logger",A);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;M.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:y(n[0])?n[0].toUpperCase():n[0],url:n[1]};y(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);var u=function(){if(4===e.readyState){try{o.status_code=e.status}catch(t){}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){R.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 R.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){R.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&&x(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&&x(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],h=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.t?"[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 b(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,m=v(n)||w(n)?$(n):n;for(var g in m)if(Object.prototype.hasOwnProperty.call(m,g)){if(y>=e){p[g]="[MaxProperties ~]";break}var x=m[g];p[g]=_t(g,x,r-1,e,i),y+=1}return h(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.i=0,this.o=[],this.u=function(t){n.h(1,t)},this.v=function(t){n.h(2,t)},this.h=function(t,r){0===n.i&&(g(r)?r.then(n.u,n.v):(n.i=t,n.l=r,n.p()))},this.p=function(){if(0!==n.i){var t=n.o.slice();n.o=[],t.forEach((function(t){t[0]||(1===n.i&&t[1](n.l),2===n.i&&t[2](n.l),t[0]=!0)}))}};try{t(this.u,this.v)}catch(t){this.v(t)}}return t.prototype.then=function(n,r){var e=this;return new t((function(t,i){e.o.push([!1,function(r){if(n)try{t(n(r))}catch(t){i(t)}else t(r)},function(n){if(r)try{t(r(n))}catch(t){i(t)}else i(n)}]),e.p()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(n){var r=this;return new t((function(t,e){var i,o;return r.then((function(t){o=!1,i=t,n&&n()}),(function(t){o=!0,i=t,n&&n()})).then((function(){o?e(i):t(i)}))}))},t}();function Tt(t){var n=[];function r(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(e){if(!(void 0===t||n.length<t))return jt(new k("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!==N.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=m(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.m=!1,this.g=[],this.S=[],this._=[],this.k={},this.j={},this.O={},this.T={},this.D={}}return t.clone=function(n){var r=new t;return n&&(r._=a(n._),r.j=i({},n.j),r.O=i({},n.O),r.T=i({},n.T),r.k=n.k,r.R=n.R,r.N=n.N,r.I=n.I,r.C=n.C,r.M=n.M,r.S=a(n.S),r.q=n.q),r},t.prototype.addScopeListener=function(t){this.g.push(t)},t.prototype.addEventProcessor=function(t){return this.S.push(t),this},t.prototype.setUser=function(t){return this.k=t||{},this.I&&this.I.update({user:t}),this.A(),this},t.prototype.getUser=function(){return this.k},t.prototype.getRequestSession=function(){return this.q},t.prototype.setRequestSession=function(t){return this.q=t,this},t.prototype.setTags=function(t){return this.j=i(i({},this.j),t),this.A(),this},t.prototype.setTag=function(t,n){var r;return this.j=i(i({},this.j),((r={})[t]=n,r)),this.A(),this},t.prototype.setExtras=function(t){return this.O=i(i({},this.O),t),this.A(),this},t.prototype.setExtra=function(t,n){var r;return this.O=i(i({},this.O),((r={})[t]=n,r)),this.A(),this},t.prototype.setFingerprint=function(t){return this.M=t,this.A(),this},t.prototype.setLevel=function(t){return this.R=t,this.A(),this},t.prototype.setTransactionName=function(t){return this.C=t,this.A(),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.A(),this},t.prototype.setSpan=function(t){return this.N=t,this.A(),this},t.prototype.getSpan=function(){return this.N},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this.I=t:delete this.I,this.A(),this},t.prototype.getSession=function(){return this.I},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.j=i(i({},this.j),n.j),this.O=i(i({},this.O),n.O),this.T=i(i({},this.T),n.T),n.k&&Object.keys(n.k).length&&(this.k=n.k),n.R&&(this.R=n.R),n.M&&(this.M=n.M),n.q&&(this.q=n.q)):b(n)&&(n=n,this.j=i(i({},this.j),n.tags),this.O=i(i({},this.O),n.extra),this.T=i(i({},this.T),n.contexts),n.user&&(this.k=n.user),n.level&&(this.R=n.level),n.fingerprint&&(this.M=n.fingerprint),n.requestSession&&(this.q=n.requestSession)),this},t.prototype.clear=function(){return this._=[],this.j={},this.O={},this.k={},this.T={},this.R=void 0,this.C=void 0,this.M=void 0,this.q=void 0,this.N=void 0,this.I=void 0,this.A(),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._=a(this._,[e]).slice(-r),this.A(),this},t.prototype.clearBreadcrumbs=function(){return this._=[],this.A(),this},t.prototype.applyToEvent=function(t,n){if(this.O&&Object.keys(this.O).length&&(t.extra=i(i({},this.O),t.extra)),this.j&&Object.keys(this.j).length&&(t.tags=i(i({},this.j),t.tags)),this.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.C&&(t.transaction=this.C),this.N){t.contexts=i({trace:this.N.getTraceContext()},t.contexts);var r=this.N.transaction&&this.N.transaction.name;r&&(t.tags=i({transaction:r},t.tags))}return this.L(t),t.breadcrumbs=a(t.breadcrumbs||[],this._),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.D,this.U(a(Ft(),this.S),t,n)},t.prototype.setSDKProcessingMetadata=function(t){return this.D=i(i({},this.D),t),this},t.prototype.U=function(t,n,r,e){var o=this;return void 0===e&&(e=0),new Ot((function(u,a){var 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.U(t,n,r,e+1).then(u)})).then(null,a):o.U(t,c,r,e+1).then(u).then(null,a)}}))},t.prototype.A=function(){var t=this;this.m||(this.m=!0,this.g.forEach((function(n){n(t)})),this.m=!1)},t.prototype.L=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.M&&(t.fingerprint=t.fingerprint.concat(this.M)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function Ft(){return f("globalEventProcessors",(function(){return[]}))}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.H=r,this.P=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.H<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.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: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.F("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: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.F("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.X=r),this.F("captureEvent",t,i(i({},n),{event_id:r})),r},t.prototype.lastEventId=function(){return this.X},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),e=r.scope,o=r.client;if(e&&o){var u=o.getOptions&&o.getOptions()||{},a=u.beforeBreadcrumb,s=void 0===a?null:a,c=u.maxBreadcrumbs,f=void 0===c?100:c;if(!(f<=0)){var h=Mt(),v=i({timestamp:h},t),d=s?q((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 R.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this.B("startSpan",t)},t.prototype.startTransaction=function(t,n){return this.B("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this.B("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.F=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.B=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var e=Jt(),i=e.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,n);R.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function Jt(){var t=c();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Wt(t){var n=Jt(),r=Gt(n);return Vt(n,t),r}function Kt(){var t,n=Jt();return(t=n)&&t.__SENTRY__&&t.__SENTRY__.hub&&!Gt(n).isOlderThan(4)||Vt(n,new Bt),Gt(n)}function Gt(t){return f("hub",(function(){return new Bt}),t)}function Vt(t,n){return!!t&&((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:D(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),R.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.W={},this.K=0,this.G=new t(n),this.V=n,n.dsn&&(this.Y=D(n.dsn))}return t.prototype.captureException=function(t,n,r){var e=this;if(!xt(t)){var i=n&&n.event_id;return this.Z(this.tt().eventFromException(t,n).then((function(t){return e.nt(t,n,r)})).then((function(t){i=t}))),i}R.log(cn)},t.prototype.captureMessage=function(t,n,r,e){var i=this,o=r&&r.event_id,u=m(t)?this.tt().eventFromMessage(String(t),n,r):this.tt().eventFromException(t,r);return this.Z(u.then((function(t){return i.nt(t,r,e)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,n,r){if(!(n&&n.originalException&&xt(n.originalException))){var e=n&&n.event_id;return this.Z(this.nt(t,n,r).then((function(t){e=t}))),e}R.log(cn)},t.prototype.captureSession=function(t){this.rt()?"string"!=typeof t.release?R.warn("Discarded session because of missing or non-string release"):(this.et(t),t.update({init:!1})):R.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this.Y},t.prototype.getOptions=function(){return this.V},t.prototype.getTransport=function(){return this.tt().getTransport()},t.prototype.flush=function(t){var n=this;return this.it(t).then((function(r){return n.getTransport().close(t).then((function(t){return r&&t}))}))},t.prototype.close=function(t){var n=this;return this.flush(t).then((function(t){return n.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this.rt()&&!this.W.initialized&&(this.W=sn(this.V))},t.prototype.getIntegration=function(t){try{return this.W[t.id]||null}catch(n){return R.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype.ot=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.et=function(t){this.tt().sendSession(t)},t.prototype.it=function(t){var n=this;return new Ot((function(r){var e=0,i=setInterval((function(){0==n.K?(clearInterval(i),r(!0)):(e+=1,t&&e>=t&&(clearInterval(i),r(!1)))}),1)}))},t.prototype.tt=function(){return this.G},t.prototype.rt=function(){return!1!==this.getOptions().enabled&&void 0!==this.Y},t.prototype.ut=function(t,n,r){var e=this,o=this.getOptions(),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.at(f),this.st(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)+" ("+typeof a+")"})),"number"==typeof a&&a>0?e.ct(t,a,c):t}))},t.prototype.ct=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.at=function(t){var n=this.getOptions(),r=n.environment,e=n.release,i=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==e&&(t.release=e),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=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.st=function(t){var n=Object.keys(this.W);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=a(t.sdk.integrations||[],n))},t.prototype.ft=function(t){this.tt().sendEvent(t)},t.prototype.nt=function(t,n,r){return this.ht(t,n,r).then((function(t){return t.event_id}),(function(t){R.error(t)}))},t.prototype.ht=function(t,n,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate,a=this.getTransport();function s(t,n){a.recordLostEvent&&a.recordLostEvent(t,n)}if(!this.rt())return jt(new k("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 k("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this.ut(t,r,n).then((function(r){if(null===r)throw s("event_processor",t.type||"event"),new k("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(!b(t)&&null!==t)throw new k(n);return t}),(function(t){throw new k("beforeSend rejected with "+t)}));if(!b(t)&&null!==t)throw new k(n);return t}(o(r,n))})).then((function(n){if(null===n)throw s("before_send",t.type||"event"),new k("`beforeSend` returned `null`, will not send event.");var i=r&&r.getSession&&r.getSession();return!c&&i&&e.ot(i,n),e.ft(n),n})).then(null,(function(t){if(t instanceof k)throw t;throw e.captureException(t,{data:{__sentry__:!0},originalException:t}),new k("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype.Z=function(t){var n=this;this.K+=1,t.then((function(t){return n.K-=1,t}),(function(t){return n.K-=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:O(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.V=t,this.V.dsn||R.warn("No DSN provided, backend will not do anything."),this.vt=this.dt()}return t.prototype.eventFromException=function(t,n){throw new k("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new k("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this.lt&&this.V.dsn&&this.V._experiments&&this.V._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:O(n.dsn)}),[[{type:e,sample_rates:[{id:u,rate:a}]},t]])}(t,Zt(this.V.dsn,this.V.yt,this.V.tunnel));this.lt.send(n).then(null,(function(t){R.error("Error while sending event:",t)}))}else this.vt.sendEvent(t).then(null,(function(t){R.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this.vt.sendSession)if(this.lt&&this.V.dsn&&this.V._experiments&&this.V._experiments.newTransport){var n=u(dn(t,Zt(this.V.dsn,this.V.yt,this.V.tunnel)),1)[0];this.lt.send(n).then(null,(function(t){R.error("Error while sending session:",t)}))}else this.vt.sendSession(t).then(null,(function(t){R.error("Error while sending session:",t)}));else R.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.vt},t.prototype.dt=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.6",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.V=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.V,u);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return R.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 R.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 R.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 R.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 R.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 R.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 Jn(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 Wn(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(l(t)&&t.error)return Fn(t.error);if(p(t)||d(t,"DOMException")){var u=t;if("stack"in t)o=Fn(t);else{var a=u.name||(p(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 v(t)?Fn(t):b(t)||w(t)?(o=function(t,n,r){var e={exception:{values:[{type:w(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+W(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){R.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.bt=Tt(30),this.wt={},this.gt={},this.xt=Zt(t.dsn,t.yt,t.tunnel),this.url=en(this.xt.dsn),this.options.sendClientReports&&nr.document&&nr.document.addEventListener("visibilitychange",(function(){"hidden"===nr.document.visibilityState&&n.Et()}))}return t.prototype.sendEvent=function(t){return this.St(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:O(n.dsn)}),[[{type:o,sample_rates:[{id:s,rate:c}]},h.body]]);h.body=Lt(v)}return h}(t,this.xt),t)},t.prototype.sendSession=function(t){return this.St(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.xt),t)},t.prototype.close=function(t){return this.bt.drain(t)},t.prototype.recordLostEvent=function(t,n){var r;if(this.options.sendClientReports){var e=tr(n)+":"+t;R.log("Adding outcome: "+e),this.gt[e]=(null!=(r=this.gt[e])?r:0)+1}},t.prototype.Et=function(){if(this.options.sendClientReports){var t=this.gt;if(this.gt={},Object.keys(t).length){R.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var n,r,e,i=on(this.xt.dsn,this.xt.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.xt.tunnel&&O(this.xt.dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||Mt(),discarded_events:n}]]));try{Zn(i,Lt(a))}catch(t){R.error(t)}}else R.log("No outcomes to flush")}},t.prototype._t=function(t){var n=t.requestType,r=t.response,e=t.headers,i=t.resolve,o=t.reject,u=Rt(r.status);this.wt=Pt(this.wt,e),this.kt(n)&&R.warn("Too many "+n+" requests, backing off until: "+this.jt(n)),"success"!==u?o(r):i({status:u})},t.prototype.jt=function(t){var n=tr(t);return new Date(Ut(this.wt,n))},t.prototype.kt=function(t){var n=tr(t);return Ht(this.wt,n)},t}(),er=function(t){function n(n,r){void 0===r&&(r=Yn());var e=t.call(this,n)||this;return e.Ot=r,e}return r(n,t),n.prototype.St=function(t,n){var r=this;if(this.kt(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.jt(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.bt.add((function(){return new Ot((function(n,i){r.Ot(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._t({requestType:t.type,response:e,headers:o,resolve:n,reject:i})})).catch(i)}))})).then(void 0,(function(n){throw n instanceof k?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.St=function(t,n){var r=this;return this.kt(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.jt(t.type)+" due to too many requests.",status:429})):this.bt.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._t({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 k?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 Jn(t,n,this.V.attachStacktrace)},e.prototype.eventFromMessage=function(n,r,e){return void 0===r&&(r=t.Severity.Info),Wn(n,r,e,this.V.attachStacktrace)},e.prototype.dt=function(){if(!this.V.dsn)return n.prototype.dt.call(this);var t=i(i({},this.V.transportOptions),{dsn:this.V.dsn,tunnel:this.V.tunnel,sendClientReports:this.V.sendClientReports,yt:this.V.yt}),r=Zt(t.dsn,t.yt,t.tunnel),e=on(r.dsn,r.tunnel);if(this.V.transport)return new this.V.transport(t);if(Y()){var o=i({},t.fetchParameters);return this.lt=or({requestOptions:o,url:e}),new er(t)}return this.lt=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=D(t),e=tn(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=cr.document.head||cr.document.body;r&&r.appendChild(n)}else R.error("Missing dsn option in showReportDialog call");else R.error("Missing eventId option in showReportDialog call")}var pr=function(){function t(n){this.name=t.id,this.Tt={onerror:yr,onunhandledrejection:mr},this.V=i({onerror:!0,onunhandledrejection:!0},n)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t,n=this.V;for(var r in n){var e=this.Tt[r];e&&n[r]&&(t=r,R.log("Global Handler attached: "+t),e(),this.Tt[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&&y(o)?function(t,n,r,e){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=l(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=m(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=y(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.V=i({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=c();this.V.setTimeout&&P(t,"setTimeout",Sr),this.V.setInterval&&P(t,"setInterval",Sr),this.V.requestAnimationFrame&&P(t,"requestAnimationFrame",_r),this.V.XMLHttpRequest&&"XMLHttpRequest"in t&&P(XMLHttpRequest.prototype,"send",kr);var n=this.V.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.V=i({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.addSentryBreadcrumb=function(t){this.V.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.V.console&&ut("console",Tr),this.V.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?E(n.event.target,e):E(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.V.dom)),this.V.xhr&&ut("xhr",Dr),this.V.fetch&&ut("fetch",Rr),this.V.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.Dt=n.key||"cause",this.Rt=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&&x(e.originalException,Error)))return r;var i=Cr(n,e.originalException,t);return r.exception.values=a(i,r.exception.values),r}(e.Dt,e.Rt,n,r):n}))},t.id="LinkedErrors",t}();function Cr(t,n,r,e){if(void 0===e&&(e=[]),!x(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.Nt))return R.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return e.Nt=n}return e.Nt=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.yt=n.yt||{},n.yt.sdk=n.yt.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.rt()?lr(i(i({},t),{dsn:t.dsn||this.getDsn()})):R.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.ut=function(n,r,e){return n.platform=n.platform||"javascript",t.prototype.ut.call(this,n,r,e)},n.prototype.ft=function(n){var r=this.getIntegration(Or);r&&r.addSentryBreadcrumb(n),t.prototype.ft.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={},Jr=c();Jr.Sentry&&Jr.Sentry.Integrations&&(Br=Jr.Sentry.Integrations);var Wr=i(i(i({},Br),kn),Xr);return t.BrowserClient=Fr,t.Hub=Bt,t.Integrations=Wr,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):(R.warn("Cannot flush events and disable SDK. No client defined."),kt(!1))},t.configureScope=function(t){Qt("configureScope",t)},t.defaultIntegrations=zr,t.eventFromException=Jn,t.eventFromMessage=Wn,t.flush=function(t){var n=Kt().getClient();return n?n.flush(t):(R.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&&R.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 R.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=Wt,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