UNPKG

@vforcity/logger

Version:

时间线前端异常监控工具包。

1 lines 108 kB
"use strict";function _typeof(e){return(_typeof="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})(e)}function _typeof$1(e){return(_typeof$1="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)})(e)}function _typeof$1$1(e){return(_typeof$1$1="function"==typeof Symbol&&"symbol"===_typeof$1(Symbol.iterator)?function(e){return _typeof$1(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof$1(e)})(e)}Object.defineProperty(exports,"__esModule",{value:!0});var regeneratorRuntime=void 0!==regeneratorRuntime?regeneratorRuntime:function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=s(e,t,n);if("normal"===c.type){if(r=n.done?d:f,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",h={};function v(){}function g(){}function y(){}var b={};b[i]=function(){return this};var m=Object.getPrototypeOf,_=m&&m(m(P([])));_&&_!==n&&r.call(_,i)&&(b=_);var w=y.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function S(e){var t;this._invoke=function(n,o){function i(){return new Promise(function(t,i){!function t(n,o,i,a){var u=s(e[n],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"===_typeof$1$1(l)&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){c.value=e,i(c)},function(e){return t("throw",e,i,a)})}a(u.arg)}(n,o,t,i)})}return t=t?t.then(i,i):i()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=s(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return g.prototype=w.constructor=y,y.constructor=g,y[u]=g.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},O(S.prototype),S.prototype[a]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,o){var i=new S(c(t,n,r,o));return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(w),w[u]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}("object"===("undefined"==typeof module?"undefined":_typeof$1$1(module))?module.exports:{});function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var InRangeIntervalType,LoadResourceUrlType,OrderByRuleType,sentryMina=createCommonjsModule(function(e,t){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==_typeof$1(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=24)}([function(e,t,n){n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return c}),n.d(t,"__metadata",function(){return s}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return d}),n.d(t,"__read",function(){return h}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return g}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return b}),n.d(t,"__asyncValues",function(){return m}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return O});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==("undefined"==typeof Reflect?"undefined":_typeof$1(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof$1(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=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 n(function(t){t(e.value)}).then(a,u)}c((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next: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(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof g?Promise.resolve(n.value.v).then(c,s):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function m(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=d(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=r.getGlobalObject(),i=new(function(){function e(){this.enabled=!1}return e.prototype.disable=function(){this.enabled=!1},e.prototype.enable=function(){this.enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&r.consoleSandbox(function(){o.console.log("Sentry Logger [Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&r.consoleSandbox(function(){o.console.warn("Sentry Logger [Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&r.consoleSandbox(function(){o.console.error("Sentry Logger [Error]: "+e.join(" "))})},e}());t.logger=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},t.isErrorEvent=function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},t.isDOMError=function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},t.isDOMException=function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},t.isUndefined=function(e){return void 0===e},t.isFunction=function(e){return"function"==typeof e},t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isPlainObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isNaN=function(e){return e!=e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(26);t.addBreadcrumb=r.addBreadcrumb,t.captureException=r.captureException,t.captureEvent=r.captureEvent,t.captureMessage=r.captureMessage,t.configureScope=r.configureScope,t.withScope=r.withScope;var o=n(6);t.addGlobalEventProcessor=o.addGlobalEventProcessor,t.getCurrentHub=o.getCurrentHub,t.Hub=o.Hub,t.getHubFromCarrier=o.getHubFromCarrier,t.Scope=o.Scope;var i=n(31);t.API=i.API;var a=n(32);t.BaseClient=a.BaseClient;var u=n(35);t.BaseBackend=u.BaseBackend;var c=n(10);t.Dsn=c.Dsn;var s=n(11);t.SentryError=s.SentryError;var l=n(14);t.RequestBuffer=l.RequestBuffer;var f=n(36);t.LogLevel=f.LogLevel;var p=n(37);t.initAndBind=p.initAndBind;var d=n(38);t.Integrations=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setMinaContext=function(e){i=e},t.getMinaContext=function(){return i},t.getMinaApiList=function(){return Object.keys(i).filter(function(e){return"function"==typeof i[e]})},t.getSystemInfo=function(){try{return a||(a=i.getSystemInfoSync())}catch(t){r.logger.warn("getSystemInfoSync is undefined in minaContext");var e={};return c.forEach(function(t){e[t]="unknow"}),e}},t.supportRequest=function(){return!!i.request},t.supportNavigations=function(){var e=["navigateBack","navigateTo","redirectTo","reLaunch","switchTab"].filter(function(e){return!!i[e]});return e.length>0?e:null},t.getCurrentPage=function(){if("function"==typeof getCurrentPages){var e=getCurrentPages();return 0===e.length?"unknow":e[e.length-1].route}return"unknow"},t.getPrevPage=function(e){if("function"==typeof getCurrentPages){var t=getCurrentPages();if(0===t.length)return"unknow";if(e||(e=1),t[t.length-1-e])return t[t.length-1-e].route}return"unknow"},t.getMinaApp=function(){return function(){var e;return e=regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u||new Promise(function(e){!function t(){var n=getApp({allowDefault:!0});n?(u=n,e(n)):setTimeout(t,20)}()}));case 1:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function u(e){o(a,r,i,u,c,"next",e)}function c(e){o(a,r,i,u,c,"throw",e)}u(void 0)})}.apply(this,arguments)}.apply(this,arguments)},t.supportStorage=function(){return 2===["setStorage","getStorageSync"].filter(function(e){return!!i[e]}).length},t.supportLogManager=function(){return!!i.getLogManager},t.isWxUnhandledPromiseError=function(e){return!(!e||"string"!=typeof e||!/^(Unhandled|Uncaught)/i.test(e))},t.MINA_PAGE_LIFE_CYCLE=t.MINA_APP_LIFE_CYCLE=t.MINA_SYSTEMINFO_TAGS=void 0;var r=n(1);function o(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}var i="undefined"!=typeof wx?wx:{},a=null,u=null,c=["brand","model","language","version","system","platform","SDKVersion"];t.MINA_SYSTEMINFO_TAGS=c,t.MINA_APP_LIFE_CYCLE=["onAppShow","onAppHide"],t.MINA_PAGE_LIFE_CYCLE=["onLoad","onShow","onHide","onUnload","onReady"]},function(e,t,n){(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);function i(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}function a(){return i()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}}function u(e){var t,n,r,i,a,u=[];if(!e||!e.tagName)return"";if(u.push(e.tagName.toLowerCase()),e.id&&u.push("#"+e.id),(t=e.className)&&o.isString(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)u.push("."+n[a]);var c=["type","name","title","alt"];for(a=0;a<c.length;a++)r=c[a],(i=e.getAttribute(r))&&u.push("["+r+'="'+i+'"]');return u.join("")}t.dynamicRequire=function(e,t){return e.require(t)},t.isNodeEnv=i,t.getGlobalObject=a,t.uuid4=function(){var e=a(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t.htmlTreeAsString=function(e){for(var t,n=e,r=[],o=0,i=0,a=" > ".length;n&&o++<5&&!("html"===(t=u(n))||o>1&&i+r.length*a+t.length>=80);)r.push(t),i+=t.length,n=n.parentNode;return r.reverse().join(" > ")},t.htmlElementAsString=u,t.parseUrl=function(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}},t.getEventDescription=function(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"},t.consoleSandbox=function(e){var t=a();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log"].forEach(function(e){e in t.console&&n[e].__sentry__&&(r[e]=n[e].__sentry_wrapped__,n[e]=n[e].__sentry_original__)});var o=e();return Object.keys(r).forEach(function(e){n[e]=r[e]}),o}}).call(this,n(27),n(28))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.addGlobalEventProcessor=r.addGlobalEventProcessor,t.Scope=r.Scope;var o=n(29);t.getCurrentHub=o.getCurrentHub,t.getHubFromCarrier=o.getHubFromCarrier,t.getMainCarrier=o.getMainCarrier,t.Hub=o.Hub,t.setHubOnCarrier=o.setHubOnCarrier},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o="[NaN]",i="[undefined]";function a(e,t){return t===o?NaN:t!==i?t:void 0}function u(e){return JSON.stringify(e,function(){var e=[],t=[];return function(n,a){var u=a;if(r.isNaN(a)?u=o:r.isUndefined(a)&&(u=i),e.length>0){var c=e.indexOf(this);-1!==c?(e.splice(c+1),t.splice(c,1/0,n)):(e.push(this),t.push(n)),-1!==e.indexOf(u)&&(u=function(n,r){return e[0]===r?"[Circular ~]":"[Circular ~."+t.slice(0,e.indexOf(r)).join(".")+"]"}.call(this,n,u))}else e.push(u);return u instanceof Error?function(e){var t={message:e.message,name:e.name,stack:e.stack};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(u):u}}())}function c(e){return JSON.parse(e,a)}function s(e){if("string"==typeof e)return e.length<=40?e:e.substr(0,39)+"…";if("number"==typeof e||"boolean"==typeof e||void 0===e)return e;if(r.isNaN(e))return"[NaN]";if(r.isUndefined(e))return"[undefined]";var t=Object.prototype.toString.call(e);if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";if("[object Function]"===t){var n=e.name;return n?"[Function: "+n+"]":"[Function]"}return e}function l(e,t){if(0===t)return s(e);if(r.isPlainObject(e)){var n={},o=e;return Object.keys(o).forEach(function(e){n[e]=l(o[e],t-1)}),n}return Array.isArray(e)?e.map(function(e){return l(e,t-1)}):s(e)}t.serialize=u,t.deserialize=c,t.clone=function(e){return c(u(e))},t.fill=function(e,t,n){if(t in e&&!e[t].__sentry__){var r=e[t],o=n(r);o.__sentry__=!0,o.__sentry_original__=r,o.__sentry_wrapped__=o,e[t]=o}},t.urlEncode=function(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},t.serializeObject=l,t.limitObjectDepthToSize=function e(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var o=l(t,n);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(u(o))>r?e(t,n-1):o},t.serializeKeysToEventMessage=function(e,t){if(void 0===t&&(t=40),!e.length)return"[object has no keys]";if(e[0].length>=t)return e[0];for(var n=e.length;n>0;n--){var r=e.slice(0,n).join(", ");if(!(r.length>t))return n===e.length?r:r+"…"}return""},t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),o=0;o<t.length;o++){var i=t[o];if(null!==i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(t.Severity||(t.Severity={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(t.Severity||(t.Severity={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(t.Status||(t.Status={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(t.Status||(t.Status={}))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.truncate=function(e,t){return void 0===t&&(t=0),0!==t&&r.isString(e)?e.length<=t?e:e.substr(0,t)+"…":e},t.snipLine=function(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var o=Math.max(t-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n},t.safeJoin=function(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)},t.includes=function(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(2),i=n(7),a=n(11),u=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,c=function(){function e(e){"string"==typeof e?this.fromString(e):this.fromComponents(e),this.validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype.fromString=function(e){var t=u.exec(e);if(!t)throw new a.SentryError("Invalid Dsn");var n=r.__read(t.slice(1),6),o=n[0],c=n[1],s=n[2],l=void 0===s?"":s,f=n[3],p=n[4],d=void 0===p?"":p,h="",v=n[5],g=v.split("/");g.length>1&&(h=g.slice(0,-1).join("/"),v=g.pop()),i.assign(this,{host:f,pass:l,path:h,projectId:v,port:d,protocol:o,user:c})},e.prototype.fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype.validate=function(){var e,t;try{for(var n=r.__values(["protocol","user","host","projectId"]),i=n.next();!i.done;i=n.next()){var u=i.value;if(!this[u])throw new a.SentryError("Invalid Dsn: Missing "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}if("http"!==this.protocol&&"https"!==this.protocol)throw new a.SentryError('Invalid Dsn: Unsupported protocol "'+this.protocol+'"');if(this.port&&o.isNaN(parseInt(this.port,10)))throw new a.SentryError('Invalid Dsn: Invalid port number "'+this.port+'"')},e}();t.Dsn=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Object.setPrototypeOf(r,n.prototype),r}return r.__extends(t,e),t}(Error);t.SentryError=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.computeStackTrace=t.installGlobalUnhandledRejectionHandler=t.installGlobalHandler=t.subscribe=t.report=void 0;var r=n(2);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=(0,n(5).getGlobalObject)(),u={wrap:function(){return function(){}},report:!1,collectWindowErrors:!1,computeStackTrace:!1,remoteFetching:!1,linesOfContext:!1,extendToAsynchronousCallbacks:!1},c=[].slice,s="?",l=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(){return"undefined"==typeof document||null==document.location?"":document.location.href}u.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw u.report(e),e}}},u.report=function(){var e,t,n,i,c=[],s=null,d=null;function h(e,t,n){var r=null;if(!t||u.collectWindowErrors){for(var o in c)if(f(c,o))try{c[o](e,t,n)}catch(e){r=e}if(r)throw r}}function v(t,n,i,a,c){var s=null;if(c=(0,r.isErrorEvent)(c)?c.error:c,t=(0,r.isErrorEvent)(t)?t.message:t,d)u.computeStackTrace.augmentStackTraceWithInitialElement(d,n,i,t),y();else if(c&&(0,r.isError)(c))(s=u.computeStackTrace(c)).mechanism="onerror",h(s,!0,c);else{var f,v={url:n,line:i,column:a},g=t;if("[object String]"==={}.toString.call(t)){var b=t.match(l);b&&(f=b[1],g=b[2])}v.func=u.computeStackTrace.guessFunctionName(v.url,v.line),v.context=u.computeStackTrace.gatherContext(v.url,v.line),h(s={name:f,message:g,mode:"onerror",mechanism:"onerror",stack:[o({},v,{url:v.url||p()})]},!0,null)}return!!e&&e.apply(this,arguments)}function g(e){var t=e&&(e.detail?e.detail.reason:e.reason)||e,n=u.computeStackTrace(t);n.mechanism="onunhandledrejection",h(n,!0,t)}function y(){var e=d,t=s;d=null,s=null,h(e,!1,t)}function b(e){if(d){if(s===e)return;y()}var t=u.computeStackTrace(e);throw d=t,s=e,setTimeout(function(){s===e&&y()},t.incomplete?2e3:0),e}return b.subscribe=function(e){c.push(e)},b.unsubscribe=function(r){for(var o=c.length-1;o>=0;--o)c[o]===r&&c.splice(o,1);0===c.length&&(t&&(a.onerror=e,t=!1),i&&(a.onerror=n,i=!1))},b.installGlobalHandler=function(){!0!==t&&(e=a.onerror,a.onerror=v,t=!0)},b.installGlobalUnhandledRejectionHandler=function(){!0!==i&&(n=a.onunhandledrejection,a.onunhandledrejection=g,i=!0)},b.traceKitWindowOnUnhandledRejection=g,b}(),u.computeStackTrace=function(){var e={};function t(t){if("string"!=typeof t)return[];if(!f(e,t)){var n="",r="";try{r=a.document.domain}catch(t){}var o=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);o&&o[2]===r&&(n=function(e){if(!u.remoteFetching)return"";try{var t=function(){try{return new a.XMLHttpRequest}catch(e){return new a.ActiveXObject("Microsoft.XMLHTTP")}}();return t.open("GET",e,!1),t.send(""),t.responseText}catch(e){return""}}(t)),e[t]=n?n.split("\n"):[]}return e[t]}function n(e,n){var o,i=/function ([^(]*)\(([^)]*)\)/,a=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,u="",c=t(e);if(!c.length)return s;for(var l=0;l<10;++l)if(u=c[n-l]+u,!(0,r.isUndefined)(u)){if(o=a.exec(u))return o[1];if(o=i.exec(u))return o[1]}return s}function o(e,n){var o=t(e);if(!o.length)return null;var i=[],a=Math.floor(u.linesOfContext/2),c=a+u.linesOfContext%2,s=Math.max(0,n-a-1),l=Math.min(o.length,n+c-1);n-=1;for(var f=s;f<l;++f)(0,r.isUndefined)(o[f])||i.push(o[f]);return i.length>0?i:null}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function c(e){return i(e).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function l(e,n){for(var r,o,i=0,a=n.length;i<a;++i)if((r=t(n[i])).length&&(r=r.join("\n"),o=e.exec(r)))return{url:n[i],line:r.substring(0,o.index).split("\n").length,column:o.index-r.lastIndexOf("\n",o.index)-1};return null}function d(e,n,r){var o,a=t(n),u=new RegExp("\\b"+i(e)+"\\b");return r-=1,a&&a.length>r&&(o=u.exec(a[r]))?o.index:null}function h(e){if(!(0,r.isUndefined)(a&&a.document)){for(var t,n,o,u,s=[p()],f=a.document.getElementsByTagName("script"),d=""+e,h=0;h<f.length;++h){var v=f[h];v.src&&s.push(v.src)}if(o=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(d)){var g=o[1]?"\\s+"+o[1]:"",y=o[2].split(",").join("\\s*,\\s*");t=i(o[3]).replace(/;$/,";?"),n=new RegExp("function"+g+"\\s*\\(\\s*"+y+"\\s*\\)\\s*{\\s*"+t+"\\s*}")}else n=new RegExp(i(d).replace(/\s+/g,"\\s+"));if(u=l(n,s))return u;if(o=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(d)){var b=o[1];if(t=c(o[2]),u=l(n=new RegExp("on"+b+"=[\\'\"]\\s*"+t+"\\s*[\\'\"]","i"),s[0]))return u;if(u=l(n=new RegExp(t),s))return u}return null}}function v(e){if(!e.stack)return null;for(var t,i,a,c=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h=/\((\S*)(?::(\d+))(?::(\d+))\)/,v=e.stack.split("\n"),g=[],y=/^(.*) is undefined$/.exec(e.message),b=0,m=v.length;b<m;++b){if(i=c.exec(v[b])){var _=i[2]&&0===i[2].indexOf("native");i[2]&&0===i[2].indexOf("eval")&&(t=h.exec(i[2]))&&(i[2]=t[1]),a={url:_?null:i[2],func:i[1]||s,args:_?[i[2]]:[],line:i[3]?+i[3]:null,column:i[4]?+i[4]:null}}else if(i=f.exec(v[b]))a={url:i[2],func:i[1]||s,args:[],line:+i[3],column:i[4]?+i[4]:null};else{if(!(i=l.exec(v[b])))continue;i[3]&&i[3].indexOf(" > eval")>-1&&(t=p.exec(i[3]))?i[3]=t[1]:0!==b||i[5]||(0,r.isUndefined)(e.columnNumber)||(g[0].column=e.columnNumber+1),a={url:i[3],func:i[1]||s,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null}}if(!a.func&&a.line&&(a.func=n(a.url,a.line)),u.remoteFetching&&a.url&&"blob:"===a.url.substr(0,5)){var w=new XMLHttpRequest;if(w.open("GET",a.url,!1),w.send(""),200===w.status){var O=w.responseText||"",S=(O=O.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(S){var E=S[1];"~"===E.charAt(0)&&(E=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+E.slice(1)),a.url=E.slice(0,-4)}}}a.context=a.line?o(a.url,a.line):null,g.push(a)}return g.length?(g[0]&&g[0].line&&!g[0].column&&y&&(g[0].column=d(y[1],g[0].url,g[0].line)),{mode:"stack",name:e.name,message:e.message,stack:g}):null}function g(e,t,r,i){var a={url:t,line:r};if(a.url&&a.line){e.incomplete=!1,a.func||(a.func=n(a.url,a.line)),a.context||(a.context=o(a.url,a.line));var u=/ '([^']+)' /.exec(i);if(u&&(a.column=d(u[1],a.url,a.line)),e.stack.length>0&&e.stack[0].url===a.url){if(e.stack[0].line===a.line)return!1;if(!e.stack[0].line&&e.stack[0].func===a.func)return e.stack[0].line=a.line,e.stack[0].context=a.context,!1}return e.stack.unshift(a),e.partial=!0,!0}return e.incomplete=!0,!1}function y(e,t){for(var r,o,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],l={},f=!1,p=y.caller;p&&!f;p=p.caller)if(p!==b&&p!==u.report){if(o={url:null,func:s,args:[],line:null,column:null},p.name?o.func=p.name:(r=a.exec(p.toString()))&&(o.func=r[1]),void 0===o.func)try{o.func=r.input.substring(0,r.input.indexOf("{"))}catch(e){}if(i=h(p)){o.url=i.url,o.line=i.line,o.func===s&&(o.func=n(o.url,o.line));var v=/ '([^']+)' /.exec(e.message||e.description);v&&(o.column=d(v[1],i.url,i.line))}l[""+p]?f=!0:l[""+p]=!0,c.push(o)}t&&c.splice(0,t);var m={mode:"callers",name:e.name,message:e.message,stack:c};return g(m,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),m}function b(e,r){var i=null;r=null==r?0:+r;try{if(i=function(e){var t=e.stacktrace;if(t){for(var r,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,u=t.split("\n"),c=[],s=0;s<u.length;s+=2){var l=null;if((r=i.exec(u[s]))?l={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=a.exec(u[s]))&&(l={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),l){if(!l.func&&l.line&&(l.func=n(l.url,l.line)),l.line)try{l.context=o(l.url,l.line)}catch(e){}l.context||(l.context=[u[s+1]]),c.push(l)}}return c.length?{mode:"stacktrace",name:e.name,message:e.message,stack:c}:null}}(e))return i}catch(e){}try{if(i=v(e))return i}catch(e){}try{if(i=function(e){var r=e.message.split("\n");if(r.length<4)return null;var i,u=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,d=/^\s*Line (\d+) of function script\s*$/i,h=[],v=a&&a.document&&a.document.getElementsByTagName("script"),g=[];for(var y in v)f(v,y)&&!v[y].src&&g.push(v[y]);for(var b=2;b<r.length;b+=2){var m=null;if(i=u.exec(r[b]))m={url:i[2],func:i[3],args:[],line:+i[1],column:null};else if(i=s.exec(r[b])){m={url:i[3],func:i[4],args:[],line:+i[1],column:null};var _=+i[1],w=g[i[2]-1];if(w){var O=t(m.url);if(O){var S=(O=O.join("\n")).indexOf(w.innerText);S>=0&&(m.line=_+O.substring(0,S).split("\n").length)}}}else if(i=d.exec(r[b])){var E=p().replace(/#.*$/,""),x=l(new RegExp(c(r[b+1])),[E]);m={url:E,func:"",args:[],line:x?x.line:i[1],column:null}}if(m){m.func||(m.func=n(m.url,m.line));var j=o(m.url,m.line),k=j?j[Math.floor(j.length/2)]:null;j&&k.replace(/^\s*/,"")===r[b+1].replace(/^\s*/,"")?m.context=j:m.context=[r[b+1]],h.push(m)}}return h.length?{mode:"multiline",name:e.name,message:r[0],stack:h}:null}(e))return i}catch(e){}try{if(i=y(e,r+1))return i}catch(e){}return{name:e.name,message:e.message,mode:"failed"}}return b.augmentStackTraceWithInitialElement=g,b.computeStackTraceFromStackProp=v,b.guessFunctionName=n,b.gatherContext=o,b.ofCaller=function(e){e=1+(null==e?0:+e);try{throw new Error}catch(t){return b(t,e+1)}},b.getSource=t,b}(),u.extendToAsynchronousCallbacks=function(){var e=function(e){var t=a[e];a[e]=function(){var e=c.call(arguments),n=e[0];return"function"==typeof n&&(e[0]=u.wrap(n)),t.apply?t.apply(this,e):t(e[0],e[1])}};e("setTimeout"),e("setInterval")},u.remoteFetching=!1,u.collectWindowErrors=!0,u.linesOfContext=11;var d=u.report;t.report=d;var h=u.report.subscribe;t.subscribe=h;var v=u.report.installGlobalHandler;t.installGlobalHandler=v;var g=u.report.installGlobalUnhandledRejectionHandler;t.installGlobalUnhandledRejectionHandler=g;var y=u.computeStackTrace;t.computeStackTrace=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5),i=n(7),a=function(){function e(){this.notifyingListeners=!1,this.scopeListeners=[],this.eventProcessors=[],this.breadcrumbs=[],this.user={},this.tags={},this.extra={}}return e.prototype.addScopeListener=function(e){this.scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this.eventProcessors.push(e),this},e.prototype.notifyScopeListeners=function(){var e=this;this.notifyingListeners||(this.notifyingListeners=!0,setTimeout(function(){e.scopeListeners.forEach(function(t){t(e)}),e.notifyingListeners=!1},0))},e.prototype.notifyEventProcessors=function(e,t){return r.__awaiter(this,void 0,void 0,function(){var n,o,i,a,c,s,l;return r.__generator(this,function(f){switch(f.label){case 0:i=e,f.label=1;case 1:f.trys.push([1,8,9,10]),a=r.__values(r.__spread(u(),this.eventProcessors)),c=a.next(),f.label=2;case 2:if(c.done)return[3,7];s=c.value,f.label=3;case 3:return f.trys.push([3,5,,6]),[4,s(r.__assign({},i),t)];case 4:return null===(i=f.sent())?[2,null]:[3,6];case 5:return f.sent(),[3,6];case 6:return c=a.next(),[3,2];case 7:return[3,10];case 8:return l=f.sent(),n={error:l},[3,10];case 9:try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}return[7];case 10:return[2,i]}})})},e.prototype.setUser=function(e){return this.user=e,this.notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this.tags=r.__assign({},this.tags,((n={})[e]=t,n)),this.notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this.extra=r.__assign({},this.extra,((n={})[e]=t,n)),this.notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this.fingerprint=e,this.notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this.level=e,this.notifyScopeListeners(),this},e.clone=function(t){var n=new e;return i.assign(n,t,{scopeListeners:[]}),t&&(n.extra=i.assign(t.extra),n.tags=i.assign(t.tags),n.breadcrumbs=r.__spread(t.breadcrumbs),n.eventProcessors=r.__spread(t.eventProcessors)),n},e.prototype.clear=function(){this.breadcrumbs=[],this.tags={},this.extra={},this.user={},this.level=void 0,this.fingerprint=void 0,this.notifyScopeListeners()},e.prototype.addBreadcrumb=function(e,t){this.breadcrumbs=void 0!==t&&t>=0?r.__spread(this.breadcrumbs,[e]).slice(-t):r.__spread(this.breadcrumbs,[e]),this.notifyScopeListeners()},e.prototype.applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this.fingerprint?e.fingerprint=e.fingerprint.concat(this.fingerprint):e.message&&(e.fingerprint=e.fingerprint.concat(e.message)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t,n){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(o){return this.extra&&Object.keys(this.extra).length&&(e.extra=r.__assign({},this.extra,e.extra)),this.tags&&Object.keys(this.tags).length&&(e.tags=r.__assign({},this.tags,e.tags)),this.user&&Object.keys(this.user).length&&(e.user=r.__assign({},this.user,e.user)),this.level&&(e.level=this.level),this.applyFingerprint(e),(!e.breadcrumbs||0===e.breadcrumbs.length)&&this.breadcrumbs.length>0&&(e.breadcrumbs=void 0!==n&&n>=0?this.breadcrumbs.slice(-n):this.breadcrumbs),[2,this.notifyEventProcessors(e,t)]})})},e}();function u(){var e=o.getGlobalObject();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}t.Scope=a,t.addGlobalEventProcessor=function(e){u().push(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){return r.__awaiter(this,void 0,void 0,function(){var t=this;return r.__generator(this,function(n){return-1===this.buffer.indexOf(e)&&this.buffer.push(e),e.then(function(){return r.__awaiter(t,void 0,void 0,function(){return r.__generator(this,function(t){return[2,this.remove(e)]})})}).catch(function(){return r.__awaiter(t,void 0,void 0,function(){return r.__generator(this,function(t){return[2,this.remove(e)]})})}),[2,e]})})},e.prototype.remove=function(e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){return[2,this.buffer.splice(this.buffer.indexOf(e),1)[0]]})})},e.prototype.length=function(){return this.buffer.length},e.prototype.drain=function(e){return r.__awaiter(this,void 0,void 0,function(){var t=this;return r.__generator(this,function(n){return[2,new Promise(function(n){var r=setTimeout(function(){e&&e>0&&n(!1)},e);Promise.all(t.buffer).then(function(){clearTimeout(r),n(!0)}).catch(function(){n(!0)})})]})})},e}();t.RequestBuffer=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MinaBackend=void 0;var r=n(3),o=n(8),i=n(2),a=n(1),u=n(16),c=n(12),s=n(17),l=n(4);function f(e){return(f="function"==typeof Symbol&&"symbol"==_typeof$1(Symbol.iterator)?function(e){return _typeof$1(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof$1(e)})(e)}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){d(e,t,n[t])})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,u,"next",e)}function u(e){h(i,r,o,a,u,"throw",e)}a(void 0)})}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,y(t).apply(this,arguments))}var n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,r.BaseBackend),n=t,(f=[{key:"install",value:function(){if(!this.options.dsn)throw new r.SentryError("Invariant exception: install() must not be called when disabled");return Error.stackTraceLimit=50,!0}},{key:"eventFromException",value:function(){var e=v(regeneratorRuntime.mark(function e(t,n){var r,o,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,i.isErrorEvent)(t)||!t.error){e.next=4;break}t=t.error,r=(0,u.eventFromStacktrace)((0,c.computeStackTrace)(t)),e.next=17;break;case 4:if(!(0,i.isError)(t)){e.next=8;break}r=(0,u.eventFromStacktrace)((0,c.computeStackTrace)(t)),e.next=17;break;case 8:if(!((0,i.isPlainObject)(t)&&n&&n.syntheticException)){e.next=13;break}o=t,r=(0,u.eventFromPlainObject)(o,n.syntheticException),e.next=17;break;case 13:return a=t,e.next=16,this.eventFromMessage(a,void 0,n);case 16:r=e.sent;case 17:return e.abrupt("return",r=p({},r,{event_id:n&&n.event_id,exception:p({},r.exception,{mechanism:{handled:!0,type:"generic"}})}));case 18:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"eventFromMessage",value:function(){var e=v(regeneratorRuntime.mark(function e(t,n,r){var o,i,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={event_id:r&&r.event_id,level:n,message:t},this.options.attachStacktrace&&r&&r.syntheticException&&(i=(0,c.computeStackTrace)(r.syntheticException),a=(0,u.prepareFramesForEvent)(i.stack),o.stacktrace={frames:a}),e.abrupt("return",o);case 3:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"sendEvent",value:function(){var e=v(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options.dsn){e.next=2;break}return e.abrupt("return",(a.logger.warn("Event has been skipped because no Dsn is configured."),{status:o.Status.Skipped,reason:"Event has been skipped because no Dsn is configured."}));case 2:return this.transport||(n=this.options.transportOptions?this.options.transportOptions:{dsn:this.options.dsn},this.options.transport?this.transport=new this.options.transport({dsn:this.options.dsn}):(0,l.supportRequest)()&&(this.transport=new s.RequestTransport(n))),e.abrupt("return",this.transport?this.transport.captureEvent(t):(a.logger.warn("Event has been skipped because no transport is configured."),{status:o.Status.Skipped,reason:"Event has been skipped because no transport is configured."}));case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,f),t}();t.MinaBackend=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.exceptionFromStacktrace=s,t.eventFromPlainObject=function(e,t){var n=Object.keys(e).sort(),r={extra:{__serialized__:(0,o.limitObjectDepthToSize)(e)},fingerprint:[(0,a.default)(n.join(""))],message:"Non-Error exception captured with keys: ".concat((0,o.serializeKeysToEventMessage)(n))};if(t){var i=(0,u.computeStackTrace)(t),c=l(i.stack);r.stacktrace={frames:c}}return r},t.eventFromStacktrace=function(e){return{exception:{values:[s(e)]}}},t.prepareFramesForEvent=l;var r,o=n(7),i=n(9),a=(r=n(46))&&r.__esModule?r:{default:r},u=n(12),c=50;function s(e){var t={stacktrace:{frames:l(e.stack)},type:e.name,value:e.message};return void 0===t.type&&""===t.value&&(t.value="Unrecoverable error caught"),t}function l(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return((0,i.includes)(n,"captureMessage")||(0,i.includes)(n,"captureException"))&&(t=t.slice(1)),(0,i.includes)(r,"sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(e){return{colno:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:e.line}}).slice(0,c).reverse()}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BaseTransport",{enumerable:!0,get:function(){return r.BaseTransport}}),Object.defineProperty(t,"RequestTransport",{enumerable:!0,get:function(){return o.RequestTransport}});var r=n(18),o=n(47)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransport=void 0;var r=n(3),o=n(4);function i(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function u(e){i(a,r,o,u,c,"next",e)}function c(e){i(a,r,o,u,c,"throw",e)}u(void 0)})}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t