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