@sentry/integrations
Advanced tools
Comparing version 6.3.0-beta.6 to 6.3.0-beta.7
@@ -56,26 +56,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -120,2 +96,36 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -214,13 +224,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -520,6 +519,9 @@ /** SyncPromise internal states */ | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -533,7 +535,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -540,0 +550,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function a(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,u(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function c(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=a(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);a();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=a().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},v=(h.nowSeconds.bind(h),g.nowSeconds.bind(g),function(){var n=a().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,p.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||a().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=v.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=u();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=u(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},v=(h.nowSeconds.bind(h),g.nowSeconds.bind(g),function(){var n=u().performance;if(n){var t=n.now(),e=Date.now(),r=n.timeOrigin?Math.abs(n.timeOrigin+t-e):36e5,o=r<36e5,i=n.timing&&n.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-e):36e5;(o||a<36e5)&&(r<=a&&n.timeOrigin)}}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,p.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||u().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=v.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window); | ||
//# sourceMappingURL=angular.min.js.map |
@@ -145,26 +145,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/*! ***************************************************************************** | ||
@@ -239,2 +215,21 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/** | ||
* Join values in array | ||
@@ -264,2 +259,17 @@ * @param input array of values to be joined together | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -393,13 +403,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -699,6 +698,9 @@ /** SyncPromise internal states */ | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -712,7 +714,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -719,0 +729,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var e,t,r,o,i,a={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}Object.defineProperty(a,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var u={};function s(){return c()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:u}var f=function(n,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,l(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}f(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function _(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}function p(n){var e=s();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var h=s(),d="Sentry Logger ",g=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.log(d+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.warn(d+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.error(d+"[Error]: "+n.join(" "))})},n}();h.__SENTRY__=h.__SENTRY__||{};h.__SENTRY__.logger||(h.__SENTRY__.logger=new g);var v;s();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,a){n.resolve(e).then(function(n){i[a]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=c()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=s().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=s().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var e=n.timing&&n.timing.navigationStart;"number"==typeof e&&Math.abs(e+n.now()-Date.now())<36e5||Date.now()}}(),s()),m=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=t();c.getIntegration(n)&&c.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=_(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(_(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),c.captureMessage(t)):c.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var S in a.CaptureConsole=m,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},a)Object.prototype.hasOwnProperty.call(a,S)&&(n.Sentry.Integrations[S]=a[S])}(window); | ||
!function(n){var e,t,r,o,i,a={};Object.defineProperty(a,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var c=function(n,e){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,u(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function f(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}var l={};function _(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(n){var e=_();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var h=_(),d="Sentry Logger ",g=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.log(d+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.warn(d+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){h.console.error(d+"[Error]: "+n.join(" "))})},n}();h.__SENTRY__=h.__SENTRY__||{};h.__SENTRY__.logger||(h.__SENTRY__.logger=new g);var v;_();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,a){n.resolve(e).then(function(n){i[a]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=s()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=_().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=_().performance;if(n){var e=n.now(),t=Date.now(),r=n.timeOrigin?Math.abs(n.timeOrigin+e-t):36e5,o=r<36e5,i=n.timing&&n.timing.navigationStart,a="number"==typeof i?Math.abs(i+e-t):36e5;(o||a<36e5)&&(r<=a&&n.timeOrigin)}}(),_()),m=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=t();c.getIntegration(n)&&c.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=f(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(f(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),c.captureMessage(t)):c.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var S in a.CaptureConsole=m,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},a)Object.prototype.hasOwnProperty.call(a,S)&&(n.Sentry.Integrations[S]=a[S])}(window); | ||
//# sourceMappingURL=captureconsole.min.js.map |
@@ -56,26 +56,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -120,2 +96,36 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -214,13 +224,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -520,6 +519,9 @@ /** SyncPromise internal states */ | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -533,7 +535,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -540,0 +550,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return r()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,u(o,e.prototype),o}(function(n,t){function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);function a(n){var t=c();if(!("console"in t))return n();var e=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(o[n]=e[n],e[n]=e[n].__sentry_original__)});var r=n();return Object.keys(o).forEach(function(n){e[n]=o[n]}),r}var f=c(),s="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){f.console.error(s+"[Error]: "+n.join(" "))})},n}();f.__SENTRY__=f.__SENTRY__||{};var _;f.__SENTRY__.logger||(f.__SENTRY__.logger=new l),c();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var o;t._state===_.PENDING&&(o=e,Boolean(o&&o.then&&"function"==typeof o.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(r-=1)&&e(i)}).then(null,o)})}else e([]);else o(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var o=this;return new n(function(n,r){o._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void r(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void r(n)}else r(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,o){var r,i;return e.then(function(n){i=!1,r=n,t&&t()},function(n){i=!0,r=n,t&&t()}).then(function(){i?o(r):n(r)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var p={nowSeconds:function(){return Date.now()/1e3}};var h=r()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=c().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),y=void 0===h?p:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}},d=(p.nowSeconds.bind(p),y.nowSeconds.bind(y),function(){var n=c().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}(),function(){function n(t){this.name=n.id,this._options=o({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,e){t(function(t,o){var r=e().getIntegration(n);return r&&(r._options.debugger,a(function(){r._options.stringify?(console.log(JSON.stringify(t,null,2)),o&&console.log(JSON.stringify(o,null,2))):(console.log(t),o&&console.log(o))})),t})},n.id="Debug",n}());for(var g in t.Debug=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,g)&&(n.Sentry.Integrations[g]=t[g])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function o(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function a(n){var t=u();if(!("console"in t))return n();var e=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(o[n]=e[n],e[n]=e[n].__sentry_original__)});var r=n();return Object.keys(o).forEach(function(n){e[n]=o[n]}),r}var s=u(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _;s.__SENTRY__.logger||(s.__SENTRY__.logger=new l),u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var o;t._state===_.PENDING&&(o=e,Boolean(o&&o.then&&"function"==typeof o.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(r-=1)&&e(i)}).then(null,o)})}else e([]);else o(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var o=this;return new n(function(n,r){o._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void r(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void r(n)}else r(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,o){var r,i;return e.then(function(n){i=!1,r=n,t&&t()},function(n){i=!0,r=n,t&&t()}).then(function(){i?o(r):n(r)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var p={nowSeconds:function(){return Date.now()/1e3}};var h=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),y=void 0===h?p:{nowSeconds:function(){return(h.timeOrigin+h.now())/1e3}},d=(p.nowSeconds.bind(p),y.nowSeconds.bind(y),function(){var n=u().performance;if(n){var t=n.now(),e=Date.now(),o=n.timeOrigin?Math.abs(n.timeOrigin+t-e):36e5,r=o<36e5,i=n.timing&&n.timing.navigationStart,c="number"==typeof i?Math.abs(i+t-e):36e5;(r||c<36e5)&&(o<=c&&n.timeOrigin)}}(),function(){function n(t){this.name=n.id,this._options=o({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,e){t(function(t,o){var r=e().getIntegration(n);return r&&(r._options.debugger,a(function(){r._options.stringify?(console.log(JSON.stringify(t,null,2)),o&&console.log(JSON.stringify(o,null,2))):(console.log(t),o&&console.log(o))})),t})},n.id="Debug",n}());for(var g in t.Debug=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,g)&&(n.Sentry.Integrations[g]=t[g])}(window); | ||
//# sourceMappingURL=debug.min.js.map |
@@ -32,26 +32,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/*! ***************************************************************************** | ||
@@ -125,2 +101,36 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -219,13 +229,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -525,6 +524,9 @@ /** SyncPromise internal states */ | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -538,7 +540,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -545,0 +555,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};function e(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}Object.defineProperty(t,"__esModule",{value:!0});var r={};function o(){return e()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}var i=function(n,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,c(r,e.prototype),r}(function(n,t){function e(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function a(n){var t=o();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var i=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),i}var u=o(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&a(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,_=u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);o();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,c){n.resolve(t).then(function(n){i[c]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var p=e()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=o().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?h:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}},E=(h.nowSeconds.bind(h),d.nowSeconds.bind(d),function(){var n=o().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}(),function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._Ember=t.Ember||o().Ember}return n.prototype.setupOnce=function(t,e){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(t){if(e().getIntegration(n)&&e().captureException(t,{originalException:t}),"function"==typeof o)o.call(r._Ember,t);else if(r._Ember.testing)throw t},this._Ember.RSVP.on("error",function(t){e().getIntegration(n)&&e().withScope(function(n){!function(n,t){try{return n instanceof t}catch(n){return!1}}(t,Error)?(n.setExtra("reason",t),e().captureMessage("Unhandled Promise error detected")):(n.setExtra("context","Unhandled Promise error detected"),e().captureException(t,{originalException:t}))})})}else _.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}());for(var y in t.Ember=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,y)&&(n.Sentry.Integrations[y]=t[y])}(window); | ||
!function(n){var e={};Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,o=n.call(this,e)||this;return o.message=e,o.name=t.prototype.constructor.name,r(o,t.prototype),o}(function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(n){var e=c();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var u=c(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&a(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&a(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&a(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,_=u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);c();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var e=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(l.RESOLVED,n)},this._reject=function(n){e._setResult(l.REJECTED,n)},this._setResult=function(n,t){var r;e._state===l.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==l.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===l.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){n.resolve(e).then(function(n){i[c]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var p=o()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=c().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?h:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}},E=(h.nowSeconds.bind(h),d.nowSeconds.bind(d),function(){var n=c().performance;if(n){var e=n.now(),t=Date.now(),r=n.timeOrigin?Math.abs(n.timeOrigin+e-t):36e5,o=r<36e5,i=n.timing&&n.timing.navigationStart,a="number"==typeof i?Math.abs(i+e-t):36e5;(o||a<36e5)&&(r<=a&&n.timeOrigin)}}(),function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._Ember=e.Ember||c().Ember}return n.prototype.setupOnce=function(e,t){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(e){if(t().getIntegration(n)&&t().captureException(e,{originalException:e}),"function"==typeof o)o.call(r._Ember,e);else if(r._Ember.testing)throw e},this._Ember.RSVP.on("error",function(e){t().getIntegration(n)&&t().withScope(function(n){!function(n,e){try{return n instanceof e}catch(n){return!1}}(e,Error)?(n.setExtra("reason",e),t().captureMessage("Unhandled Promise error detected")):(n.setExtra("context","Unhandled Promise error detected"),t().captureException(e,{originalException:e}))})})}else _.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}());for(var y in e.Ember=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,y)&&(n.Sentry.Integrations[y]=e[y])}(window); | ||
//# sourceMappingURL=ember.min.js.map |
@@ -243,26 +243,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -307,2 +283,36 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -668,13 +678,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -974,6 +973,9 @@ /** SyncPromise internal states */ | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -987,7 +989,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -994,0 +1004,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(n=c.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)u.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}function l(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var p={};function h(){return l()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:p}var y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,y(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function _(t){var n=h();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var d=h(),v="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.log(v+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.warn(v+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.error(v+"[Error]: "+t.join(" "))})},t}();d.__SENTRY__=d.__SENTRY__||{};var E=d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),m=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),b="<anonymous>";function w(t){if(o(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function O(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||b}catch(t){return b}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function j(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=O(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=O(n,t);if(i(o))return o;var a=w(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=j(u,a[u],e-1,r));return r.unmemoize(n),c}var S;h();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));!function(){function t(t){var n=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(S.RESOLVED,t)},this._reject=function(t){n._setResult(S.REJECTED,t)},this._setResult=function(t,e){var r;n._state===S.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==S.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===S.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var D={nowSeconds:function(){return Date.now()/1e3}};var N=l()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=h().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===N?D:{nowSeconds:function(){return(N.timeOrigin+N.now())/1e3}},P=(D.nowSeconds.bind(D),x.nowSeconds.bind(x),function(){var t=h().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var n=t.timing&&t.timing.navigationStart;"number"==typeof n&&Math.abs(n+t.now()-Date.now())<36e5||Date.now()}}(),function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return j(t,e,n)}))}catch(t){return"**non-serializable**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];o(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){E.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(n=c.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)u.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,l(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var h={};function y(){return p()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:h}function _(t){var n=y();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var d=y(),v="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.log(v+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.warn(v+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.error(v+"[Error]: "+t.join(" "))})},t}();d.__SENTRY__=d.__SENTRY__||{};var E=d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),m=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),b="<anonymous>";function w(t){if(o(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function O(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||b}catch(t){return b}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function j(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=O(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=O(n,t);if(i(o))return o;var a=w(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=j(u,a[u],e-1,r));return r.unmemoize(n),c}var S;y();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));!function(){function t(t){var n=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(S.RESOLVED,t)},this._reject=function(t){n._setResult(S.REJECTED,t)},this._setResult=function(t,e){var r;n._state===S.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==S.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===S.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var N={nowSeconds:function(){return Date.now()/1e3}};var D=p()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=y().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===D?N:{nowSeconds:function(){return(D.timeOrigin+D.now())/1e3}},P=(N.nowSeconds.bind(N),x.nowSeconds.bind(x),function(){var t=y().performance;if(t){var n=t.now(),e=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+n-e):36e5,o=r<36e5,i=t.timing&&t.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-e):36e5;(o||a<36e5)&&(r<=a&&t.timeOrigin)}}(),function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return j(t,e,n)}))}catch(t){return"**non-serializable**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];o(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){E.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(window); | ||
//# sourceMappingURL=extraerrordata.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function r(t,n,e,r){return new(e||(e=Promise))(function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(a,u)}c((r=r.apply(t,n||[])).next())})}function o(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=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=(o=a.trys).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=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"undefined"!=typeof Element&&c(t,Element)}function u(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function c(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function s(t){var n,e,r,o,i,a,u=t,c=[];if(!u||!u.tagName)return"";if(c.push(u.tagName.toLowerCase()),u.id&&c.push("#"+u.id),(n=u.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)c.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=u.getAttribute(r))&&c.push("["+r+'="'+o+'"]');return c.join("")}function l(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var h={};function p(){return l()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:h}var v=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,v(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function d(){var t=p(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var e=new Uint16Array(8);n.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var r=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function y(t){var n=p();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var g=p(),_="Sentry Logger ",b=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){g.console.log(_+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){g.console.warn(_+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&y(function(){g.console.error(_+"[Error]: "+t.join(" "))})},t}();g.__SENTRY__=g.__SENTRY__||{};var m=g.__SENTRY__.logger||(g.__SENTRY__.logger=new b),E=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}(),w="<anonymous>";function S(t){if(function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return c(t,Error)}}(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(u=t,"undefined"!=typeof Event&&c(u,Event)){var o=t,i={};i.type=o.type;try{i.target=a(o.target)?f(o.target):Object.prototype.toString.call(o.target)}catch(t){i.target="<unknown>"}try{i.currentTarget=a(o.currentTarget)?f(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&c(t,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}var u;return t}function x(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":u(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+function(t){try{return t&&"function"==typeof t&&t.name||w}catch(t){return w}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function O(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new E),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=x(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=x(n,t);if(i(o))return o;var a=S(n),u=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[c]=O(c,a[c],e-1,r));return r.unmemoize(n),u}function j(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return O(t,e,n)}))}catch(t){return"**non-serializable**"}}var N;p();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(N||(N={}));!function(){function t(t){var n=this;this._state=N.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(N.RESOLVED,t)},this._reject=function(t){n._setResult(N.REJECTED,t)},this._setResult=function(t,e){var r;n._state===N.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==N.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===N.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===N.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var D={nowSeconds:function(){return Date.now()/1e3}};var P=l()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=p().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),k=void 0===P?D:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},R=(D.nowSeconds.bind(D),k.nowSeconds.bind(k),function(){var t=p().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var n=t.timing&&t.timing.navigationStart;"number"==typeof n&&Math.abs(n+t.now()-Date.now())<36e5||Date.now()}}(),require("localforage")),T=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.global=p(),this.maxStoredEvents=n.maxStoredEvents||30,this.offlineEventStore=R.createInstance({name:"sentry/offlineEventStore"})}return t.prototype.setupOnce=function(n,e){var r=this;this.hub=e(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){r._sendEvents().catch(function(){m.warn("could not send cached events")})}),n(function(n){return r.hub&&r.hub.getIntegration(t)&&"navigator"in r.global&&"onLine"in r.global.navigator&&!r.global.navigator.onLine?(r._cacheEvent(n).then(function(t){return r._enforceMaxEvents()}).catch(function(t){m.warn("could not cache event while offline")}),null):n}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){m.warn("could not send cached events")})},t.prototype._cacheEvent=function(t){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.setItem(d(),j(t))]})})},t.prototype._enforceMaxEvents=function(){return r(this,void 0,void 0,function(){var t,n=this;return o(this,function(e){return t=[],[2,this.offlineEventStore.iterate(function(n,e,r){t.push({cacheKey:e,event:n})}).then(function(){return n._purgeEvents(t.sort(function(t,n){return(n.event.timestamp||0)-(t.event.timestamp||0)}).slice(n.maxStoredEvents<t.length?n.maxStoredEvents:t.length).map(function(t){return t.cacheKey}))}).catch(function(t){m.warn("could not enforce max events")})]})})},t.prototype._purgeEvent=function(t){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.removeItem(t)]})})},t.prototype._purgeEvents=function(t){return r(this,void 0,void 0,function(){var n=this;return o(this,function(e){return[2,Promise.all(t.map(function(t){return n._purgeEvent(t)})).then()]})})},t.prototype._sendEvents=function(){return r(this,void 0,void 0,function(){var t=this;return o(this,function(n){return[2,this.offlineEventStore.iterate(function(n,e,r){t.hub?(t.hub.captureEvent(n),t._purgeEvent(e).catch(function(t){m.warn("could not purge event from cache")})):m.warn("no hub found - could not send cached event")})]})})},t.id="Offline",t}();for(var I in n.Offline=T,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,I)&&(t.Sentry.Integrations[I]=n[I])}(window); | ||
!function(e){var n={};Object.defineProperty(n,"__esModule",{value:!0});var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function r(e,n,t,r){return new(t||(t=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function u(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new t(function(n){n(e.value)}).then(a,u)}c((r=r.apply(e,n||[])).next())})}function o(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=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=(o=a.trys).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=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function i(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function a(e){return"undefined"!=typeof Element&&c(e,Element)}function u(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function c(e,n){try{return e instanceof n}catch(e){return!1}}function f(e){try{for(var n=e,t=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(n))||r>1&&o+t.length*i+a.length>=80);)t.push(a),o+=a.length,n=n.parentNode;return t.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(e){var n,t,r,o,i,a,u=e,c=[];if(!u||!u.tagName)return"";if(c.push(u.tagName.toLowerCase()),u.id&&c.push("#"+u.id),(n=u.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(t=n.split(/\s+/),i=0;i<t.length;i++)c.push("."+t[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=u.getAttribute(r))&&c.push("["+r+'="'+o+'"]');return c.join("")}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,n){return e.__proto__=n,e}:function(e,n){for(var t in n)e.hasOwnProperty(t)||(e[t]=n[t]);return e});!function(e){function n(n){var t=this.constructor,r=e.call(this,n)||this;return r.message=n,r.name=t.prototype.constructor.name,l(r,t.prototype),r}(function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,e)}(Error);function d(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var v={};function h(){return d()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:v}function p(){var e=h(),n=e.crypto||e.msCrypto;if(void 0!==n&&n.getRandomValues){var t=new Uint16Array(8);n.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var r=function(e){for(var n=e.toString(16);n.length<4;)n="0"+n;return n};return r(t[0])+r(t[1])+r(t[2])+r(t[3])+r(t[4])+r(t[5])+r(t[6])+r(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)})}function y(e){var n=h();if(!("console"in n))return e();var t=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(e){e in n.console&&t[e].__sentry_original__&&(r[e]=t[e],t[e]=t[e].__sentry_original__)});var o=e();return Object.keys(r).forEach(function(e){t[e]=r[e]}),o}var b=h(),g="Sentry Logger ",m=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=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&y(function(){b.console.log(g+"[Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&y(function(){b.console.warn(g+"[Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&y(function(){b.console.error(g+"[Error]: "+e.join(" "))})},e}();b.__SENTRY__=b.__SENTRY__||{};var _=b.__SENTRY__.logger||(b.__SENTRY__.logger=new m),w=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 n=0;n<this._inner.length;n++){if(this._inner[n]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===e){this._inner.splice(n,1);break}},e}(),E="<anonymous>";function S(e){if(function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return c(e,Error)}}(e)){var n=e,t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}if(u=e,"undefined"!=typeof Event&&c(u,Event)){var o=e,i={};i.type=o.type;try{i.target=a(o.target)?f(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=a(o.currentTarget)?f(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&c(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}var u;return e}function I(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":u(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+function(e){try{return e&&"function"==typeof e&&e.name||E}catch(e){return E}}(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function j(e,n,t,r){if(void 0===t&&(t=1/0),void 0===r&&(r=new w),0===t)return function(e){var n=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var t=I(e);return i(t)?t:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=I(n,e);if(i(o))return o;var a=S(n),u=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[c]=j(c,a[c],t-1,r));return r.unmemoize(n),u}function N(e,n){try{return JSON.parse(JSON.stringify(e,function(e,t){return j(e,t,n)}))}catch(e){return"**non-serializable**"}}var x;h();!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(x||(x={}));!function(){function e(e){var n=this;this._state=x.PENDING,this._handlers=[],this._resolve=function(e){n._setResult(x.RESOLVED,e)},this._reject=function(e){n._setResult(x.REJECTED,e)},this._setResult=function(e,t){var r;n._state===x.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(n._resolve,n._reject):(n._state=e,n._value=t,n._executeHandlers()))},this._attachHandler=function(e){n._handlers=n._handlers.concat(e),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==x.PENDING){var e=n._handlers.slice();n._handlers=[],e.forEach(function(e){e.done||(n._state===x.RESOLVED&&e.onfulfilled&&e.onfulfilled(n._value),n._state===x.REJECTED&&e.onrejected&&e.onrejected(n._value),e.done=!0)})}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}e.resolve=function(n){return new e(function(e){e(n)})},e.reject=function(n){return new e(function(e,t){t(n)})},e.all=function(n){return new e(function(t,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){e.resolve(n).then(function(e){i[a]=e,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},e.prototype.then=function(n,t){var r=this;return new e(function(e,o){r._attachHandler({done:!1,onfulfilled:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else e(t)},onrejected:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else o(n)}})})},e.prototype.catch=function(e){return this.then(function(e){return e},e)},e.prototype.finally=function(n){var t=this;return new e(function(e,r){var o,i;return t.then(function(e){i=!1,o=e,n&&n()},function(e){i=!0,o=e,n&&n()}).then(function(){i?r(o):e(o)})})},e.prototype.toString=function(){return"[object SyncPromise]"}}();var O={nowSeconds:function(){return Date.now()/1e3}};var D=d()?function(){try{return(e=module,n="perf_hooks",e.require(n)).performance}catch(e){return}var e,n}():function(){var e=h().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),R=void 0===D?O:{nowSeconds:function(){return(D.timeOrigin+D.now())/1e3}},A=(O.nowSeconds.bind(O),R.nowSeconds.bind(R),function(){var e=h().performance;if(e){var n=e.now(),t=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-t):36e5,o=r<36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-t):36e5;(o||a<36e5)&&(r<=a&&e.timeOrigin)}}(),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function k(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var T=function(e,n){return e(n={exports:{}},n.exports),n.exports}(function(e,n){e.exports=function e(n,t,r){function o(a,u){if(!t[a]){if(!n[a]){var c=k;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=t[a]={exports:{}};n[a][0].call(s.exports,function(e){var t=n[a][1][e];return o(t||e)},s,s.exports,e,n,t,r)}return t[a].exports}for(var i=k,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,n,t){(function(e){var t,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(s),u=e.document.createTextNode("");a.observe(u,{characterData:!0}),t=function(){u.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var n=e.document.createElement("script");n.onreadystatechange=function(){s(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},e.document.documentElement.appendChild(n)}:function(){setTimeout(s,0)};else{var c=new e.MessageChannel;c.port1.onmessage=s,t=function(){c.port2.postMessage(0)}}var f=[];function s(){var e,n;r=!0;for(var t=f.length;t;){for(n=f,f=[],e=-1;++e<t;)n[e]();t=f.length}r=!1}n.exports=function(e){1!==f.push(e)||r||t()}}).call(this,void 0!==A?A:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,n,t){var r=e(1);function o(){}var i={},a=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function f(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==o&&v(this,e)}function s(e,n,t){this.promise=e,"function"==typeof n&&(this.onFulfilled=n,this.callFulfilled=this.otherCallFulfilled),"function"==typeof t&&(this.onRejected=t,this.callRejected=this.otherCallRejected)}function l(e,n,t){r(function(){var r;try{r=n(t)}catch(n){return i.reject(e,n)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)})}function d(e){var n=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof n)return function(){n.apply(e,arguments)}}function v(e,n){var t=!1;function r(n){t||(t=!0,i.reject(e,n))}function o(n){t||(t=!0,i.resolve(e,n))}var a=h(function(){n(o,r)});"error"===a.status&&r(a.value)}function h(e,n){var t={};try{t.value=e(n),t.status="success"}catch(e){t.status="error",t.value=e}return t}n.exports=f,f.prototype.catch=function(e){return this.then(null,e)},f.prototype.then=function(e,n){if("function"!=typeof e&&this.state===u||"function"!=typeof n&&this.state===a)return this;var t=new this.constructor(o);if(this.state!==c){var r=this.state===u?e:n;l(t,r,this.outcome)}else this.queue.push(new s(t,e,n));return t},s.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},s.prototype.otherCallFulfilled=function(e){l(this.promise,this.onFulfilled,e)},s.prototype.callRejected=function(e){i.reject(this.promise,e)},s.prototype.otherCallRejected=function(e){l(this.promise,this.onRejected,e)},i.resolve=function(e,n){var t=h(d,n);if("error"===t.status)return i.reject(e,t.value);var r=t.value;if(r)v(e,r);else{e.state=u,e.outcome=n;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(n)}return e},i.reject=function(e,n){e.state=a,e.outcome=n;for(var t=-1,r=e.queue.length;++t<r;)e.queue[t].callRejected(n);return e},f.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},f.reject=function(e){var n=new this(o);return i.reject(n,e)},f.all=function(e){var n=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var a=new Array(t),u=0,c=-1,f=new this(o);++c<t;)s(e[c],c);return f;function s(e,o){n.resolve(e).then(function(e){a[o]=e,++u!==t||r||(r=!0,i.resolve(f,a))},function(e){r||(r=!0,i.reject(f,e))})}},f.race=function(e){var n=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var a,u=-1,c=new this(o);++u<t;)a=e[u],n.resolve(a).then(function(e){r||(r=!0,i.resolve(c,e))},function(e){r||(r=!0,i.reject(c,e))});return c}},{1:1}],3:[function(e,n,t){(function(n){"function"!=typeof n.Promise&&(n.Promise=e(2))}).call(this,void 0!==A?A:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,n,t){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},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,n){e=e||[],n=n||{};try{return new Blob(e,n)}catch(i){if("TypeError"!==i.name)throw i;for(var t="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,r=new t,o=0;o<e.length;o+=1)r.append(e[o]);return r.getBlob(n.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function u(e,n){n&&e.then(function(e){n(null,e)},function(e){n(e)})}function c(e,n,t){"function"==typeof n&&e.then(n),"function"==typeof t&&e.catch(t)}function f(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function s(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var l="local-forage-detect-blob-support",d=void 0,v={},h=Object.prototype.toString,p="readonly",y="readwrite";function b(e){return"boolean"==typeof d?a.resolve(d):function(e){return new a(function(n){var t=e.transaction(l,y),r=i([""]);t.objectStore(l).put(r,"key"),t.onabort=function(e){e.preventDefault(),e.stopPropagation(),n(!1)},t.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),t=navigator.userAgent.match(/Edge\//);n(t||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return d=e})}function g(e){var n=v[e.name],t={};t.promise=new a(function(e,n){t.resolve=e,t.reject=n}),n.deferredOperations.push(t),n.dbReady?n.dbReady=n.dbReady.then(function(){return t.promise}):n.dbReady=t.promise}function m(e){var n=v[e.name],t=n.deferredOperations.pop();if(t)return t.resolve(),t.promise}function _(e,n){var t=v[e.name],r=t.deferredOperations.pop();if(r)return r.reject(n),r.promise}function w(e,n){return new a(function(t,r){if(v[e.name]=v[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!n)return t(e.db);g(e),e.db.close()}var i=[e.name];n&&i.push(e.version);var a=o.open.apply(o,i);n&&(a.onupgradeneeded=function(n){var t=a.result;try{t.createObjectStore(e.storeName),n.oldVersion<=1&&t.createObjectStore(l)}catch(t){if("ConstraintError"!==t.name)throw t;console.warn('The database "'+e.name+'" has been upgraded from version '+n.oldVersion+" to version "+n.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){t(a.result),m(e)}})}function E(e){return w(e,!1)}function S(e){return w(e,!0)}function I(e,n){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version!==n&&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||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function j(e){var n=function(e){for(var n=e.length,t=new ArrayBuffer(n),r=new Uint8Array(t),o=0;o<n;o++)r[o]=e.charCodeAt(o);return t}(atob(e.data));return i([n],{type:e.type})}function N(e){return e&&e.__local_forage_encoded_blob}function x(e){var n=this,t=n._initReady().then(function(){var e=v[n._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return c(t,e,e),t}function O(e,n,t,r){void 0===r&&(r=1);try{var o=e.db.transaction(e.storeName,n);t(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),S(e)}).then(function(){return function(e){g(e);for(var n=v[e.name],t=n.forages,r=0;r<t.length;r++){var o=t[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,E(e).then(function(n){return e.db=n,I(e)?S(e):n}).then(function(r){e.db=n.db=r;for(var o=0;o<t.length;o++)t[o]._dbInfo.db=r}).catch(function(n){throw _(e,n),n})}(e).then(function(){O(e,n,t,r-1)})}).catch(t);t(o)}}var D={_driver:"asyncStorage",_initStorage:function(e){var n=this,t={db:null};if(e)for(var r in e)t[r]=e[r];var o=v[t.name];o||(o={forages:[],db:null,dbReady:null,deferredOperations:[]},v[t.name]=o),o.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=x);var i=[];function u(){return a.resolve()}for(var c=0;c<o.forages.length;c++){var f=o.forages[c];f!==n&&i.push(f._initReady().catch(u))}var s=o.forages.slice(0);return a.all(i).then(function(){return t.db=o.db,E(t)}).then(function(e){return t.db=e,I(t,n._defaultConfig.version)?S(t):e}).then(function(e){t.db=o.db=e,n._dbInfo=t;for(var r=0;r<s.length;r++){var i=s[r];i!==n&&(i._dbInfo.db=t.db,i._dbInfo.version=t.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),n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||n)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,n){var t=this,r=new a(function(n,r){t.ready().then(function(){O(t._dbInfo,p,function(o,i){if(o)return r(o);try{var a=i.objectStore(t._dbInfo.storeName),u=a.openCursor(),c=1;u.onsuccess=function(){var t=u.result;if(t){var r=t.value;N(r)&&(r=j(r));var o=e(r,t.key,c++);void 0!==o?n(o):t.continue()}else n()},u.onerror=function(){r(u.error)}}catch(e){r(e)}})}).catch(r)});return u(r,n),r},getItem:function(e,n){var t=this;e=f(e);var r=new a(function(n,r){t.ready().then(function(){O(t._dbInfo,p,function(o,i){if(o)return r(o);try{var a=i.objectStore(t._dbInfo.storeName),u=a.get(e);u.onsuccess=function(){var e=u.result;void 0===e&&(e=null),N(e)&&(e=j(e)),n(e)},u.onerror=function(){r(u.error)}}catch(e){r(e)}})}).catch(r)});return u(r,n),r},setItem:function(e,n,t){var r=this;e=f(e);var o=new a(function(t,o){var i;r.ready().then(function(){return i=r._dbInfo,"[object Blob]"===h.call(n)?b(i.db).then(function(e){return e?n:(t=n,new a(function(e,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:t.type})},r.readAsBinaryString(t)}));var t}):n}).then(function(n){O(r._dbInfo,y,function(i,a){if(i)return o(i);try{var u=a.objectStore(r._dbInfo.storeName);null===n&&(n=void 0);var c=u.put(n,e);a.oncomplete=function(){void 0===n&&(n=null),t(n)},a.onabort=a.onerror=function(){var e=c.error?c.error:c.transaction.error;o(e)}}catch(e){o(e)}})}).catch(o)});return u(o,t),o},removeItem:function(e,n){var t=this;e=f(e);var r=new a(function(n,r){t.ready().then(function(){O(t._dbInfo,y,function(o,i){if(o)return r(o);try{var a=i.objectStore(t._dbInfo.storeName),u=a.delete(e);i.oncomplete=function(){n()},i.onerror=function(){r(u.error)},i.onabort=function(){var e=u.error?u.error:u.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return u(r,n),r},clear:function(e){var n=this,t=new a(function(e,t){n.ready().then(function(){O(n._dbInfo,y,function(r,o){if(r)return t(r);try{var i=o.objectStore(n._dbInfo.storeName),a=i.clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=a.error?a.error:a.transaction.error;t(e)}}catch(e){t(e)}})}).catch(t)});return u(t,e),t},length:function(e){var n=this,t=new a(function(e,t){n.ready().then(function(){O(n._dbInfo,p,function(r,o){if(r)return t(r);try{var i=o.objectStore(n._dbInfo.storeName),a=i.count();a.onsuccess=function(){e(a.result)},a.onerror=function(){t(a.error)}}catch(e){t(e)}})}).catch(t)});return u(t,e),t},key:function(e,n){var t=this,r=new a(function(n,r){e<0?n(null):t.ready().then(function(){O(t._dbInfo,p,function(o,i){if(o)return r(o);try{var a=i.objectStore(t._dbInfo.storeName),u=!1,c=a.openKeyCursor();c.onsuccess=function(){var t=c.result;t?0===e?n(t.key):u?n(t.key):(u=!0,t.advance(e)):n(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});return u(r,n),r},keys:function(e){var n=this,t=new a(function(e,t){n.ready().then(function(){O(n._dbInfo,p,function(r,o){if(r)return t(r);try{var i=o.objectStore(n._dbInfo.storeName),a=i.openKeyCursor(),u=[];a.onsuccess=function(){var n=a.result;n?(u.push(n.key),n.continue()):e(u)},a.onerror=function(){t(a.error)}}catch(e){t(e)}})}).catch(t)});return u(t,e),t},dropInstance:function(e,n){n=s.apply(this,arguments);var t,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var i=e.name===r.name&&this._dbInfo.db,c=i?a.resolve(this._dbInfo.db):E(e).then(function(n){var t=v[e.name],r=t.forages;t.db=n;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=n;return n});t=e.storeName?c.then(function(n){if(n.objectStoreNames.contains(e.storeName)){var t=n.version+1;g(e);var r=v[e.name],i=r.forages;n.close();for(var u=0;u<i.length;u++){var c=i[u];c._dbInfo.db=null,c._dbInfo.version=t}var f=new a(function(n,r){var i=o.open(e.name,t);i.onerror=function(e){var n=i.result;n.close(),r(e)},i.onupgradeneeded=function(){var n=i.result;n.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),n(e)}});return f.then(function(e){r.db=e;for(var n=0;n<i.length;n++){var t=i[n];t._dbInfo.db=e,m(t._dbInfo)}}).catch(function(n){throw(_(e,n)||a.resolve()).catch(function(){}),n})}}):c.then(function(n){g(e);var t=v[e.name],r=t.forages;n.close();for(var i=0;i<r.length;i++){var u=r[i];u._dbInfo.db=null}var c=new a(function(n,t){var r=o.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var n=r.result;n&&n.close(),t(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),n(e)}});return c.then(function(e){t.db=e;for(var n=0;n<r.length;n++){var o=r[n];m(o._dbInfo)}}).catch(function(n){throw(_(e,n)||a.resolve()).catch(function(){}),n})})}else t=a.reject("Invalid arguments");return u(t,n),t}},R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="~~local_forage_type~",k=/^~~local_forage_type~([^~]+)~/,T="__lfsc__:",C=T.length,B="arbf",L="blob",P="si08",M="ui08",F="uic8",z="si16",W="si32",U="ur16",q="ui32",J="fl32",G="fl64",H=C+B.length,V=Object.prototype.toString;function K(e){var n,t,r,o,i,a=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var f=new ArrayBuffer(a),s=new Uint8Array(f);for(n=0;n<u;n+=4)t=R.indexOf(e[n]),r=R.indexOf(e[n+1]),o=R.indexOf(e[n+2]),i=R.indexOf(e[n+3]),s[c++]=t<<2|r>>4,s[c++]=(15&r)<<4|o>>2,s[c++]=(3&o)<<6|63&i;return f}function Y(e){var n,t=new Uint8Array(e),r="";for(n=0;n<t.length;n+=3)r+=R[t[n]>>2],r+=R[(3&t[n])<<4|t[n+1]>>4],r+=R[(15&t[n+1])<<2|t[n+2]>>6],r+=R[63&t[n+2]];return t.length%3==2?r=r.substring(0,r.length-1)+"=":t.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var Q={serialize:function(e,n){var t="";if(e&&(t=V.call(e)),e&&("[object ArrayBuffer]"===t||e.buffer&&"[object ArrayBuffer]"===V.call(e.buffer))){var r,o=T;e instanceof ArrayBuffer?(r=e,o+=B):(r=e.buffer,"[object Int8Array]"===t?o+=P:"[object Uint8Array]"===t?o+=M:"[object Uint8ClampedArray]"===t?o+=F:"[object Int16Array]"===t?o+=z:"[object Uint16Array]"===t?o+=U:"[object Int32Array]"===t?o+=W:"[object Uint32Array]"===t?o+=q:"[object Float32Array]"===t?o+=J:"[object Float64Array]"===t?o+=G:n(new Error("Failed to get type for BinaryArray"))),n(o+Y(r))}else if("[object Blob]"===t){var i=new FileReader;i.onload=function(){var t=A+e.type+"~"+Y(this.result);n(T+L+t)},i.readAsArrayBuffer(e)}else try{n(JSON.stringify(e))}catch(t){console.error("Couldn't convert value into a JSON string: ",e),n(null,t)}},deserialize:function(e){if(e.substring(0,C)!==T)return JSON.parse(e);var n,t=e.substring(H),r=e.substring(C,H);if(r===L&&k.test(t)){var o=t.match(k);n=o[1],t=t.substring(o[0].length)}var a=K(t);switch(r){case B:return a;case L:return i([a],{type:n});case P:return new Int8Array(a);case M:return new Uint8Array(a);case F:return new Uint8ClampedArray(a);case z:return new Int16Array(a);case U:return new Uint16Array(a);case W:return new Int32Array(a);case q:return new Uint32Array(a);case J:return new Float32Array(a);case G:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:K,bufferToString:Y};function X(e,n,t,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,r)}function Z(e,n,t,r,o,i){e.executeSql(t,r,o,function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],function(e,u){u.rows.length?i(e,a):X(e,n,function(){e.executeSql(t,r,o,i)},i)},i):i(e,a)},i)}var $={_driver:"webSQLStorage",_initStorage:function(e){var n=this,t={db:null};if(e)for(var r in e)t[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new a(function(e,r){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(e){return r(e)}t.db.transaction(function(o){X(o,t,function(){n._dbInfo=t,e()},function(e,n){r(n)})},r)});return t.serializer=Q,o},_support:"function"==typeof openDatabase,iterate:function(e,n){var t=this,r=new a(function(n,r){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(t){Z(t,o,"SELECT * FROM "+o.storeName,[],function(t,r){for(var i=r.rows,a=i.length,u=0;u<a;u++){var c=i.item(u),f=c.value;if(f&&(f=o.serializer.deserialize(f)),void 0!==(f=e(f,c.key,u+1)))return void n(f)}n()},function(e,n){r(n)})})}).catch(r)});return u(r,n),r},getItem:function(e,n){var t=this;e=f(e);var r=new a(function(n,r){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(t){Z(t,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],function(e,t){var r=t.rows.length?t.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),n(r)},function(e,n){r(n)})})}).catch(r)});return u(r,n),r},setItem:function(e,n,t){return function e(n,t,r,o){var i=this;n=f(n);var c=new a(function(a,u){i.ready().then(function(){void 0===t&&(t=null);var c=t,f=i._dbInfo;f.serializer.serialize(t,function(t,s){s?u(s):f.db.transaction(function(e){Z(e,f,"INSERT OR REPLACE INTO "+f.storeName+" (key, value) VALUES (?, ?)",[n,t],function(){a(c)},function(e,n){u(n)})},function(t){if(t.code===t.QUOTA_ERR){if(o>0)return void a(e.apply(i,[n,c,r,o-1]));u(t)}})})}).catch(u)});return u(c,r),c}.apply(this,[e,n,t,1])},removeItem:function(e,n){var t=this;e=f(e);var r=new a(function(n,r){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(t){Z(t,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],function(){n()},function(e,n){r(n)})})}).catch(r)});return u(r,n),r},clear:function(e){var n=this,t=new a(function(e,t){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(n){Z(n,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,n){t(n)})})}).catch(t)});return u(t,e),t},length:function(e){var n=this,t=new a(function(e,t){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(n){Z(n,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(n,t){var r=t.rows.item(0).c;e(r)},function(e,n){t(n)})})}).catch(t)});return u(t,e),t},key:function(e,n){var t=this,r=new a(function(n,r){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(t){Z(t,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,t){var r=t.rows.length?t.rows.item(0).key:null;n(r)},function(e,n){r(n)})})}).catch(r)});return u(r,n),r},keys:function(e){var n=this,t=new a(function(e,t){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(n){Z(n,r,"SELECT key FROM "+r.storeName,[],function(n,t){for(var r=[],o=0;o<t.rows.length;o++)r.push(t.rows.item(o).key);e(r)},function(e,n){t(n)})})}).catch(t)});return u(t,e),t},dropInstance:function(e,n){n=s.apply(this,arguments);var t=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var r,o=this;return u(r=e.name?new a(function(n){var r;r=e.name===t.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?n({db:r,storeNames:[e.storeName]}):n(function(e){return new a(function(n,t){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(t,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);n({db:e,storeNames:o})},function(e,n){t(n)})},function(e){t(e)})})}(r))}).then(function(e){return new a(function(n,t){e.db.transaction(function(r){function o(e){return new a(function(n,t){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){n()},function(e,n){t(n)})})}for(var i=[],u=0,c=e.storeNames.length;u<c;u++)i.push(o(e.storeNames[u]));a.all(i).then(function(){n()}).catch(function(e){t(e)})},function(e){t(e)})})}):a.reject("Invalid arguments"),n),r}};function ee(e,n){var t=e.name+"/";return e.storeName!==n.storeName&&(t+=e.storeName+"/"),t}function ne(){return!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0}var te={_driver:"localStorageWrapper",_initStorage:function(e){var n={};if(e)for(var t in e)n[t]=e[t];return n.keyPrefix=ee(e,this._defaultConfig),ne()?(this._dbInfo=n,n.serializer=Q,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,n){var t=this,r=t.ready().then(function(){for(var n=t._dbInfo,r=n.keyPrefix,o=r.length,i=localStorage.length,a=1,u=0;u<i;u++){var c=localStorage.key(u);if(0===c.indexOf(r)){var f=localStorage.getItem(c);if(f&&(f=n.serializer.deserialize(f)),void 0!==(f=e(f,c.substring(o),a++)))return f}}});return u(r,n),r},getItem:function(e,n){var t=this;e=f(e);var r=t.ready().then(function(){var n=t._dbInfo,r=localStorage.getItem(n.keyPrefix+e);return r&&(r=n.serializer.deserialize(r)),r});return u(r,n),r},setItem:function(e,n,t){var r=this;e=f(e);var o=r.ready().then(function(){void 0===n&&(n=null);var t=n;return new a(function(o,i){var a=r._dbInfo;a.serializer.serialize(n,function(n,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,n),o(t)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}})})});return u(o,t),o},removeItem:function(e,n){var t=this;e=f(e);var r=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return u(r,n),r},clear:function(e){var n=this,t=n.ready().then(function(){for(var e=n._dbInfo.keyPrefix,t=localStorage.length-1;t>=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}});return u(t,e),t},length:function(e){var n=this.keys().then(function(e){return e.length});return u(n,e),n},key:function(e,n){var t=this,r=t.ready().then(function(){var n,r=t._dbInfo;try{n=localStorage.key(e)}catch(e){n=null}return n&&(n=n.substring(r.keyPrefix.length)),n});return u(r,n),r},keys:function(e){var n=this,t=n.ready().then(function(){for(var e=n._dbInfo,t=localStorage.length,r=[],o=0;o<t;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r});return u(t,e),t},dropInstance:function(e,n){if(n=s.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var r,o=this;return u(r=e.name?new a(function(n){e.storeName?n(ee(e,o._defaultConfig)):n(e.name+"/")}).then(function(e){for(var n=localStorage.length-1;n>=0;n--){var t=localStorage.key(n);0===t.indexOf(e)&&localStorage.removeItem(t)}}):a.reject("Invalid arguments"),n),r}},re=function(e,n){for(var t=e.length,r=0;r<t;){if((o=e[r])===(i=n)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;r++}var o,i;return!1},oe=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ie={},ae={},ue={INDEXEDDB:D,WEBSQL:$,LOCALSTORAGE:te},ce=[ue.INDEXEDDB._driver,ue.WEBSQL._driver,ue.LOCALSTORAGE._driver],fe=["dropInstance"],se=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(fe),le={description:"",driver:ce.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function de(e,n){e[n]=function(){var t=arguments;return e.ready().then(function(){return e[n].apply(e,t)})}}function ve(){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var t in n)n.hasOwnProperty(t)&&(oe(n[t])?arguments[0][t]=n[t].slice():arguments[0][t]=n[t])}return arguments[0]}var he=function(){function e(n){for(var t in function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),ue)if(ue.hasOwnProperty(t)){var r=ue[t],o=r._driver;this[t]=o,ie[o]||this.defineDriver(r)}this._defaultConfig=ve({},le),this._config=ve({},this._defaultConfig,n),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 n in e){if("storeName"===n&&(e[n]=e[n].replace(/\W/g,"_")),"version"===n&&"number"!=typeof e[n])return new Error("Database version must be a number.");this._config[n]=e[n]}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,n,t){var r=new a(function(n,t){try{var r=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void t(o);for(var i=se.concat("_initStorage"),c=0,f=i.length;c<f;c++){var s=i[c],l=!re(fe,s);if((l||e[s])&&"function"!=typeof e[s])return void t(o)}!function(){for(var n=function(e){return function(){var n=new Error("Method "+e+" is not implemented by the current driver"),t=a.reject(n);return u(t,arguments[arguments.length-1]),t}},t=0,r=fe.length;t<r;t++){var o=fe[t];e[o]||(e[o]=n(o))}}();var d=function(t){ie[r]&&console.info("Redefining LocalForage driver: "+r),ie[r]=e,ae[r]=t,n()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,t):d(!!e._support):d(!0)}catch(e){t(e)}});return c(r,n,t),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,n,t){var r=ie[e]?a.resolve(ie[e]):a.reject(new Error("Driver not found."));return c(r,n,t),r},e.prototype.getSerializer=function(e){var n=a.resolve(Q);return c(n,e),n},e.prototype.ready=function(e){var n=this,t=n._driverSet.then(function(){return null===n._ready&&(n._ready=n._initDriver()),n._ready});return c(t,e,e),t},e.prototype.setDriver=function(e,n,t){var r=this;oe(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function u(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}var f=null!==this._driverSet?this._driverSet.catch(function(){return a.resolve()}):a.resolve();return this._driverSet=f.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 n=0;return function t(){for(;n<e.length;){var o=e[n];return n++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(u).catch(t)}i();var c=new Error("No available storage method found.");return r._driverSet=a.reject(c),r._driverSet}()}}(o)})}).catch(function(){i();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet}),c(this._driverSet,n,t),this._driverSet},e.prototype.supports=function(e){return!!ae[e]},e.prototype._extend=function(e){ve(this,e)},e.prototype._getSupportedDrivers=function(e){for(var n=[],t=0,r=e.length;t<r;t++){var o=e[t];this.supports(o)&&n.push(o)}return n},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,n=se.length;e<n;e++)de(this,se[e])},e.prototype.createInstance=function(n){return new e(n)},e}(),pe=new he;n.exports=pe},{3:3}]},{},[4])(4)}),C=function(){function e(n){void 0===n&&(n={}),this.name=e.id,this.global=h(),this.maxStoredEvents=n.maxStoredEvents||30,this.offlineEventStore=T.createInstance({name:"sentry/offlineEventStore"})}return e.prototype.setupOnce=function(n,t){var r=this;this.hub=t(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){r._sendEvents().catch(function(){_.warn("could not send cached events")})}),n(function(n){return r.hub&&r.hub.getIntegration(e)&&"navigator"in r.global&&"onLine"in r.global.navigator&&!r.global.navigator.onLine?(r._cacheEvent(n).then(function(e){return r._enforceMaxEvents()}).catch(function(e){_.warn("could not cache event while offline")}),null):n}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){_.warn("could not send cached events")})},e.prototype._cacheEvent=function(e){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.setItem(p(),N(e))]})})},e.prototype._enforceMaxEvents=function(){return r(this,void 0,void 0,function(){var e,n=this;return o(this,function(t){return e=[],[2,this.offlineEventStore.iterate(function(n,t,r){e.push({cacheKey:t,event:n})}).then(function(){return n._purgeEvents(e.sort(function(e,n){return(n.event.timestamp||0)-(e.event.timestamp||0)}).slice(n.maxStoredEvents<e.length?n.maxStoredEvents:e.length).map(function(e){return e.cacheKey}))}).catch(function(e){_.warn("could not enforce max events")})]})})},e.prototype._purgeEvent=function(e){return r(this,void 0,void 0,function(){return o(this,function(n){return[2,this.offlineEventStore.removeItem(e)]})})},e.prototype._purgeEvents=function(e){return r(this,void 0,void 0,function(){var n=this;return o(this,function(t){return[2,Promise.all(e.map(function(e){return n._purgeEvent(e)})).then()]})})},e.prototype._sendEvents=function(){return r(this,void 0,void 0,function(){var e=this;return o(this,function(n){return[2,this.offlineEventStore.iterate(function(n,t,r){e.hub?(e.hub.captureEvent(n),e._purgeEvent(t).catch(function(e){_.warn("could not purge event from cache")})):_.warn("no hub found - could not send cached event")})]})})},e.id="Offline",e}();for(var B in n.Offline=C,e.Sentry=e.Sentry||{},e.Sentry.Integrations=e.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,B)&&(e.Sentry.Integrations[B]=n[B])}(window); | ||
//# sourceMappingURL=offline.min.js.map |
@@ -56,26 +56,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -120,2 +96,36 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -224,13 +234,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
@@ -530,6 +529,9 @@ /** SyncPromise internal states */ | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -543,7 +545,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -550,0 +560,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var o={};function i(){return r()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,a(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function c(n){var t=i();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=i(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);var l;i();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var h,p=r()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=i().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?_:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}};_.nowSeconds.bind(_),d.nowSeconds.bind(d),function(){var n=i().performance;if(n){if(n.timeOrigin&&Math.abs(n.timeOrigin+n.now()-Date.now())<36e5)return n.timeOrigin;var t=n.timing&&n.timing.navigationStart;"number"==typeof t&&Math.abs(t+n.now()-Date.now())<36e5||Date.now()}}();!function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(h||(h={}));var y=function(){function n(t){void 0===t&&(t={types:[h.Crash,h.Deprecation,h.Intervention]}),this._options=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in i()&&(this._getCurrentHub=t,new(i().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},n.prototype.handler=function(t){var e,r,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(n)){var i=function(n){o.withScope(function(t){t.setExtra("url",n.url);var e="ReportingObserver ["+n.type+"]",r="No details available";if(n.body){var i,a={};for(var c in n.body)a[c]=n.body[c];if(t.setExtra("body",a),n.type===h.Crash)r=[(i=n.body).crashId||"",i.reason||""].join(" ").trim()||r;else r=(i=n.body).message||r}o.captureMessage(e+": "+r)})};try{for(var a=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],e=0;return t?t.call(n):{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}}}(t),c=a.next();!c.done;c=a.next()){i(c.value)}}catch(n){e={error:n}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},n.id="ReportingObserver",n}();for(var v in t.ReportingObserver=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,v)&&(n.Sentry.Integrations[v]=t[v])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function a(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function c(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=a(),s="Sentry Logger ",f=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new f);var l;a();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));!function(){function n(n){var t=this;this._state=l.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(l.RESOLVED,n)},this._reject=function(n){t._setResult(l.REJECTED,n)},this._setResult=function(n,e){var r;t._state===l.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==l.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===l.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===l.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var _={nowSeconds:function(){return Date.now()/1e3}};var h,p=o()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=a().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),d=void 0===p?_:{nowSeconds:function(){return(p.timeOrigin+p.now())/1e3}};_.nowSeconds.bind(_),d.nowSeconds.bind(d),function(){var n=a().performance;if(n){var t=n.now(),e=Date.now(),r=n.timeOrigin?Math.abs(n.timeOrigin+t-e):36e5,o=r<36e5,i=n.timing&&n.timing.navigationStart,c="number"==typeof i?Math.abs(i+t-e):36e5;(o||c<36e5)&&(r<=c&&n.timeOrigin)}}();!function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(h||(h={}));var y=function(){function n(t){void 0===t&&(t={types:[h.Crash,h.Deprecation,h.Intervention]}),this._options=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in a()&&(this._getCurrentHub=t,new(a().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},n.prototype.handler=function(t){var e,r,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(n)){var i=function(n){o.withScope(function(t){t.setExtra("url",n.url);var e="ReportingObserver ["+n.type+"]",r="No details available";if(n.body){var i,a={};for(var c in n.body)a[c]=n.body[c];if(t.setExtra("body",a),n.type===h.Crash)r=[(i=n.body).crashId||"",i.reason||""].join(" ").trim()||r;else r=(i=n.body).message||r}o.captureMessage(e+": "+r)})};try{for(var a=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],e=0;return t?t.call(n):{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}}}(t),c=a.next();!c.done;c=a.next()){i(c.value)}}catch(n){e={error:n}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},n.id="ReportingObserver",n}();for(var v in t.ReportingObserver=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,v)&&(n.Sentry.Integrations[v]=t[v])}(window); | ||
//# sourceMappingURL=reportingobserver.min.js.map |
@@ -56,26 +56,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -120,2 +96,36 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -214,13 +224,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript | ||
@@ -637,6 +636,9 @@ // https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-builtins/master/src/es6/path.js | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -650,7 +652,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -657,0 +667,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var i={};function c(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,a(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function s(t){var e=c();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=c(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),c();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=o()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=c().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=c().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var e=t.timing&&t.timing.navigationStart;"number"==typeof e&&Math.abs(e+t.now()-Date.now())<36e5||Date.now()}}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename="app:///"+i}return t},e.root&&(this._root=e.root),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window); | ||
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,o(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function a(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function s(t){var e=a();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var u=a(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){u.console.error(f+"[Error]: "+t.join(" "))})},t}();u.__SENTRY__=u.__SENTRY__||{};u.__SENTRY__.logger||(u.__SENTRY__.logger=new l),a();var p,_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=!1,o=t.length-1;o>=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return(r?"/":"")+(n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"))||"."}function v(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function y(t,e){var n,r,o=(n=t,r=_.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(p||(p={}));!function(){function t(t){var e=this;this._state=p.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(p.RESOLVED,t)},this._reject=function(t){e._setResult(p.REJECTED,t)},this._setResult=function(t,n){var r;e._state===p.PENDING&&(r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==p.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t.done||(e._state===p.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===p.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.all=function(e){return new t(function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){t.resolve(e).then(function(t){i[c]=t,0===(o-=1)&&n(i)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var o,i;return n.then(function(t){i=!1,o=t,e&&e()},function(t){i=!0,o=t,e&&e()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var d={nowSeconds:function(){return Date.now()/1e3}};var g=i()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}():function(){var t=a().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),E=void 0===g?d:{nowSeconds:function(){return(g.timeOrigin+g.now())/1e3}},w=(d.nowSeconds.bind(d),E.nowSeconds.bind(E),function(){var t=a().performance;if(t){var e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=r<36e5,i=t.timing&&t.timing.navigationStart,c="number"==typeof i?Math.abs(i+e-n):36e5;(o||c<36e5)&&(r<=c&&t.timeOrigin)}}(),function(){function t(e){var n=this;void 0===e&&(e={}),this.name=t.id,this._iteratee=function(t){if(!t.filename)return t;var e=/^[A-Z]:\\/.test(t.filename),r=/^\//.test(t.filename);if(e||r){var o=e?t.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):t.filename,i=n._root?function(t,e){t=h(t).substr(1),e=h(e).substr(1);for(var n=v(t.split("/")),r=v(e.split("/")),o=Math.min(n.length,r.length),i=o,c=0;c<o;c++)if(n[c]!==r[c]){i=c;break}var a=[];for(c=i;c<n.length;c++)a.push("..");return(a=a.concat(r.slice(i))).join("/")}(n._root,o):y(o);t.filename="app:///"+i}return t},e.root&&(this._root=e.root),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,n){e(function(e){var r=n().getIntegration(t);return r?r.process(e):e})},t.prototype.process=function(t){return t.exception&&Array.isArray(t.exception.values)?this._processExceptionsEvent(t):t.stacktrace?this._processStacktraceEvent(t):t},t.prototype._processExceptionsEvent=function(t){var e=this;try{return r(r({},t),{exception:r(r({},t.exception),{values:t.exception.values.map(function(t){return r(r({},t),{stacktrace:e._processStacktrace(t.stacktrace)})})})})}catch(e){return t}},t.prototype._processStacktraceEvent=function(t){try{return r(r({},t),{stacktrace:this._processStacktrace(t.stacktrace)})}catch(e){return t}},t.prototype._processStacktrace=function(t){var e=this;return r(r({},t),{frames:t&&t.frames&&t.frames.map(function(t){return e._iteratee(t)})})},t.id="RewriteFrames",t}());for(var m in e.RewriteFrames=w,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,m)&&(t.Sentry.Integrations[m]=e[m])}(window); | ||
//# sourceMappingURL=rewriteframes.min.js.map |
@@ -79,26 +79,2 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
var setPrototypeOf = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties); | ||
@@ -143,2 +119,36 @@ /** | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
@@ -237,13 +247,2 @@ function consoleSandbox(callback) { | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript | ||
@@ -563,6 +562,9 @@ // Split a filename into [root, dir, basename, ext], unix version | ||
var threshold = 3600 * 1000; | ||
var timeOriginIsReliable = performance.timeOrigin && Math.abs(performance.timeOrigin + performance.now() - Date.now()) < threshold; | ||
if (timeOriginIsReliable) { | ||
return performance.timeOrigin; | ||
} | ||
var performanceNow = performance.now(); | ||
var dateNow = Date.now(); | ||
// if timeOrigin isn't available set delta to threshold so it isn't used | ||
var timeOriginDelta = performance.timeOrigin | ||
? Math.abs(performance.timeOrigin + performanceNow - dateNow) | ||
: threshold; | ||
var timeOriginIsReliable = timeOriginDelta < threshold; | ||
// While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin | ||
@@ -576,7 +578,15 @@ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing. | ||
var hasNavigationStart = typeof navigationStart === 'number'; | ||
var navigationStartIsReliable = hasNavigationStart && Math.abs(navigationStart + performance.now() - Date.now()) < threshold; | ||
if (navigationStartIsReliable) { | ||
return navigationStart; | ||
// if navigationStart isn't available set delta to threshold so it isn't used | ||
var navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold; | ||
var navigationStartIsReliable = navigationStartDelta < threshold; | ||
if (timeOriginIsReliable || navigationStartIsReliable) { | ||
// Use the more reliable time origin | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
return performance.timeOrigin; | ||
} | ||
else { | ||
return navigationStart; | ||
} | ||
} | ||
return Date.now(); | ||
return dateNow; | ||
})(); | ||
@@ -583,0 +593,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function c(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}var s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,s(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function u(t){var n=c();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var f=c(),p="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){f.console.log(p+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){f.console.warn(p+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){f.console.error(p+"[Error]: "+t.join(" "))})},t}();f.__SENTRY__=f.__SENTRY__||{};var _=f.__SENTRY__.logger||(f.__SENTRY__.logger=new l);c();var h,g=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(h||(h={}));!function(){function t(t){var n=this;this._state=h.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(h.RESOLVED,t)},this._reject=function(t){n._setResult(h.REJECTED,t)},this._setResult=function(t,o){var e;n._state===h.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==h.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===h.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===h.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=i()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=c().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},w=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),E=(function(){var t=c().performance;if(t){if(t.timeOrigin&&Math.abs(t.timeOrigin+t.now()-Date.now())<36e5)return t.timeOrigin;var n=t.timing&&t.timing.navigationStart;"number"==typeof n&&Math.abs(n+t.now()-Date.now())<36e5||Date.now()}}(),{id:"Tracing"}),S={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=w();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(E);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=w(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),f=t.$options[s];Array.isArray(f)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],f):t.$options[s]="function"==typeof f?[u,f]:[u]}):_.warn("Unknown hook: "+c)})}},_.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=e(e({Vue:c().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):_.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(E);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(E)||t().getIntegration(S)?n(this,t):_.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){_.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+(r&&r.toString())+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,i(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function s(){return a()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function u(t){var n=s();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var p=s(),f="Sentry Logger ",l=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.error(f+"[Error]: "+t.join(" "))})},t}();p.__SENTRY__=p.__SENTRY__||{};var _,h=p.__SENTRY__.logger||(p.__SENTRY__.logger=new l),g=(s(),/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/);function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(_||(_={}));!function(){function t(t){var n=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(_.RESOLVED,t)},this._reject=function(t){n._setResult(_.REJECTED,t)},this._setResult=function(t,o){var e;n._state===_.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==_.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===_.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===_.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=a()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=s().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},E=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),S=(function(){var t=s().performance;if(t){var n=t.now(),o=Date.now(),e=t.timeOrigin?Math.abs(t.timeOrigin+n-o):36e5,r=e<36e5,i=t.timing&&t.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-o):36e5;(r||a<36e5)&&(e<=a&&t.timeOrigin)}}(),{id:"Tracing"}),w={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=E();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(S);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=E(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),p=t.$options[s];Array.isArray(p)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],p):t.$options[s]="function"==typeof p?[u,p]:[u]}):h.warn("Unknown hook: "+c)})}},h.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=e(e({Vue:s().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):h.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(S);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(S)||t().getIntegration(w)?n(this,t):h.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){h.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+(r&&r.toString())+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window); | ||
//# sourceMappingURL=vue.min.js.map |
import { EventProcessor, Hub, Integration } from '@sentry/types'; | ||
import * as localForageType from 'localforage'; | ||
import localForage from 'localforage'; | ||
/** | ||
@@ -30,3 +30,3 @@ * cache offline errors and send when connected | ||
*/ | ||
offlineEventStore: typeof localForageType; | ||
offlineEventStore: typeof localForage; | ||
/** | ||
@@ -33,0 +33,0 @@ * @inheritDoc |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var utils_1 = require("@sentry/utils"); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
var localForage = require('localforage'); | ||
var localforage_1 = tslib_1.__importDefault(require("localforage")); | ||
/** | ||
@@ -23,3 +22,3 @@ * cache offline errors and send when connected | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
this.offlineEventStore = localForage.createInstance({ | ||
this.offlineEventStore = localforage_1.default.createInstance({ | ||
name: 'sentry/offlineEventStore', | ||
@@ -26,0 +25,0 @@ }); |
import { EventProcessor, Hub, Integration } from '@sentry/types'; | ||
import * as localForageType from 'localforage'; | ||
import localForage from 'localforage'; | ||
/** | ||
@@ -30,3 +30,3 @@ * cache offline errors and send when connected | ||
*/ | ||
offlineEventStore: typeof localForageType; | ||
offlineEventStore: typeof localForage; | ||
/** | ||
@@ -33,0 +33,0 @@ * @inheritDoc |
import { __awaiter, __generator } from "tslib"; | ||
import { getGlobalObject, logger, normalize, uuid4 } from '@sentry/utils'; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
var localForage = require('localforage'); | ||
import localForage from 'localforage'; | ||
/** | ||
@@ -6,0 +5,0 @@ * cache offline errors and send when connected |
{ | ||
"name": "@sentry/integrations", | ||
"version": "6.3.0-beta.6", | ||
"version": "6.3.0-beta.7", | ||
"description": "Pluggable integrations that can be used to enhance JS SDKs", | ||
@@ -19,4 +19,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/types": "6.3.0-beta.6", | ||
"@sentry/utils": "6.3.0-beta.6", | ||
"@sentry/types": "6.3.0-beta.7", | ||
"@sentry/utils": "6.3.0-beta.7", | ||
"localforage": "^1.8.1", | ||
@@ -26,3 +26,3 @@ "tslib": "^1.9.3" | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "6.2.5", | ||
"@sentry-internal/eslint-config-sdk": "6.3.0-beta.7", | ||
"chai": "^4.1.2", | ||
@@ -29,0 +29,0 @@ "eslint": "7.6.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2533489
13912
2
4
+ Added@sentry/types@6.3.0-beta.7(transitive)
+ Added@sentry/utils@6.3.0-beta.7(transitive)
- Removed@sentry/types@6.3.0-beta.6(transitive)
- Removed@sentry/utils@6.3.0-beta.6(transitive)
Updated@sentry/types@6.3.0-beta.7
Updated@sentry/utils@6.3.0-beta.7