/*! For license information please see index.js.LICENSE.txt */ !function(){"use strict";var t={28:function(t,e,n){n.r(e),n.d(e,{BrowserClient:function(){return De},Hub:function(){return nt},Integrations:function(){return tn},SDK_NAME:function(){return ze},SDK_VERSION:function(){return wt},Scope:function(){return P},Severity:function(){return u},Status:function(){return c},Transports:function(){return i},addBreadcrumb:function(){return ht},addGlobalEventProcessor:function(){return A},captureEvent:function(){return ft},captureException:function(){return lt},captureMessage:function(){return pt},close:function(){return Je},configureScope:function(){return dt},defaultIntegrations:function(){return qe},eventFromException:function(){return zt},eventFromMessage:function(){return Qt},flush:function(){return $e},forceLoad:function(){return Ve},getCurrentHub:function(){return it},getHubFromCarrier:function(){return st},init:function(){return We},injectReportDialog:function(){return ve},lastEventId:function(){return Ke},makeMain:function(){return ot},onLoad:function(){return Ge},setContext:function(){return vt},setExtra:function(){return _t},setExtras:function(){return yt},setTag:function(){return gt},setTags:function(){return mt},setUser:function(){return bt},showReportDialog:function(){return Ye},startTransaction:function(){return Et},withScope:function(){return St},wrap:function(){return Xe}});var r={};n.r(r),n.d(r,{FunctionToString:function(){return Ne},InboundFilters:function(){return Ie}});var o={};n.r(o),n.d(o,{Breadcrumbs:function(){return Pe},Dedupe:function(){return Ue},GlobalHandlers:function(){return Fe},LinkedErrors:function(){return Le},TryCatch:function(){return Me},UserAgent:function(){return He}});var i={};n.r(i),n.d(i,{BaseTransport:function(){return ue},FetchTransport:function(){return ce},XHRTransport:function(){return le}});var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},a(t,e)};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u,c,l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(){for(var t=[],e=0;e=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(c||(c={}));var x,O=n(170);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(x||(x={}));var j,k,T=function(){function t(t){var e=this;this._state=x.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(x.RESOLVED,t)},this._reject=function(t){e._setResult(x.REJECTED,t)},this._setResult=function(t,n){e._state===x.PENDING&&(E(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==x.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||(e._state===x.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===x.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach((function(e,a){t.resolve(e).then((function(t){i[a]=t,0==(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var o,i;return n.then((function(t){i=!1,o=t,e&&e()}),(function(t){i=!0,o=t,e&&e()})).then((function(){i?r(o):t(o)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),R=n(844),P=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=d(e._breadcrumbs),n._tags=l({},e._tags),n._extra=l({},e._extra),n._contexts=l({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=d(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=l(l({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=l(l({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=l(l({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=l(l({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=l(l({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,n,r,o=this.getSpan();return(null===(t=o)||void 0===t?void 0:t.transaction)?null===(e=o)||void 0===e?void 0:e.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=l(l({},this._tags),e._tags),this._extra=l(l({},this._extra),e._extra),this._contexts=l(l({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):g(e)&&(this._tags=l(l({},this._tags),e.tags),this._extra=l(l({},this._extra),e.extra),this._contexts=l(l({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var r=l({timestamp:(0,O.yW)()},t);return this._breadcrumbs=d(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=l(l({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=l(l({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=l(l({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=l(l({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=l({trace:this._span.getTraceContext()},t.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(t.tags=l({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=d(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(d(D(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,r){var o=this;return void 0===r&&(r=0),new T((function(i,a){var s=t[r];if(null===e||"function"!=typeof s)i(e);else{var u=s(l({},e),n);E(u)?u.then((function(e){return o._notifyEventProcessors(t,e,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(t,u,n,r+1).then(i).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function D(){var t=(0,R.Rf)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function A(t){D().push(t)}!function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(j||(j={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(k||(k={}));var I=(0,R.Rf)(),N="Sentry Logger ",C=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e1&&i+3*r.length+a.length>=80);)r.push(a),i+=a.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function U(t,e){var n,r,o,i,a,s,u,c=t,l=[];if(!c||!c.tagName)return"";l.push(c.tagName.toLowerCase());var p=(null===(n=e)||void 0===n?void 0:n.length)?e.filter((function(t){return c.getAttribute(t)})).map((function(t){return[t,c.getAttribute(t)]})):null;if(null===(r=p)||void 0===r?void 0:r.length)p.forEach((function(t){l.push("["+t[0]+'="'+t[1]+'"]')}));else if(c.id&&l.push("#"+c.id),(o=c.className)&&m(o))for(i=o.split(/\s+/),u=0;u";function q(t){try{return t&&"function"==typeof t&&t.name||H}catch(t){return H}}function W(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function Y(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r"}try{i.currentTarget=S(o.currentTarget)?L(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){i.currentTarget=""}for(var a in"undefined"!=typeof CustomEvent&&w(t,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a]);return i}return t}function $(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r,o=z(t,e);return r=o,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?$(t,e-1,n):o}function J(t,e){return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":g(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: "+q(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function X(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new B),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=J(t);return _(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var o=J(e,t);if(_(o))return o;var i=G(e),a=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a[s]=X(s,i[s],n-1,r));return r.unmemoize(e),a}function z(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return X(t,n,e)})))}catch(t){return"**non-serializable**"}}function Q(t,e){void 0===e&&(e=40);var n=Object.keys(G(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return W(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:W(o,e)}return""}function Z(t){var e,n;if(g(t)){var r=t,o={};try{for(var i=p(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=Z(r[s]))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o}return Array.isArray(t)?t.map(Z):t}var tt=function(){function t(t){this.errors=0,this.sid=(0,R.DM)(),this.duration=0,this.status=j.Ok,this.init=!0,this.ignoreDuration=!1;var e=(0,O.ph)();this.timestamp=e,this.started=e,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||(0,O.ph)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,R.DM)()),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 e=this.timestamp-this.started;this.duration=e>=0?e: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===j.Ok?this.update({status:j.Exited}):this.update()},t.prototype.toJSON=function(){return Z({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Z({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),et=4,nt=function(){function t(t,e,n){void 0===e&&(e=new P),void 0===n&&(n=et),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version1&&(l=d.slice(0,-1).join("/"),p=d.pop()),p){var h=p.match(/^\d+/);h&&(p=h[0])}this._fromComponents({host:s,pass:a,path:l,projectId:p,port:c,protocol:r,publicKey:o})},t.prototype._fromComponents=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._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new Ot(kt+": "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new Ot(kt+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Ot(kt+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Ot(kt+": Invalid port "+this.port)},t}(),Rt=[];function Pt(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}var Dt=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new Tt(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this,o=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){o=t}))),o},t.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id,a=_(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(a.then((function(t){return o._captureEvent(t,n,r)})).then((function(t){i=t}))),i},t.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?M.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):M.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e._getBackend().getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){var t,e;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(t=this._options,e={},function(t){var e=t.defaultIntegrations&&d(t.defaultIntegrations)||[],n=t.integrations,r=d(Pt(e));Array.isArray(n)?r=d(r.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),Pt(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(t){return t.name})),i="Debug";return-1!==o.indexOf(i)&&r.push.apply(r,d(r.splice(o.indexOf(i),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===Rt.indexOf(t.name)&&(t.setupOnce(A,it),Rt.push(t.name),M.log("Integration installed: "+t.name))}(t)})),Object.defineProperty(e,"initialized",{value:!0}),e))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return M.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,o=!1,i=!1,a=e.exception&&e.exception.values;if(a){i=!0;try{for(var s=p(a),u=s.next();!u.done;u=s.next()){var c=u.value.mechanism;if(c&&!1===c.handled){o=!0;break}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var f=t.status===j.Ok;(f&&0===t.errors||f&&o)&&(t.update(l(l({},o&&{status:j.Crashed}),{errors:t.errors||Number(i||o)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new T((function(n){var r=0,o=setInterval((function(){0==e._numProcessing?(clearInterval(o),n(!0)):(r+=1,t&&r>=t&&(clearInterval(o),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=l(l({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,R.DM)()),timestamp:t.timestamp||(0,O.yW)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=e;n&&n.captureContext&&(s=P.clone(s).update(n.captureContext));var u=T.resolve(a);return s&&(u=s.applyToEvent(a,n)),u.then((function(t){return"number"==typeof i&&i>0?r._normalizeEvent(t,i):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=l(l(l(l(l({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return l(l({},t),t.data&&{data:z(t.data,e)})}))}),t.user&&{user:z(t.user,e)}),t.contexts&&{contexts:z(t.contexts,e)}),t.extra&&{extra:z(t.extra,e)});t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace);var r=this.getOptions()._experiments;return(void 0===r?{}:r).ensureNoCircularStructures?z(n):n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,a=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=W(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=W(s.value,a));var u=t.request;u&&u.url&&(u.url=W(u.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=d(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){M.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate;if(!this._isEnabled())return T.reject(new Ot("SDK not enabled, will not capture event."));var s="transaction"===t.type;return!s&&"number"==typeof a&&Math.random()>a?T.reject(new Ot("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(t,n,e).then((function(t){if(null===t)throw new Ot("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||s||!i)return t;var n=i(t,e);return r._ensureBeforeSendRv(n)})).then((function(t){if(null===t)throw new Ot("`beforeSend` returned `null`, will not send event.");var e=n&&n.getSession&&n.getSession();return!s&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t})).then(null,(function(t){if(t instanceof Ot)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new Ot("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t.prototype._ensureBeforeSendRv=function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(E(t))return t.then((function(t){if(!g(t)&&null!==t)throw new Ot(e);return t}),(function(t){throw new Ot("beforeSend rejected with "+t)}));if(!g(t)&&null!==t)throw new Ot(e);return t},t}(),At=function(){function t(){}return t.prototype.sendEvent=function(t){return T.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:c.Skipped})},t.prototype.close=function(t){return T.resolve(!0)},t}(),It=function(){function t(t){this._options=t,this._options.dsn||M.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new Ot("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new Ot("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){M.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){M.error("Error while sending session: "+t)})):M.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new At},t}();function Nt(){if(!("fetch"in(0,R.Rf)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Ct(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Mt(){if(!Nt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var Ft="?",Lt=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ut=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ht=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Wt=/Minified React error #\d+;/i;function Yt(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:Wt.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=t.stacktrace.split("\n"),i=[],a=0;a eval")>-1&&(e=Ht.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==a||n[5]||void 0===t.columnNumber||(o[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||Ft,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=Ft),o.push(r)}return o.length?{message:Vt(t),name:t.name,stack:o}:null}(t),e)return Kt(e,n)}catch(t){}return{message:Vt(t),name:t&&t.name,stack:[],failed:!0}}function Kt(t,e){try{return l(l({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function Vt(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}var Gt=50;function $t(t){var e=Xt(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Jt(t){return{exception:{values:[$t(t)]}}}function Xt(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,Gt).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function zt(t,e,n){var r=Zt(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return(0,R.EG)(r,{handled:!0,type:"generic"}),r.level=u.Error,n&&n.event_id&&(r.event_id=n.event_id),T.resolve(r)}function Qt(t,e,n,r){void 0===n&&(n=u.Info);var o=te(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),T.resolve(o)}function Zt(t,e,n){var r,o;if(void 0===n&&(n={}),v(t)&&t.error)return Jt(Yt(t=t.error));if(y(t)||(o=t,"[object DOMException]"===Object.prototype.toString.call(o))){var i=t,a=i.name||(y(i)?"DOMError":"DOMException"),s=i.message?a+": "+i.message:a;return r=te(s,e,n),(0,R.Db)(r,s),"code"in i&&(r.tags=l(l({},r.tags),{"DOMException.code":""+i.code})),r}return h(t)?r=Jt(Yt(t)):g(t)||b(t)?(r=function(t,e,n){var r={exception:{values:[{type:b(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Q(t)}]},extra:{__serialized__:$(t)}};if(e){var o=Xt(Yt(e).stack);r.stacktrace={frames:o}}return r}(t,e,n.rejection),(0,R.EG)(r,{synthetic:!0}),r):(r=te(t,e,n),(0,R.Db)(r,""+t,void 0),(0,R.EG)(r,{synthetic:!0}),r)}function te(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var o=Xt(Yt(e).stack);r.stacktrace={frames:o}}return r}function ee(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function ne(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=d(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=d(t.sdk.packages||[],e.packages||[]),t):t}function re(t,e){var n=ee(e),r="aggregates"in t?"sessions":"session";return{body:JSON.stringify(l(l({sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(t),type:r,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function oe(t,e){var n=ee(e),r=t.type||"event",o="transaction"===r||e.forceEnvelope(),i=t.debug_meta||{},a=i.transactionSampling,s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o0&&n(!1)}),t);T.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}(),se={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},ue=function(){function t(t){this.options=t,this._buffer=new ae(30),this._rateLimits={},this._api=new ie(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new Ot("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,i=t.reject,a=c.fromHttpCode(n.status);this._handleRateLimit(r)&&M.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),a!==c.Success?i(n):o({status:a})},t.prototype._disabledUntil=function(t){var e=se[t];return this._rateLimits[e]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,r,o,i=Date.now(),a=t["x-sentry-rate-limits"],s=t["retry-after"];if(a){try{for(var u=p(a.trim().split(",")),c=u.next();!c.done;c=u.next()){var l=c.value.split(":",2),f=parseInt(l[0],10),d=1e3*(isNaN(f)?60:f);try{for(var h=(r=void 0,p(l[1].split(";"))),v=h.next();!v.done;v=h.next()){var y=v.value;this._rateLimits[y||"all"]=new Date(i+d)}}catch(t){r={error:t}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+(0,R.JY)(i,s)),!0)},t}(),ce=function(t){function e(e,n){void 0===n&&(n=function(){var t,e,n=(0,R.Rf)();if(Ct(n.fetch))return n.fetch.bind(n);var r=n.document,o=n.fetch;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),(null===(e=i.contentWindow)||void 0===e?void 0:e.fetch)&&(o=i.contentWindow.fetch),r.head.removeChild(i)}catch(t){M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return o.bind(n)}());var r=t.call(this,e)||this;return r._fetch=n,r}return s(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(oe(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(re(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:Mt()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new T((function(e,o){n._fetch(t.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:i,resolve:e,reject:o})})).catch(o)}))}))},e}(ue),le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(oe(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(re(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add((function(){return new T((function(e,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:o,headers:i,resolve:e,reject:r})}},o.open("POST",t.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(t.body)}))}))},e}(ue),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.eventFromException=function(t,e){return zt(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=u.Info),Qt(this._options,t,e,n)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=l(l({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(e):Nt()?new ce(e):new le(e)},e}(It),fe=0;function de(){return fe>0}function he(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(t){return he(t,e)}));return t.handleEvent?t.handleEvent.apply(this,o):t.apply(this,o)}catch(t){throw fe+=1,setTimeout((function(){fe-=1})),St((function(n){n.addEventProcessor((function(t){var n=l({},t);return e.mechanism&&((0,R.Db)(n,void 0,void 0),(0,R.EG)(n,e.mechanism)),n.extra=l(l({},n.extra),{arguments:r}),n})),lt(t)})),t}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch(t){}t.prototype=t.prototype||{},r.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch(t){}return r}function ve(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var e=document.createElement("script");e.async=!0,e.src=new ie(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}else M.error("Missing dsn option in showReportDialog call");else M.error("Missing eventId option in showReportDialog call")}var ye,me=(0,R.Rf)(),_e={},ge={};function be(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(_e[t.type]=_e[t.type]||[],_e[t.type].push(t.callback),function(t){if(!ge[t])switch(ge[t]=!0,t){case"console":"console"in me&&["debug","info","warn","error","log","assert"].forEach((function(t){t in me.console&&V(me.console,t,(function(e){return function(){for(var n=[],r=0;r2?e[2]:void 0;if(r){var o=ye,i=String(r);ye=i,Se("history",{from:o,to:i})}return t.apply(this,e)}}}();break;case"error":Te=me.onerror,me.onerror=function(t,e,n,r,o){return Se("error",{column:r,error:o,line:n,msg:t,url:e}),!!Te&&Te.apply(this,arguments)};break;case"unhandledrejection":Re=me.onunhandledrejection,me.onunhandledrejection=function(t){return Se("unhandledrejection",t),!Re||Re.apply(this,arguments)};break;default:M.warn("unknown instrumentation type:",t)}}(t.type))}function Se(t,e){var n,r;if(t&&_e[t])try{for(var o=p(_e[t]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(e)}catch(e){M.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+q(a)+"\nError: "+e)}}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Ee(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in me&&w(t[0],Request)?t[0].url:String(t[0])}var we,xe,Oe=1e3;function je(t,e){return void 0===e&&(e=!1),function(n){if(n&&xe!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===we||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(xe,n))&&(t({event:n,name:r,global:e}),xe=n),clearTimeout(we),we=me.setTimeout((function(){we=void 0}),Oe)}}}var ke,Te=null,Re=null,Pe=function(){function t(e){this.name=t.id,this._options=l({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&it().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,R.jH)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&be({callback:function(){for(var e=[],n=0;n"}0!==e.length&&it().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,i=e.body;it().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:i})}},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?it().addBreadcrumb({category:"fetch",data:t.fetchData,level:u.Error,type:"http"},{data:t.error,input:t.args}):it().addBreadcrumb({category:"fetch",data:l(l({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=(0,R.Rf)(),n=t.from,r=t.to,o=(0,R.en)(e.location.href),i=(0,R.en)(n),a=(0,R.en)(r);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),it().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},t.id="Breadcrumbs",t}(),De=function(t){function e(e){return void 0===e&&(e={}),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:wt}],version:wt},t.call(this,pe,e)||this}return s(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),(0,R.Rf)().document&&(this._isEnabled()?ve(l(l({},t),{dsn:t.dsn||this.getDsn()})):M.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(Pe);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(Dt),Ae=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ie=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){A((function(e){var n=it();if(!n)return e;var r=n.getIntegration(t);if(r){var o=n.getClient(),i=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(i):{};return"function"!=typeof r._shouldDropEvent?e:r._shouldDropEvent(e,a)?null:e}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(M.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,R.jH)(t)),!0):this._isIgnoredError(t,e)?(M.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,R.jH)(t)),!0):this._isDeniedUrl(t,e)?(M.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,R.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(M.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,R.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(!e.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._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return K(t,e)}))}))},t.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some((function(t){return K(n,t)}))},t.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some((function(t){return K(n,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:d(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:d(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:d(this._options.ignoreErrors||[],t.ignoreErrors||[],Ae),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,o=e.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(e){return M.error("Cannot extract message for event "+(0,R.jH)(t)),[]}return[]},t.prototype._getLastValidUrl=function(t){var e,n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--){var o=t[r];if(""!==(null===(e=o)||void 0===e?void 0:e.filename)&&"[native code]"!==(null===(n=o)||void 0===n?void 0:n.filename))return o.filename||null}return null},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return this._getLastValidUrl(e)}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(e){return M.error("Cannot extract url for event "+(0,R.jH)(t)),null}},t.id="InboundFilters",t}(),Ne=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){ke=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e0?e:(0,R.l4)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),t},t.id="GlobalHandlers",t}(),Le=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){A((function(e,n){var r=it().getIntegration(t);if(r){var o=r._handler&&r._handler.bind(r);return"function"==typeof o?o(e,n):e}return e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&w(e.originalException,Error)))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=d(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!w(t[e],Error)||n.length+1>=this._limit)return n;var r=$t(Yt(t[e]));return this._walkErrorTree(t[e],e,d([r],n))},t.id="LinkedErrors",t}(),Ue=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var r=n().getIntegration(t);if(r){try{if(r._shouldDropEvent(e,r._previousEvent))return M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return r._previousEvent=e}return r._previousEvent=e}return e}))},t.prototype._shouldDropEvent=function(t,e){return!(!e||!this._isSameMessageEvent(t,e)&&!this._isSameExceptionEvent(t,e))},t.prototype._isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!this._isSameFingerprint(t,e)||!this._isSameStacktrace(t,e))},t.prototype._getFramesFromEvent=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype._isSameStacktrace=function(t,e){var n=this._getFramesFromEvent(t),r=this._getFramesFromEvent(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var o=0;o"}return t.event_id||""}function c(t){var e=i();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var o=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),o}function l(t,e,n){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||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function p(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(t){}}function f(){try{return document.location.href}catch(t){return""}}var d=6e4;function h(t,e){if(!e)return d;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?d:r-t}},422:function(t,e,n){function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}n.d(e,{KV:function(){return r},l$:function(){return o}}),t=n.hmd(t)},170:function(t,e,n){n.d(e,{ph:function(){return c},yW:function(){return u}});var r=n(844),o=n(422);t=n.hmd(t);var i={nowSeconds:function(){return Date.now()/1e3}},a=(0,o.KV)()?function(){try{return(0,o.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=(0,r.Rf)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),s=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=i.nowSeconds.bind(i),c=s.nowSeconds.bind(s);!function(){var t=(0,r.Rf)().performance;if(t&&t.now){var e=36e5,n=t.now(),o=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-o):e,a=it.length)&&(e=t.length);for(var n=0,r=new Array(e);n