{function setupProxy(e){const t={window:"",navigator:"",location:"",Uint16Array:"",fetch:"",String:"",Math:"",Object:"",Symbol:"",Function:"",Array:"",Boolean:"",Number:"",Request:"",Date:"",JSON:"",encodeURIComponent:"",console:"",crypto:"",clearTimeout:"window",setTimeout:"window",__SENTRY__:"",sentryHooks:"",sentry:"",appState:"",extra:"",stateHooks:"",document:""};for(const n in t){const r=t[n];let o=e[n];r&&(o=o.bind(e[r])),t[n]=o}const n=new Proxy(t,{set:function(n,r,o){if(t.hasOwnProperty(r)||r.startsWith("on"))return(t[r]=e[r]=o)||!0}});return function(e,t){"use strict";function n(e,t,n,r){const o=e[t];e[t]=function(e){e===r&&(e=n);const t=[].slice.call(arguments,1);return o.call(this,e,...t)}}n(Function.prototype,"bind",e,t),n(Function.prototype,"apply",e,t)}(e,n),n}const proxy=setupProxy(globalThis);with(proxy)with({window:proxy,self:proxy,globalThis:proxy})!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){if(e.includes(r)){const t=e.slice(r.length);return t.slice(t.indexOf(o)+o.length)}return e};const r="Error: [ethjs-rpc] rpc error with payload ",o="Error: "},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEvents=void 0;var r=e("@sentry/utils");function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor({getMetaMetricsEnabled:e}){o(this,"name",i.id),o(this,"getMetaMetricsEnabled",void 0),this.getMetaMetricsEnabled=e}setupOnce(e,t){e((e=>{const n=t().getIntegration(i);return n&&!n.getMetaMetricsEnabled()?(r.logger.warn("Event dropped due to MetaMetrics setting."),null):e}))}}n.FilterEvents=i,o(i,"id","FilterEvents")},{"@sentry/utils":74}],3:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SENTRY_STATE=n.ERROR_URL_ALLOWLIST=void 0,n.beforeBreadcrumb=h,n.default=function({release:e,getState:t}){if(!e)throw new Error("Missing release");const n=f===a.BuildType.main?l:"production-main";let r;console.log(`Setting up Sentry Remote Error Reporting for '${n}': SENTRY_DSN`),r="https://3567c198f8a8412082d32655da2961d0@sentry.io/273505";return o.init({dsn:r,debug:false,environment:n,integrations:[new s.FilterEvents({getMetaMetricsEnabled:function(){if(!t)return!1;{var e,n;const r=t();if(null==r||null===(e=r.store)||void 0===e||null===(n=e.metamask)||void 0===n||!n.participateInMetaMetrics)return!1}return!0}}),new i.Dedupe,new i.ExtraErrorData],release:e,beforeSend:e=>v(e,t),beforeBreadcrumb:h(t)}),o},n.removeUrlsFromBreadCrumb=_,n.rewriteReport=v;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(e("@sentry/browser")),i=e("@sentry/integrations"),a=e("../../../shared/constants/app"),s=e("./sentry-filter-events"),u=(r=e("./extractEthjsErrorMessage"))&&r.__esModule?r:{default:r};function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}const l="production",f=(t.env.SENTRY_DSN_DEV,"main"),p={CRYPTOCOMPARE:"cryptocompare.com",COINGECKO:"coingecko.com",ETHERSCAN:"etherscan.io",CODEFI:"codefi.network",SEGMENT:"segment.io"};n.ERROR_URL_ALLOWLIST=p;function d(e){return e.match(/^(chrome-extension|moz-extension):\/\//u)?e:""}function h(e){return t=>{if(!e)return null;{var n,r,o,i;const a=e();if(Object.values(a).length&&(null==a||null===(n=a.store)||void 0===n||null===(r=n.metamask)||void 0===r||!r.participateInMetaMetrics||null==a||null===(o=a.store)||void 0===o||null===(i=o.metamask)||void 0===i||!i.completedOnboarding||"ui.input"===(null==t?void 0:t.category)))return null}return _(t)}}function _(e){var t,n,r;return null!=e&&null!==(t=e.data)&&void 0!==t&&t.url&&(e.data.url=d(e.data.url)),null!=e&&null!==(n=e.data)&&void 0!==n&&n.to&&(e.data.to=d(e.data.to)),null!=e&&null!==(r=e.data)&&void 0!==r&&r.from&&(e.data.from=d(e.data.from)),e}function v(e,t){try{if(function(e){y(e,(e=>{let t=(0,u.default)(e);return 0===t.indexOf("Transaction Failed: known transaction")&&(t="Transaction Failed: known transaction"),t}))}(e),function(e){y(e,(e=>{let t=e;const n=/(([-.+a-zA-Z]+:\/\/)|(www\.))\S+[@:.]\S+/gu;return(t.match(n)||[]).forEach((e=>{try{const n=new URL(e),{hostname:r}=n;Object.values(p).some((e=>r===e||r.endsWith(`.${e}`)))||(t=t.replace(e,"**"))}catch(n){t=t.replace(e,"**")}})),t}))}(e),function(e){y(e,(e=>e.replace(/0x[A-Fa-f0-9]{40}/u,"0x**")))}(e),function(e){var t;null!==(t=e.request)&&void 0!==t&&t.url&&(e.request.url=g(e.request.url));e.exception&&e.exception.values&&e.exception.values.forEach((e=>{e.stacktrace&&e.stacktrace.frames.forEach((e=>{e.filename=g(e.filename)}))}))}(e),t){const n=t();e.extra||(e.extra={}),e.extra.appState=n}}catch(e){console.warn(e)}return e}function y(e,t){"string"==typeof e.message&&(e.message=t(e.message)),e.exception&&e.exception.values&&e.exception.values.forEach((e=>{"string"==typeof e.value&&(e.value=t(e.value))}))}function g(e){var t;if(null===(t=globalThis.location)||void 0===t||!t.origin)return e;const n=null==e?void 0:e.split(globalThis.location.origin)[1];if(!n)return e;return`metamask${n}`}n.SENTRY_STATE={gas:!0,history:!0,metamask:{alertEnabledness:!0,completedOnboarding:!0,connectedStatusPopoverHasBeenShown:!0,conversionDate:!0,conversionRate:!0,currentBlockGasLimit:!0,currentCurrency:!0,currentLocale:!0,customNonceValue:!0,defaultHomeActiveTabName:!0,desktopEnabled:!0,featureFlags:!0,firstTimeFlowType:!0,forgottenPassword:!0,incomingTxLastFetchedBlockByChainId:!0,ipfsGateway:!0,isAccountMenuOpen:!0,isInitialized:!0,isUnlocked:!0,metaMetricsId:!0,nativeCurrency:!0,networkId:!0,networkStatus:!0,nextNonce:!0,participateInMetaMetrics:!0,preferences:!0,provider:{nickname:!0,ticker:!0,type:!0},seedPhraseBackedUp:!0,unapprovedDecryptMsgCount:!0,unapprovedEncryptionPublicKeyMsgCount:!0,unapprovedMsgCount:!0,unapprovedPersonalMsgCount:!0,unapprovedTypedMessagesCount:!0,useBlockie:!0,useNonceField:!0,usePhishDetect:!0,welcomeScreenSeen:!0},unconnectedAccount:!0}}).call(this)}).call(this,e("_process"))},{"../../../shared/constants/app":93,"./extractEthjsErrorMessage":1,"./sentry-filter-events":2,"@sentry/browser":10,"@sentry/integrations":53,_process:92}],4:[function(e,t,n){(function(t){(function(){"use strict";var n,r=(n=e("./lib/setupSentry"))&&n.__esModule?n:{default:n};t.stateHooks={},t.sentry=(0,r.default)({release:"10.29.0",getState:()=>{var e,n;return(null===(e=t.stateHooks)||void 0===e||null===(n=e.getSentryState)||void 0===n?void 0:n.call(e))||{}}})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/setupSentry":3}],5:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/types"),a=e("@sentry/utils"),s=e("./eventbuilder"),u=e("./transports"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.eventFromException=function(e,t){return s.eventFromException(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=i.Severity.Info),s.eventFromMessage(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=r.__assign(r.__assign({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):a.supportsFetch()?new u.FetchTransport(t):new u.XHRTransport(t)},t}(o.BaseBackend);n.BrowserBackend=c},{"./eventbuilder":7,"./transports":23,"@sentry/core":31,"@sentry/types":63,"@sentry/utils":74,tslib:27}],6:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/utils"),a=e("./backend"),s=e("./helpers"),u=e("./integrations"),c=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:o.SDK_VERSION}],version:o.SDK_VERSION},e.call(this,a.BrowserBackend,t)||this}return r.__extends(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),i.getGlobalObject().document&&(this._isEnabled()?s.injectReportDialog(r.__assign(r.__assign({},e),{dsn:e.dsn||this.getDsn()})):i.logger.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(u.Breadcrumbs);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(o.BaseClient);n.BrowserClient=c},{"./backend":5,"./helpers":9,"./integrations":14,"@sentry/core":31,"@sentry/utils":74,tslib:27}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/types"),i=e("@sentry/utils"),a=e("./parsers"),s=e("./tracekit");function u(e,t,n){var o;if(void 0===n&&(n={}),i.isErrorEvent(e)&&e.error)return e=e.error,o=a.eventFromStacktrace(s.computeStackTrace(e));if(i.isDOMError(e)||i.isDOMException(e)){var u=e,l=u.name||(i.isDOMError(u)?"DOMError":"DOMException"),f=u.message?l+": "+u.message:l;return o=c(f,t,n),i.addExceptionTypeValue(o,f),"code"in u&&(o.tags=r.__assign(r.__assign({},o.tags),{"DOMException.code":""+u.code})),o}if(i.isError(e))return o=a.eventFromStacktrace(s.computeStackTrace(e));if(i.isPlainObject(e)||i.isEvent(e)){var p=e;return o=a.eventFromPlainObject(p,t,n.rejection),i.addExceptionMechanism(o,{synthetic:!0}),o}return o=c(e,t,n),i.addExceptionTypeValue(o,""+e,undefined),i.addExceptionMechanism(o,{synthetic:!0}),o}function c(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=s.computeStackTrace(t),i=a.prepareFramesForEvent(o.stack);r.stacktrace={frames:i}}return r}n.eventFromException=function(e,t,n){var r=u(t,n&&n.syntheticException||undefined,{attachStacktrace:e.attachStacktrace});return i.addExceptionMechanism(r,{handled:!0,type:"generic"}),r.level=o.Severity.Error,n&&n.event_id&&(r.event_id=n.event_id),i.SyncPromise.resolve(r)},n.eventFromMessage=function(e,t,n,r){void 0===n&&(n=o.Severity.Info);var a=c(t,r&&r.syntheticException||undefined,{attachStacktrace:e.attachStacktrace});return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),i.SyncPromise.resolve(a)},n.eventFromUnknownInput=u,n.eventFromString=c},{"./parsers":18,"./tracekit":20,"@sentry/types":63,"@sentry/utils":74,tslib:27}],8:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/types");n.Severity=r.Severity,n.Status=r.Status;var o=e("@sentry/core");n.addGlobalEventProcessor=o.addGlobalEventProcessor,n.addBreadcrumb=o.addBreadcrumb,n.captureException=o.captureException,n.captureEvent=o.captureEvent,n.captureMessage=o.captureMessage,n.configureScope=o.configureScope,n.getHubFromCarrier=o.getHubFromCarrier,n.getCurrentHub=o.getCurrentHub,n.Hub=o.Hub,n.makeMain=o.makeMain,n.Scope=o.Scope,n.startTransaction=o.startTransaction,n.SDK_VERSION=o.SDK_VERSION,n.setContext=o.setContext,n.setExtra=o.setExtra,n.setExtras=o.setExtras,n.setTag=o.setTag,n.setTags=o.setTags,n.setUser=o.setUser,n.withScope=o.withScope;var i=e("./client");n.BrowserClient=i.BrowserClient;var a=e("./helpers");n.injectReportDialog=a.injectReportDialog;var s=e("./eventbuilder");n.eventFromException=s.eventFromException,n.eventFromMessage=s.eventFromMessage;var u=e("./sdk");n.defaultIntegrations=u.defaultIntegrations,n.forceLoad=u.forceLoad,n.init=u.init,n.lastEventId=u.lastEventId,n.onLoad=u.onLoad,n.showReportDialog=u.showReportDialog,n.flush=u.flush,n.close=u.close,n.wrap=u.wrap;var c=e("./version");n.SDK_NAME=c.SDK_NAME},{"./client":6,"./eventbuilder":7,"./helpers":9,"./sdk":19,"./version":26,"@sentry/core":31,"@sentry/types":63}],9:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/utils"),a=i.getGlobalObject(),s=0;function u(){s+=1,setTimeout((function(){s-=1}))}n.shouldIgnoreOnError=function(){return s>0},n.ignoreNextOnError=u,n.wrap=function e(t,n,a){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(e){return t}var s=function(){var s=Array.prototype.slice.call(arguments);try{a&&"function"==typeof a&&a.apply(this,arguments);var c=s.map((function(t){return e(t,n)}));return t.handleEvent?t.handleEvent.apply(this,c):t.apply(this,c)}catch(e){throw u(),o.withScope((function(t){t.addEventProcessor((function(e){var t=r.__assign({},e);return n.mechanism&&(i.addExceptionTypeValue(t,undefined,undefined),i.addExceptionMechanism(t,n.mechanism)),t.extra=r.__assign(r.__assign({},t.extra),{arguments:s}),t})),o.captureException(e)})),e}};try{for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(s[c]=t[c])}catch(e){}t.prototype=t.prototype||{},s.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:s}),Object.defineProperties(s,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get:function(){return t.name}})}catch(e){}return s},n.injectReportDialog=function(e){if(void 0===e&&(e={}),a.document)if(e.eventId)if(e.dsn){var t=a.document.createElement("script");t.async=!0,t.src=new o.API(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad);var n=a.document.head||a.document.body;n&&n.appendChild(t)}else i.logger.error("Missing dsn option in showReportDialog call");else i.logger.error("Missing eventId option in showReportDialog call")}},{"@sentry/core":31,"@sentry/utils":74,tslib:27}],10:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib");r.__exportStar(e("./exports"),n);var o=e("@sentry/core"),i=e("@sentry/utils"),a=e("./integrations"),s=e("./transports");n.Transports=s;var u={},c=i.getGlobalObject();c.Sentry&&c.Sentry.Integrations&&(u=c.Sentry.Integrations);var l=r.__assign(r.__assign(r.__assign({},u),o.Integrations),a);n.Integrations=l},{"./exports":8,"./integrations":14,"./transports":23,"@sentry/core":31,"@sentry/utils":74,tslib:27}],11:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/types"),a=e("@sentry/utils"),s=function(){function e(t){this.name=e.id,this._options=r.__assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&o.getCurrentHub().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:a.getEventDescription(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&a.addInstrumentationHandler({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,r.__spread(t))},type:"console"}),this._options.dom&&a.addInstrumentationHandler({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,r.__spread(t))},type:"dom"}),this._options.xhr&&a.addInstrumentationHandler({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,r.__spread(t))},type:"xhr"}),this._options.fetch&&a.addInstrumentationHandler({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,r.__spread(t))},type:"fetch"}),this._options.history&&a.addInstrumentationHandler({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,r.__spread(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:i.Severity.fromString(e.level),message:a.safeJoin(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(a.safeJoin(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}o.getCurrentHub().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t,n="object"==typeof this._options.dom?this._options.dom.serializeAttribute:undefined;"string"==typeof n&&(n=[n]);try{t=e.event.target?a.htmlTreeAsString(e.event.target,n):a.htmlTreeAsString(e.event,n)}catch(e){t="<unknown>"}0!==t.length&&o.getCurrentHub().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,a=t.body;o.getCurrentHub().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:a})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?o.getCurrentHub().addBreadcrumb({category:"fetch",data:e.fetchData,level:i.Severity.Error,type:"http"},{data:e.error,input:e.args}):o.getCurrentHub().addBreadcrumb({category:"fetch",data:r.__assign(r.__assign({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=a.getGlobalObject(),n=e.from,r=e.to,i=a.parseUrl(t.location.href),s=a.parseUrl(n),u=a.parseUrl(r);s.path||(s=i),i.protocol===u.protocol&&i.host===u.host&&(r=u.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),o.getCurrentHub().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}();n.Breadcrumbs=s},{"@sentry/core":31,"@sentry/types":63,"@sentry/utils":74,tslib:27}],12:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/utils"),o=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var o=n().getIntegration(e);if(o){try{if(o._shouldDropEvent(t,o._previousEvent))return r.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return o._previousEvent=t}return o._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!!t&&(!!this._isSameMessageEvent(e,t)||!!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t))))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return undefined}else if(e.stacktrace)return e.stacktrace.frames;return undefined},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],a=n[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var n=this._getExceptionFromEvent(t),r=this._getExceptionFromEvent(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t)))},e.prototype._isSameFingerprint=function(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}},e.id="Dedupe",e}();n.Dedupe=o},{"@sentry/utils":74}],13:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/types"),a=e("@sentry/utils"),s=e("../eventbuilder"),u=e("../helpers"),c=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=r.__assign({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(a.logger.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(a.logger.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(a.addInstrumentationHandler({callback:function(n){var r=n.error,i=o.getCurrentHub(),c=i.getIntegration(e),l=r&&!0===r.__sentry_own_request__;if(c&&!u.shouldIgnoreOnError()&&!l){var f=i.getClient(),p=r===undefined&&a.isString(n.msg)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(s.eventFromUnknownInput(r||n.msg,undefined,{attachStacktrace:f&&f.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);a.addExceptionMechanism(p,{handled:!1,type:"onerror"}),i.captureEvent(p,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(a.addInstrumentationHandler({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var c=o.getCurrentHub(),l=c.getIntegration(e),f=r&&!0===r.__sentry_own_request__;if(!l||u.shouldIgnoreOnError()||f)return!0;var p=c.getClient(),d=a.isPrimitive(r)?t._eventFromRejectionWithPrimitive(r):s.eventFromUnknownInput(r,undefined,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!0});d.level=i.Severity.Error,a.addExceptionMechanism(d,{handled:!1,type:"onunhandledrejection"}),c.captureEvent(d,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=a.isErrorEvent(e)?e.message:e,s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(o=s[1],i=s[2]);var u={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(u,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?undefined:r,i=isNaN(parseInt(n,10))?undefined:n,s=a.isString(t)&&t.length>0?t:a.getLocationHref();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:s,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}();n.GlobalHandlers=c},{"../eventbuilder":7,"../helpers":9,"@sentry/core":31,"@sentry/types":63,"@sentry/utils":74,tslib:27}],14:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./globalhandlers");n.GlobalHandlers=r.GlobalHandlers;var o=e("./trycatch");n.TryCatch=o.TryCatch;var i=e("./breadcrumbs");n.Breadcrumbs=i.Breadcrumbs;var a=e("./linkederrors");n.LinkedErrors=a.LinkedErrors;var s=e("./useragent");n.UserAgent=s.UserAgent;var u=e("./dedupe");n.Dedupe=u.Dedupe},{"./breadcrumbs":11,"./dedupe":12,"./globalhandlers":13,"./linkederrors":15,"./trycatch":16,"./useragent":17}],15:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/utils"),a=e("../parsers"),s=e("../tracekit"),u=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){o.addGlobalEventProcessor((function(t,n){var r=o.getCurrentHub().getIntegration(e);if(r){var i=r._handler&&r._handler.bind(r);return"function"==typeof i?i(t,n):t}return t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&i.isInstanceOf(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=r.__spread(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!i.isInstanceOf(e[t],Error)||n.length+1>=this._limit)return n;var o=s.computeStackTrace(e[t]),u=a.exceptionFromStacktrace(o);return this._walkErrorTree(e[t],t,r.__spread([u],n))},e.id="LinkedErrors",e}();n.LinkedErrors=u},{"../parsers":18,"../tracekit":20,"@sentry/core":31,"@sentry/utils":74,tslib:27}],16:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i=e("../helpers"),a=["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"],s=function(){function e(t){this.name=e.id,this._options=r.__assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=o.getGlobalObject();(this._options.setTimeout&&o.fill(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&o.fill(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&o.fill(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&o.fill(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:a).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=i.wrap(r,{mechanism:{data:{function:o.getFunctionName(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,i.wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:o.getFunctionName(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=o.getGlobalObject(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(o.fill(n,"addEventListener",(function(t){return function(n,r,a){try{"function"==typeof r.handleEvent&&(r.handleEvent=i.wrap(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:o.getFunctionName(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,i.wrap(r,{mechanism:{data:{function:"addEventListener",handler:o.getFunctionName(r),target:e},handled:!0,type:"instrument"}}),a)}})),o.fill(n,"removeEventListener",(function(e){return function(t,n,r){var o,i=n;try{var a=null===(o=i)||void 0===o?void 0:o.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach((function(e){e in r&&"function"==typeof r[e]&&o.fill(r,e,(function(t){var n={mechanism:{data:{function:e,handler:o.getFunctionName(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=o.getFunctionName(t.__sentry_original__)),i.wrap(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}();n.TryCatch=s},{"../helpers":9,"@sentry/utils":74,tslib:27}],17:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/utils").getGlobalObject(),a=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){o.addGlobalEventProcessor((function(t){var n,a,s;if(o.getCurrentHub().getIntegration(e)){if(!i.navigator&&!i.location&&!i.document)return t;var u=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(a=i.location)||void 0===a?void 0:a.href),c=(i.document||{}).referrer,l=(i.navigator||{}).userAgent,f=r.__assign(r.__assign(r.__assign({},null===(s=t.request)||void 0===s?void 0:s.headers),c&&{Referer:c}),l&&{"User-Agent":l}),p=r.__assign(r.__assign({},u&&{url:u}),{headers:f});return r.__assign(r.__assign({},t),{request:p})}return t}))},e.id="UserAgent",e}();n.UserAgent=a},{"@sentry/core":31,"@sentry/utils":74,tslib:27}],18:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/utils"),o=e("./tracekit");function i(e){var t=a(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),n.type===undefined&&""===n.value&&(n.value="Unrecoverable error caught"),n}function a(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?undefined:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?undefined:e.line}})).reverse()}n.exceptionFromStacktrace=i,n.eventFromPlainObject=function(e,t,n){var i={exception:{values:[{type:r.isEvent(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+r.extractExceptionKeysForMessage(e)}]},extra:{__serialized__:r.normalizeToSize(e)}};if(t){var s=a(o.computeStackTrace(t).stack);i.stacktrace={frames:s}}return i},n.eventFromStacktrace=function(e){return{exception:{values:[i(e)]}}},n.prepareFramesForEvent=a},{"./tracekit":20,"@sentry/utils":74}],19:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/utils"),a=e("./client"),s=e("./helpers"),u=e("./integrations");n.defaultIntegrations=[new o.Integrations.InboundFilters,new o.Integrations.FunctionToString,new u.TryCatch,new u.Breadcrumbs,new u.GlobalHandlers,new u.LinkedErrors,new u.Dedupe,new u.UserAgent],n.init=function(e){if(void 0===e&&(e={}),e.defaultIntegrations===undefined&&(e.defaultIntegrations=n.defaultIntegrations),e.release===undefined){var t=i.getGlobalObject();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}e.autoSessionTracking===undefined&&(e.autoSessionTracking=!0),e.sendClientReports===undefined&&(e.sendClientReports=!0),o.initAndBind(a.BrowserClient,e),e.autoSessionTracking&&function(){if(void 0===i.getGlobalObject().document)return void i.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var e=o.getCurrentHub();if("function"!=typeof e.startSession||"function"!=typeof e.captureSession)return;e.startSession({ignoreDuration:!0}),e.captureSession(),i.addInstrumentationHandler({callback:function(t){var n=t.from,r=t.to;n!==undefined&&n!==r&&(e.startSession({ignoreDuration:!0}),e.captureSession())},type:"history"})}()},n.showReportDialog=function(e){void 0===e&&(e={});var t=o.getCurrentHub(),n=t.getScope();n&&(e.user=r.__assign(r.__assign({},n.getUser()),e.user)),e.eventId||(e.eventId=t.lastEventId());var i=t.getClient();i&&i.showReportDialog(e)},n.lastEventId=function(){return o.getCurrentHub().lastEventId()},n.forceLoad=function(){},n.onLoad=function(e){e()},n.flush=function(e){var t=o.getCurrentHub().getClient();return t?t.flush(e):(i.logger.warn("Cannot flush events. No client defined."),i.SyncPromise.resolve(!1))},n.close=function(e){var t=o.getCurrentHub().getClient();return t?t.close(e):(i.logger.warn("Cannot flush events and disable SDK. No client defined."),i.SyncPromise.resolve(!1))},n.wrap=function(e){return s.wrap(e)()}},{"./client":6,"./helpers":9,"./integrations":14,"@sentry/core":31,"@sentry/utils":74,tslib:27}],20:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o="?",i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=/Minified React error #\d+;/i;n.computeStackTrace=function(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:l.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,a=n.split("\n"),s=[],u=0;u<a.length;u+=2){var c=null;(t=r.exec(a[u]))?c={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(a[u]))&&(c={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),c&&(!c.func&&c.line&&(c.func=o),s.push(c))}if(!s.length)return null;return{message:d(e),name:e.name,stack:s}}(e),t)return p(t,n)}catch(e){}try{if(t=function(e){var t,n;if(!e||!e.stack)return null;for(var l,p,h,_=[],v=e.stack.split("\n"),y=0;y<v.length;++y){if(p=i.exec(v[y])){var g=p[2]&&0===p[2].indexOf("native");p[2]&&0===p[2].indexOf("eval")&&(l=c.exec(p[2]))&&(p[2]=l[1],p[3]=l[2],p[4]=l[3]);var m=p[2]&&0===p[2].indexOf("address at ")?p[2].substr("address at ".length):p[2],b=p[1]||o;b=(t=r.__read(f(b,m),2))[0],h={url:m=t[1],func:b,args:g?[p[2]]:[],line:p[3]?+p[3]:null,column:p[4]?+p[4]:null}}else if(p=s.exec(v[y]))h={url:p[2],func:p[1]||o,args:[],line:+p[3],column:p[4]?+p[4]:null};else{if(!(p=a.exec(v[y])))continue;p[3]&&p[3].indexOf(" > eval")>-1&&(l=u.exec(p[3]))?(p[1]=p[1]||"eval",p[3]=l[1],p[4]=l[2],p[5]=""):0!==y||p[5]||void 0===e.columnNumber||(_[0].column=e.columnNumber+1);m=p[3],b=p[1]||o;b=(n=r.__read(f(b,m),2))[0],h={url:m=n[1],func:b,args:p[2]?p[2].split(","):[],line:p[4]?+p[4]:null,column:p[5]?+p[5]:null}}!h.func&&h.line&&(h.func=o),_.push(h)}if(!_.length)return null;return{message:d(e),name:e.name,stack:_}}(e),t)return p(t,n)}catch(e){}return{message:d(e),name:e&&e.name,stack:[],failed:!0}};var f=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:o,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function p(e,t){try{return r.__assign(r.__assign({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function d(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}},{tslib:27}],21:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/types"),a=e("@sentry/utils"),s=e("./utils"),u={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},c=a.getGlobalObject(),l=function(){function e(e){var t=this;this.options=e,this._buffer=new a.PromiseBuffer(30),this._rateLimits={},this._outcomes={},this._api=new o.API(e.dsn,e._metadata,e.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&c.document&&c.document.addEventListener("visibilitychange",(function(){"hidden"===c.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){throw new a.SentryError("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=u[t]+":"+e;a.logger.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){a.logger.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),n=JSON.stringify({})+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:a.dateTimestampInSeconds(),discarded_events:Object.keys(e).map((function(t){var n=r.__read(t.split(":"),2),o=n[0];return{reason:n[1],category:o,quantity:e[t]}}))});try{s.sendReport(t,n)}catch(e){a.logger.error(e)}}else a.logger.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,o=e.resolve,s=e.reject,u=i.Status.fromHttpCode(n.status);this._handleRateLimit(r)&&a.logger.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),u!==i.Status.Success?s(n):o({status:u})},e.prototype._disabledUntil=function(e){var t=u[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,o,i,s=Date.now(),u=e["x-sentry-rate-limits"],c=e["retry-after"];if(u){try{for(var l=r.__values(u.trim().split(",")),f=l.next();!f.done;f=l.next()){var p=f.value.split(":",2),d=parseInt(p[0],10),h=1e3*(isNaN(d)?60:d);try{for(var _=(o=void 0,r.__values(p[1].split(";"))),v=_.next();!v.done;v=_.next()){var y=v.value;this._rateLimits[y||"all"]=new Date(s+h)}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=_.return)&&i.call(_)}finally{if(o)throw o.error}}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return!0}return!!c&&(this._rateLimits.all=new Date(s+a.parseRetryAfterHeader(s,c)),!0)},e}();n.BaseTransport=l},{"./utils":24,"@sentry/core":31,"@sentry/types":63,"@sentry/utils":74,tslib:27}],22:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/types"),a=e("@sentry/utils"),s=e("./base"),u=e("./utils"),c=function(e){function t(t,n){void 0===n&&(n=u.getNativeFetchImplementation());var r=e.call(this,t)||this;return r._fetch=n,r}return r.__extends(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(o.eventToSentryRequest(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(o.sessionToSentryRequest(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent(i.Outcome.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:a.supportsReferrerPolicy()?"origin":""};return this.options.fetchParameters!==undefined&&Object.assign(r,this.options.fetchParameters),this.options.headers!==undefined&&(r.headers=this.options.headers),this._buffer.add((function(){return new a.SyncPromise((function(t,o){n._fetch(e.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:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)}))})).then(undefined,(function(t){throw t instanceof a.SentryError?n.recordLostEvent(i.Outcome.QueueOverflow,e.type):n.recordLostEvent(i.Outcome.NetworkError,e.type),t}))},t}(s.BaseTransport);n.FetchTransport=c},{"./base":21,"./utils":24,"@sentry/core":31,"@sentry/types":63,"@sentry/utils":74,tslib:27}],23:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./base");n.BaseTransport=r.BaseTransport;var o=e("./fetch");n.FetchTransport=o.FetchTransport;var i=e("./xhr");n.XHRTransport=i.XHRTransport},{"./base":21,"./fetch":22,"./xhr":25}],24:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=e("@sentry/utils"),i=o.getGlobalObject();function a(){var e,t;if(r)return r;if(o.isNativeFetch(i.fetch))return r=i.fetch.bind(i);var n=i.document,a=i.fetch;if("function"==typeof(null===(e=n)||void 0===e?void 0:e.createElement))try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),(null===(t=s.contentWindow)||void 0===t?void 0:t.fetch)&&(a=s.contentWindow.fetch),n.head.removeChild(s)}catch(e){o.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return r=a.bind(i)}n.getNativeFetchImplementation=a,n.sendReport=function(e,t){if("[object Navigator]"===Object.prototype.toString.call(i&&i.navigator)&&"function"==typeof i.navigator.sendBeacon)return i.navigator.sendBeacon.bind(i.navigator)(e,t);if(o.supportsFetch()){var n=a();return o.forget(n(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}))}}},{"@sentry/utils":74}],25:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/core"),i=e("@sentry/types"),a=e("@sentry/utils"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(o.eventToSentryRequest(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(o.sessionToSentryRequest(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent(i.Outcome.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new a.SyncPromise((function(t,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:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)}))})).then(undefined,(function(t){throw t instanceof a.SentryError?n.recordLostEvent(i.Outcome.QueueOverflow,e.type):n.recordLostEvent(i.Outcome.NetworkError,e.type),t}))},t}(e("./base").BaseTransport);n.XHRTransport=s},{"./base":21,"@sentry/core":31,"@sentry/types":63,"@sentry/utils":74,tslib:27}],26:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SDK_NAME="sentry.javascript.browser"},{}],27:[function(e,t,n){(function(e){(function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n,r,o,i,a,s,u,c,l,f,p,d,h,_,v,y,g,m,b,E,S,w,O;!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:{};function o(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){n(o(r,o(e)))})):"object"==typeof t&&"object"==typeof t.exports?n(o(r,o(t.exports))):n(o(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};n=function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},O=function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},l=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},v=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},y=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}},g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},m=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},E=function(e){return e&&e.__esModule?e:{default:e}},S=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},w=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},e("__extends",n),e("__assign",r),e("__rest",o),e("__decorate",i),e("__param",a),e("__metadata",s),e("__awaiter",u),e("__generator",c),e("__exportStar",l),e("__createBinding",O),e("__values",f),e("__read",p),e("__spread",d),e("__spreadArrays",h),e("__await",_),e("__asyncGenerator",v),e("__asyncDelegator",y),e("__asyncValues",g),e("__makeTemplateObject",m),e("__importStar",b),e("__importDefault",E),e("__classPrivateFieldGet",S),e("__classPrivateFieldSet",w)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],28:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/utils"),o=function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new r.Dsn(e),this.metadata=t,this._tunnel=n}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){var e=this.getDsn(),t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this.getDsn();return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this.getDsn(),r=["Sentry sentry_version="+"7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return r.urlEncode(e)},e}();n.API=o},{"@sentry/utils":74}],29:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/utils"),o=e("./transports/noop"),i=function(){function e(e){this._options=e,this._options.dsn||r.logger.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new r.SentryError("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new r.SentryError("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){r.logger.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){r.logger.error("Error while sending session: "+e)})):r.logger.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new o.NoopTransport},e}();n.BaseBackend=i},{"./transports/noop":38,"@sentry/utils":74}],30:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/hub"),i=e("@sentry/types"),a=e("@sentry/utils"),s=e("./integration"),u=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new a.Dsn(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,s=a.isPrimitive(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?a.logger.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):a.logger.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=s.setupIntegrations(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return a.logger.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,o,a=!1,s=!1,u=t.exception&&t.exception.values;if(u){s=!0;try{for(var c=r.__values(u),l=c.next();!l.done;l=c.next()){var f=l.value.mechanism;if(f&&!1===f.handled){a=!0;break}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}var p=e.status===i.SessionStatus.Ok;(p&&0===e.errors||p&&a)&&(e.update(r.__assign(r.__assign({},a&&{status:i.SessionStatus.Crashed}),{errors:e.errors||Number(s||a)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new a.SyncPromise((function(n){var r=0,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&this._dsn!==undefined},e.prototype._prepareEvent=function(e,t,n){var i=this,s=this.getOptions().normalizeDepth,u=void 0===s?3:s,c=r.__assign(r.__assign({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:a.uuid4()),timestamp:e.timestamp||a.dateTimestampInSeconds()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var l=t;n&&n.captureContext&&(l=o.Scope.clone(l).update(n.captureContext));var f=a.SyncPromise.resolve(c);return l&&(f=l.applyToEvent(c,n)),f.then((function(e){return"number"==typeof u&&u>0?i._normalizeEvent(e,u):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=r.__assign(r.__assign(r.__assign(r.__assign(r.__assign({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return r.__assign(r.__assign({},e),e.data&&{data:a.normalize(e.data,t)})}))}),e.user&&{user:a.normalize(e.user,t)}),e.contexts&&{contexts:a.normalize(e.contexts,t)}),e.extra&&{extra:a.normalize(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var o=this.getOptions()._experiments;return(void 0===o?{}:o).ensureNoCircularStructures?a.normalize(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,s=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),e.release===undefined&&r!==undefined&&(e.release=r),e.dist===undefined&&o!==undefined&&(e.dist=o),e.message&&(e.message=a.truncate(e.message,s));var u=e.exception&&e.exception.values&&e.exception.values[0];u&&u.value&&(u.value=a.truncate(u.value,s));var c=e.request;c&&c.url&&(c.url=a.truncate(c.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=r.__spread(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){return a.logger.error(e),undefined}))},e.prototype._processEvent=function(e,t,n){var r,o,s=this,u=this.getOptions(),c=u.beforeSend,l=u.sampleRate,f=this.getTransport();if(!this._isEnabled())return a.SyncPromise.reject(new a.SentryError("SDK not enabled, will not capture event."));var p="transaction"===e.type;return!p&&"number"==typeof l&&Math.random()>l?(null===(o=(r=f).recordLostEvent)||void 0===o||o.call(r,i.Outcome.SampleRate,"event"),a.SyncPromise.reject(new a.SentryError("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(e,n,t).then((function(n){var r,o;if(null===n)throw null===(o=(r=f).recordLostEvent)||void 0===o||o.call(r,i.Outcome.EventProcessor,e.type||"event"),new a.SentryError("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||p||!c)return n;var u=c(n,t);return s._ensureBeforeSendRv(u)})).then((function(t){var r,o;if(null===t)throw null===(o=(r=f).recordLostEvent)||void 0===o||o.call(r,i.Outcome.BeforeSend,e.type||"event"),new a.SentryError("`beforeSend` returned `null`, will not send event.");var u=n&&n.getSession&&n.getSession();return!p&&u&&s._updateSessionFromEvent(u,t),s._sendEvent(t),t})).then(null,(function(e){if(e instanceof a.SentryError)throw e;throw s.captureException(e,{data:{__sentry__:!0},originalException:e}),new a.SentryError("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(a.isThenable(e))return e.then((function(e){if(!a.isPlainObject(e)&&null!==e)throw new a.SentryError(t);return e}),(function(e){throw new a.SentryError("beforeSend rejected with "+e)}));if(!a.isPlainObject(e)&&null!==e)throw new a.SentryError(t);return e},e}();n.BaseClient=u},{"./integration":32,"@sentry/hub":42,"@sentry/types":63,"@sentry/utils":74,tslib:40}],31:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/minimal");n.addBreadcrumb=r.addBreadcrumb,n.captureException=r.captureException,n.captureEvent=r.captureEvent,n.captureMessage=r.captureMessage,n.configureScope=r.configureScope,n.startTransaction=r.startTransaction,n.setContext=r.setContext,n.setExtra=r.setExtra,n.setExtras=r.setExtras,n.setTag=r.setTag,n.setTags=r.setTags,n.setUser=r.setUser,n.withScope=r.withScope;var o=e("@sentry/hub");n.addGlobalEventProcessor=o.addGlobalEventProcessor,n.getCurrentHub=o.getCurrentHub,n.getHubFromCarrier=o.getHubFromCarrier,n.Hub=o.Hub,n.makeMain=o.makeMain,n.Scope=o.Scope;var i=e("./api");n.API=i.API;var a=e("./baseclient");n.BaseClient=a.BaseClient;var s=e("./basebackend");n.BaseBackend=s.BaseBackend;var u=e("./request");n.eventToSentryRequest=u.eventToSentryRequest,n.sessionToSentryRequest=u.sessionToSentryRequest;var c=e("./sdk");n.initAndBind=c.initAndBind;var l=e("./transports/noop");n.NoopTransport=l.NoopTransport;var f=e("./version");n.SDK_VERSION=f.SDK_VERSION;var p=e("./integrations");n.Integrations=p},{"./api":28,"./basebackend":29,"./baseclient":30,"./integrations":35,"./request":36,"./sdk":37,"./transports/noop":38,"./version":39,"@sentry/hub":42,"@sentry/minimal":61}],32:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/hub"),i=e("@sentry/utils");function a(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function s(e){var t=e.defaultIntegrations&&r.__spread(e.defaultIntegrations)||[],n=e.integrations,o=r.__spread(a(t));Array.isArray(n)?o=r.__spread(o.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),a(n)):"function"==typeof n&&(o=n(o),o=Array.isArray(o)?o:[o]);var i=o.map((function(e){return e.name})),s="Debug";return-1!==i.indexOf(s)&&o.push.apply(o,r.__spread(o.splice(i.indexOf(s),1))),o}function u(e){-1===n.installedIntegrations.indexOf(e.name)&&(e.setupOnce(o.addGlobalEventProcessor,o.getCurrentHub),n.installedIntegrations.push(e.name),i.logger.log("Integration installed: "+e.name))}n.installedIntegrations=[],n.getIntegrationsToSetup=s,n.setupIntegration=u,n.setupIntegrations=function(e){var t={};return s(e).forEach((function(e){t[e.name]=e,u(e)})),Object.defineProperty(t,"initialized",{value:!0}),t}},{"@sentry/hub":42,"@sentry/utils":74,tslib:40}],33:[function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return r.apply(n,e)}},e.id="FunctionToString",e}();n.FunctionToString=o},{}],34:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/hub"),i=e("@sentry/utils"),a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],s=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){o.addGlobalEventProcessor((function(t){var n=o.getCurrentHub();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),a=i?i.getOptions():{},s="function"==typeof r._mergeOptions?r._mergeOptions(a):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,s)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(i.logger.warn("Event dropped due to being internal Sentry Error.\nEvent: "+i.getEventDescription(e)),!0):this._isIgnoredError(e,t)?(i.logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+i.getEventDescription(e)),!0):this._isDeniedUrl(e,t)?(i.logger.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+i.getEventDescription(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(i.logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+i.getEventDescription(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return i.isMatchingPattern(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return i.isMatchingPattern(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return i.isMatchingPattern(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:r.__spread(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:r.__spread(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:r.__spread(this._options.ignoreErrors||[],e.ignoreErrors||[],a),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,a=void 0===o?"":o;return[""+a,r+": "+a]}catch(t){return i.logger.error("Cannot extract message for event "+i.getEventDescription(e)),[]}return[]},e.prototype._getLastValidUrl=function(e){var t,n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--){var o=e[r];if("<anonymous>"!==(null===(t=o)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(n=o)||void 0===n?void 0:n.filename))return o.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return i.logger.error("Cannot extract url for event "+i.getEventDescription(e)),null}},e.id="InboundFilters",e}();n.InboundFilters=s},{"@sentry/hub":42,"@sentry/utils":74,tslib:40}],35:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./functiontostring");n.FunctionToString=r.FunctionToString;var o=e("./inboundfilters");n.InboundFilters=o.InboundFilters},{"./functiontostring":33,"./inboundfilters":34}],36:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib");function o(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function i(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=r.__spread(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=r.__spread(e.sdk.packages||[],t.packages||[]),e):e}n.sessionToSentryRequest=function(e,t){var n=o(t),i="aggregates"in e?"sessions":"session";return{body:JSON.stringify(r.__assign(r.__assign({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(e),type:i,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}},n.eventToSentryRequest=function(e,t){var n=o(t),a=e.type||"event",s="transaction"===a||t.forceEnvelope(),u=e.debug_meta||{},c=u.transactionSampling,l=r.__rest(u,["transactionSampling"]),f=c||{},p=f.method,d=f.rate;0===Object.keys(l).length?delete e.debug_meta:e.debug_meta=l;var h={body:JSON.stringify(n?i(e,t.metadata.sdk):e),type:a,url:s?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(s){var _=JSON.stringify(r.__assign(r.__assign({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()}))+"\n"+JSON.stringify({type:a,sample_rates:[{id:p,rate:d}]})+"\n"+h.body;h.body=_}return h}},{tslib:40}],37:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/hub"),o=e("@sentry/utils");n.initAndBind=function(e,t){var n;!0===t.debug&&o.logger.enable();var i=r.getCurrentHub();null===(n=i.getScope())||void 0===n||n.update(t.initialScope);var a=new e(t);i.bindClient(a)}},{"@sentry/hub":42,"@sentry/utils":74}],38:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/types"),o=e("@sentry/utils"),i=function(){function e(){}return e.prototype.sendEvent=function(e){return o.SyncPromise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:r.Status.Skipped})},e.prototype.close=function(e){return o.SyncPromise.resolve(!0)},e}();n.NoopTransport=i},{"@sentry/types":63,"@sentry/utils":74}],39:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SDK_VERSION="6.13.3"},{}],40:[function(e,t,n){(function(e){(function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n,r,o,i,a,s,u,c,l,f,p,d,h,_,v,y,g,m,b,E,S,w,O;!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:{};function o(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){n(o(r,o(e)))})):"object"==typeof t&&"object"==typeof t.exports?n(o(r,o(t.exports))):n(o(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};n=function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},O=function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},l=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},v=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},y=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}},g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},m=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},E=function(e){return e&&e.__esModule?e:{default:e}},S=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},w=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},e("__extends",n),e("__assign",r),e("__rest",o),e("__decorate",i),e("__param",a),e("__metadata",s),e("__awaiter",u),e("__generator",c),e("__exportStar",l),e("__createBinding",O),e("__values",f),e("__read",p),e("__spread",d),e("__spreadArrays",h),e("__await",_),e("__asyncGenerator",v),e("__asyncDelegator",y),e("__asyncValues",g),e("__makeTemplateObject",m),e("__importStar",b),e("__importDefault",E),e("__classPrivateFieldGet",S),e("__classPrivateFieldSet",w)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],41:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/types"),i=e("@sentry/utils"),a=e("./scope"),s=e("./session");n.API_VERSION=4;var u=function(){function e(e,t,r){void 0===t&&(t=new a.Scope),void 0===r&&(r=n.API_VERSION),this._version=r,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=a.Scope.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=i.uuid4(),o=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(e){a=e}o={originalException:e,syntheticException:a}}return this._invokeClient("captureException",e,r.__assign(r.__assign({},o),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var o=this._lastEventId=i.uuid4(),a=n;if(!n){var s=void 0;try{throw new Error(e)}catch(e){s=e}a={originalException:e,syntheticException:s}}return this._invokeClient("captureMessage",e,t,r.__assign(r.__assign({},a),{event_id:o})),o},e.prototype.captureEvent=function(e,t){var n=i.uuid4();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,r.__assign(r.__assign({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),o=n.scope,a=n.client;if(o&&a){var s=a.getOptions&&a.getOptions()||{},u=s.beforeBreadcrumb,c=void 0===u?null:u,l=s.maxBreadcrumbs,f=void 0===l?100:l;if(!(f<=0)){var p=i.dateTimestampInSeconds(),d=r.__assign({timestamp:p},e),h=c?i.consoleSandbox((function(){return c(d,t)})):d;null!==h&&o.addBreadcrumb(h,f)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=l(this);try{e(this)}finally{l(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return i.logger.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,o;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(o=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===o||o.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,a=t.client,u=a&&a.getOptions()||{},c=u.release,l=u.environment,f=(i.getGlobalObject().navigator||{}).userAgent,p=new s.Session(r.__assign(r.__assign(r.__assign({release:c,environment:l},n&&{user:n.getUser()}),f&&{userAgent:f}),e));if(n){var d=n.getSession&&n.getSession();d&&d.status===o.SessionStatus.Ok&&d.update({status:o.SessionStatus.Exited}),this.endSession(),n.setSession(p)}return p},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=this.getStackTop(),a=i.scope,s=i.client;s&&s[e]&&(t=s)[e].apply(t,r.__spread(n,[a]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=c(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);i.logger.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function c(){var e=i.getGlobalObject();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:undefined},e}function l(e){var t=c(),n=p(t);return d(t,e),n}function f(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function p(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new u),e.__SENTRY__.hub}function d(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}n.Hub=u,n.getMainCarrier=c,n.makeMain=l,n.getCurrentHub=function(){var e=c();return f(e)&&!p(e).isOlderThan(n.API_VERSION)||d(e,new u),i.isNodeEnv()?function(e){var t,r,o;try{var i=null===(o=null===(r=null===(t=c().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===r?void 0:r.domain)||void 0===o?void 0:o.active;if(!i)return p(e);if(!f(i)||p(i).isOlderThan(n.API_VERSION)){var s=p(e).getStackTop();d(i,new u(s.client,a.Scope.clone(s.scope)))}return p(i)}catch(t){return p(e)}}(e):p(e)},n.getActiveDomain=function(){i.logger.warn("Function `getActiveDomain` is deprecated and will be removed in a future version.");var e=c().__SENTRY__;return e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active},n.getHubFromCarrier=p,n.setHubOnCarrier=d},{"./scope":43,"./session":44,"@sentry/types":63,"@sentry/utils":74,tslib:46}],42:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./scope");n.addGlobalEventProcessor=r.addGlobalEventProcessor,n.Scope=r.Scope;var o=e("./session");n.Session=o.Session;var i=e("./sessionflusher");n.SessionFlusher=i.SessionFlusher;var a=e("./hub");n.getActiveDomain=a.getActiveDomain,n.getCurrentHub=a.getCurrentHub,n.getHubFromCarrier=a.getHubFromCarrier,n.getMainCarrier=a.getMainCarrier,n.Hub=a.Hub,n.makeMain=a.makeMain,n.setHubOnCarrier=a.setHubOnCarrier},{"./hub":41,"./scope":43,"./session":44,"./sessionflusher":45}],43:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=r.__spread(t._breadcrumbs),n._tags=r.__assign({},t._tags),n._extra=r.__assign({},t._extra),n._contexts=r.__assign({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=r.__spread(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=r.__assign(r.__assign({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=r.__assign(r.__assign({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=r.__assign(r.__assign({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=r.__assign(r.__assign({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=r.__assign(r.__assign({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.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]:undefined},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=r.__assign(r.__assign({},this._tags),t._tags),this._extra=r.__assign(r.__assign({},this._extra),t._extra),this._contexts=r.__assign(r.__assign({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):o.isPlainObject(t)&&(this._tags=r.__assign(r.__assign({},this._tags),t.tags),this._extra=r.__assign(r.__assign({},this._extra),t.extra),this._contexts=r.__assign(r.__assign({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=undefined,this._transactionName=undefined,this._fingerprint=undefined,this._requestSession=undefined,this._span=undefined,this._session=undefined,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var i=r.__assign({timestamp:o.dateTimestampInSeconds()},e);return this._breadcrumbs=r.__spread(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=r.__assign(r.__assign({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=r.__assign(r.__assign({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=r.__assign(r.__assign({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=r.__assign(r.__assign({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=r.__assign({trace:this._span.getTraceContext()},e.contexts);var o=null===(n=this._span.transaction)||void 0===n?void 0:n.name;o&&(e.tags=r.__assign({transaction:o},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=r.__spread(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:undefined,this._notifyEventProcessors(r.__spread(a(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,i){var a=this;return void 0===i&&(i=0),new o.SyncPromise((function(s,u){var c=e[i];if(null===t||"function"!=typeof c)s(t);else{var l=c(r.__assign({},t),n);o.isThenable(l)?l.then((function(t){return a._notifyEventProcessors(e,t,n,i+1).then(s)})).then(null,u):a._notifyEventProcessors(e,l,n,i+1).then(s).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function a(){var e=o.getGlobalObject();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}n.Scope=i,n.addGlobalEventProcessor=function(e){a().push(e)}},{"@sentry/utils":74,tslib:46}],44:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/types"),o=e("@sentry/utils"),i=function(){function e(e){this.errors=0,this.sid=o.uuid4(),this.duration=0,this.status=r.SessionStatus.Ok,this.init=!0,this.ignoreDuration=!1;var t=o.timestampInSeconds();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||o.timestampInSeconds(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:o.uuid4()),e.init!==undefined&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=undefined;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===r.SessionStatus.Ok?this.update({status:r.SessionStatus.Exited}):this.update()},e.prototype.toJSON=function(){return o.dropUndefinedKeys({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:undefined,duration:this.duration,attrs:o.dropUndefinedKeys({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}();n.Session=i},{"@sentry/types":63,"@sentry/utils":74}],45:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/types"),o=e("@sentry/utils"),i=e("./hub"),a=function(){function e(e,t){var n=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval((function(){return n.flush()}),1e3*this.flushTimeout),this._sessionAttrs=t}return e.prototype.sendSessionAggregates=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){o.logger.error("Error while sending session: "+e)})):o.logger.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.flush=function(){var e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this.sendSessionAggregates(e))},e.prototype.getSessionAggregates=function(){var e=this,t=Object.keys(this._pendingAggregates).map((function(t){return e._pendingAggregates[parseInt(t)]})),n={attrs:this._sessionAttrs,aggregates:t};return o.dropUndefinedKeys(n)},e.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},e.prototype.incrementSessionStatusCount=function(){var e,t;if(this._isEnabled){var n=i.getCurrentHub().getScope(),r=null===(e=n)||void 0===e?void 0:e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),null===(t=n)||void 0===t||t.setRequestSession(undefined))}},e.prototype._incrementSessionStatusCount=function(e,t){var n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var o=this._pendingAggregates[n];switch(o.started||(o.started=new Date(n).toISOString()),e){case r.RequestSessionStatus.Errored:return o.errored=(o.errored||0)+1,o.errored;case r.RequestSessionStatus.Ok:return o.exited=(o.exited||0)+1,o.exited;case r.RequestSessionStatus.Crashed:return o.crashed=(o.crashed||0)+1,o.crashed}},e}();n.SessionFlusher=a},{"./hub":41,"@sentry/types":63,"@sentry/utils":74}],46:[function(e,t,n){(function(e){(function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n,r,o,i,a,s,u,c,l,f,p,d,h,_,v,y,g,m,b,E,S,w,O;!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:{};function o(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){n(o(r,o(e)))})):"object"==typeof t&&"object"==typeof t.exports?n(o(r,o(t.exports))):n(o(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};n=function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},O=function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},l=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},v=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},y=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}},g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},m=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},E=function(e){return e&&e.__esModule?e:{default:e}},S=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},w=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},e("__extends",n),e("__assign",r),e("__rest",o),e("__decorate",i),e("__param",a),e("__metadata",s),e("__awaiter",u),e("__generator",c),e("__exportStar",l),e("__createBinding",O),e("__values",f),e("__read",p),e("__spread",d),e("__spreadArrays",h),e("__await",_),e("__asyncGenerator",v),e("__asyncDelegator",y),e("__asyncValues",g),e("__makeTemplateObject",m),e("__importStar",b),e("__importDefault",E),e("__classPrivateFieldGet",S),e("__classPrivateFieldSet",w)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],47:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,a=function(){function e(t){void 0===t&&(t={}),this.name=e.id,o.logger.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||o.getGlobalObject().angular,this._angular?this._module=this._angular.module(e.moduleName,[]):o.logger.error("AngularIntegration is missing an Angular instance")}return e.prototype.setupOnce=function(e,t){var n=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(e){e.decorator("$exceptionHandler",["$delegate",n._$exceptionHandlerDecorator.bind(n)])}]))},e.prototype._$exceptionHandlerDecorator=function(t){var n=this;return function(o,a){var s=n._getCurrentHub&&n._getCurrentHub();s&&s.getIntegration(e)&&s.withScope((function(e){a&&e.setExtra("cause",a),e.addEventProcessor((function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];if(t){var n=i.exec(t.value||"");n&&(t.type=n[1],t.value=n[2],e.message=t.type+": "+t.value,e.extra=r.__assign(r.__assign({},e.extra),{angularDocs:n[3].substr(0,250)}))}return e})),s.captureException(o)})),t(o,a)}},e.id="AngularJS",e.moduleName="ngSentry",e}();n.Angular=a},{"@sentry/utils":74,tslib:60}],48:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/types"),o=e("@sentry/utils"),i=o.getGlobalObject(),a=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._levels=["log","info","warn","error","debug","assert"],t.levels&&(this._levels=t.levels)}return e.prototype.setupOnce=function(t,n){"console"in i&&this._levels.forEach((function(t){t in i.console&&o.fill(i.console,t,(function(a){return function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var c=n();c.getIntegration(e)&&c.withScope((function(e){e.setLevel(r.Severity.fromString(t)),e.setExtra("arguments",s),e.addEventProcessor((function(e){return e.logger="console",e}));var n=o.safeJoin(s," ");"assert"===t?!1===s[0]&&(n="Assertion failed: "+(o.safeJoin(s.slice(1)," ")||"console.assert"),e.setExtra("arguments",s.slice(1)),c.captureMessage(n)):c.captureMessage(n)})),a&&Function.prototype.apply.call(a,i.console,s)}}))}))},e.id="CaptureConsole",e}();n.CaptureConsole=a},{"@sentry/types":63,"@sentry/utils":74}],49:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i=function(){function e(t){this.name=e.id,this._options=r.__assign({debugger:!1,stringify:!1},t)}return e.prototype.setupOnce=function(t,n){t((function(t,r){var i=n().getIntegration(e);return i&&(i._options.debugger,o.consoleSandbox((function(){i._options.stringify?(console.log(JSON.stringify(t,null,2)),r&&console.log(JSON.stringify(r,null,2))):(console.log(t),r&&console.log(r))}))),t}))},e.id="Debug",e}();n.Debug=i},{"@sentry/utils":74,tslib:60}],50:[function(e,t,n){arguments[4][12][0].apply(n,arguments)},{"@sentry/utils":74,dup:12}],51:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("@sentry/utils"),o=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._Ember=t.Ember||r.getGlobalObject().Ember}return e.prototype.setupOnce=function(t,n){var o=this;if(this._Ember){var i=this._Ember.onerror;this._Ember.onerror=function(t){if(n().getIntegration(e)&&n().captureException(t,{originalException:t}),"function"==typeof i)i.call(o._Ember,t);else if(o._Ember.testing)throw t},this._Ember.RSVP.on("error",(function(t){n().getIntegration(e)&&n().withScope((function(e){r.isInstanceOf(t,Error)?(e.setExtra("context","Unhandled Promise error detected"),n().captureException(t,{originalException:t})):(e.setExtra("reason",t),n().captureMessage("Unhandled Promise error detected"))}))}))}else r.logger.error("EmberIntegration is missing an Ember instance")},e.id="Ember",e}();n.Ember=o},{"@sentry/utils":74}],52:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i=function(){function e(t){void 0===t&&(t={depth:3}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t,r){var o=n().getIntegration(e);return o?o.enhanceEventWithErrorData(t,r):t}))},e.prototype.enhanceEventWithErrorData=function(e,t){var n;if(!t||!t.originalException||!o.isError(t.originalException))return e;var i=t.originalException.name||t.originalException.constructor.name,a=this._extractErrorData(t.originalException);if(a){var s=r.__assign({},e.contexts),u=o.normalize(a,this._options.depth);return o.isPlainObject(u)&&(s=r.__assign(r.__assign({},e.contexts),((n={})[i]=r.__assign({},u),n))),r.__assign(r.__assign({},e),{contexts:s})}return e},e.prototype._extractErrorData=function(e){var t,n;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(e).filter((function(e){return-1===i.indexOf(e)}));if(a.length){var s={};try{for(var u=r.__values(a),c=u.next();!c.done;c=u.next()){var l=c.value,f=e[l];s[l]=o.isError(f)?f.toString():f}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return s}}catch(e){o.logger.error("Unable to extract extra data from the Error object:",e)}return null},e.id="ExtraErrorData",e}();n.ExtraErrorData=i},{"@sentry/utils":74,tslib:60}],53:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./angular");n.Angular=r.Angular;var o=e("./captureconsole");n.CaptureConsole=o.CaptureConsole;var i=e("./debug");n.Debug=i.Debug;var a=e("./dedupe");n.Dedupe=a.Dedupe;var s=e("./ember");n.Ember=s.Ember;var u=e("./extraerrordata");n.ExtraErrorData=u.ExtraErrorData;var c=e("./offline");n.Offline=c.Offline;var l=e("./reportingobserver");n.ReportingObserver=l.ReportingObserver;var f=e("./rewriteframes");n.RewriteFrames=f.RewriteFrames;var p=e("./sessiontiming");n.SessionTiming=p.SessionTiming;var d=e("./transaction");n.Transaction=d.Transaction;var h=e("./vue");n.Vue=h.Vue},{"./angular":47,"./captureconsole":48,"./debug":49,"./dedupe":50,"./ember":51,"./extraerrordata":52,"./offline":54,"./reportingobserver":55,"./rewriteframes":56,"./sessiontiming":57,"./transaction":58,"./vue":59}],54:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i=r.__importDefault(e("localforage")),a=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this.global=o.getGlobalObject(),this.maxStoredEvents=t.maxStoredEvents||30,this.offlineEventStore=i.default.createInstance({name:"sentry/offlineEventStore"})}return e.prototype.setupOnce=function(t,n){var r=this;this.hub=n(),"addEventListener"in this.global&&this.global.addEventListener("online",(function(){r._sendEvents().catch((function(){o.logger.warn("could not send cached events")}))})),t((function(t){return r.hub&&r.hub.getIntegration(e)&&"navigator"in r.global&&"onLine"in r.global.navigator&&!r.global.navigator.onLine?(r._cacheEvent(t).then((function(e){return r._enforceMaxEvents()})).catch((function(e){o.logger.warn("could not cache event while offline")})),null):t})),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch((function(){o.logger.warn("could not send cached events")}))},e.prototype._cacheEvent=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.offlineEventStore.setItem(o.uuid4(),o.normalize(e))]}))}))},e.prototype._enforceMaxEvents=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t=this;return r.__generator(this,(function(n){return e=[],[2,this.offlineEventStore.iterate((function(t,n,r){e.push({cacheKey:n,event:t})})).then((function(){return t._purgeEvents(e.sort((function(e,t){return(t.event.timestamp||0)-(e.event.timestamp||0)})).slice(t.maxStoredEvents<e.length?t.maxStoredEvents:e.length).map((function(e){return e.cacheKey})))})).catch((function(e){o.logger.warn("could not enforce max events")}))]}))}))},e.prototype._purgeEvent=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,this.offlineEventStore.removeItem(e)]}))}))},e.prototype._purgeEvents=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t=this;return r.__generator(this,(function(n){return[2,Promise.all(e.map((function(e){return t._purgeEvent(e)}))).then()]}))}))},e.prototype._sendEvents=function(){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(t){return[2,this.offlineEventStore.iterate((function(t,n,r){e.hub?(e.hub.captureEvent(t),e._purgeEvent(n).catch((function(e){o.logger.warn("could not purge event from cache")}))):o.logger.warn("no hub found - could not send cached event")}))]}))}))},e.id="Offline",e}();n.Offline=a},{"@sentry/utils":74,localforage:91,tslib:60}],55:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=e("tslib"),i=e("@sentry/utils");!function(e){e.Crash="crash",e.Deprecation="deprecation",e.Intervention="intervention"}(r||(r={}));var a=function(){function e(t){void 0===t&&(t={types:[r.Crash,r.Deprecation,r.Intervention]}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(e,t){i.supportsReportingObserver()&&(this._getCurrentHub=t,new(i.getGlobalObject().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},e.prototype.handler=function(t){var n,i,a=this._getCurrentHub&&this._getCurrentHub();if(a&&a.getIntegration(e)){var s=function(e){a.withScope((function(t){t.setExtra("url",e.url);var n="ReportingObserver ["+e.type+"]",o="No details available";if(e.body){var i,s={};for(var u in e.body)s[u]=e.body[u];if(t.setExtra("body",s),e.type===r.Crash)o=[(i=e.body).crashId||"",i.reason||""].join(" ").trim()||o;else o=(i=e.body).message||o}a.captureMessage(n+": "+o)}))};try{for(var u=o.__values(t),c=u.next();!c.done;c=u.next()){s(c.value)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}},e.id="ReportingObserver",e}();n.ReportingObserver=a},{"@sentry/utils":74,tslib:60}],56:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i=function(){function e(t){var n=this;void 0===t&&(t={}),this.name=e.id,this._prefix="app:///",this._iteratee=function(e){if(!e.filename)return e;var t=/^[A-Z]:\\/.test(e.filename),r=/^\//.test(e.filename);if(t||r){var i=t?e.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):e.filename,a=n._root?o.relative(n._root,i):o.basename(i);e.filename=""+n._prefix+a}return e},t.root&&(this._root=t.root),t.prefix&&(this._prefix=t.prefix),t.iteratee&&(this._iteratee=t.iteratee)}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);return r?r.process(t):t}))},e.prototype.process=function(e){var t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=this._processExceptionsEvent(t)),e.stacktrace&&(t=this._processStacktraceEvent(t)),t},e.prototype._processExceptionsEvent=function(e){var t=this;try{return r.__assign(r.__assign({},e),{exception:r.__assign(r.__assign({},e.exception),{values:e.exception.values.map((function(e){return r.__assign(r.__assign({},e),{stacktrace:t._processStacktrace(e.stacktrace)})}))})})}catch(t){return e}},e.prototype._processStacktraceEvent=function(e){try{return r.__assign(r.__assign({},e),{stacktrace:this._processStacktrace(e.stacktrace)})}catch(t){return e}},e.prototype._processStacktrace=function(e){var t=this;return r.__assign(r.__assign({},e),{frames:e&&e.frames&&e.frames.map((function(e){return t._iteratee(e)}))})},e.id="RewriteFrames",e}();n.RewriteFrames=i},{"@sentry/utils":74,tslib:60}],57:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=function(){function e(){this.name=e.id,this._startTime=Date.now()}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);return r?r.process(t):t}))},e.prototype.process=function(e){var t,n=Date.now();return r.__assign(r.__assign({},e),{extra:r.__assign(r.__assign({},e.extra),(t={},t["session:start"]=this._startTime,t["session:duration"]=n-this._startTime,t["session:end"]=n,t))})},e.id="SessionTiming",e}();n.SessionTiming=o},{tslib:60}],58:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);return r?r.process(t):t}))},e.prototype.process=function(e){for(var t=this._getFramesFromEvent(e),n=t.length-1;n>=0;n--){var r=t[n];if(!0===r.in_app){e.transaction=this._getTransaction(r);break}}return e},e.prototype._getFramesFromEvent=function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]},e.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):"<unknown>"},e.id="Transaction",e}();n.Transaction=r},{}],59:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/utils"),i={id:"Tracing"},a={id:"BrowserTracing"},s={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},u=/(?:^|[-_/])(\w)/g,c="root",l="anonymous component",f=function(){function e(t){var n=this;this.name=e.id,this._componentsCache={},this._applyTracingHooks=function(e,t){if(!e.$options.$_sentryPerfHook){e.$options.$_sentryPerfHook=!0;var a=n._getComponentName(e),u=a===c,l={},f=function(r){var a=o.timestampWithMs();n._rootSpan?n._finishRootSpan(a,t):e.$once("hook:"+r,(function(){var e=t().getIntegration(i);if(e){n._tracingActivity=e.constructor.pushActivity("Vue Application Render");var r=e.constructor.getTransaction();r&&(n._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}else{var o=p(t());o&&(n._rootSpan=o.startChild({description:"Application Render",op:"Vue"}))}}))},d=function(r,i){var s=Array.isArray(n._options.tracingOptions.trackComponents)?n._options.tracingOptions.trackComponents.indexOf(a)>-1:n._options.tracingOptions.trackComponents;if(n._rootSpan&&s){var u=o.timestampWithMs(),c=l[i];c?(c.finish(),n._finishRootSpan(u,t)):e.$once("hook:"+r,(function(){n._rootSpan&&(l[i]=n._rootSpan.startChild({description:"Vue <"+a+">",op:i}))}))}};n._options.tracingOptions.hooks.forEach((function(t){var i=s[t];i?i.forEach((function(o){var i=u?f.bind(n,o):d.bind(n,o,t),a=e.$options[o];Array.isArray(a)?e.$options[o]=r.__spread([i],a):e.$options[o]="function"==typeof a?[i,a]:[i]})):o.logger.warn("Unknown hook: "+t)}))}},o.logger.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=r.__assign(r.__assign({Vue:o.getGlobalObject().Vue,attachProps:!0,logErrors:!1,tracing:!1},t),{tracingOptions:r.__assign({hooks:["mount","update"],timeout:2e3,trackComponents:!1},t.tracingOptions)})}return e.prototype.setupOnce=function(e,t){this._options.Vue?(this._attachErrorHandler(t),this._options.tracing&&this._startTracing(t)):o.logger.error("Vue integration is missing a Vue instance")},e.prototype._getComponentName=function(e){if(!e)return l;if(e.$root===e)return c;if(!e.$options)return l;if(e.$options.name)return e.$options.name;if(e.$options._componentTag)return e.$options._componentTag;if(e.$options.__file){var t=e.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),n=o.basename(t,".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(u,(function(e,t){return t?t.toUpperCase():""})))}return l},e.prototype._finishRootSpan=function(e,t){var n=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout((function(){if(n._tracingActivity){var r=t().getIntegration(i);r&&r.constructor.popActivity(n._tracingActivity)}n._rootSpan&&n._rootSpan.finish(e)}),this._options.tracingOptions.timeout)},e.prototype._startTracing=function(e){var t=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){e().getIntegration(i)||e().getIntegration(a)?t(this,e):o.logger.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},e.prototype._attachErrorHandler=function(t){var n=this,r=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(i,a,s){var u={};if(a)try{u.componentName=n._getComponentName(a),n._options.attachProps&&(u.propsData=a.$options.propsData)}catch(e){o.logger.warn("Unable to extract metadata from Vue component.")}s&&(u.lifecycleHook=s),t().getIntegration(e)&&setTimeout((function(){t().withScope((function(e){e.setContext("vue",u),t().captureException(i)}))})),"function"==typeof r&&r.call(n._options.Vue,i,a,s),n._options.logErrors&&(n._options.Vue.util&&n._options.Vue.util.warn("Error in "+s+': "'+(i&&i.toString())+'"',a),console.error(i))}},e.id="Vue",e}();function p(e){if(e&&e.getScope){var t=e.getScope();if(t)return t.getTransaction()}return undefined}n.Vue=f,n.getActiveTransaction=p},{"@sentry/utils":74,tslib:60}],60:[function(e,t,n){(function(e){(function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n,r,o,i,a,s,u,c,l,f,p,d,h,_,v,y,g,m,b,E,S,w,O;!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:{};function o(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){n(o(r,o(e)))})):"object"==typeof t&&"object"==typeof t.exports?n(o(r,o(t.exports))):n(o(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};n=function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},O=function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},l=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},v=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},y=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}},g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},m=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},E=function(e){return e&&e.__esModule?e:{default:e}},S=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},w=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},e("__extends",n),e("__assign",r),e("__rest",o),e("__decorate",i),e("__param",a),e("__metadata",s),e("__awaiter",u),e("__generator",c),e("__exportStar",l),e("__createBinding",O),e("__values",f),e("__read",p),e("__spread",d),e("__spreadArrays",h),e("__await",_),e("__asyncGenerator",v),e("__asyncDelegator",y),e("__asyncValues",g),e("__makeTemplateObject",m),e("__importStar",b),e("__importDefault",E),e("__classPrivateFieldGet",S),e("__classPrivateFieldSet",w)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],61:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("@sentry/hub");function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=o.getCurrentHub();if(i&&i[e])return i[e].apply(i,r.__spread(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}n.captureException=function(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return i("captureException",e,{captureContext:t,originalException:e,syntheticException:n})},n.captureMessage=function(e,t){var n;try{throw new Error(e)}catch(e){n=e}var o="string"==typeof t?t:undefined,a="string"!=typeof t?{captureContext:t}:undefined;return i("captureMessage",e,o,r.__assign({originalException:e,syntheticException:n},a))},n.captureEvent=function(e){return i("captureEvent",e)},n.configureScope=function(e){i("configureScope",e)},n.addBreadcrumb=function(e){i("addBreadcrumb",e)},n.setContext=function(e,t){i("setContext",e,t)},n.setExtras=function(e){i("setExtras",e)},n.setTags=function(e){i("setTags",e)},n.setExtra=function(e,t){i("setExtra",e,t)},n.setTag=function(e,t){i("setTag",e,t)},n.setUser=function(e){i("setUser",e)},n.withScope=function(e){i("withScope",e)},n._callOnClient=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];i.apply(void 0,r.__spread(["_invokeClient",e],t))},n.startTransaction=function(e,t){return i("startTransaction",r.__assign({},e),t)}},{"@sentry/hub":42,tslib:62}],62:[function(e,t,n){(function(e){(function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n,r,o,i,a,s,u,c,l,f,p,d,h,_,v,y,g,m,b,E,S,w,O;!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:{};function o(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){n(o(r,o(e)))})):"object"==typeof t&&"object"==typeof t.exports?n(o(r,o(t.exports))):n(o(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};n=function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},O=function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},l=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},v=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},y=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}},g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},m=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},E=function(e){return e&&e.__esModule?e:{default:e}},S=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},w=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},e("__extends",n),e("__assign",r),e("__rest",o),e("__decorate",i),e("__param",a),e("__metadata",s),e("__awaiter",u),e("__generator",c),e("__exportStar",l),e("__createBinding",O),e("__values",f),e("__read",p),e("__spread",d),e("__spreadArrays",h),e("__await",_),e("__asyncGenerator",v),e("__asyncDelegator",y),e("__asyncValues",g),e("__makeTemplateObject",m),e("__importStar",b),e("__importDefault",E),e("__classPrivateFieldGet",S),e("__classPrivateFieldSet",w)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],63:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./loglevel");n.LogLevel=r.LogLevel;var o=e("./session");n.SessionStatus=o.SessionStatus,n.RequestSessionStatus=o.RequestSessionStatus;var i=e("./severity");n.Severity=i.Severity;var a=e("./status");n.Status=a.Status;var s=e("./transaction");n.TransactionSamplingMethod=s.TransactionSamplingMethod;var u=e("./transport");n.Outcome=u.Outcome},{"./loglevel":64,"./session":65,"./severity":66,"./status":67,"./transaction":68,"./transport":69}],64:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Debug=2]="Debug",e[e.Verbose=3]="Verbose"}(n.LogLevel||(n.LogLevel={}))},{}],65:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(n.SessionStatus||(n.SessionStatus={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(n.RequestSessionStatus||(n.RequestSessionStatus={}))},{}],66:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(n.Severity||(n.Severity={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;default:return e.Log}}}(n.Severity||(n.Severity={}))},{}],67:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(n.Status||(n.Status={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(n.Status||(n.Status={}))},{}],68:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(n.TransactionSamplingMethod||(n.TransactionSamplingMethod={}))},{}],69:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e){e.BeforeSend="before_send",e.EventProcessor="event_processor",e.NetworkError="network_error",e.QueueOverflow="queue_overflow",e.RateLimitBackoff="ratelimit_backoff",e.SampleRate="sample_rate"}(n.Outcome||(n.Outcome={}))},{}],70:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.forget=function(e){e.then(null,(function(e){console.error(e)}))}},{}],71:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./is");function o(e,t){var n,o,i,a,s,u,c,l=e,f=[];if(!l||!l.tagName)return"";f.push(l.tagName.toLowerCase());var p=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(null===(o=p)||void 0===o?void 0:o.length)p.forEach((function(e){f.push("["+e[0]+'="'+e[1]+'"]')}));else if(l.id&&f.push("#"+l.id),(i=l.className)&&r.isString(i))for(a=i.split(/\s+/),c=0;c<a.length;c++)f.push("."+a[c]);var d=["type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],(u=l.getAttribute(s))&&f.push("["+s+'="'+u+'"]');return f.join("")}n.htmlTreeAsString=function(e,t){try{for(var n=e,r=[],i=0,a=0,s=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=o(n,t))||i>1&&a+r.length*s+u.length>=80);)r.push(u),a+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}},{"./is":76}],72:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("./error"),i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,a="Invalid Dsn",s=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=i.exec(e);if(!t)throw new o.SentryError(a);var n=r.__read(t.slice(1),6),s=n[0],u=n[1],c=n[2],l=void 0===c?"":c,f=n[3],p=n[4],d=void 0===p?"":p,h="",_=n[5],v=_.split("/");if(v.length>1&&(h=v.slice(0,-1).join("/"),_=v.pop()),_){var y=_.match(/^\d+/);y&&(_=y[0])}this._fromComponents({host:f,pass:l,path:h,projectId:_,port:d,protocol:s,publicKey:u})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new o.SentryError(a+": "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new o.SentryError(a+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new o.SentryError(a+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new o.SentryError(a+": Invalid port "+this.port)},e}();n.Dsn=s},{"./error":73,tslib:90}],73:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("./polyfill"),i=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,o.setPrototypeOf(r,n.prototype),r}return r.__extends(t,e),t}(Error);n.SentryError=i},{"./polyfill":83,tslib:90}],74:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib");r.__exportStar(e("./async"),n),r.__exportStar(e("./browser"),n),r.__exportStar(e("./dsn"),n),r.__exportStar(e("./error"),n),r.__exportStar(e("./instrument"),n),r.__exportStar(e("./is"),n),r.__exportStar(e("./logger"),n),r.__exportStar(e("./memo"),n),r.__exportStar(e("./misc"),n),r.__exportStar(e("./node"),n),r.__exportStar(e("./object"),n),r.__exportStar(e("./path"),n),r.__exportStar(e("./promisebuffer"),n),r.__exportStar(e("./stacktrace"),n),r.__exportStar(e("./string"),n),r.__exportStar(e("./supports"),n),r.__exportStar(e("./syncpromise"),n),r.__exportStar(e("./time"),n)},{"./async":70,"./browser":71,"./dsn":72,"./error":73,"./instrument":75,"./is":76,"./logger":77,"./memo":78,"./misc":79,"./node":80,"./object":81,"./path":82,"./promisebuffer":84,"./stacktrace":85,"./string":86,"./supports":87,"./syncpromise":88,"./time":89,tslib:90}],75:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=e("tslib"),i=e("./is"),a=e("./logger"),s=e("./misc"),u=e("./object"),c=e("./stacktrace"),l=e("./supports"),f=s.getGlobalObject(),p={},d={};function h(e){if(!d[e])switch(d[e]=!0,e){case"console":!function(){if(!("console"in f))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in f.console&&u.fill(f.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];_("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,f.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in f))return;var e=_.bind(null,"dom"),t=b(e,!0);f.document.addEventListener("click",t,!1),f.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=f[t]&&f[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(u.fill(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this,a=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){var u=b(e);s.handler=u,t.call(this,n,u,o)}s.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),u.fill(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this,i=o.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=undefined,delete i[t]),0===Object.keys(i).length&&delete o.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in f))return;var e=[],t=[],n=XMLHttpRequest.prototype;u.fill(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=this,s=r[1];a.__sentry_xhr__={method:i.isString(r[0])?r[0].toUpperCase():r[0],url:r[1]},i.isString(s)&&"POST"===a.__sentry_xhr__.method&&s.match(/sentry_key/)&&(a.__sentry_own_request__=!0);var c=function(){if(4===a.readyState){try{a.__sentry_xhr__&&(a.__sentry_xhr__.status_code=a.status)}catch(e){}try{var n=e.indexOf(a);if(-1!==n){e.splice(n);var o=t.splice(n)[0];a.__sentry_xhr__&&o[0]!==undefined&&(a.__sentry_xhr__.body=o[0])}}catch(e){}_("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:a})}};return"onreadystatechange"in a&&"function"==typeof a.onreadystatechange?u.fill(a,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return c(),e.apply(a,t)}})):a.addEventListener("readystatechange",c),n.apply(a,r)}})),u.fill(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.push(this),t.push(r),_("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!l.supportsNativeFetch())return;u.fill(f,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:v(t),url:y(t)},startTimestamp:Date.now()};return _("fetch",o.__assign({},r)),e.apply(f,t).then((function(e){return _("fetch",o.__assign(o.__assign({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw _("fetch",o.__assign(o.__assign({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!l.supportsHistory())return;var e=f.onpopstate;function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t.length>2?t[2]:undefined;if(o){var i=r,a=String(o);r=a,_("history",{from:i,to:a})}return e.apply(this,t)}}f.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=f.location.href,i=r;if(r=o,_("history",{from:i,to:o}),e)try{return e.apply(this,t)}catch(e){}},u.fill(f.history,"pushState",t),u.fill(f.history,"replaceState",t)}();break;case"error":E=f.onerror,f.onerror=function(e,t,n,r,o){return _("error",{column:r,error:o,line:n,msg:e,url:t}),!!E&&E.apply(this,arguments)};break;case"unhandledrejection":S=f.onunhandledrejection,f.onunhandledrejection=function(e){return _("unhandledrejection",e),!S||S.apply(this,arguments)};break;default:a.logger.warn("unknown instrumentation type:",e)}}function _(e,t){var n,r;if(e&&p[e])try{for(var i=o.__values(p[e]||[]),s=i.next();!s.done;s=i.next()){var u=s.value;try{u(t)}catch(t){a.logger.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+c.getFunctionName(u)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function v(e){return void 0===e&&(e=[]),"Request"in f&&i.isInstanceOf(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function y(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in f&&i.isInstanceOf(e[0],Request)?e[0].url:String(e[0])}n.addInstrumentationHandler=function(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(p[e.type]=p[e.type]||[],p[e.type].push(e.callback),h(e.type))};var g,m;function b(e,t){return void 0===t&&(t=!1),function(n){if(n&&m!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(g===undefined||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(m,n))&&(e({event:n,name:r,global:t}),m=n),clearTimeout(g),g=f.setTimeout((function(){g=undefined}),1e3)}}}var E=null;var S=null},{"./is":76,"./logger":77,"./misc":79,"./object":81,"./stacktrace":85,"./supports":87,tslib:90}],76:[function(e,t,n){function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){try{return e instanceof t}catch(e){return!1}}Object.defineProperty(n,"__esModule",{value:!0}),n.isError=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return o(e,Error)}},n.isErrorEvent=function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},n.isDOMError=function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},n.isDOMException=function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},n.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},n.isPrimitive=function(e){return null===e||"object"!=typeof e&&"function"!=typeof e},n.isPlainObject=r,n.isEvent=function(e){return"undefined"!=typeof Event&&o(e,Event)},n.isElement=function(e){return"undefined"!=typeof Element&&o(e,Element)},n.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},n.isThenable=function(e){return Boolean(e&&e.then&&"function"==typeof e.then)},n.isSyntheticEvent=function(e){return r(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},n.isInstanceOf=o},{}],77:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./misc"),o=r.getGlobalObject(),i="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&r.consoleSandbox((function(){o.console.log(i+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&r.consoleSandbox((function(){o.console.warn(i+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&r.consoleSandbox((function(){o.console.error(i+"[Error]: "+e.join(" "))}))},e}();o.__SENTRY__=o.__SENTRY__||{};var s=o.__SENTRY__.logger||(o.__SENTRY__.logger=new a);n.logger=s},{"./misc":79}],78:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();n.Memo=r},{}],79:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./node"),o=e("./string"),i={};function a(){return r.isNodeEnv()?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}n.getGlobalObject=a,n.uuid4=function(){var e=a(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},n.parseUrl=function(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}},n.getEventDescription=function(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"},n.consoleSandbox=function(e){var t=a();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o},n.addExceptionTypeValue=function(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"},n.addExceptionMechanism=function(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}},n.getLocationHref=function(){var e=a();try{return e.document.location.href}catch(e){return""}};var s=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;n.parseSemver=function(e){var t=e.match(s)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),o=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?undefined:n,minor:isNaN(r)?undefined:r,patch:isNaN(o)?undefined:o,prerelease:t[4]}};n.parseRetryAfterHeader=function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e},n.addContextToFrame=function(e,t,n){void 0===n&&(n=5);var r=t.lineno||0,i=e.length,a=Math.max(Math.min(i,r-1),0);t.pre_context=e.slice(Math.max(0,a-n),a).map((function(e){return o.snipLine(e,0)})),t.context_line=o.snipLine(e[Math.min(i-1,a)],t.colno||0),t.post_context=e.slice(Math.min(a+1,i),a+1+n).map((function(e){return o.snipLine(e,0)}))},n.stripUrlQueryAndFragment=function(e){return e.split(/[\?#]/,1)[0]}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./node":80,"./string":86}],80:[function(e,t,n){(function(e){(function(){function r(e,t){return e.require(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.isNodeEnv=function(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)},n.dynamicRequire=r,n.loadModule=function(e){var n;try{n=r(t,e)}catch(e){}try{var o=r(t,"process").cwd;n=r(t,o()+"/node_modules/"+e)}catch(e){}return n}}).call(this)}).call(this,e("_process"))},{_process:92}],81:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0});var r=e("tslib"),o=e("./browser"),i=e("./is"),a=e("./memo"),s=e("./stacktrace"),u=e("./string");function c(e){if(i.isError(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(i.isEvent(e)){var a=e,s={};s.type=a.type;try{s.target=i.isElement(a.target)?o.htmlTreeAsString(a.target):Object.prototype.toString.call(a.target)}catch(e){s.target="<unknown>"}try{s.currentTarget=i.isElement(a.currentTarget)?o.htmlTreeAsString(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){s.currentTarget="<unknown>"}for(var u in"undefined"!=typeof CustomEvent&&i.isInstanceOf(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);return s}return e}function l(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function f(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":i.isSyntheticEvent(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+s.getFunctionName(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function p(e,t,n,r){if(void 0===n&&(n=+Infinity),void 0===r&&(r=new a.Memo),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=f(e);return i.isPrimitive(n)?n:t}(t);if(null!==t&&t!==undefined&&"function"==typeof t.toJSON)return t.toJSON();var o=f(t,e);if(i.isPrimitive(o))return o;var s=c(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(u[l]=p(l,s[l],n-1,r));return r.unmemoize(t),u}function d(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return p(e,n,t)})))}catch(e){return"**non-serializable**"}}n.fill=function(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}},n.urlEncode=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},n.normalizeToSize=function e(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var o=d(t,n);return l(o)>r?e(t,n-1,r):o},n.walk=p,n.normalize=d,n.extractExceptionKeysForMessage=function(e,t){void 0===t&&(t=40);var n=Object.keys(c(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return u.truncate(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:u.truncate(o,t)}return""},n.dropUndefinedKeys=function e(t){var n,o;if(i.isPlainObject(t)){var a=t,s={};try{for(var u=r.__values(Object.keys(a)),c=u.next();!c.done;c=u.next()){var l=c.value;void 0!==a[l]&&(s[l]=e(a[l]))}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return s}return Array.isArray(t)?t.map(e):t}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./browser":71,"./is":76,"./memo":78,"./stacktrace":85,"./string":86,tslib:90}],82:[function(e,t,n){function r(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}Object.defineProperty(n,"__esModule",{value:!0});var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function i(e){var t=o.exec(e);return t?t.slice(1):[]}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",o=!1,i=e.length-1;i>=-1&&!o;i--){var a=i>=0?e[i]:"/";a&&(n=a+"/"+n,o="/"===a.charAt(0))}return(o?"/":"")+(n=r(n.split("/").filter((function(e){return!!e})),!o).join("/"))||"."}function s(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function u(e){var t=c(e),n="/"===e.substr(-1),o=r(e.split("/").filter((function(e){return!!e})),!t).join("/");return o||t||(o="."),o&&n&&(o+="/"),(t?"/":"")+o}function c(e){return"/"===e.charAt(0)}n.resolve=a,n.relative=function(e,t){e=a(e).substr(1),t=a(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,u=0;u<o;u++)if(n[u]!==r[u]){i=u;break}var c=[];for(u=i;u<n.length;u++)c.push("..");return(c=c.concat(r.slice(i))).join("/")},n.normalizePath=u,n.isAbsolute=c,n.join=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(e.join("/"))},n.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}},{}],83:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.setPrototypeOf=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e})},{}],84:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./error"),o=e("./syncpromise"),i=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return this._limit===undefined||this.length()<this._limit},e.prototype.add=function(e){var t=this;if(!this.isReady())return o.SyncPromise.reject(new r.SentryError("Not adding Promise due to buffer limit reached."));var n=e();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then((function(){return t.remove(n)})).then(null,(function(){return t.remove(n).then(null,(function(){}))})),n},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new o.SyncPromise((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);o.SyncPromise.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}();n.PromiseBuffer=i},{"./error":73,"./syncpromise":88}],85:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r="<anonymous>";n.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||r}catch(e){return r}}},{}],86:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./is");n.truncate=function(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."},n.snipLine=function(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var o=Math.max(t-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n},n.safeJoin=function(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)},n.isMatchingPattern=function(e,t){return!!r.isString(e)&&(r.isRegExp(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},{"./is":76}],87:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./logger"),o=e("./misc");function i(){if(!("fetch"in o.getGlobalObject()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}n.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},n.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},n.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},n.supportsFetch=i,n.isNativeFetch=a,n.supportsNativeFetch=function(){if(!i())return!1;var e=o.getGlobalObject();if(a(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(e){r.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t},n.supportsReportingObserver=function(){return"ReportingObserver"in o.getGlobalObject()},n.supportsReferrerPolicy=function(){if(!i())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},n.supportsHistory=function(){var e=o.getGlobalObject(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}},{"./logger":77,"./misc":79}],88:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=e("./is");!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var i=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&(o.isThenable(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==r.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===r.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===r.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}();n.SyncPromise=i},{"./is":76}],89:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./misc"),o=e("./node"),i={nowSeconds:function(){return Date.now()/1e3}};var a,s=o.isNodeEnv()?function(){try{return o.dynamicRequire(t,"perf_hooks").performance}catch(e){return undefined}}():(a=r.getGlobalObject().performance)&&a.now?{now:function(){return a.now()},timeOrigin:Date.now()-a.now()}:undefined,u=s===undefined?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}};n.dateTimestampInSeconds=i.nowSeconds.bind(i),n.timestampInSeconds=u.nowSeconds.bind(u),n.timestampWithMs=n.timestampInSeconds,n.usingPerformanceAPI=s!==undefined,n.browserPerformanceTimeOrigin=function(){var e=r.getGlobalObject().performance;if(!e||!e.now)return n._browserPerformanceTimeOriginMode="none",undefined;var t=36e5,o=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+o-i):t,s=a<t,u=e.timing&&e.timing.navigationStart,c="number"==typeof u?Math.abs(u+o-i):t;return s||c<t?a<=c?(n._browserPerformanceTimeOriginMode="timeOrigin",e.timeOrigin):(n._browserPerformanceTimeOriginMode="navigationStart",u):(n._browserPerformanceTimeOriginMode="dateNow",i)}()},{"./misc":79,"./node":80}],90:[function(e,t,n){(function(e){(function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n,r,o,i,a,s,u,c,l,f,p,d,h,_,v,y,g,m,b,E,S,w,O;!function(n){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:{};function o(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){n(o(r,o(e)))})):"object"==typeof t&&"object"==typeof t.exports?n(o(r,o(t.exports))):n(o(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};n=function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},O=function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},l=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},v=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},y=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}},g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},m=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},E=function(e){return e&&e.__esModule?e:{default:e}},S=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},w=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},e("__extends",n),e("__assign",r),e("__rest",o),e("__decorate",i),e("__param",a),e("__metadata",s),e("__awaiter",u),e("__generator",c),e("__exportStar",l),e("__createBinding",O),e("__values",f),e("__read",p),e("__spread",d),e("__spreadArrays",h),e("__await",_),e("__asyncGenerator",v),e("__asyncDelegator",y),e("__asyncValues",g),e("__makeTemplateObject",m),e("__importStar",b),e("__importDefault",E),e("__classPrivateFieldGet",S),e("__classPrivateFieldSet",w)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],91:[function(e,t,n){(function(r){(function(){
/*!
    localForage -- Offline Storage, Improved
    Version 1.10.0
    https://localforage.github.io/localForage
    (c) 2013-2017 Mozilla, Apache License 2.0
*/
!function(e){if("object"==typeof n&&void 0!==t)t.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:this).localforage=e()}}((function(){return function t(n,r,o){function i(s,u){if(!r[s]){if(!n[s]){var c="function"==typeof e&&e;if(!u&&c)return c(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=r[s]={exports:{}};n[s][0].call(f.exports,(function(e){var t=n[s][1][e];return i(t||e)}),f,f.exports,t,n,r,o)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var u=new e.MessageChannel;u.port1.onmessage=l,n=function(){u.port2.postMessage(0)}}var c=[];function l(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==o&&d(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return i.reject(e,t)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)}))}function p(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}var a=h((function(){t(o,r)}));"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(o);this.state!==u?f(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t));return n},l.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){i.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=h(p,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){if(e instanceof this)return e;return i.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);return i.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var a=new Array(n),s=0,u=-1,c=new this(o);for(;++u<n;)l(e[u],u);return c;function l(e,o){t.resolve(e).then((function(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(c,a))}),(function(e){r||(r=!0,i.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var a=-1,s=new this(o);for(;++a<n;)u=e[a],t.resolve(u).then((function(e){r||(r=!0,i.resolve(s,e))}),(function(e){r||(r=!0,i.reject(s,e))}));var u;return s}},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function i(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function u(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function c(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function l(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",p=void 0,d={},h=Object.prototype.toString,_="readonly",v="readwrite";function y(e){return"boolean"==typeof p?a.resolve(p):function(e){return new a((function(t){var n=e.transaction(f,v),r=i([""]);n.objectStore(f).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return p=e}))}function g(e){var t=d[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function m(e){var t=d[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function b(e,t){var n=d[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function E(e,t){return new a((function(n,r){if(d[e.name]=d[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);g(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'"'+" has been upgraded from version "+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),m(e)}}))}function S(e){return E(e,!1)}function w(e){return E(e,!0)}function O(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+'"'+" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function x(e){var t=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}(atob(e.data));return i([t],{type:e.type})}function j(e){return e&&e.__local_forage_encoded_blob}function T(e){var t=this,n=t._initReady().then((function(){var e=d[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return u(n,e,e),n}function I(e,t,n,r){r===undefined&&(r=1);try{var o=e.db.transaction(e.storeName,t);n(null,o)}catch(o){if(r>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e)})).then((function(){return function(e){g(e);for(var t=d[e.name],n=t.forages,r=0;r<n.length;r++){var o=n[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,S(e).then((function(t){return e.db=t,O(e)?w(e):t})).then((function(r){e.db=t.db=r;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=r})).catch((function(t){throw b(e,t),t}))}(e).then((function(){I(e,t,n,r-1)}))})).catch(n);n(o)}}var P={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var o=d[n.name];o||(o={forages:[],db:null,dbReady:null,deferredOperations:[]},d[n.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=T);var i=[];function s(){return a.resolve()}for(var u=0;u<o.forages.length;u++){var c=o.forages[u];c!==t&&i.push(c._initReady().catch(s))}var l=o.forages.slice(0);return a.all(i).then((function(){return n.db=o.db,S(n)})).then((function(e){return n.db=e,O(n,t._defaultConfig.version)?w(n):e})).then((function(e){n.db=o.db=e,t._dbInfo=n;for(var r=0;r<l.length;r++){var i=l[r];i!==t&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}}))},_support:function(){try{if(!o||!o.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){I(n._dbInfo,_,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;j(r)&&(r=x(r));var o=e(r,n.key,s++);void 0!==o?t(o):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new a((function(t,r){n.ready().then((function(){I(n._dbInfo,_,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;e===undefined&&(e=null),j(e)&&(e=x(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var o=new a((function(n,o){var i;r.ready().then((function(){return i=r._dbInfo,"[object Blob]"===h.call(t)?y(i.db).then((function(e){return e?t:(n=t,new a((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){I(r._dbInfo,v,(function(i,a){if(i)return o(i);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=undefined);var u=s.put(t,e);a.oncomplete=function(){t===undefined&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=u.error?u.error:u.transaction.error;o(e)}}catch(e){o(e)}}))})).catch(o)}));return s(o,n),o},removeItem:function(e,t){var n=this;e=c(e);var r=new a((function(t,r){n.ready().then((function(){I(n._dbInfo,v,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){I(t._dbInfo,v,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){I(t._dbInfo,_,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){I(n._dbInfo,_,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName),s=!1,u=a.openKeyCursor();u.onsuccess=function(){var n=u.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},u.onerror=function(){r(u.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){I(t._dbInfo,_,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=l.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;if(e.name){var u=e.name===n.name&&i._dbInfo.db,c=u?a.resolve(i._dbInfo.db):S(e).then((function(t){var n=d[e.name],r=n.forages;n.db=t;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=t;return t}));r=e.storeName?c.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;g(e);var r=d[e.name],i=r.forages;t.close();for(var s=0;s<i.length;s++){var u=i[s];u._dbInfo.db=null,u._dbInfo.version=n}var c=new a((function(t,r){var i=o.open(e.name,n);i.onerror=function(e){i.result.close(),r(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}}));return c.then((function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=e,m(n._dbInfo)}})).catch((function(t){throw(b(e,t)||a.resolve()).catch((function(){})),t}))}})):c.then((function(t){g(e);var n=d[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++){r[i]._dbInfo.db=null}var s=new a((function(t,n){var r=o.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return s.then((function(e){n.db=e;for(var t=0;t<r.length;t++){m(r[t]._dbInfo)}})).catch((function(t){throw(b(e,t)||a.resolve()).catch((function(){})),t}))}))}else r=a.reject("Invalid arguments");return s(r,t),r}};var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R=/^~~local_forage_type~([^~]+)~/,M="__lfsc__:",N=M.length,A="arbf",D="blob",C="si08",F="ui08",L="uic8",B="si16",H="si32",U="ur16",q="ui32",G="fl32",V="fl64",W=N+A.length,K=Object.prototype.toString;function z(e){var t,n,r,o,i,a=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),l=new Uint8Array(c);for(t=0;t<s;t+=4)n=k.indexOf(e[t]),r=k.indexOf(e[t+1]),o=k.indexOf(e[t+2]),i=k.indexOf(e[t+3]),l[u++]=n<<2|r>>4,l[u++]=(15&r)<<4|o>>2,l[u++]=(3&o)<<6|63&i;return c}function Y(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=k[n[t]>>2],r+=k[(3&n[t])<<4|n[t+1]>>4],r+=k[(15&n[t+1])<<2|n[t+2]>>6],r+=k[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var $={serialize:function(e,t){var n="";if(e&&(n=K.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===K.call(e.buffer))){var r,o=M;e instanceof ArrayBuffer?(r=e,o+=A):(r=e.buffer,"[object Int8Array]"===n?o+=C:"[object Uint8Array]"===n?o+=F:"[object Uint8ClampedArray]"===n?o+=L:"[object Int16Array]"===n?o+=B:"[object Uint16Array]"===n?o+=U:"[object Int32Array]"===n?o+=H:"[object Uint32Array]"===n?o+=q:"[object Float32Array]"===n?o+=G:"[object Float64Array]"===n?o+=V:t(new Error("Failed to get type for BinaryArray"))),t(o+Y(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+Y(this.result);t(M+D+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,N)!==M)return JSON.parse(e);var t,n=e.substring(W),r=e.substring(N,W);if(r===D&&R.test(n)){var o=n.match(R);t=o[1],n=n.substring(o[0].length)}var a=z(n);switch(r){case A:return a;case D:return i([a],{type:t});case C:return new Int8Array(a);case F:return new Uint8Array(a);case L:return new Uint8ClampedArray(a);case B:return new Int16Array(a);case U:return new Uint16Array(a);case H:return new Int32Array(a);case q:return new Uint32Array(a);case G:return new Float32Array(a);case V:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:z,bufferToString:Y};function J(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" "+"(id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function X(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master "+"WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):J(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function Q(e,t,n,r){var o=this;e=c(e);var i=new a((function(i,a){o.ready().then((function(){t===undefined&&(t=null);var s=t,u=o._dbInfo;u.serializer.serialize(t,(function(t,c){c?a(c):u.db.transaction((function(n){X(n,u,"INSERT OR REPLACE INTO "+u.storeName+" "+"(key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(Q.apply(o,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(i,n),i}function Z(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master "+"WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);t({db:e,storeNames:o})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var ee={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(o){J(o,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=$,o},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){X(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,a=i.length,s=0;s<a;s++){var u=i.item(s),c=u.value;if(c&&(c=o.serializer.deserialize(c)),void 0!==(c=e(c,u.key,s+1)))return void t(c)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){X(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return Q.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=c(e);var r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){X(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){X(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){X(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){X(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){X(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=l.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;return s(r=e.name?new a((function(t){var r;r=e.name===n.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(Z(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function o(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var i=[],s=0,u=e.storeNames.length;s<u;s++)i.push(o(e.storeNames[s]));a.all(i).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),t),r}};function te(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function ne(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var re={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=te(e,this._defaultConfig),ne()?(this._dbInfo=t,t.serializer=$,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s<i;s++){var u=localStorage.key(s);if(0===u.indexOf(r)){var c=localStorage.getItem(u);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,u.substring(o),a++)))return c}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var o=r.ready().then((function(){t===undefined&&(t=null);var n=t;return new a((function(o,i){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,t),o(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}}))}))}));return s(o,n),o},removeItem:function(e,t){var n=this;e=c(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o<n;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=l.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,o=this;return r=e.name?new a((function(t){e.storeName?t(te(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),s(r,t),r}},oe=function(e,t){for(var n,r,o=e.length,i=0;i<o;){if((n=e[i])===(r=t)||"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))return!0;i++}return!1},ie=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ae={},se={},ue={INDEXEDDB:P,WEBSQL:ee,LOCALSTORAGE:re},ce=[ue.INDEXEDDB._driver,ue.WEBSQL._driver,ue.LOCALSTORAGE._driver],le=["dropInstance"],fe=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(le),pe={description:"",driver:ce.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function de(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function he(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(ie(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var _e=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ue)if(ue.hasOwnProperty(n)){var r=ue[n],o=r._driver;this[n]=o,ae[o]||this.defineDriver(r)}this._defaultConfig=he({},pe),this._config=he({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage "+"has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a((function(t,n){try{var r=e._driver,o=new Error("Custom driver not compliant; see "+"https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(o);for(var i=fe.concat("_initStorage"),u=0,c=i.length;u<c;u++){var l=i[u];if((!oe(le,l)||e[l])&&"function"!=typeof e[l])return void n(o)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=le.length;n<r;n++){var o=le[n];e[o]||(e[o]=t(o))}}();var f=function(n){ae[r]&&console.info("Redefining LocalForage driver: "+r),ae[r]=e,se[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(f,n):f(!!e._support):f(!0)}catch(e){n(e)}}));return u(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=ae[e]?a.resolve(ae[e]):a.reject(new Error("Driver not found."));return u(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve($);return u(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return u(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;ie(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function s(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}var c=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=c.then((function(){var e=o[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var o=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(s).catch(n)}i();var u=new Error("No available storage method found.");return r._driverSet=a.reject(u),r._driverSet}()}}(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),u(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!se[e]},e.prototype._extend=function(e){he(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=fe.length;e<t;e++)de(this,fe[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),ve=new _e;t.exports=ve},{3:3}]},{},[4])(4)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],92:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,l=[],f=!1,p=-1;function d(){f&&c&&(f=!1,c.length?l=c.concat(l):p=-1,l.length&&h())}function h(){if(!f){var e=u(d);f=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,f=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function _(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new _(e,t)),1!==l.length||f||u(h)},_.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UNKNOWN_TICKER_SYMBOL=n.POLLING_TOKEN_ENVIRONMENT_TYPES=n.PLATFORM_OPERA=n.PLATFORM_FIREFOX=n.PLATFORM_EDGE=n.PLATFORM_CHROME=n.PLATFORM_BRAVE=n.ORIGIN_METAMASK=n.METAMASK_PROD_CHROME_ID=n.METAMASK_MMI_PROD_CHROME_ID=n.METAMASK_MMI_BETA_CHROME_ID=n.METAMASK_FLASK_CHROME_ID=n.METAMASK_BETA_CHROME_ID=n.MESSAGE_TYPE=n.FIREFOX_BUILD_IDS=n.EXTENSION_MESSAGES=n.ENVIRONMENT_TYPE_POPUP=n.ENVIRONMENT_TYPE_NOTIFICATION=n.ENVIRONMENT_TYPE_FULLSCREEN=n.ENVIRONMENT_TYPE_BACKGROUND=n.CHROME_BUILD_IDS=n.BuildType=void 0;var r=e("./permissions");const o="popup";n.ENVIRONMENT_TYPE_POPUP=o;const i="notification";n.ENVIRONMENT_TYPE_NOTIFICATION=i;const a="fullscreen";n.ENVIRONMENT_TYPE_FULLSCREEN=a;const s="background";n.ENVIRONMENT_TYPE_BACKGROUND=s;n.BuildType={beta:"beta",desktop:"desktop",flask:"flask",main:"main"};n.PLATFORM_BRAVE="Brave";n.PLATFORM_CHROME="Chrome";n.PLATFORM_EDGE="Edge";n.PLATFORM_FIREFOX="Firefox";n.PLATFORM_OPERA="Opera";const u={ADD_ETHEREUM_CHAIN:"wallet_addEthereumChain",ETH_ACCOUNTS:r.RestrictedMethods.eth_accounts,ETH_DECRYPT:"eth_decrypt",ETH_GET_ENCRYPTION_PUBLIC_KEY:"eth_getEncryptionPublicKey",ETH_REQUEST_ACCOUNTS:"eth_requestAccounts",ETH_SIGN:"eth_sign",ETH_SIGN_TYPED_DATA:"eth_signTypedData",ETH_SIGN_TYPED_DATA_V3:"eth_signTypedData_v3",ETH_SIGN_TYPED_DATA_V4:"eth_signTypedData_v4",GET_PROVIDER_STATE:"metamask_getProviderState",LOG_WEB3_SHIM_USAGE:"metamask_logWeb3ShimUsage",PERSONAL_SIGN:"personal_sign",SEND_METADATA:"metamask_sendDomainMetadata",SWITCH_ETHEREUM_CHAIN:"wallet_switchEthereumChain",WALLET_REQUEST_PERMISSIONS:"wallet_requestPermissions",WATCH_ASSET:"wallet_watchAsset",WATCH_ASSET_LEGACY:"metamask_watchAsset"};n.MESSAGE_TYPE=u;n.EXTENSION_MESSAGES={CONNECTION_READY:"CONNECTION_READY",READY:"METAMASK_EXTENSION_READY"};const c={[o]:"popupGasPollTokens",[i]:"notificationGasPollTokens",[a]:"fullScreenGasPollTokens",[s]:"none"};n.POLLING_TOKEN_ENVIRONMENT_TYPES=c;n.ORIGIN_METAMASK="metamask";const l="pbbkamfgmaedccnfkmjcofcecjhfgldn";n.METAMASK_BETA_CHROME_ID=l;const f="nkbihfbeogaeaoehlefnkodbefgpgknn";n.METAMASK_PROD_CHROME_ID=f;const p="ljfoeinjpaedjfecbmggjgodbgkmjkjk";n.METAMASK_FLASK_CHROME_ID=p;const d="kmbhbcbadohhhgdgihejcicbgcehoaeg";n.METAMASK_MMI_BETA_CHROME_ID=d;const h="ikkihjamdhfiojpdbnfllpjigpneipbc";n.METAMASK_MMI_PROD_CHROME_ID=h;const _=[l,f,p,d,h];n.CHROME_BUILD_IDS=_;const v=["webextension-beta@metamask.io","webextension@metamask.io","webextension-flask@metamask.io"];n.FIREFOX_BUILD_IDS=v;n.UNKNOWN_TICKER_SYMBOL="UNKNOWN"},{"./permissions":94}],94:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RestrictedMethods=n.CaveatTypes=void 0;const r=Object.freeze({restrictReturnedAccounts:"restrictReturnedAccounts"});n.CaveatTypes=r;const o=Object.freeze({eth_accounts:"eth_accounts"});n.RestrictedMethods=o},{}]},{},[4])}