text: module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return f})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return h})),n.d(e,"__spread",(function(){return _})),n.d(e,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return m})),n.d(e,"__asyncValues",(function(){return b})),n.d(e,"__makeTemplateObject",(function(){return E})),n.d(e,"__importStar",(function(){return w})),n.d(e,"__importDefault",(function(){return S}));
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */
  var r=function(t,e){return(r=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)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=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 a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function f(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(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=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=o[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function E(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";(function(t,r){n.d(e,"d",(function(){return i})),n.d(e,"i",(function(){return a})),n.d(e,"f",(function(){return u})),n.d(e,"l",(function(){return c})),n.d(e,"k",(function(){return l})),n.d(e,"e",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return h})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return v})),n.d(e,"j",(function(){return m}));var o=n(3);function i(t,e){return t.require(e)}function a(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}var s={};function u(){return a()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:s}function c(){var t=u(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};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(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function l(t){if(!t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function f(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function p(t){var e=u();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__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)}));var o=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),o}function d(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function h(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(t){}}function _(){try{return document.location.href}catch(t){return""}}function v(t){try{for(var e=t,n=[],r=0,o=0,i=" > ".length,a=void 0;e&&r++<5&&!("html"===(a=g(e))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return"<unknown>"}}function g(t){var e,n,r,i,a,s=t,u=[];if(!s||!s.tagName)return"";if(u.push(s.tagName.toLowerCase()),s.id&&u.push("#"+s.id),(e=s.className)&&Object(o.j)(e))for(n=e.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=s.getAttribute(r))&&u.push("["+r+'="'+i+'"]');return u.join("")}var y=6e4;function m(t,e){if(!e)return y;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?y:r-t}}).call(this,n(28),n(18))},function(t,e,n){"use strict";function r(t){t.then(null,(function(t){console.error(t)}))}n.r(e);var o=n(12),i=n(3),a=n(9),s=n(11),u=n(1),c=n(5);function l(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}var f=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function p(t){var e=f.exec(t);return e?e.slice(1):[]}function d(){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=l(n.split("/").filter((function(t){return!!t})),!r).join("/"))||"."}function h(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 _(t,e){t=d(t).substr(1),e=d(e).substr(1);for(var n=h(t.split("/")),r=h(e.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var s=[];for(a=i;a<n.length;a++)s.push("..");return(s=s.concat(r.slice(i))).join("/")}function v(t){var e=g(t),n="/"===t.substr(-1),r=l(t.split("/").filter((function(t){return!!t})),!e).join("/");return r||e||(r="."),r&&n&&(r+="/"),(e?"/":"")+r}function g(t){return"/"===t.charAt(0)}function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return v(t.join("/"))}function m(t){var e=p(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function b(t,e){var n=p(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n}var E=n(6),w=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var e=this;return this.isReady()?(-1===this._buffer.indexOf(t)&&this._buffer.push(t),t.then((function(){return e.remove(t)})).then(null,(function(){return e.remove(t).then(null,(function(){}))})),t):E.a.reject(new o.a("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new E.a((function(n){var r=setTimeout((function(){t&&t>0&&n(!1)}),t);E.a.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}(),S=n(8);function O(){try{return new ErrorEvent(""),!0}catch(t){return!1}}function x(){try{return new DOMError(""),!0}catch(t){return!1}}function j(){try{return new DOMException(""),!0}catch(t){return!1}}function k(){if(!("fetch"in Object(u.f)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function T(){if(!k())return!1;var t=function(t){return-1!==t.toString().indexOf("native")},e=Object(u.f)(),n=null,r=e.document;if(r){var o=r.createElement("iframe");o.hidden=!0;try{r.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(n=t(o.contentWindow.fetch)),r.head.removeChild(o)}catch(t){a.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}}return null===n&&(n=t(e.fetch)),n}function P(){return"ReportingObserver"in Object(u.f)()}function I(){if(!k())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function R(){var t=Object(u.f)(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}n.d(e,"forget",(function(){return r})),n.d(e,"SentryError",(function(){return o.a})),n.d(e,"isError",(function(){return i.d})),n.d(e,"isErrorEvent",(function(){return i.e})),n.d(e,"isDOMError",(function(){return i.a})),n.d(e,"isDOMException",(function(){return i.b})),n.d(e,"isString",(function(){return i.j})),n.d(e,"isPrimitive",(function(){return i.h})),n.d(e,"isPlainObject",(function(){return i.g})),n.d(e,"isEvent",(function(){return i.f})),n.d(e,"isElement",(function(){return i.c})),n.d(e,"isRegExp",(function(){return i.i})),n.d(e,"isThenable",(function(){return i.l})),n.d(e,"isSyntheticEvent",(function(){return i.k})),n.d(e,"logger",(function(){return a.a})),n.d(e,"Memo",(function(){return s.a})),n.d(e,"dynamicRequire",(function(){return u.d})),n.d(e,"isNodeEnv",(function(){return u.i})),n.d(e,"getGlobalObject",(function(){return u.f})),n.d(e,"uuid4",(function(){return u.l})),n.d(e,"parseUrl",(function(){return u.k})),n.d(e,"getEventDescription",(function(){return u.e})),n.d(e,"consoleSandbox",(function(){return u.c})),n.d(e,"addExceptionTypeValue",(function(){return u.b})),n.d(e,"addExceptionMechanism",(function(){return u.a})),n.d(e,"getLocationHref",(function(){return u.g})),n.d(e,"htmlTreeAsString",(function(){return u.h})),n.d(e,"parseRetryAfterHeader",(function(){return u.j})),n.d(e,"fill",(function(){return c.b})),n.d(e,"urlEncode",(function(){return c.e})),n.d(e,"normalizeToSize",(function(){return c.d})),n.d(e,"walk",(function(){return c.f})),n.d(e,"normalize",(function(){return c.c})),n.d(e,"extractExceptionKeysForMessage",(function(){return c.a})),n.d(e,"resolve",(function(){return d})),n.d(e,"relative",(function(){return _})),n.d(e,"normalizePath",(function(){return v})),n.d(e,"isAbsolute",(function(){return g})),n.d(e,"join",(function(){return y})),n.d(e,"dirname",(function(){return m})),n.d(e,"basename",(function(){return b})),n.d(e,"PromiseBuffer",(function(){return w})),n.d(e,"truncate",(function(){return S.d})),n.d(e,"snipLine",(function(){return S.c})),n.d(e,"safeJoin",(function(){return S.b})),n.d(e,"isMatchingPattern",(function(){return S.a})),n.d(e,"supportsErrorEvent",(function(){return O})),n.d(e,"supportsDOMError",(function(){return x})),n.d(e,"supportsDOMException",(function(){return j})),n.d(e,"supportsFetch",(function(){return k})),n.d(e,"supportsNativeFetch",(function(){return T})),n.d(e,"supportsReportingObserver",(function(){return P})),n.d(e,"supportsReferrerPolicy",(function(){return I})),n.d(e,"supportsHistory",(function(){return R})),n.d(e,"SyncPromise",(function(){return E.a}))},function(t,e,n){"use strict";function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function o(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function i(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return"undefined"!=typeof Event&&t instanceof Event}function f(t){return"undefined"!=typeof Element&&t instanceof Element}function p(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function d(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function h(t){return c(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"j",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"i",(function(){return p})),n.d(e,"l",(function(){return d})),n.d(e,"k",(function(){return h}))},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return U})),n.d(r,"InboundFilters",(function(){return B}));var o=n(0),i=n(40);function a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Object(i.b)();if(r&&r[t])return r[t].apply(r,o.__spread(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function s(t){var e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}return a("captureException",t,{originalException:t,syntheticException:e})}function u(t,e){var n;try{throw new Error(t)}catch(t){n=t}return a("captureMessage",t,e,{originalException:t,syntheticException:n})}function c(t){return a("captureEvent",t)}function l(t){a("configureScope",t)}function f(t){a("addBreadcrumb",t)}function p(t,e){a("setContext",t,e)}function d(t){a("setExtras",t)}function h(t){a("setTags",t)}function _(t,e){a("setExtra",t,e)}function v(t,e){a("setTag",t,e)}function g(t){a("setUser",t)}function y(t){a("withScope",t)}var m=n(13),b=n(25),E=n(5),w=n(12),S=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,O=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.host,r=e.path,o=e.pass,i=e.port,a=e.projectId;return e.protocol+"://"+e.user+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},t.prototype._fromString=function(t){var e=S.exec(t);if(!e)throw new w.a("Invalid Dsn");var n=o.__read(e.slice(1),6),r=n[0],i=n[1],a=n[2],s=void 0===a?"":a,u=n[3],c=n[4],l=void 0===c?"":c,f="",p=n[5],d=p.split("/");d.length>1&&(f=d.slice(0,-1).join("/"),p=d.pop()),this._fromComponents({host:u,pass:s,path:f,projectId:p,port:l,protocol:r,user:i})},t.prototype._fromComponents=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","user","host","projectId"].forEach((function(e){if(!t[e])throw new w.a("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new w.a("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new w.a("Invalid Dsn")},t}(),x=function(){function t(t){this.dsn=t,this._dsnObject=new O(t)}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var t={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(E.e)(t)},t.prototype._getBaseUrl=function(){var t=this._dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_timestamp="+(new Date).getTime()),r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,n=this._getBaseUrl()+(e.path?"/"+e.path:"")+"/api/embed/error-page/",r=[];for(var o in r.push("dsn="+e.toString()),t)if("user"===o){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(t[o]));return r.length?n+"?"+r.join("&"):n},t}(),j=n(9),k=n(3),T=n(6),P=n(8),I=n(1),R=[];function M(t){var e={};return function(t){var e=t.defaultIntegrations&&o.__spread(t.defaultIntegrations)||[],n=t.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(t){return t.name})),a=[];e.forEach((function(t){-1===i.indexOf(t.name)&&-1===a.indexOf(t.name)&&(r.push(t),a.push(t.name))})),n.forEach((function(t){-1===a.indexOf(t.name)&&(r.push(t),a.push(t.name))}))}else"function"==typeof n?(r=n(e),r=Array.isArray(r)?r:[r]):r=o.__spread(e);var s=r.map((function(t){return t.name}));return-1!==s.indexOf("Debug")&&r.push.apply(r,o.__spread(r.splice(s.indexOf("Debug"),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===R.indexOf(t.name)&&(t.setupOnce(m.b,i.b),R.push(t.name),j.a.log("Integration installed: "+t.name))}(t)})),e}var C,N=function(){function t(t,e){this._integrations={},this._processing=!1,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new O(e.dsn)),this._isEnabled()&&(this._integrations=M(this._options))}return t.prototype.captureException=function(t,e,n){var r=this,o=e&&e.event_id;return this._processing=!0,this._getBackend().eventFromException(t,e).then((function(t){return r._processEvent(t,e,n)})).then((function(t){o=t&&t.event_id,r._processing=!1})).then(null,(function(t){j.a.error(t),r._processing=!1})),o},t.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id;return this._processing=!0,(Object(k.h)(t)?this._getBackend().eventFromMessage(""+t,e,n):this._getBackend().eventFromException(t,n)).then((function(t){return o._processEvent(t,n,r)})).then((function(t){i=t&&t.event_id,o._processing=!1})).then(null,(function(t){j.a.error(t),o._processing=!1})),i},t.prototype.captureEvent=function(t,e,n){var r=this,o=e&&e.event_id;return this._processing=!0,this._processEvent(t,e,n).then((function(t){o=t&&t.event_id,r._processing=!1})).then(null,(function(t){j.a.error(t),r._processing=!1})),o},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(n){return clearInterval(n.interval),e._getBackend().getTransport().close(t).then((function(t){return n.ready&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.getIntegrations=function(){return this._integrations||{}},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return j.a.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._isClientProcessing=function(t){var e=this;return new T.a((function(n){var r=0,o=0;clearInterval(o),o=setInterval((function(){e._processing?(r+=1,t&&r>=t&&n({interval:o,ready:!1})):n({interval:o,ready:!0})}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this.getOptions(),i=r.environment,a=r.release,s=r.dist,u=r.maxValueLength,c=void 0===u?250:u,l=o.__assign({},t);void 0===l.environment&&void 0!==i&&(l.environment=i),void 0===l.release&&void 0!==a&&(l.release=a),void 0===l.dist&&void 0!==s&&(l.dist=s),l.message&&(l.message=Object(P.d)(l.message,c));var f=l.exception&&l.exception.values&&l.exception.values[0];f&&f.value&&(f.value=Object(P.d)(f.value,c));var p=l.request;p&&p.url&&(p.url=Object(P.d)(p.url,c)),void 0===l.event_id&&(l.event_id=Object(I.l)()),this._addIntegrations(l.sdk);var d=T.a.resolve(l);return e&&(d=e.applyToEvent(l,n)),d},t.prototype._addIntegrations=function(t){var e=Object.keys(this._integrations);t&&e.length>0&&(t.integrations=e)},t.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate;return this._isEnabled()?"number"==typeof a&&Math.random()>a?T.a.reject("This event has been sampled, will not send event."):new T.a((function(o,a){r._prepareEvent(t,n,e).then((function(t){if(null!==t){var n=t;try{if(e&&e.data&&!0===e.data.__sentry__||!i)return r._getBackend().sendEvent(n),void o(n);var s=i(t,e);if(void 0===s)j.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(k.l)(s))r._handleAsyncBeforeSend(s,o,a);else{if(null===(n=s))return j.a.log("`beforeSend` returned `null`, will not send event."),void o(null);r._getBackend().sendEvent(n),o(n)}}catch(t){r.captureException(t,{data:{__sentry__:!0},originalException:t}),a("`beforeSend` threw an error, will not send event.")}}else a("An event processor returned null, will not send event.")})).then(null,(function(){a("`beforeSend` threw an error, will not send event.")}))})):T.a.reject("SDK not enabled, will not send event.")},t.prototype._handleAsyncBeforeSend=function(t,e,n){var r=this;t.then((function(t){null!==t?(r._getBackend().sendEvent(t),e(t)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(t){n("beforeSend rejected with "+t)}))},t}(),H=n(17),D=function(){function t(){}return t.prototype.sendEvent=function(t){return T.a.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:H.a.Skipped})},t.prototype.close=function(t){return T.a.resolve(!0)},t}(),F=function(){function t(t){this._options=t,this._options.dsn||j.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype._setupTransport=function(){return new D},t.prototype.eventFromException=function(t,e){throw new w.a("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new w.a("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){j.a.error("Error while sending event: "+t)}))},t.prototype.getTransport=function(){return this._transport},t}();function L(t,e){!0===e.debug&&j.a.enable(),Object(i.b)().bindClient(new t(e))}var U=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){C=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry__?this.__sentry_original__:this;return C.apply(n,t)}},t.id="FunctionToString",t}(),A=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],B=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){Object(m.b)((function(e){var n=Object(i.b)();if(!n)return e;var r=n.getIntegration(t);if(r){var o=n.getClient(),a=o?o.getOptions():{},s=r._mergeOptions(a);if(r._shouldDropEvent(e,s))return null}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(j.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(I.e)(t)),!0):this._isIgnoredError(t,e)?(j.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(I.e)(t)),!0):this._isBlacklistedUrl(t,e)?(j.a.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(I.e)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isWhitelistedUrl(t,e)&&(j.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(I.e)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(void 0===e&&(e={}),!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype._isIgnoredError=function(t,e){return void 0===e&&(e={}),!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return Object(P.a)(t,e)}))}))},t.prototype._isBlacklistedUrl=function(t,e){if(void 0===e&&(e={}),!e.blacklistUrls||!e.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.blacklistUrls.some((function(t){return Object(P.a)(n,t)}))},t.prototype._isWhitelistedUrl=function(t,e){if(void 0===e&&(e={}),!e.whitelistUrls||!e.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.whitelistUrls.some((function(t){return Object(P.a)(n,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{blacklistUrls:o.__spread(this._options.blacklistUrls||[],t.blacklistUrls||[]),ignoreErrors:o.__spread(this._options.ignoreErrors||[],t.ignoreErrors||[],A),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:o.__spread(this._options.whitelistUrls||[],t.whitelistUrls||[])}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,o=e.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(e){return j.a.error("Cannot extract message for event "+Object(I.e)(t)),[]}return[]},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return e&&e[e.length-1].filename||null}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(e){return j.a.error("Cannot extract url for event "+Object(I.e)(t)),null}},t.id="InboundFilters",t}();n.d(e,"addBreadcrumb",(function(){return f})),n.d(e,"captureException",(function(){return s})),n.d(e,"captureEvent",(function(){return c})),n.d(e,"captureMessage",(function(){return u})),n.d(e,"configureScope",(function(){return l})),n.d(e,"setContext",(function(){return p})),n.d(e,"setExtra",(function(){return _})),n.d(e,"setExtras",(function(){return d})),n.d(e,"setTag",(function(){return v})),n.d(e,"setTags",(function(){return h})),n.d(e,"setUser",(function(){return g})),n.d(e,"withScope",(function(){return y})),n.d(e,"addGlobalEventProcessor",(function(){return m.b})),n.d(e,"getCurrentHub",(function(){return i.b})),n.d(e,"getHubFromCarrier",(function(){return i.c})),n.d(e,"Hub",(function(){return i.a})),n.d(e,"Scope",(function(){return m.a})),n.d(e,"Span",(function(){return b.a})),n.d(e,"API",(function(){return x})),n.d(e,"BaseClient",(function(){return N})),n.d(e,"BaseBackend",(function(){return F})),n.d(e,"Dsn",(function(){return O})),n.d(e,"initAndBind",(function(){return L})),n.d(e,"NoopTransport",(function(){return D})),n.d(e,"Integrations",(function(){return r}))},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return d})),n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return _}));var r=n(3),o=n(11),i=n(1),a=n(8);function s(t,e,n){if(e in t){var r=t[e],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:o}})}catch(t){}t[e]=o}}function u(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function c(t){if(Object(r.d)(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}if(Object(r.f)(t)){var a=t,s={};s.type=a.type;try{s.target=Object(r.c)(a.target)?Object(i.h)(a.target):Object.prototype.toString.call(a.target)}catch(t){s.target="<unknown>"}try{s.currentTarget=Object(r.c)(a.currentTarget)?Object(i.h)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(t){s.currentTarget="<unknown>"}for(var o in"undefined"!=typeof CustomEvent&&t instanceof CustomEvent&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,o)&&(s[o]=a);return s}return t}function l(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function f(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=h(t,e);return l(r)>n?f(t,e-1,n):r}function p(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(r.k)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+(e.name||"<unknown-function-name>")+"]":e}function d(t,e,n,i){if(void 0===n&&(n=1/0),void 0===i&&(i=new o.a),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=p(t);return Object(r.h)(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var a=p(e,t);if(Object(r.h)(a))return a;var s=c(e),u=Array.isArray(e)?[]:{};if(i.memoize(e))return"[Circular ~]";for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(u[l]=d(l,s[l],n-1,i));return i.unmemoize(e),u}function h(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return d(t,n,e)})))}catch(t){return"**non-serializable**"}}function _(t,e){void 0===e&&(e=40);var n=Object.keys(c(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(a.d)(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:Object(a.d)(o,e)}return""}}).call(this,n(18))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r,o=n(3);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(r||(r={}));var i=function(){function t(t){var e=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(r.RESOLVED,t)},this._reject=function(t){e._setResult(r.REJECTED,t)},this._setResult=function(t,n){e._state===r.PENDING&&(Object(o.l)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){e._state!==r.PENDING&&(e._state===r.REJECTED?e._handlers.forEach((function(t){t.onrejected&&t.onrejected(e._value)})):e._handlers.forEach((function(t){t.onfulfilled&&t.onfulfilled(e._value)})),e._handlers=[])};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.toString=function(){return"[object SyncPromise]"},t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach((function(e,a){t.resolve(e).then((function(t){i[a]=t,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,o){r._attachHandler({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}()},function(t,e,n){"use strict";var r,o;n.r(e),function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(r||(r={})),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(o||(o={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(o||(o={}));var i=n(17);n.d(e,"LogLevel",(function(){return r})),n.d(e,"Severity",(function(){return o})),n.d(e,"Status",(function(){return i.a}))},function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(3);function o(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e?t:t.length<=e?t:t.substr(0,e)+"..."}function i(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var o=Math.max(e-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}function a(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function s(t,e){return Object(r.i)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(1),o=Object(r.f)(),i="Sentry Logger ",a=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&&Object(r.c)((function(){o.console.log(i+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){o.console.warn(i+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){o.console.error(i+"[Error]: "+t.join(" "))}))},t}();o.__SENTRY__=o.__SENTRY__||{};var s=o.__SENTRY__.logger||(o.__SENTRY__.logger=new a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=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 e=0;e<this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}()},function(t,e,n){"use strict";var r=n(0),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});n.d(e,"a",(function(){return i}));var i=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}return r.__extends(e,t),e}(Error)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return f}));var r=n(0),o=n(6),i=n(3),a=n(5),s=n(1),u=n(25),c=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){t._scopeListeners.forEach((function(e){e(t)})),t._notifyingListeners=!1})))},t.prototype._notifyEventProcessors=function(t,e,n,a){var s=this;return void 0===a&&(a=0),new o.a((function(o,u){var c=t[a];if(null===e||"function"!=typeof c)o(e);else{var l=c(r.__assign({},e),n);Object(i.l)(l)?l.then((function(e){return s._notifyEventProcessors(t,e,n,a+1).then(o)})).then(null,u):s._notifyEventProcessors(t,l,n,a+1).then(o).then(null,u)}}))},t.prototype.setUser=function(t){return this._user=Object(a.c)(t),this._notifyScopeListeners(),this},t.prototype.setTags=function(t){return this._tags=r.__assign({},this._tags,Object(a.c)(t)),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=r.__assign({},this._tags,((n={})[t]=Object(a.c)(e),n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=r.__assign({},this._extra,Object(a.c)(t)),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=r.__assign({},this._extra,((n={})[t]=Object(a.c)(e),n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=Object(a.c)(t),this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=Object(a.c)(t),this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this._transaction=t,this._notifyScopeListeners(),this},t.prototype.setContext=function(t,e){return this._context[t]=e?Object(a.c)(e):void 0,this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.startSpan=function(t){var e=new u.a;return e.setParent(t),this.setSpan(e),e},t.prototype.getSpan=function(){return this._span},t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=r.__spread(e._breadcrumbs),n._tags=r.__assign({},e._tags),n._extra=r.__assign({},e._extra),n._context=r.__assign({},e._context),n._user=e._user,n._level=e._level,n._span=e._span,n._transaction=e._transaction,n._fingerprint=e._fingerprint,n._eventProcessors=r.__spread(e._eventProcessors)),n},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=(new Date).getTime()/1e3,o=r.__assign({timestamp:n},t);return this._breadcrumbs=void 0!==e&&e>=0?r.__spread(this._breadcrumbs,[Object(a.c)(o)]).slice(-e):r.__spread(this._breadcrumbs,[Object(a.c)(o)]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,e){return this._extra&&Object.keys(this._extra).length&&(t.extra=r.__assign({},this._extra,t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=r.__assign({},this._tags,t.tags)),this._user&&Object.keys(this._user).length&&(t.user=r.__assign({},this._user,t.user)),this._context&&Object.keys(this._context).length&&(t.contexts=r.__assign({},this._context,t.contexts)),this._level&&(t.level=this._level),this._transaction&&(t.transaction=this._transaction),this._span&&(t.contexts=t.contexts||{},t.contexts.trace=this._span),this._applyFingerprint(t),t.breadcrumbs=r.__spread(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(r.__spread(l(),this._eventProcessors),t,e)},t}();function l(){var t=Object(s.f)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function f(t){l().push(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o="?",i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[-a-z]+:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/;function l(t,e){try{return r.__assign(r.__assign({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function f(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}e.computeStackTrace=function(t){var e=null,n=t&&t.framesToPop;try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,a=n.split("\n"),s=[],u=0;u<a.length;u+=2){var c=null;(e=r.exec(a[u]))?c={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=i.exec(a[u]))&&(c={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),c&&(!c.func&&c.line&&(c.func=o),s.push(c))}if(!s.length)return null;return{message:f(t),name:t.name,stack:s}}(t))return l(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r,l=[],p=t.stack.split("\n"),d=0;d<p.length;++d){if(n=i.exec(p[d])){var h=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=c.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),r={url:n[2],func:n[1]||o,args:h?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=s.exec(p[d]))r={url:n[2],func:n[1]||o,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=a.exec(p[d])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=u.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==d||n[5]||void 0===t.columnNumber||(l[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||o,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=o),l.push(r)}if(!l.length)return null;return{message:f(t),name:t.name,stack:l}}(t))return l(e,n)}catch(t){}return{message:f(t),name:t&&t.name,stack:[],failed:!0}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){var t={request:function(){},httpRequest:function(){},getSystemInfoSync:function(){}};if("object"==typeof wx)t=wx;else if("object"==typeof my)t=my;else if("object"==typeof tt)t=tt;else{if("object"!=typeof dd)throw new Error("sentry-miniapp 暂不支持此平台");t=dd}return t}();e.sdk=n;var r,o=(r="unknown","object"==typeof wx?r="wechat":"object"==typeof my?r="alipay":"object"==typeof tt?r="bytedance":"object"==typeof dd&&(r="dingtalk"),r);e.appName=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o,i=n(0),a=n(4),s=n(2),u=1e3,c=0;function l(){c+=1,setTimeout((function(){c-=1}))}e.shouldIgnoreOnError=function(){return c>0},e.ignoreNextOnError=l,e.wrap=function t(e,n,r){if(void 0===n&&(n={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var o=function(){r&&"function"==typeof r&&r.apply(this,arguments);var o=Array.prototype.slice.call(arguments);try{var u=o.map((function(e){return t(e,n)}));return e.handleEvent?e.handleEvent.apply(this,u):e.apply(this,u)}catch(t){throw l(),a.withScope((function(e){e.addEventProcessor((function(t){var e=i.__assign({},t);return n.mechanism&&(s.addExceptionTypeValue(e,void 0,void 0),s.addExceptionMechanism(e,n.mechanism)),e.extra=i.__assign(i.__assign({},e.extra),{arguments:s.normalize(o,3)}),e})),a.captureException(t)})),t}};try{for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&(o[u]=e[u])}catch(t){}e.prototype=e.prototype||{},o.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:o}),Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(t){}return o};var f=0;function p(t,e){return void 0===e&&(e=!1),function(n){if(r=void 0,n&&o!==n){o=n;var i=function(){var e;try{e=n.target?s.htmlTreeAsString(n.target):s.htmlTreeAsString(n)}catch(t){e="<unknown>"}0!==e.length&&a.getCurrentHub().addBreadcrumb({category:"ui."+t,message:e},{event:n,name:t})};f&&clearTimeout(f),e?f=setTimeout(i):i()}}}e.breadcrumbEventHandler=p,e.keypressEventHandler=function(){return function(t){var e;try{e=t.target}catch(t){return}var n=e&&e.tagName;n&&("INPUT"===n||"TEXTAREA"===n||e.isContentEditable)&&(r||p("input")(t),clearTimeout(r),r=setTimeout((function(){r=void 0}),u))}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(r||(r={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(r||(r={}))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SDK_NAME="sentry.javascript.miniapp",e.SDK_VERSION="0.9.1"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(2),a=n(30),s=n(19),u=function(t){function e(e){return void 0===e&&(e={}),t.call(this,a.MiniappBackend,e)||this}return r.__extends(e,t),e.prototype._prepareEvent=function(e,n,o){return e.platform=e.platform||"javascript",e.sdk=r.__assign(r.__assign({},e.sdk),{name:s.SDK_NAME,packages:r.__spread(e.sdk&&e.sdk.packages||[],[{name:"npm:@sentry/miniapp",version:s.SDK_VERSION}]),version:s.SDK_VERSION}),t.prototype._prepareEvent.call(this,e,n,o)},e.prototype.showReportDialog=function(t){void 0===t&&(t={});var e=i.getGlobalObject().document;if(e)if(this._isEnabled()){var n=t.dsn||this.getDsn();if(t.eventId)if(n){var r=e.createElement("script");r.async=!0,r.src=new o.API(n).getReportDialogEndpoint(t),t.onLoad&&(r.onload=t.onLoad),(e.head||e.body).appendChild(r)}else i.logger.error("Missing `Dsn` option in showReportDialog call");else i.logger.error("Missing `eventId` option in showReportDialog call")}else i.logger.error("Trying to call showReportDialog with Sentry Client is disabled")},e}(o.BaseClient);e.MiniappClient=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(14),i=50;function a(t){var e=s(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function s(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).slice(0,i).reverse()}e.exceptionFromStacktrace=a,e.eventFromPlainObject=function(t,e,n){var i={exception:{values:[{type:r.isEvent(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+r.extractExceptionKeysForMessage(t)}]},extra:{__serialized__:r.normalizeToSize(t)}};if(e){var a=s(o.computeStackTrace(e).stack);i.stacktrace={frames:a}}return i},e.eventFromStacktrace=function(t){return{exception:{values:[a(t)]}}},e.prepareFramesForEvent=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(23);e.BaseTransport=r.BaseTransport;var o=n(32);e.XHRTransport=o.XHRTransport},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(2),i=function(){function t(t){this.options=t,this._buffer=new o.PromiseBuffer(30),this.url=new r.API(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new o.SentryError("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t}();e.BaseTransport=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.GlobalHandlers=r.GlobalHandlers;var o=n(34);e.TryCatch=o.TryCatch;var i=n(35);e.Breadcrumbs=i.Breadcrumbs;var a=n(36);e.LinkedErrors=a.LinkedErrors;var s=n(37);e.UserAgent=s.UserAgent;var u=n(38);e.System=u.System;var c=n(39);e.Router=c.Router},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1),o=/^[ \t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \t]*$/,i=function(){function t(t,e,n,o){void 0===t&&(t=Object(r.l)()),void 0===e&&(e=Object(r.l)().substring(16)),this._traceId=t,this._spanId=e,this._sampled=n,this._parent=o}return t.prototype.setParent=function(t){return this._parent=t,this},t.prototype.setSampled=function(t){return this._sampled=t,this},t.fromTraceparent=function(e){var n=e.match(o);if(n){var r=void 0;"1"===n[3]?r=!0:"0"===n[3]&&(r=!1);var i=new t(n[1],n[2],r);return new t(n[1],void 0,r,i)}},t.prototype.toTraceparent=function(){var t="";return!0===this._sampled?t="-1":!1===this._sampled&&(t="-0"),this._traceId+"-"+this._spanId+t},t.prototype.toJSON=function(){return{parent:this._parent&&this._parent.toJSON()||void 0,sampled:this._sampled,span_id:this._spanId,trace_id:this._traceId}},t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(7);e.Severity=r.Severity,e.Status=r.Status;var o=n(4);e.addGlobalEventProcessor=o.addGlobalEventProcessor,e.addBreadcrumb=o.addBreadcrumb,e.captureException=o.captureException,e.captureEvent=o.captureEvent,e.captureMessage=o.captureMessage,e.configureScope=o.configureScope,e.getHubFromCarrier=o.getHubFromCarrier,e.getCurrentHub=o.getCurrentHub,e.Hub=o.Hub,e.Scope=o.Scope,e.setContext=o.setContext,e.setExtra=o.setExtra,e.setExtras=o.setExtras,e.setTag=o.setTag,e.setTags=o.setTags,e.setUser=o.setUser,e.Span=o.Span,e.withScope=o.withScope;var i=n(19);e.SDK_NAME=i.SDK_NAME,e.SDK_VERSION=i.SDK_VERSION;var a=n(29);e.defaultIntegrations=a.defaultIntegrations,e.init=a.init,e.lastEventId=a.lastEventId,e.showReportDialog=a.showReportDialog,e.flush=a.flush,e.close=a.close,e.wrap=a.wrap;var s=n(20);e.MiniappClient=s.MiniappClient;var u=n(24);e.Integrations=u;var c=n(22);e.Transports=c},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function _(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new h(t,e)),1!==c.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(2),i=n(20),a=n(16),s=n(24);e.defaultIntegrations=[new r.Integrations.InboundFilters,new r.Integrations.FunctionToString,new s.TryCatch,new s.Breadcrumbs,new s.GlobalHandlers,new s.LinkedErrors,new s.UserAgent,new s.System,new s.Router],e.init=function(t){void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=e.defaultIntegrations),r.initAndBind(i.MiniappClient,t)},e.showReportDialog=function(t){void 0===t&&(t={}),t.eventId||(t.eventId=r.getCurrentHub().lastEventId());var e=r.getCurrentHub().getClient();e&&e.showReportDialog(t)},e.lastEventId=function(){return r.getCurrentHub().lastEventId()},e.flush=function(t){var e=r.getCurrentHub().getClient();return e?e.flush(t):o.SyncPromise.reject(!1)},e.close=function(t){var e=r.getCurrentHub().getClient();return e?e.close(t):o.SyncPromise.reject(!1)},e.wrap=function(t){return a.wrap(t)()}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(7),a=n(2),s=n(31),u=n(22),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=r.__assign(r.__assign({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(e):new u.XHRTransport(e)},e.prototype.eventFromException=function(t,e){var n=e&&e.syntheticException||void 0,r=s.eventFromUnknownInput(t,n,{attachStacktrace:this._options.attachStacktrace});return a.addExceptionMechanism(r,{handled:!0,type:"generic"}),r.level=i.Severity.Error,e&&e.event_id&&(r.event_id=e.event_id),a.SyncPromise.resolve(r)},e.prototype.eventFromMessage=function(t,e,n){void 0===e&&(e=i.Severity.Info);var r=n&&n.syntheticException||void 0,o=s.eventFromString(t,r,{attachStacktrace:this._options.attachStacktrace});return o.level=e,n&&n.event_id&&(o.event_id=n.event_id),a.SyncPromise.resolve(o)},e}(o.BaseBackend);e.MiniappBackend=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(21),i=n(14);function a(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var a=i.computeStackTrace(e),s=o.prepareFramesForEvent(a.stack);r.stacktrace={frames:s}}return r}e.eventFromUnknownInput=function(t,e,n){var s;if(void 0===n&&(n={}),r.isErrorEvent(t)&&t.error)return t=t.error,s=o.eventFromStacktrace(i.computeStackTrace(t));if(r.isDOMError(t)||r.isDOMException(t)){var u=t,c=u.name||(r.isDOMError(u)?"DOMError":"DOMException"),l=u.message?c+": "+u.message:c;return s=a(l,e,n),r.addExceptionTypeValue(s,l),s}if(r.isError(t))return s=o.eventFromStacktrace(i.computeStackTrace(t));if(r.isPlainObject(t)||r.isEvent(t)){var f=t;return s=o.eventFromPlainObject(f,e,n.rejection),r.addExceptionMechanism(s,{synthetic:!0}),s}return s=a(t,e,n),r.addExceptionTypeValue(s,""+t,void 0),r.addExceptionMechanism(s,{synthetic:!0}),s},e.eventFromString=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(15),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.sendEvent=function(t){var e=this,n=i.sdk.request||i.sdk.httpRequest;return this._buffer.add(new Promise((function(r,i){n({url:e.url,method:"POST",data:JSON.stringify(t),header:{"content-type":"application/json"},success:function(t){r({status:o.Status.fromHttpCode(t.statusCode)})},fail:function(t){i(t)}})})))},e}(n(23).BaseTransport);e.XHRTransport=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(2),a=n(15),s=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onPageNotFoundHandlerInstalled=!1,this._onMemoryWarningHandlerInstalled=!1,this._options=r.__assign({onerror:!0,onunhandledrejection:!0,onpagenotfound:!0,onmemorywarning:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(i.logger.log("Global Handler attached: onError"),this._installGlobalOnErrorHandler()),this._options.onpagenotfound&&(i.logger.log("Global Handler attached: onPageNotFound"),this._installGlobalOnPageNotFoundHandler()),this._options.onmemorywarning&&(i.logger.log("Global Handler attached: onMemoryWarning"),this._installGlobalOnMemoryWarningHandler())},t.prototype._installGlobalOnErrorHandler=function(){if(!this._onErrorHandlerInstalled&&a.sdk.onError){var t=o.getCurrentHub();a.sdk.onError((function(e){console.info("sentry-miniapp",e),t.captureException(e)})),this._onErrorHandlerInstalled=!0}},t.prototype._installGlobalOnPageNotFoundHandler=function(){if(!this._onPageNotFoundHandlerInstalled&&a.sdk.onPageNotFound){var t=o.getCurrentHub();a.sdk.onPageNotFound((function(e){var n=e.path.split("?")[0];t.setTag("pagenotfound",n),t.setExtra("message",JSON.stringify(e)),t.captureMessage("页面无法找到: "+n)})),this._onPageNotFoundHandlerInstalled=!0}},t.prototype._installGlobalOnMemoryWarningHandler=function(){if(!this._onMemoryWarningHandlerInstalled&&a.sdk.onMemoryWarning){var t=o.getCurrentHub();a.sdk.onMemoryWarning((function(e){var n=e.level,r=void 0===n?-1:n,o="没有获取到告警级别信息";switch(r){case 5:o="TRIM_MEMORY_RUNNING_MODERATE";break;case 10:o="TRIM_MEMORY_RUNNING_LOW";break;case 15:o="TRIM_MEMORY_RUNNING_CRITICAL";break;default:return}t.setTag("memory-warning",String(r)),t.setExtra("message",o),t.captureMessage("内存不足告警")})),this._onMemoryWarningHandlerInstalled=!0}},t.id="GlobalHandlers",t}();e.GlobalHandlers=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(16),i=function(){function t(){this._ignoreOnError=0,this.name=t.id}return t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=o.wrap(r,{mechanism:{data:{function:a(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t(o.wrap(e,{mechanism:{data:{function:"requestAnimationFrame",handler:a(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=r.getGlobalObject(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(r.fill(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=o.wrap(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:a(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,o.wrap(r,{mechanism:{data:{function:"addEventListener",handler:a(r),target:t},handled:!0,type:"instrument"}}),i)}})),r.fill(n,"removeEventListener",(function(t){return function(e,n,r){var o=n;try{o=o&&(o.__sentry_wrapped__||o)}catch(t){}return t.call(this,e,o,r)}})))},t.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var t=r.getGlobalObject();r.fill(t,"setTimeout",this._wrapTimeFunction.bind(this)),r.fill(t,"setInterval",this._wrapTimeFunction.bind(this)),r.fill(t,"requestAnimationFrame",this._wrapRAF.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},t.id="TryCatch",t}();function a(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}e.TryCatch=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(0),i=n(4),a=n(7),s=n(2),u=n(16),c=s.getGlobalObject(),l=function(){function t(e){this.name=t.id,this._options=o.__assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype._instrumentConsole=function(){"console"in c&&["debug","info","warn","error","log","assert"].forEach((function(e){e in c.console&&s.fill(c.console,e,(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i={category:"console",data:{extra:{arguments:s.normalize(r,3)},logger:"console"},level:a.Severity.fromString(e),message:s.safeJoin(r," ")};"assert"===e&&!1===r[0]&&(i.message="Assertion failed: "+(s.safeJoin(r.slice(1)," ")||"console.assert"),i.data.extra.arguments=s.normalize(r.slice(1),3)),t.addBreadcrumb(i,{input:r,level:e}),n&&Function.prototype.apply.call(n,c.console,r)}}))}))},t.prototype._instrumentDOM=function(){"document"in c&&(c.document.addEventListener("click",u.breadcrumbEventHandler("click"),!1),c.document.addEventListener("keypress",u.keypressEventHandler(),!1),["EventTarget","Node"].forEach((function(t){var e=c[t]&&c[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(s.fill(e,"addEventListener",(function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&s.fill(n,"handleEvent",(function(t){return function(e){return u.breadcrumbEventHandler("click")(e),t.call(this,e)}})),"keypress"===e&&s.fill(n,"handleEvent",(function(t){return function(e){return u.keypressEventHandler()(e),t.call(this,e)}}))):("click"===e&&u.breadcrumbEventHandler("click",!0)(this),"keypress"===e&&u.keypressEventHandler()(this)),t.call(this,e,n,r)}})),s.fill(e,"removeEventListener",(function(t){return function(e,n,r){var o=n;try{o=o&&(o.__sentry_wrapped__||o)}catch(t){}return t.call(this,e,o,r)}})))})))},t.prototype._instrumentFetch=function(){s.supportsNativeFetch()&&s.fill(c,"fetch",(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o,u=n[0],l="GET";"string"==typeof u?o=u:"Request"in c&&u instanceof Request?(o=u.url,u.method&&(l=u.method)):o=String(u),n[1]&&n[1].method&&(l=n[1].method);var p=i.getCurrentHub().getClient(),d=p&&p.getDsn();if(d){var h=new i.API(d).getStoreEndpoint();if(h&&o.includes(h))return"POST"===l&&n[1]&&n[1].body&&f(n[1].body),e.apply(c,n)}var _={method:s.isString(l)?l.toUpperCase():l,url:o};return e.apply(c,n).then((function(e){return _.status_code=e.status,t.addBreadcrumb({category:"fetch",data:_,type:"http"},{input:n,response:e}),e})).catch((function(e){throw t.addBreadcrumb({category:"fetch",data:_,level:a.Severity.Error,type:"http"},{error:e,input:n}),e}))}}))},t.prototype._instrumentHistory=function(){var e=this;if(s.supportsHistory()){var n=function(e,n){var o=s.parseUrl(c.location.href),i=s.parseUrl(n),a=s.parseUrl(e);a.path||(a=o),r=n,o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),o.protocol===a.protocol&&o.host===a.host&&(e=a.relative),t.addBreadcrumb({category:"navigation",data:{from:e,to:n}})},o=c.onpopstate;c.onpopstate=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var a=c.location.href;if(n(r,a),o)return o.apply(e,t)},s.fill(c.history,"pushState",i),s.fill(c.history,"replaceState",i)}function i(t){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var i=e.length>2?e[2]:void 0;return i&&n(r,String(i)),t.apply(this,e)}}},t.prototype._instrumentXHR=function(){if("XMLHttpRequest"in c){var e=XMLHttpRequest.prototype;s.fill(e,"open",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[1];this.__sentry_xhr__={method:s.isString(e[0])?e[0].toUpperCase():e[0],url:e[1]};var o=i.getCurrentHub().getClient(),a=o&&o.getDsn();if(a){var u=new i.API(a).getStoreEndpoint();s.isString(r)&&u&&r.includes(u)&&(this.__sentry_own_request__=!0)}return t.apply(this,e)}})),s.fill(e,"send",(function(e){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this;function a(){if(4===i.readyState){if(i.__sentry_own_request__)return;try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(t){}t.addBreadcrumb({category:"xhr",data:i.__sentry_xhr__,type:"http"},{xhr:i})}}return i.__sentry_own_request__&&f(r[0]),["onload","onerror","onprogress"].forEach((function(t){n(t,i)})),"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?s.fill(i,"onreadystatechange",(function(t){return u.wrap(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},a)})):i.onreadystatechange=a,e.apply(this,r)}}))}function n(t,e){t in e&&"function"==typeof e[t]&&s.fill(e,t,(function(e){return u.wrap(e,{mechanism:{data:{function:t,handler:e&&e.name||"<anonymous>"},handled:!0,type:"instrument"}})}))}},t.addBreadcrumb=function(e,n){i.getCurrentHub().getIntegration(t)&&i.getCurrentHub().addBreadcrumb(e,n)},t.prototype.setupOnce=function(){this._options.console&&this._instrumentConsole(),this._options.dom&&this._instrumentDOM(),this._options.xhr&&this._instrumentXHR(),this._options.fetch&&this._instrumentFetch(),this._options.history&&this._instrumentHistory()},t.id="Breadcrumbs",t}();function f(t){try{var e=JSON.parse(t);l.addBreadcrumb({category:"sentry",event_id:e.event_id,level:e.level||a.Severity.fromString("error"),message:s.getEventDescription(e)},{event:e})}catch(t){s.logger.error("Error while adding sentry type breadcrumb")}}e.Breadcrumbs=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(21),a=n(14),s="cause",u=5,c=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||s,this._limit=e.limit||u}return t.prototype.setupOnce=function(){o.addGlobalEventProcessor((function(e,n){var r=o.getCurrentHub().getIntegration(t);return r?r._handler(e,n):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&e.originalException instanceof Error))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=r.__spread(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!(t[e]instanceof Error)||n.length+1>=this._limit)return n;var o=a.computeStackTrace(t[e]),s=i.exceptionFromStacktrace(o);return this._walkErrorTree(t[e],e,r.__spread([s],n))},t.id="LinkedErrors",t}();e.LinkedErrors=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(2).getGlobalObject(),a=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){o.addGlobalEventProcessor((function(e){if(o.getCurrentHub().getIntegration(t)){if(!i.navigator||!i.location)return e;var n=e.request||{};return n.url=n.url||i.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=i.navigator.userAgent,r.__assign(r.__assign({},e),{request:n})}return e}))},t.id="UserAgent",t}();e.UserAgent=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(4),i=n(15),a=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){o.addGlobalEventProcessor((function(e){if(o.getCurrentHub().getIntegration(t))try{var n=i.sdk.getSystemInfoSync(),a=n.SDKVersion,s=void 0===a?"0.0.0":a,u=n.batteryLevel,c=n.currentBattery,l=n.battery,f=n.brand,p=n.language,d=n.model,h=n.pixelRatio,_=n.platform,v=n.screenHeight,g=n.screenWidth,y=n.statusBarHeight,m=n.system,b=n.version,E=n.windowHeight,w=n.windowWidth,S=n.wifiSignal,O=n.app,x=n.appName,j=n.storage,k=n.fontSizeSetting,T=r.__read(m.split(" "),2),P=T[0],I=T[1];return r.__assign(r.__assign({},e),{contexts:r.__assign(r.__assign({},e.contexts),{device:{brand:f,battery_level:u||c||l,model:d,screen_dpi:h},os:{name:P||m,version:I||m},extra:{SDKVersion:s,language:p,platform:_,screenHeight:v,screenWidth:g,statusBarHeight:y,version:b,windowHeight:E,windowWidth:w,wifiSignal:S,fontSizeSetting:k,storage:j,app:O||x||i.appName}})})}catch(t){console.warn("sentry-miniapp get system info fail: "+t)}return e}))},t.id="System",t}();e.System=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(4),i=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){o.addGlobalEventProcessor((function(e){if(o.getCurrentHub().getIntegration(t))try{var n=getCurrentPages().map((function(t){return{route:t.route,options:t.options}}));return r.__assign(r.__assign({},e),{extra:r.__assign(r.__assign({},e.extra),{routers:n})})}catch(t){console.warn("sentry-miniapp get router info fail: "+t)}return e}))},t.id="Router",t}();e.Router=i},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return d}));var r=n(0),o=n(1),i=n(9),a=n(13),s=3,u=function(){function t(t,e,n){void 0===e&&(e=new a.a),void 0===n&&(n=s),this._version=n,this._stack=[],this._stack.push({client:t,scope:e})}return t.prototype._invokeClient=function(t){for(var e,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=this.getStackTop();i&&i.client&&i.client[t]&&(e=i.client)[t].apply(e,r.__spread(n,[i.scope]))},t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t},t.prototype.pushScope=function(){var t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=a.a.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n},t.prototype.popScope=function(){return void 0!==this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=Object(o.l)(),i=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(t){a=t}i={originalException:t,syntheticException:a}}return this._invokeClient("captureException",t,r.__assign({},i,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var i=this._lastEventId=Object(o.l)(),a=n;if(!n){var s=void 0;try{throw new Error(t)}catch(t){s=t}a={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,e,r.__assign({},a,{event_id:i})),i},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=Object(o.l)();return this._invokeClient("captureEvent",t,r.__assign({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop();if(n.scope&&n.client){var i=n.client.getOptions&&n.client.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,u=i.maxBreadcrumbs,c=void 0===u?30:u;if(!(c<=0)){var l=(new Date).getTime()/1e3,f=r.__assign({timestamp:l},t),p=s?Object(o.c)((function(){return s(f,e)})):f;null!==p&&n.scope.addBreadcrumb(p,Math.min(c,100))}}},t.prototype.setUser=function(t){var e=this.getStackTop();e.scope&&e.scope.setUser(t)},t.prototype.setTags=function(t){var e=this.getStackTop();e.scope&&e.scope.setTags(t)},t.prototype.setExtras=function(t){var e=this.getStackTop();e.scope&&e.scope.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getStackTop();n.scope&&n.scope.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=l(this);try{t(this)}finally{l(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return i.a.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.traceHeaders=function(){var t=this.getStackTop();if(t.scope&&t.client){var e=t.scope.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}},t}();function c(){var t=Object(o.f)();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function l(t){var e=c(),n=d(e);return h(e,t),n}function f(){var e=c();return p(e)&&!d(e).isOlderThan(s)||h(e,new u),Object(o.i)()?function(e){try{var n=Object(o.d)(t,"domain").active;if(!n)return d(e);if(!p(n)||d(n).isOlderThan(s)){var r=d(e).getStackTop();h(n,new u(r.client,a.a.clone(r.scope)))}return d(n)}catch(t){return d(e)}}(e):d(e)}function p(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function d(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new u,t.__SENTRY__.hub)}function h(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}}).call(this,n(27)(t))}]);
  //# sourceMappingURL=sentry-minapp.tt.min.js.map