@sentry/browser 6.17.8-beta.0 → 6.18.0

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