btc-rpc-explorer
Version:
Open-source, self-hosted Bitcoin explorer
2 lines • 71.3 kB
JavaScript
/*! @sentry/browser 4.5.3 (14f757ce) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var e=function(t,n){return(e=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,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,o,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,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 s(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 u(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 c(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 l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}function p(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function f(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function h(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function d(t){return void 0===t}function v(t){return"function"==typeof t}function g(t){return"[object String]"===Object.prototype.toString.call(t)}function m(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function y(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){return t!=t}function E(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}}function x(){var t=E(),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 _(t){var e,n,r,o,i,a=[];if(!t||!t.tagName)return"";if(a.push(t.tagName.toLowerCase()),t.id&&a.push("#"+t.id),(e=t.className)&&g(e))for(n=e.split(/\s+/),i=0;i<n.length;i++)a.push("."+n[i]);var s=["type","name","title","alt"];for(i=0;i<s.length;i++)r=s[i],(o=t.getAttribute(r))&&a.push("["+r+'="'+o+'"]');return a.join("")}function S(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 w(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 k(t){var e=E();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log"].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}(r=t.Severity||(t.Severity={})).Fatal="fatal",r.Error="error",r.Warning="warning",r.Log="log",r.Info="info",r.Debug="debug",r.Critical="critical",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}}}(t.Severity||(t.Severity={})),(o=t.Status||(t.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",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}}(t.Status||(t.Status={}));var O=function(){function t(){this.hasWeakSet="function"==typeof WeakSet,this.inner=this.hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){var e,n;if(this.hasWeakSet)return!!this.inner.has(t)||(this.inner.add(t),!1);try{for(var r=u(this.inner),o=r.next();!o.done;o=r.next()){if(o.value===t)return!0}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}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(t,e){return void 0===e&&(e=0),0!==e&&g(t)?t.length<=e?t:t.substr(0,e)+"...":t}function j(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 I(t,e){return!(e.length>t.length)&&-1!==t.indexOf(e)}function R(t){return JSON.stringify(t,H({normalize:!1}))}function F(t,e,n){if(e in t&&!t[e].__sentry__){var r=t[e],o=n(r);o.__sentry__=!0,o.__sentry_original__=r,o.__sentry_wrapped__=o,t[e]=o}}var C=3,D=102400,N=40;function U(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function L(t){var e=Object.prototype.toString.call(t);return"string"==typeof t?T(t,40):"[object Object]"===e?"[Object]":"[object Array]"===e?"[Array]":M(t)}function P(t,e){if(0===e)return L(t);if(y(t)){var n={},r=t;return Object.keys(r).forEach(function(t){n[t]=P(r[t],e-1)}),n}return Array.isArray(t)?t.map(function(t){return P(t,e-1)}):L(t)}function B(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null===t||void 0===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),o=0;o<e.length;o++){var i=e[o];if(null!==i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r}function M(t,e){return"domain"===e&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":t instanceof Date?"[Date] "+t:t instanceof Error?function(t){var e={message:t.message,name:t.name,stack:t.stack};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(t):"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":b(t)?"[NaN]":d(t)?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t}function A(t,e){if(void 0===e&&(e=new O),!m(t)){if(e.memoize(t))return"[Circular ~]";for(var n in t)t[n]=A(t[n],e);e.unmemoize(t)}return t}function H(t){return void 0===t&&(t={normalize:!0}),function(e,n){return t.normalize?M(A(n),e):A(n)}}function $(t){try{return JSON.parse(JSON.stringify(t,H({normalize:!0})))}catch(t){return"**non-serializable**"}}var W=function(){function t(){this.notifyingListeners=!1,this.scopeListeners=[],this.eventProcessors=[],this.breadcrumbs=[],this.user={},this.tags={},this.extra={}}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){return a(this,void 0,void 0,function(){var n,r,o,a,c,p,f;return s(this,function(s){switch(s.label){case 0:o=t,s.label=1;case 1:s.trys.push([1,8,9,10]),a=u(l(q(),this.eventProcessors)),c=a.next(),s.label=2;case 2:if(c.done)return[3,7];p=c.value,s.label=3;case 3:return s.trys.push([3,5,,6]),[4,p(i({},o),e)];case 4:return null===(o=s.sent())?[2,null]:[3,6];case 5:return s.sent(),[3,6];case 6:return c=a.next(),[3,2];case 7:return[3,10];case 8:return f=s.sent(),n={error:f},[3,10];case 9:try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}return[7];case 10:return[2,o]}})})},t.prototype.setUser=function(t){return this.user=$(t),this.notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this.tags=i({},this.tags,((n={})[t]=$(e),n)),this.notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this.extra=i({},this.extra,((n={})[t]=$(e),n)),this.notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this.fingerprint=$(t),this.notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this.level=$(t),this.notifyScopeListeners(),this},t.clone=function(e){var n=new t;return B(n,e,{scopeListeners:[]}),e&&(n.extra=B(e.extra),n.tags=B(e.tags),n.breadcrumbs=l(e.breadcrumbs),n.eventProcessors=l(e.eventProcessors)),n},t.prototype.clear=function(){this.breadcrumbs=[],this.tags={},this.extra={},this.user={},this.level=void 0,this.fingerprint=void 0,this.notifyScopeListeners()},t.prototype.addBreadcrumb=function(t,e){this.breadcrumbs=void 0!==e&&e>=0?l(this.breadcrumbs,[$(t)]).slice(-e):l(this.breadcrumbs,[$(t)]),this.notifyScopeListeners()},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.message&&(t.fingerprint=t.fingerprint.concat(t.message)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,e,n){return a(this,void 0,void 0,function(){return s(this,function(r){return this.extra&&Object.keys(this.extra).length&&(t.extra=i({},this.extra,t.extra)),this.tags&&Object.keys(this.tags).length&&(t.tags=i({},this.tags,t.tags)),this.user&&Object.keys(this.user).length&&(t.user=i({},this.user,t.user)),this.level&&(t.level=this.level),this.applyFingerprint(t),(!t.breadcrumbs||0===t.breadcrumbs.length)&&this.breadcrumbs.length>0&&(t.breadcrumbs=void 0!==n&&n>=0?this.breadcrumbs.slice(-n):this.breadcrumbs),[2,this.notifyEventProcessors(t,e)]})})},t}();function q(){var t=E();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function z(t){q().push(t)}var V=E(),Y=new(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&&k(function(){V.console.log("Sentry Logger [Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&k(function(){V.console.warn("Sentry Logger [Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&k(function(){V.console.error("Sentry Logger [Error]: "+t.join(" "))})},t}()),G=3,X=function(){function t(t,e,n){void 0===e&&(e=new W),void 0===n&&(n=G),this.version=n,this.stack=[],this.stack.push({client:t,scope:e})}return t.prototype.invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,l(n,[o.scope]))},t.prototype.invokeClientAsync=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,l(n,[o.scope])).catch(function(t){Y.error(t)})},t.prototype.isOlderThan=function(t){return this.version<t},t.prototype.bindClient=function(t){var e=this.getStackTop();e.client=t,e&&e.scope&&t&&e.scope.addScopeListener(function(e){if(t.getBackend)try{t.getBackend().storeScope(e)}catch(t){}})},t.prototype.pushScope=function(){var t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=W.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=x();return this.invokeClientAsync("captureException",t,i({},e,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=x();return this.invokeClientAsync("captureMessage",t,e,i({},n,{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=x();return this.invokeClientAsync("captureEvent",t,i({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){this.invokeClient("addBreadcrumb",t,i({},e))},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=K(this);try{t(this)}finally{K(e)}},t.prototype.getIntegration=function(t){try{return this.getClient().getIntegration(t)}catch(e){return Y.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t}();function J(){var t=E();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function K(t){var e=J(),n=tt(e);return et(e,t),n}function Z(){var t,e,n=J();Q(n)&&!tt(n).isOlderThan(G)||et(n,new X);try{var r=(t=module,e="domain",t.require(e)).active;if(!r)return tt(n);if(!Q(r)||tt(r).isOlderThan(G)){var o=tt(n).getStackTop();et(r,new X(o.client,W.clone(o.scope)))}return tt(r)}catch(t){return tt(n)}}function Q(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function tt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__={},t.__SENTRY__.hub=new X,t.__SENTRY__.hub)}function et(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function nt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Z();if(r&&r[t])return r[t].apply(r,l(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function captureException(t){var e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}return nt("captureException",t,{originalException:t,syntheticException:e})}function captureMessage(t,e){var n;try{throw new Error(t)}catch(t){n=t}return nt("captureMessage",t,e,{originalException:t,syntheticException:n})}function rt(t){nt("withScope",t)}var ot=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,Object.setPrototypeOf(r,n.prototype),r}return n(e,t),e}(Error),it=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,at=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=it.exec(t);if(!e)throw new ot("Invalid Dsn");var n=c(e.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],u=n[4],l=void 0===u?"":u,p="",f=n[5],h=f.split("/");h.length>1&&(p=h.slice(0,-1).join("/"),f=h.pop()),B(this,{host:s,pass:a,path:p,projectId:f,port:l,protocol:r,user:o})},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,e;try{for(var n=u(["protocol","user","host","projectId"]),r=n.next();!r.done;r=n.next()){var o=r.value;if(!this[o])throw new ot("Invalid Dsn: Missing "+o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}if("http"!==this.protocol&&"https"!==this.protocol)throw new ot('Invalid Dsn: Unsupported protocol "'+this.protocol+'"');if(this.port&&b(parseInt(this.port,10)))throw new ot('Invalid Dsn: Invalid port number "'+this.port+'"')},t}(),st=function(){function t(t){this.dsn=t,this.dsnObject=new at(t)}return t.prototype.getDsn=function(){return this.dsnObject},t.prototype.getStoreEndpoint=function(){return""+this.getBaseUrl()+this.getStoreEndpointPath()},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var t,e={sentry_key:this.dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(t=e,Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"))},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}();var ut=[];function ct(t){var e={};return function(t){var e,n,r,o,i=t.defaultIntegrations&&l(t.defaultIntegrations)||[],a=t.integrations,s=[];if(Array.isArray(a)){var c=a.map(function(t){return t.name}),p=[];try{for(var f=u(i),h=f.next();!h.done;h=f.next()){var d=h.value;-1===c.indexOf(lt(d))&&-1===p.indexOf(lt(d))&&(s.push(d),p.push(lt(d)))}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}try{for(var v=u(a),g=v.next();!g.done;g=v.next()){var m=g.value;-1===p.indexOf(lt(m))&&(s.push(m),p.push(lt(m)))}}catch(t){r={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else{if("function"!=typeof a)return l(i);s=a(i),s=Array.isArray(s)?s:[s]}return s}(t).forEach(function(n){e[lt(n)]=n,function(t,e){if(-1===ut.indexOf(lt(t))){try{t.setupOnce()}catch(n){t.install&&(Y.warn("Integration "+lt(t)+': The install method is deprecated. Use "setupOnce".'),t.install(e))}ut.push(lt(t)),Y.log("Integration installed: "+lt(t))}}(n,t)}),e}function lt(t){return t.constructor.id||t.name}var pt,ft=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){return a(this,void 0,void 0,function(){var e=this;return s(this,function(n){return this.isReady()?(-1===this.buffer.indexOf(t)&&this.buffer.push(t),t.then(function(){return a(e,void 0,void 0,function(){return s(this,function(e){return[2,this.remove(t)]})})}).catch(function(){return a(e,void 0,void 0,function(){return s(this,function(e){return[2,this.remove(t).catch(function(){})]})})}),[2,t]):[2,Promise.reject(new ot("Not adding Promise due to buffer limit reached."))]})})},t.prototype.remove=function(t){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,this.buffer.splice(this.buffer.indexOf(t),1)[0]]})})},t.prototype.length=function(){return this.buffer.length},t.prototype.drain=function(t){return a(this,void 0,void 0,function(){var e=this;return s(this,function(n){return[2,new Promise(function(n){var r=setTimeout(function(){t&&t>0&&n(!1)},t);Promise.all(e.buffer).then(function(){clearTimeout(r),n(!0)}).catch(function(){n(!0)})})]})})},t}(),ht=function(){function e(t,e){this.buffer=new ft,this.backend=new t(e),this.options=e,e.dsn&&(this.dsn=new at(e.dsn)),this.integrations=ct(this.options)}return e.prototype.install=function(){if(!this.isEnabled())return this.installed=!1;var t=this.getBackend();return!this.installed&&t.install&&t.install(),this.installed=!0},e.prototype.captureException=function(t,e,n){return a(this,void 0,void 0,function(){var r=this;return s(this,function(o){return[2,this.buffer.add(a(r,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:return[4,this.getBackend().eventFromException(t,e)];case 1:return r=o.sent(),[2,this.captureEvent(r,e,n)]}})}))]})})},e.prototype.captureMessage=function(t,e,n,r){return a(this,void 0,void 0,function(){var o=this;return s(this,function(i){return[2,this.buffer.add(a(o,void 0,void 0,function(){var o,i;return s(this,function(a){switch(a.label){case 0:return m(t)?[4,this.getBackend().eventFromMessage(""+t,e,n)]:[3,2];case 1:return i=a.sent(),[3,4];case 2:return[4,this.getBackend().eventFromException(t,n)];case 3:i=a.sent(),a.label=4;case 4:return o=i,[2,this.captureEvent(o,n,r)]}})}))]})})},e.prototype.captureEvent=function(t,e,n){return a(this,void 0,void 0,function(){var r=this;return s(this,function(o){return[2,this.buffer.add(a(r,void 0,void 0,function(){var r=this;return s(this,function(o){return[2,this.processEvent(t,function(t){return a(r,void 0,void 0,function(){return s(this,function(e){return[2,this.getBackend().sendEvent(t)]})})},e,n)]})}))]})})},e.prototype.addBreadcrumb=function(t,e,n){var r=this.getOptions(),o=r.beforeBreadcrumb,a=r.maxBreadcrumbs,s=void 0===a?30:a;if(!(s<=0)){var u=(new Date).getTime()/1e3,c=i({timestamp:u},t),l=o?k(function(){return o(c,e)}):c;null!==l&&this.getBackend().storeBreadcrumb(l)&&n&&n.addBreadcrumb(l,Math.min(s,100))}},e.prototype.getDsn=function(){return this.dsn},e.prototype.getOptions=function(){return this.options},e.prototype.getBackend=function(){return this.backend},e.prototype.isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this.dsn},e.prototype.prepareEvent=function(t,e,n){return a(this,void 0,void 0,function(){var r,o,a,u,c,l,p,f,h;return s(this,function(s){return r=this.getOptions(),o=r.environment,a=r.maxBreadcrumbs,u=void 0===a?30:a,c=r.release,l=r.dist,void 0===(p=i({},t)).environment&&void 0!==o&&(p.environment=o),void 0===p.release&&void 0!==c&&(p.release=c),void 0===p.dist&&void 0!==l&&(p.dist=l),p.message&&(p.message=T(p.message,250)),(f=p.exception&&p.exception.values&&p.exception.values[0])&&f.value&&(f.value=T(f.value,250)),(h=p.request)&&h.url&&(h.url=T(h.url,250)),void 0===p.event_id&&(p.event_id=x()),e?[2,e.applyToEvent(p,n,Math.min(u,100))]:[2,p]})})},e.prototype.processEvent=function(e,n,r,o){return a(this,void 0,void 0,function(){var i,a,u,c,l,p,f,h;return s(this,function(s){switch(s.label){case 0:return this.isEnabled()?(i=this.getOptions(),a=i.beforeSend,"number"==typeof(u=i.sampleRate)&&Math.random()>u?[2,{status:t.Status.Skipped}]:[4,this.prepareEvent(e,o,r)]):[2,{status:t.Status.Skipped}];case 1:if(null===(c=s.sent()))return[2,{status:t.Status.Skipped}];l=c,s.label=2;case 2:return s.trys.push([2,5,,6]),r&&r.data&&!0===r.data.__sentry__||!a?[3,4]:[4,a(c,r)];case 3:void 0===(l=s.sent())&&Y.error("`beforeSend` method has to return `null` or a valid event"),s.label=4;case 4:return[3,6];case 5:return p=s.sent(),this.captureException(p,{data:{__sentry__:!0},originalException:p}).catch(function(t){console.error(t)}),[2,{reason:"Event processing in beforeSend method threw an exception",status:t.Status.Invalid}];case 6:if(null===l)return[2,{reason:"Event dropped due to being discarded by beforeSend method",status:t.Status.Skipped}];s.label=7;case 7:return s.trys.push([7,9,,10]),[4,n(l)];case 8:return(f=s.sent()).event=l,f.status,t.Status.RateLimit,[2,f];case 9:return h=s.sent(),Y.error(""+h),[2,{reason:""+h,status:t.Status.Failed}];case 10:return[2]}})})},e.prototype.close=function(t){return a(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.getBackend().getTransport().close(t),this.buffer.drain(t)])];case 1:return[2,e.sent().reduce(function(t,e){return t&&e})]}})})},e.prototype.getIntegrations=function(){return this.integrations||{}},e.prototype.getIntegration=function(t){try{return this.integrations[t.id]||null}catch(e){return Y.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},e}(),dt=function(){function e(){}return e.prototype.sendEvent=function(e){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})]})})},e.prototype.close=function(t){return a(this,void 0,void 0,function(){return s(this,function(t){return[2,Promise.resolve(!0)]})})},e}(),vt=function(){function t(t){this.options=t,this.options.dsn||Y.warn("No DSN provided, backend will not do anything."),this.transport=this.setupTransport()}return t.prototype.setupTransport=function(){return new dt},t.prototype.eventFromException=function(t,e){return a(this,void 0,void 0,function(){return s(this,function(t){throw new ot("Backend has to implement `eventFromException` method")})})},t.prototype.eventFromMessage=function(t,e,n){return a(this,void 0,void 0,function(){return s(this,function(t){throw new ot("Backend has to implement `eventFromMessage` method")})})},t.prototype.sendEvent=function(t){return a(this,void 0,void 0,function(){return s(this,function(e){return this.transport.captureEvent?[2,this.transport.captureEvent(t)]:[2,this.transport.sendEvent(R(t))]})})},t.prototype.storeBreadcrumb=function(t){return!0},t.prototype.storeScope=function(t){},t.prototype.getTransport=function(){return this.transport},t}();!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(pt||(pt={}));var gt,mt=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e=this;z(function(n){return a(e,void 0,void 0,function(){var e;return s(this,function(r){if(e=Z().getIntegration(t)){try{if(e.shouldDropEvent(n,e.previousEvent))return[2,null]}catch(t){return[2,e.previousEvent=n]}return[2,e.previousEvent=n]}return[2,n]})})})},t.prototype.shouldDropEvent=function(t,e){return!!e&&(this.isSameMessageEvent(t,e)?(Y.warn("Event dropped due to being a duplicate of previous event (same message).\nEvent: "+w(t)),!0):!!this.isSameExceptionEvent(t,e)&&(Y.warn("Event dropped due to being a duplicate of previous event (same exception).\nEvent: "+w(t)),!0))},t.prototype.isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this.isSameFingerprint(t,e)&&!!this.isSameStacktrace(t,e))))},t.prototype.getFramesFromEvent=function(t){var e=t.exception;if(!e)return t.stacktrace?t.stacktrace.frames:void 0;try{return e.values[0].stacktrace.frames}catch(t){return}},t.prototype.isSameStacktrace=function(t,e){var n=this.getFramesFromEvent(t),r=this.getFramesFromEvent(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],a=n[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0},t.prototype.getExceptionFromEvent=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},t.prototype.isSameExceptionEvent=function(t,e){var n=this.getExceptionFromEvent(e),r=this.getExceptionFromEvent(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this.isSameFingerprint(t,e)&&!!this.isSameStacktrace(t,e)))},t.prototype.isSameFingerprint=function(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(t){return!1}},t.id="Dedupe",t}(),yt=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){gt=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 gt.apply(n,t)}},t.id="FunctionToString",t}(),bt=function(){function t(){this.name="SDKInformation"}return t.prototype.setupOnce=function(){Y.warn("SDKInformation Integration is deprecated and can be safely removed. It's functionality has been merged into the SDK's core.")},t}(),Et=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],xt=function(){function t(e){void 0===e&&(e={}),this.options=e,this.name=t.id}return t.prototype.setupOnce=function(){var e=this;z(function(n){return a(e,void 0,void 0,function(){var e,r,o,i,a;return s(this,function(s){return(e=Z())&&(r=e.getIntegration(t))&&(o=e.getClient(),i=o?o.getOptions():{},a=r.mergeOptions(i),r.shouldDropEvent(n,a))?[2,null]:[2,n]})})})},t.prototype.shouldDropEvent=function(t,e){return this.isSentryError(t,e)?(Y.warn("Event dropped due to being internal Sentry Error.\nEvent: "+w(t)),!0):this.isIgnoredError(t,e)?(Y.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+w(t)),!0):this.isBlacklistedUrl(t,e)?(Y.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+w(t)+".\nUrl: "+this.getEventFilterUrl(t)),!0):!this.isWhitelistedUrl(t,e)&&(Y.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+w(t)+".\nUrl: "+this.getEventFilterUrl(t)),!0)},t.prototype.isSentryError=function(t,e){if(void 0===e&&(e={}),!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}},t.prototype.isIgnoredError=function(t,e){var n=this;return void 0===e&&(e={}),!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.getPossibleEventMessages(t).some(function(t){return e.ignoreErrors.some(function(e){return n.isMatchingPattern(t,e)})})},t.prototype.isBlacklistedUrl=function(t,e){var n=this;if(void 0===e&&(e={}),!e.blacklistUrls||!e.blacklistUrls.length)return!1;var r=this.getEventFilterUrl(t);return!!r&&e.blacklistUrls.some(function(t){return n.isMatchingPattern(r,t)})},t.prototype.isWhitelistedUrl=function(t,e){var n=this;if(void 0===e&&(e={}),!e.whitelistUrls||!e.whitelistUrls.length)return!0;var r=this.getEventFilterUrl(t);return!r||e.whitelistUrls.some(function(t){return n.isMatchingPattern(r,t)})},t.prototype.mergeOptions=function(t){return void 0===t&&(t={}),{blacklistUrls:l(this.options.blacklistUrls||[],t.blacklistUrls||[]),ignoreErrors:l(this.options.ignoreErrors||[],t.ignoreErrors||[],Et),ignoreInternal:void 0===this.options.ignoreInternal||this.options.ignoreInternal,whitelistUrls:l(this.options.whitelistUrls||[],t.whitelistUrls||[])}},t.prototype.isMatchingPattern=function(t,e){return n=e,"[object RegExp]"===Object.prototype.toString.call(n)?e.test(t):"string"==typeof e&&I(t,e);var n},t.prototype.getPossibleEventMessages=function(t){if(t.message)return[t.message];if(!t.exception)return[];try{var e=t.exception.values[0],n=e.type,r=e.value;return[""+r,n+": "+r]}catch(e){return Y.error("Cannot extract message for event "+w(t)),[]}},t.prototype.getEventFilterUrl=function(t){try{return t.stacktrace?t.stacktrace.frames[0].filename:t.exception?t.exception.values[0].stacktrace.frames[0].filename:null}catch(e){return Y.error("Cannot extract url for event "+w(t)),null}},t.id="InboundFilters",t}(),_t=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e=this;z(function(n,r){return a(e,void 0,void 0,function(){var e;return s(this,function(o){return(e=Z().getIntegration(t))?[2,e.enhanceEventWithErrorData(n,r)]:[2,n]})})})},t.prototype.enhanceEventWithErrorData=function(t,e){if(!e||!e.originalException||!p(e.originalException))return t;var n=this.extractErrorData(e.originalException);if(n){var r=i({},t.extra),o=$(n);return g(o)||(r=i({},t.extra,o)),i({},t,{extra:r})}return t},t.prototype.extractErrorData=function(t){var e,n,r,o=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=t.name||t.constructor.name,s=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.indexOf(t)});if(s.length){var c={};try{for(var l=u(s),f=l.next();!f.done;f=l.next()){var h=f.value,d=t[h];p(d)&&(d=d.name||d.constructor.name),c[h]=d}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}(r={})[a]=c,o=r}}catch(t){Y.error("Unable to extract extra data from the Error object:",t)}return o},t.id="ExtraErrorData",t}(),St=function(){function t(e){this.name=t.id,this.options=i({debugger:!1,stringify:!1},e)}return t.prototype.setupOnce=function(){var e=this;z(function(n,r){return a(e,void 0,void 0,function(){var e;return s(this,function(o){return(e=Z().getIntegration(t))&&(e.options.debugger,e.options.stringify?(console.log(JSON.stringify(n,null,2)),r&&console.log(JSON.stringify(r,null,2))):(console.log(n),r&&console.log(r))),[2,n]})})})},t.id="Debug",t}();var wt=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function kt(){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 n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"),(r?"/":"")+n||"."}function Ot(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 Tt(t,e){var n,r,o=(n=t,r=wt.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}var jt=function(){function t(e){void 0===e&&(e={});var n=this;this.name=t.id,this.iteratee=function(t){return a(n,void 0,void 0,function(){var e;return s(this,function(n){return t.filename&&t.filename.startsWith("/")&&(e=this.root?function(t,e){t=kt(t).substr(1),e=kt(e).substr(1);for(var n=Ot(t.split("/")),r=Ot(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("/")}(this.root,t.filename):Tt(t.filename),t.filename="app:///"+e),[2,t]})})},e.root&&(this.root=e.root),e.iteratee&&(this.iteratee=e.iteratee)}return t.prototype.setupOnce=function(){var e=this;z(function(n){return a(e,void 0,void 0,function(){var e;return s(this,function(r){return(e=Z().getIntegration(t))?[2,e.process(n)]:[2,n]})})})},t.prototype.process=function(t){return a(this,void 0,void 0,function(){var e,n,r,o,i,a,u;return s(this,function(s){switch(s.label){case 0:if(!(e=this.getFramesFromEvent(t)))return[3,4];for(r in n=[],e)n.push(r);o=0,s.label=1;case 1:return o<n.length?(i=n[o],a=e,u=i,[4,this.iteratee(e[i])]):[3,4];case 2:a[u]=s.sent(),s.label=3;case 3:return o++,[3,1];case 4:return[2,t]}})})},t.prototype.getFramesFromEvent=function(t){var e=t.exception;if(!e)return t.stacktrace?t.stacktrace.frames:void 0;try{return e.values[0].stacktrace.frames}catch(t){return}},t.id="RewriteFrames",t}(),It=Object.freeze({Dedupe:mt,FunctionToString:yt,SDKInformation:bt,InboundFilters:xt,ExtraErrorData:_t,Debug:St,RewriteFrames:jt});function Rt(){if(!("fetch"in E()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Ft(){var t=E();return"navigator"in t&&"sendBeacon"in t.navigator}function Ct(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function Dt(t,e,n,r,o,i){return Ct((a=Ct(Ct(e,t),Ct(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function Nt(t,e,n,r,o,i,a){return Dt(e&n|~e&r,t,e,o,i,a)}function Ut(t,e,n,r,o,i,a){return Dt(e&r|n&~r,t,e,o,i,a)}function Lt(t,e,n,r,o,i,a){return Dt(e^n^r,t,e,o,i,a)}function Pt(t,e,n,r,o,i,a){return Dt(n^(e|~r),t,e,o,i,a)}function Bt(t,e){var n,r,o,i,a;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var s=1732584193,u=-271733879,c=-1732584194,l=271733878;for(n=0;n<t.length;n+=16)r=s,o=u,i=c,a=l,u=Pt(u=Pt(u=Pt(u=Pt(u=Lt(u=Lt(u=Lt(u=Lt(u=Ut(u=Ut(u=Ut(u=Ut(u=Nt(u=Nt(u=Nt(u=Nt(u,c=Nt(c,l=Nt(l,s=Nt(s,u,c,l,t[n],7,-680876936),u,c,t[n+1],12,-389564586),s,u,t[n+2],17,606105819),l,s,t[n+3],22,-1044525330),c=Nt(c,l=Nt(l,s=Nt(s,u,c,l,t[n+4],7,-176418897),u,c,t[n+5],12,1200080426),s,u,t[n+6],17,-1473231341),l,s,t[n+7],22,-45705983),c=Nt(c,l=Nt(l,s=Nt(s,u,c,l,t[n+8],7,1770035416),u,c,t[n+9],12,-1958414417),s,u,t[n+10],17,-42063),l,s,t[n+11],22,-1990404162),c=Nt(c,l=Nt(l,s=Nt(s,u,c,l,t[n+12],7,1804603682),u,c,t[n+13],12,-40341101),s,u,t[n+14],17,-1502002290),l,s,t[n+15],22,1236535329),c=Ut(c,l=Ut(l,s=Ut(s,u,c,l,t[n+1],5,-165796510),u,c,t[n+6],9,-1069501632),s,u,t[n+11],14,643717713),l,s,t[n],20,-373897302),c=Ut(c,l=Ut(l,s=Ut(s,u,c,l,t[n+5],5,-701558691),u,c,t[n+10],9,38016083),s,u,t[n+15],14,-660478335),l,s,t[n+4],20,-405537848),c=Ut(c,l=Ut(l,s=Ut(s,u,c,l,t[n+9],5,568446438),u,c,t[n+14],9,-1019803690),s,u,t[n+3],14,-187363961),l,s,t[n+8],20,1163531501),c=Ut(c,l=Ut(l,s=Ut(s,u,c,l,t[n+13],5,-1444681467),u,c,t[n+2],9,-51403784),s,u,t[n+7],14,1735328473),l,s,t[n+12],20,-1926607734),c=Lt(c,l=Lt(l,s=Lt(s,u,c,l,t[n+5],4,-378558),u,c,t[n+8],11,-2022574463),s,u,t[n+11],16,1839030562),l,s,t[n+14],23,-35309556),c=Lt(c,l=Lt(l,s=Lt(s,u,c,l,t[n+1],4,-1530992060),u,c,t[n+4],11,1272893353),s,u,t[n+7],16,-155497632),l,s,t[n+10],23,-1094730640),c=Lt(c,l=Lt(l,s=Lt(s,u,c,l,t[n+13],4,681279174),u,c,t[n],11,-358537222),s,u,t[n+3],16,-722521979),l,s,t[n+6],23,76029189),c=Lt(c,l=Lt(l,s=Lt(s,u,c,l,t[n+9],4,-640364487),u,c,t[n+12],11,-421815835),s,u,t[n+15],16,530742520),l,s,t[n+2],23,-995338651),c=Pt(c,l=Pt(l,s=Pt(s,u,c,l,t[n],6,-198630844),u,c,t[n+7],10,1126891415),s,u,t[n+14],15,-1416354905),l,s,t[n+5],21,-57434055),c=Pt(c,l=Pt(l,s=Pt(s,u,c,l,t[n+12],6,1700485571),u,c,t[n+3],10,-1894986606),s,u,t[n+10],15,-1051523),l,s,t[n+1],21,-2054922799),c=Pt(c,l=Pt(l,s=Pt(s,u,c,l,t[n+8],6,1873313359),u,c,t[n+15],10,-30611744),s,u,t[n+6],15,-1560198380),l,s,t[n+13],21,1309151649),c=Pt(c,l=Pt(l,s=Pt(s,u,c,l,t[n+4],6,-145523070),u,c,t[n+11],10,-1120210379),s,u,t[n+2],15,718787259),l,s,t[n+9],21,-343485551),s=Ct(s,r),u=Ct(u,o),c=Ct(c,i),l=Ct(l,a);return[s,u,c,l]}function Mt(t){var e,n="",r=32*t.length;for(e=0;e<r;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function At(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var r=8*t.length;for(e=0;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function Ht(t){var e,n,r="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),r+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return r}function $t(t){return unescape(encodeURIComponent(t))}function Wt(t){return function(t){return Mt(Bt(At(t),8*t.length))}($t(t))}function qt(t,e){return function(t,e){var n,r,o=At(t),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=Bt(o,8*t.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],a[n]=1549556828^o[n];return r=Bt(i.concat(At(e)),512+8*e.length),Mt(Bt(a.concat(r),640))}($t(t),$t(e))}function zt(t,e,n){return e?n?qt(e,t):Ht(qt(e,t)):n?Wt(t):Ht(Wt(t))}var Vt=E(),Yt={wrap:function(){return function(){}},report:!1,collectWindowErrors:!1,computeStackTrace:!1,remoteFetching:!1,linesOfContext:!1,extendToAsynchronousCallbacks:!1},Gt=[].slice,Xt="?",Jt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function Kt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Zt(){return"undefined"==typeof document||null==document.location?"":document.location.href}Yt.wrap=function(t){return function(){try{return t.apply(this,arguments)}catch(t){throw Yt.report(t),t}}},Yt.report=function(){var t,e,n,r,o=[],a=null,s=null;function u(t,e,n){var r=null;if(!e||Yt.collectWindowErrors){for(var i in o)if(Kt(o,i))try{o[i](t,e,n)}catch(t){r=t}if(r)throw r}}function c(e,n,r,o,a){var c=null;if(a=f(a)?a.error:a,e=f(e)?e.message:e,s)Yt.computeStackTrace.augmentStackTraceWithInitialElement(s,n,r,e),h();else if(a&&p(a))(c=Yt.computeStackTrace(a)).mechanism="onerror",u(c,!0,a);else{var l,d={url:n,line:r,column:o},v=e;if("[object String]"==={}.toString.call(e)){var g=e.match(Jt);g&&(l=g[1],v=g[2])}d.func=Yt.computeStackTrace.guessFunctionName(d.url,d.line),d.context=Yt.computeStackTrace.gatherContext(d.url,d.line),u(c={name:l,message:v,mode:"onerror",mechanism:"onerror",stack:[i({},d,{url:d.url||Zt()})]},!0,null)}return!!t&&t.apply(this,arguments)}function l(t){var e=t&&(t.detail?t.detail.reason:t.reason)||t,n=Yt.computeStackTrace(e);n.mechanism="onunhandledrejection",u(n,!0,e)}function h(){var t=s,e=a;s=null,a=null,u(t,!1,e)}function d(t){if(s){if(a===t)return;h()}var e=Yt.computeStackTrace(t);throw s=e,a=t,setTimeout(function(){a===t&&h()},e.incomplete?2e3:0),t}return d.subscribe=function(t){o.push(t)},d.unsubscribe=function(i){for(var a=o.length-1;a>=0;--a)o[a]===i&&o.splice(a,1);0===o.length&&(e&&(Vt.onerror=t,e=!1),r&&(Vt.onunhandledrejection=n,r=!1))},d.installGlobalHandler=function(){!0!==e&&(t=Vt.onerror,Vt.onerror=c,e=!0)},d.installGlobalUnhandledRejectionHandler=function(){!0!==r&&(n=Vt.onunhandledrejection,Vt.onunhandledrejection=l,r=!0)},d}(),Yt.computeStackTrace=function(){var t=!1,e={};function n(t){if("string"!=typeof t)return[];if(!Kt(e,t)){var n="",r="";try{r=Vt.document.domain}catch(t){}var o=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);o&&o[2]===r&&(n=function(t){if(!Yt.remoteFetching)return"";try{var e=function(){try{return new Vt.XMLHttpRequest}catch(t){return new Vt.ActiveXObject("Microsoft.XMLHTTP")}}();return e.open("GET",t,!1),e.send(""),e.responseText}catch(t){return""}}(t)),e[t]=n?n.split("\n"):[]}return e[t]}function r(t,e){var r,o=/function ([^(]*)\(([^)]*)\)/,i=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",s=n(t);if(!s.length)return Xt;for(var u=0;u<10;++u)if(!d(a=s[e-u]+a)){if(r=i.exec(a))return r[1];if(r=o.exec(a))return r[1]}return Xt}function o(t,e){var r=n(t);if(!r.length)return null;var o=[],i=Math.floor(Yt.linesOfContext/2),a=i+Yt.linesOfContext%2,s=Math.max(0,e-i-1),u=Math.min(r.length,e+a-1);e-=1;for(var c=s;c<u;++c)d(r[c])||o.push(r[c]);return o.length>0?o:null}function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function a(t){return i(t).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function s(t,e){for(var r,o,i=0,a=e.length;i<a;++i)if((r=n(e[i])).length&&(r=r.join("\n"),o=t.exec(r)))return{url:e[i],line:r.substring(0,o.index).split("\n").length,column:o.index-r.lastIndexOf("\n",o.index)-1};return null}function u(t,e,r){var o,a=n(e),s=new RegExp("\\b"+i(t)+"\\b");return r-=1,a&&a.length>r&&(o=s.exec(a[r]))?o.index:null}function c(t){if(!d(Vt&&Vt.document)){for(var e,n,r,o,u=[Zt()],c=Vt.document.getElementsByTagName("script"),l=""+t,p=0;p<c.length;++p){var f=c[p];f.src&&u.push(f.src)}if(r=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)){var h=r[1]?"\\s+"+r[1]:"",v=r[2].split(",").join("\\s*,\\s*");e=i(r[3]).replace(/;$/,";?"),n=new RegExp("function"+h+"\\s*\\(\\s*"+v+"\\s*\\)\\s*{\\s*"+e+"\\s*}")}else n=new RegExp(i(l).replace(/\s+/g,"\\s+"));if(o=s(n,u))return o;if(r=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)){var g=r[1];if(e=a(r[2]),o=s(n=new RegExp("on"+g+"=[\\'\"]\\s*"+e+"\\s*[\\'\"]","i"),u[0]))return o;if(o=s(n=new RegExp(e),u))return o}return null}}function l(t){if(!t.stack)return null;for(var e,n,i,a=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=t.stack.split("\n"),h=[],v=/^(.*) is undefined$/.exec(t.message),g=0,m=f.length;g<m;++g){if(n=a.exec(f[g])){var y=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=p.exec(n[2]))&&(n[2]=e[1]),i={url:y?null:n[2],func:n[1]||Xt,args:y?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=c.exec(f[g]))i={url:n[2],func:n[1]||Xt,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=s.exec(f[g])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=l.exec(n[3]))?n[3]=e[1]:0!==g||n[5]||d(t.columnNumber)||(h[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||Xt,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=r(i.url,i.line)),Yt.remoteFetching&&i.url&&"blob:"===i.url.substr(0,5)){var b=new XMLHttpRequest;if(b.open("GET",i.url,!1),b.send(""),200===b.status){var E=b.responseText||"",x=(E=E.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(x){var _=x[1];"~"===_.charAt(0)&&(_=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+_.slice(1)),i.url=_.slice(0,-4)}}}i.context=i.line?o(i.url,i.line):null,h.push(i)}return h.length?(h[0]&&h[0].line&&!h[0].column&&v&&(h[0].column=u(v[1],h[0].url,h[0].line)),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function p(t,e,n,i){var a={url:e,line:n};if(a.url&&a.line){t.incomplete=!1,a.func||(a.func=r(a.url,a.line)),a.context||(a.context=o(a.url,a.line));var s=/ '([^']+)' /.exec(i);if(s&&(a.column=u(s[1],a.url,a.line)),t.stack.length>0&&t.stack[0].url===a.url){if(t.stack[0].line===a.line)return!1;if(!t.stack[0].line&&t.stack[0].func===a.func)return t.stack[0].line=a.line,t.stack[0].context=a.context,!1}return t.stack.unshift(a),t.partial=!0,!0}return t.incomplete=!0,!1}function f(t,e){for(var n,o,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],l={},d=!1,v=f.caller;v&&!d;v=v.caller)if(v!==h&&v!==Yt.report){if(o={url:null,func:Xt,args:[],line:null,column:null},v.name?o.func=v.name:(n=a.exec(v.toString()))&&(o.func=n[1]),void 0===o.func)try{o.func=n.input.substring(0,n.input.indexOf("{"))}catch(t){}if(i=c(v)){o.url=i.url,o.line=i.line,o.func===Xt&&(o.func=r(o.url,o.line));var g=/ '([^']+)' /.exec(t.message||t.description);g&&(o.column=u(g[1],i.url,i.line))}l[""+v]?d=!0:l[""+v]=!0,s.push(o)}e&&s.splice(0,e);var m={mode:"callers",name:t.name,message:t.message,stack:s};return p(m,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),m}function h(e,i){var u=null;i=null==i?0:+i;try{if(u=function(t){var e=t.stacktrace;if(e){for(var n,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=e.split("\n"),u=[],c=0;c<s.length;c+=2){var l=null;if((n=i.exec(s[c]))?l={url:n[2],line:+n[1],column:null,func:n[3],args:[]}:(n=a.exec(s[c]))&&(l={url:n[6],line:+n[1],column:+n[2],func:n[3]||n[4],args:n[5]?n[5].split(","):[]}),l){if(!l.func&&l.line&&(l.func=r(l.url,l.line)),l.line)try{l.context=o(l.url,l.line)}catch(t){}l.context||(l.context=[s[c+1]]),u.push(l)}}return u.length?{mode:"stacktrace",name:t.name,message:t.message,stack:u}:null}}(e))return u}catch(e){if(t)throw e}try{if(u=l(e))return u}catch(e){if(t)throw e}try{if(u=function(t){var e=t.message.split("\n");if(e.length<4)return null;var i,u=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,c=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,l=/^\s*Line (\d+) of function script\s*$/i,p=[],f=Vt&&Vt.document&&Vt.document.getElementsByTagName("script"),h=[];for(var d in f)Kt(f,d)&&!f[d].src&&h.push(f[d]);for(var v=2;v<e.length;v+=2){var g=null;if(i=u.exec(e[v]))g={url:i[2],func:i[3],args:[],line:+i[1],column:null};else if(i=c.exec(e[v])){g={url:i[3],func:i[4],args:[],line:+i[1],column:null};var m=+i[1],y=h[i[2]-1];if(y){var b=n(g.url);if(b){var E=(b=b.join("\n")).indexOf(y.innerText);E>=0&&(g.line=m+b.substring(0,E).split("\n").length)}}}else if(i=l.exec(e[v])){var x=Zt().replace(/#.*$/,""),_=s(new RegExp(a(e[v+1])),[x]);g={url:x,func:"",args:[],line:_?_.line:i[1],column:null}}if(g){g.func||(g.func=r(g.url,g.line));var S=o(g.url,g.line),w=S?S[Math.floor(S.length/2)]:null;S&&w.replace(/^\s*/,"")===e[v+1].replace(/^\s*/,"")?g.context=S:g.context=[e[v+1]],p.push(g)}}return p.length?{mode:"multiline",name:t.name,message:e[0],stack:p}:null}(e))return u}catch(e){if(t)throw e}try{if(u=f(e,i+1))return u}cat