System.register([],function(_n){"use strict";return{execute:function(){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=function(t,e){return(o=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 t(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p,s,e,a,n,l=function(){return(l=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 _(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.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 s}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}function h(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return 1;default:return S(t,Error)}}function d(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function f(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function v(t){return"[object String]"===Object.prototype.toString.call(t)}function y(t){return null===t||"object"!==r(t)&&"function"!=typeof t}function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function m(t){return"undefined"!=typeof Event&&S(t,Event)}function b(t){return"undefined"!=typeof Element&&S(t,Element)}function E(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function S(t,e){try{return t instanceof e}catch(t){return!1}}function x(t,e){try{for(var n,r=t,o=[],i=0,s=0,a=" > ".length;r&&i++<5&&!("html"===(n=function(t,e){var n,r,o,i,s=t,a=[];if(!s||!s.tagName)return"";a.push(s.tagName.toLowerCase());var t=null!==(t=e)&&void 0!==t&&t.length?e.filter(function(t){return s.getAttribute(t)}).map(function(t){return[t,s.getAttribute(t)]}):null;if(null!==(e=t)&&void 0!==e&&e.length)t.forEach(function(t){a.push("["+t[0]+'="'+t[1]+'"]')});else if(s.id&&a.push("#"+s.id),(t=s.className)&&v(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)a.push("."+n[i]);var c=["type","name","title","alt"];for(i=0;i<c.length;i++)r=c[i],(o=s.getAttribute(r))&&a.push("["+r+'="'+o+'"]');return a.join("")}(r,e))||1<i&&80<=s+o.length*a+n.length);)o.push(n),s+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch(t){return"<unknown>"}}(de=p=p||{}).Ok="ok",de.Exited="exited",de.Crashed="crashed",de.Abnormal="abnormal",(_e={}).Ok="ok",_e.Errored="errored",_e.Crashed="crashed",(Ue=s=s||{}).Fatal="fatal",Ue.Error="error",Ue.Warning="warning",Ue.Log="log",Ue.Info="info",Ue.Debug="debug",Ue.Critical="critical",(e=s=s||{}).fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}},(ze=a=a||{}).Unknown="unknown",ze.Skipped="skipped",ze.Success="success",ze.RateLimit="rate_limit",ze.Invalid="invalid",ze.Failed="failed",(n=a=a||{}).fromHttpCode=function(t){return 200<=t&&t<300?n.Success:429===t?n.RateLimit:400<=t&&t<500?n.Invalid:500<=t?n.Failed:n.Unknown};var i=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});var w,k=(t(O,w=Error),O);function O(t){var e=this.constructor,n=w.call(this,t)||this;return n.message=t,n.name=e.prototype.constructor.name,i(n,e.prototype),n}var T=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,j="Invalid Dsn",R=(I.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.host,r=e.path,o=e.pass,i=e.port,s=e.projectId;return e.protocol+"://"+e.publicKey+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r&&r+"/")+s},I.prototype._fromString=function(t){var e=T.exec(t);if(!e)throw new k(j);var n=c(e.slice(1),6),r=n[0],o=n[1],i=n[2],s=void 0===i?"":i,a=n[3],t=n[4],e=void 0===t?"":t,i="",t=n[5],n=t.split("/");1<n.length&&(i=n.slice(0,-1).join("/"),t=n.pop()),!t||(n=t.match(/^\d+/))&&(t=n[0]),this._fromComponents({host:a,pass:s,path:i,projectId:t,port:e,protocol:r,publicKey:o})},I.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},I.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach(function(t){if(!e[t])throw new k(j+": "+t+" missing")}),!this.projectId.match(/^\d+$/))throw new k(j+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new k(j+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new k(j+": Invalid port "+this.port)},I);function I(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}function D(){return"[object process]"===Object.prototype.toString.call(void 0!=={env:{NODE_ENV:"production"}}?{env:{NODE_ENV:"production"}}:0)}function N(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function C(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 L(t,e){return!!v(t)&&(n=e,"[object RegExp]"===Object.prototype.toString.call(n)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e));var n}var A={};function U(){return D()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:A}function P(){var t=U(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;e=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return e(t[0])+e(t[1])+e(t[2])+e(t[3])+e(t[4])+e(t[5])+e(t[6])+e(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function F(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",t=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+t}}function q(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 B(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_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});t=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),t}function M(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(e,n){void 0===n&&(n={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(n).forEach(function(t){e.exception.values[0].mechanism[t]=n[t]})}catch(t){}}var W=U(),Y="Sentry Logger ",z=(G.prototype.disable=function(){this._enabled=!1},G.prototype.enable=function(){this._enabled=!0},G.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&B(function(){W.console.log(Y+"[Log]: "+t.join(" "))})},G.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&B(function(){W.console.warn(Y+"[Warn]: "+t.join(" "))})},G.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&B(function(){W.console.error(Y+"[Error]: "+t.join(" "))})},G);function G(){this._enabled=!1}W.__SENTRY__=W.__SENTRY__||{};var J=W.__SENTRY__.logger||(W.__SENTRY__.logger=new z),X=(K.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},K.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}},K);function K(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}var V="<anonymous>";function $(t){try{return t&&"function"==typeof t?t.name||V:V}catch(t){return V}}function Q(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_original__:{enumerable:!1,value:r}})}catch(t){}t[e]=o}}function Z(t){if(h(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if(m(t)){var r,o=t,i={};i.type=o.type;try{i.target=b(o.target)?x(o.target):Object.prototype.toString.call(o.target)}catch(t){i.target="<unknown>"}try{i.currentTarget=b(o.currentTarget)?x(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){i.currentTarget="<unknown>"}for(r in"undefined"!=typeof CustomEvent&&S(t,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}return t}function tt(t){return t=JSON.stringify(t),~-encodeURI(t).split(/%..|./).length}function et(t,e){return"domain"===e&&t&&"object"===r(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]":g(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+$(t)+"]":"symbol"===r(t)?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function nt(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new X),0===n)return o=e,i=Object.prototype.toString.call(o),"string"==typeof o?o:"[object Object]"===i?"[Object]":"[object Array]"===i?"[Array]":y(o=et(o))?o:i;var o,i;if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();t=et(e,t);if(y(t))return t;var s,a=Z(e),c=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(s in a)Object.prototype.hasOwnProperty.call(a,s)&&(c[s]=nt(s,a[s],n-1,r));return r.unmemoize(e),c}function rt(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return nt(t,e,n)}))}catch(t){return"**non-serializable**"}}function ot(t){var e,n;if(g(t)){var r=t,o={};try{for(var i=_(Object.keys(r)),s=i.next();!s.done;s=i.next()){var a=s.value;void 0!==r[a]&&(o[a]=ot(r[a]))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o}return Array.isArray(t)?t.map(ot):t}function it(){if("fetch"in U())try{return new Headers,new Request(""),new Response,1}catch(t){return}}function st(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var at,ct=U(),ut={},pt={};function lt(t){var r,s,a,c,e;if(!pt[t])switch(pt[t]=!0,t){case"console":!void("console"in ct&&["debug","info","warn","error","log","assert"].forEach(function(r){r in ct.console&&Q(ct.console,r,function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];dt("console",{args:t,level:r}),n&&Function.prototype.apply.call(n,ct.console,t)}})}));break;case"dom":!void("document"in ct&&(c=dt.bind(null,"dom"),e=yt(c,!0),ct.document.addEventListener("click",e,!1),ct.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(t){t=ct[t]&&ct[t].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Q(t,"addEventListener",function(i){return function(t,e,n){if("click"===t||"keypress"==t)try{var r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[t]=r[t]||{refCount:0};o.handler||(r=yt(c),o.handler=r,i.call(this,t,r,n)),o.refCount+=1}catch(t){}return i.call(this,t,e,n)}}),Q(t,"removeEventListener",function(i){return function(t,e,n){if("click"===t||"keypress"==t)try{var r=this.__sentry_instrumentation_handlers__||{},o=r[t];o&&(--o.refCount,o.refCount<=0&&(i.call(this,t,o.handler,n),o.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return i.call(this,t,e,n)}}))})));break;case"xhr":!void("XMLHttpRequest"in ct&&(s=[],a=[],Q(e=XMLHttpRequest.prototype,"open",function(i){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this,n=e[1];r.__sentry_xhr__={method:v(e[0])?e[0].toUpperCase():e[0],url:e[1]},v(n)&&"POST"===r.__sentry_xhr__.method&&n.match(/sentry_key/)&&(r.__sentry_own_request__=!0);function o(){if(4===r.readyState){try{r.__sentry_xhr__&&(r.__sentry_xhr__.status_code=r.status)}catch(t){}try{var t=s.indexOf(r);-1!==t&&(s.splice(t),t=a.splice(t)[0],r.__sentry_xhr__&&void 0!==t[0]&&(r.__sentry_xhr__.body=t[0]))}catch(t){}dt("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}}return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Q(r,"onreadystatechange",function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(),n.apply(r,t)}}):r.addEventListener("readystatechange",o),i.apply(r,e)}}),Q(e,"send",function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.push(this),a.push(t),dt("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),n.apply(this,t)}})));break;case"fetch":!void(function(){if(it()){var t=U();if(st(t.fetch))return 1;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=st(r.contentWindow.fetch)),n.head.removeChild(r)}catch(t){J.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}}()&&Q(ct,"fetch",function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={args:t,fetchData:{method:function(t){void 0===t&&(t=[]);if("Request"in ct&&S(t[0],Request)&&t[0].method)return String(t[0].method).toUpperCase();if(t[1]&&t[1].method)return String(t[1].method).toUpperCase();return"GET"}(t),url:function(t){void 0===t&&(t=[]);if("string"==typeof t[0])return t[0];if("Request"in ct&&S(t[0],Request))return t[0].url;return String(t[0])}(t)},startTimestamp:Date.now()};return dt("fetch",l({},n)),r.apply(ct,t).then(function(t){return dt("fetch",l(l({},n),{endTimestamp:Date.now(),response:t})),t},function(t){throw dt("fetch",l(l({},n),{endTimestamp:Date.now(),error:t})),t})}}));break;case"history":!void(function(){var t=U(),e=(e=t.chrome)&&e.app&&e.app.runtime,t="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&t}()&&(r=ct.onpopstate,ct.onpopstate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=ct.location.href;if(dt("history",{from:at,to:at=n}),r)try{return r.apply(this,t)}catch(t){}},Q(ct.history,"pushState",n),Q(ct.history,"replaceState",n)));break;case"error":gt=ct.onerror,ct.onerror=function(t,e,n,r,o){return dt("error",{column:r,error:o,line:n,msg:t,url:e}),!!gt&&gt.apply(this,arguments)};break;case"unhandledrejection":bt=ct.onunhandledrejection,ct.onunhandledrejection=function(t){return dt("unhandledrejection",t),!bt||bt.apply(this,arguments)};break;default:J.warn("unknown instrumentation type:",t)}function n(o){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=2<t.length?t[2]:void 0;return r&&(n=at,r=String(r),dt("history",{from:n,to:at=r})),o.apply(this,t)}}}function ht(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(ut[t.type]=ut[t.type]||[],ut[t.type].push(t.callback),lt(t.type))}function dt(e,t){var n,r;if(e&&ut[e])try{for(var o=_(ut[e]||[]),i=o.next();!i.done;i=o.next()){var s=i.value;try{s(t)}catch(t){J.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+$(s)+"\nError: "+t)}}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var ft,_t,vt=1e3;function yt(n,r){return void 0===r&&(r=!1),function(t){var e;t&&_t!==t&&!function(t){if("keypress"===t.type){try{var e=t.target;if(!e||!e.tagName)return 1;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return}catch(t){}return 1}}(t)&&(e="keypress"===t.type?"input":t.type,void 0!==ft&&!function(t,e){if(!t)return 1;if(t.type!==e.type)return 1;try{if(t.target!==e.target)return 1}catch(t){}}(_t,t)||(n({event:t,name:e,global:r}),_t=t),clearTimeout(ft),ft=ct.setTimeout(function(){ft=void 0},vt))}}var gt=null;var mt,bt=null;(Ze=mt=mt||{}).PENDING="PENDING",Ze.RESOLVED="RESOLVED",Ze.REJECTED="REJECTED";var Et=(St.resolve=function(e){return new St(function(t){t(e)})},St.reject=function(n){return new St(function(t,e){e(n)})},St.all=function(t){return new St(function(n,r){var o,i;Array.isArray(t)?0!==t.length?(o=t.length,i=[],t.forEach(function(t,e){St.resolve(t).then(function(t){i[e]=t,0===--o&&n(i)}).then(null,r)})):n([]):r(new TypeError("Promise.all requires an array as input."))})},St.prototype.then=function(r,o){var t=this;return new St(function(e,n){t._attachHandler({done:!1,onfulfilled:function(t){if(r)try{return void e(r(t))}catch(t){return void n(t)}else e(t)},onrejected:function(t){if(o)try{return void e(o(t))}catch(t){return void n(t)}else n(t)}})})},St.prototype.catch=function(t){return this.then(function(t){return t},t)},St.prototype.finally=function(o){var i=this;return new St(function(t,e){var n,r;return i.then(function(t){r=!1,n=t,o&&o()},function(t){r=!0,n=t,o&&o()}).then(function(){(r?e:t)(n)})})},St.prototype.toString=function(){return"[object SyncPromise]"},St);function St(t){var n=this;this._state=mt.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(mt.RESOLVED,t)},this._reject=function(t){n._setResult(mt.REJECTED,t)},this._setResult=function(t,e){n._state===mt.PENDING&&(E(e)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){var t;n._state!==mt.PENDING&&(t=n._handlers.slice(),n._handlers=[],t.forEach(function(t){t.done||(n._state===mt.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===mt.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)}))};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}var xt=(wt.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},wt.prototype.add=function(t){var e=this;if(!this.isReady())return Et.reject(new k("Not adding Promise due to buffer limit reached."));var n=t();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then(function(){return e.remove(n)}).then(null,function(){return e.remove(n).then(null,function(){})}),n},wt.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},wt.prototype.length=function(){return this._buffer.length},wt.prototype.drain=function(n){var r=this;return new Et(function(t){var e=setTimeout(function(){n&&0<n&&t(!1)},n);Et.all(r._buffer).then(function(){clearTimeout(e),t(!0)}).then(null,function(){t(!0)})})},wt);function wt(t){this._limit=t,this._buffer=[]}var kt={nowSeconds:function(){return Date.now()/1e3}};var Ot=(D()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}:function(){var t=U().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}})(),Tt=void 0===Ot?kt:{nowSeconds:function(){return(Ot.timeOrigin+Ot.now())/1e3}},jt=kt.nowSeconds.bind(kt),Rt=Tt.nowSeconds.bind(Tt);!function(){var t=U().performance;if(t&&t.now){var e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=r<36e5,i=t.timing&&t.timing.navigationStart,e="number"==typeof i?Math.abs(i+e-n):36e5;(o||e<36e5)&&(r<=e&&t.timeOrigin)}}();var It=(Dt.clone=function(t){var e=new Dt;return t&&(e._breadcrumbs=u(t._breadcrumbs),e._tags=l({},t._tags),e._extra=l({},t._extra),e._contexts=l({},t._contexts),e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=u(t._eventProcessors),e._requestSession=t._requestSession),e},Dt.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},Dt.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},Dt.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},Dt.prototype.getUser=function(){return this._user},Dt.prototype.getRequestSession=function(){return this._requestSession},Dt.prototype.setRequestSession=function(t){return this._requestSession=t,this},Dt.prototype.setTags=function(t){return this._tags=l(l({},this._tags),t),this._notifyScopeListeners(),this},Dt.prototype.setTag=function(t,e){var n;return this._tags=l(l({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},Dt.prototype.setExtras=function(t){return this._extra=l(l({},this._extra),t),this._notifyScopeListeners(),this},Dt.prototype.setExtra=function(t,e){var n;return this._extra=l(l({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},Dt.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},Dt.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},Dt.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},Dt.prototype.setTransaction=function(t){return this.setTransactionName(t)},Dt.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=l(l({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},Dt.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},Dt.prototype.getSpan=function(){return this._span},Dt.prototype.getTransaction=function(){var t,e=this.getSpan();return null!==e&&void 0!==e&&e.transaction?null===e||void 0===e?void 0:e.transaction:null!==(t=null===e||void 0===e?void 0:e.spanRecorder)&&void 0!==t&&t.spans[0]?e.spanRecorder.spans[0]:void 0},Dt.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},Dt.prototype.getSession=function(){return this._session},Dt.prototype.update=function(t){if(!t)return this;if("function"!=typeof t)return t instanceof Dt?(this._tags=l(l({},this._tags),t._tags),this._extra=l(l({},this._extra),t._extra),this._contexts=l(l({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):g(t)&&(this._tags=l(l({},this._tags),t.tags),this._extra=l(l({},this._extra),t.extra),this._contexts=l(l({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this;t=t(this);return t instanceof Dt?t:this},Dt.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},Dt.prototype.addBreadcrumb=function(t,e){e="number"==typeof e?Math.min(e,100):100;if(e<=0)return this;t=l({timestamp:jt()},t);return this._breadcrumbs=u(this._breadcrumbs,[t]).slice(-e),this._notifyScopeListeners(),this},Dt.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},Dt.prototype.applyToEvent=function(t,e){var n;return this._extra&&Object.keys(this._extra).length&&(t.extra=l(l({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=l(l({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=l(l({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=l(l({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span&&(t.contexts=l({trace:this._span.getTraceContext()},t.contexts),(n=null===(n=this._span.transaction)||void 0===n?void 0:n.name)&&(t.tags=l({transaction:n},t.tags))),this._applyFingerprint(t),t.breadcrumbs=u(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=0<t.breadcrumbs.length?t.breadcrumbs:void 0,this._notifyEventProcessors(u(Nt(),this._eventProcessors),t,e)},Dt.prototype._notifyEventProcessors=function(r,o,i,s){var a=this;return void 0===s&&(s=0),new Et(function(e,t){var n=r[s];null===o||"function"!=typeof n?e(o):(E(n=n(l({},o),i))?n.then(function(t){return a._notifyEventProcessors(r,t,i,s+1).then(e)}):a._notifyEventProcessors(r,n,i,s+1).then(e)).then(null,t)})},Dt.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(t){t(e)}),this._notifyingListeners=!1)},Dt.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},Dt);function Dt(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}function Nt(){var t=U();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Ct(t){Nt().push(t)}var Lt=(At.prototype.update=function(t){var e;(t=void 0===t?{}:t).user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Rt(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:P()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration?this.duration=void 0:"number"==typeof t.duration?this.duration=t.duration:(e=this.timestamp-this.started,this.duration=0<=e?e:0),t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},At.prototype.close=function(t){t?this.update({status:t}):this.status===p.Ok?this.update({status:p.Exited}):this.update()},At.prototype.toJSON=function(){return ot({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:ot({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},At);function At(t){this.errors=0,this.sid=P(),this.duration=0,this.status=p.Ok,this.init=!0,this.ignoreDuration=!1;var e=Rt();this.timestamp=e,this.started=e,t&&this.update(t)}var Ut=4,Pt=(Ft.prototype.isOlderThan=function(t){return this._version<t},Ft.prototype.bindClient=function(t){(this.getStackTop().client=t)&&t.setupIntegrations&&t.setupIntegrations()},Ft.prototype.pushScope=function(){var t=It.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},Ft.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},Ft.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},Ft.prototype.getClient=function(){return this.getStackTop().client},Ft.prototype.getScope=function(){return this.getStackTop().scope},Ft.prototype.getStack=function(){return this._stack},Ft.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},Ft.prototype.captureException=function(t,e){var n=this._lastEventId=P(),r=e;if(!e){e=void 0;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this._invokeClient("captureException",t,l(l({},r),{event_id:n})),n},Ft.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=P(),o=n;if(!n){n=void 0;try{throw new Error(t)}catch(t){n=t}o={originalException:t,syntheticException:n}}return this._invokeClient("captureMessage",t,e,l(l({},o),{event_id:r})),r},Ft.prototype.captureEvent=function(t,e){var n=this._lastEventId=P();return this._invokeClient("captureEvent",t,l(l({},e),{event_id:n})),n},Ft.prototype.lastEventId=function(){return this._lastEventId},Ft.prototype.addBreadcrumb=function(t,e){var n,r,o=this.getStackTop(),i=o.scope,s=o.client;i&&s&&(o=s.getOptions&&s.getOptions()||{},n=void 0===(s=o.beforeBreadcrumb)?null:s,(o=void 0===(s=o.maxBreadcrumbs)?100:s)<=0||(s=jt(),r=l({timestamp:s},t),null!==(t=n?B(function(){return n(r,e)}):r)&&i.addBreadcrumb(t,o)))},Ft.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},Ft.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},Ft.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},Ft.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},Ft.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},Ft.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},Ft.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,e=e.client;n&&e&&t(n)},Ft.prototype.run=function(t){var e=Bt(this);try{t(this)}finally{Bt(e)}},Ft.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return J.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},Ft.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},Ft.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},Ft.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},Ft.prototype.captureSession=function(t){if(t=void 0===t?!1:t)return this.endSession();this._sendSessionUpdate()},Ft.prototype.endSession=function(){var t;null!==(t=null===(t=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===t?void 0:t.getSession())&&void 0!==t&&t.close(),this._sendSessionUpdate(),null!==(t=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)&&void 0!==t&&t.setSession()},Ft.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,r=e.client,o=r&&r.getOptions()||{},e=o.release,r=o.environment,o=(U().navigator||{}).userAgent,o=new Lt(l(l(l({release:e,environment:r},n&&{user:n.getUser()}),o&&{userAgent:o}),t));return n&&((t=n.getSession&&n.getSession())&&t.status===p.Ok&&t.update({status:p.Exited}),this.endSession(),n.setSession(o)),o},Ft.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,t=t.client;!e||(e=e.getSession&&e.getSession())&&t&&t.captureSession&&t.captureSession(e)},Ft.prototype._invokeClient=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getStackTop(),o=r.scope,r=r.client;r&&r[t]&&r[t].apply(r,u(e,[o]))},Ft.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=qt().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);J.warn("Extension method "+t+" couldn't be found, doing nothing.")},Ft);function Ft(t,e,n){void 0===e&&(e=new It),void 0===n&&(n=Ut),this._version=n,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}function qt(){var t=U();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Bt(t){var e=qt(),n=Wt(e);return Yt(e,t),n}function Mt(){var t=qt();return Ht(t)&&!Wt(t).isOlderThan(Ut)||Yt(t,new Pt),(D()?function(e){try{var t,n=null===(t=null===(n=null===(t=qt().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===t?void 0:t.active;return n?(Ht(n)&&!Wt(n).isOlderThan(Ut)||(t=Wt(e).getStackTop(),Yt(n,new Pt(t.client,It.clone(t.scope)))),Wt(n)):Wt(e)}catch(t){return Wt(e)}}:Wt)(t)}function Ht(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub}function Wt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Pt),t.__SENTRY__.hub}function Yt(t,e){return t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,1)}function zt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Mt();if(r&&r[t])return r[t].apply(r,u(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Gt(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return zt("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Jt(t){zt("withScope",t)}var Xt=(Kt.prototype.getDsn=function(){return this._dsnObject},Kt.prototype.forceEnvelope=function(){return!!this._tunnel},Kt.prototype.getBaseApiEndpoint=function(){var t=this.getDsn(),e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},Kt.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},Kt.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},Kt.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},Kt.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},Kt.prototype.getRequestHeaders=function(t,e){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},Kt.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e,n=this.getDsn(),r=this.getBaseApiEndpoint()+"embed/error-page/",o=[];for(e in o.push("dsn="+n.toString()),t)"dsn"!==e&&("user"===e?t.user&&(t.user.name&&o.push("name="+encodeURIComponent(t.user.name)),t.user.email&&o.push("email="+encodeURIComponent(t.user.email))):o.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e])));return o.length?r+"?"+o.join("&"):r},Kt.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},Kt.prototype._getIngestEndpoint=function(t){return this._tunnel||""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},Kt.prototype._encodedAuth=function(){var e,t={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return e=t,Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},Kt);function Kt(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new R(t),this.metadata=e,this._tunnel=n}var Vt=[];function $t(t){return t.reduce(function(t,e){return t.every(function(t){return e.name!==t.name})&&t.push(e),t},[])}function Qt(t){var e,n,r={};return t=(e=t).defaultIntegrations&&u(e.defaultIntegrations)||[],n=e.integrations,e=u($t(t)),Array.isArray(n)?e=u(e.filter(function(e){return n.every(function(t){return t.name!==e.name})}),$t(n)):"function"==typeof n&&(e=n(e),e=Array.isArray(e)?e:[e]),-1!==(t=e.map(function(t){return t.name})).indexOf("Debug")&&e.push.apply(e,u(e.splice(t.indexOf("Debug"),1))),e.forEach(function(t){r[t.name]=t,t=t,-1===Vt.indexOf(t.name)&&(t.setupOnce(Ct,Mt),Vt.push(t.name),J.log("Integration installed: "+t.name))}),r}var Zt=(te.prototype.captureException=function(t,e,n){var r=this,o=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then(function(t){return r._captureEvent(t,e,n)}).then(function(t){o=t})),o},te.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id,t=y(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(t.then(function(t){return o._captureEvent(t,n,r)}).then(function(t){i=t})),i},te.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then(function(t){r=t})),r},te.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?J.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):J.warn("SDK not enabled, will not capture session.")},te.prototype.getDsn=function(){return this._dsn},te.prototype.getOptions=function(){return this._options},te.prototype.flush=function(t){var n=this;return this._isClientProcessing(t).then(function(e){return n._getBackend().getTransport().close(t).then(function(t){return e&&t})})},te.prototype.close=function(t){var e=this;return this.flush(t).then(function(t){return e.getOptions().enabled=!1,t})},te.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Qt(this._options))},te.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return J.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},te.prototype._updateSessionFromEvent=function(t,e){var n,r,o=!1,i=!1,s=e.exception&&e.exception.values;if(s){i=!0;try{for(var a=_(s),c=a.next();!c.done;c=a.next()){var u=c.value.mechanism;if(u&&!1===u.handled){o=!0;break}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}e=t.status===p.Ok;(e&&0===t.errors||e&&o)&&(t.update(l(l({},o&&{status:p.Crashed}),{errors:t.errors||Number(i||o)})),this.captureSession(t))},te.prototype._sendSession=function(t){this._getBackend().sendSession(t)},te.prototype._isClientProcessing=function(r){var o=this;return new Et(function(t){var e=0,n=setInterval(function(){0==o._processing?(clearInterval(n),t(!0)):(e+=1,r&&r<=e&&(clearInterval(n),t(!1)))},1)})},te.prototype._getBackend=function(){return this._backend},te.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},te.prototype._prepareEvent=function(t,e,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,o=l(l({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:P()),timestamp:t.timestamp||jt()});this._applyClientOptions(o),this._applyIntegrationsMetadata(o);t=e;n&&n.captureContext&&(t=It.clone(t).update(n.captureContext));e=Et.resolve(o);return(e=t?t.applyToEvent(o,n):e).then(function(t){return"number"==typeof i&&0<i?r._normalizeEvent(t,i):t})},te.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=l(l(l(l(l({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return l(l({},t),t.data&&{data:rt(t.data,e)})})}),t.user&&{user:rt(t.user,e)}),t.contexts&&{contexts:rt(t.contexts,e)}),t.extra&&{extra:rt(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},te.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,i=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=N(t.message,i));o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=N(o.value,i));t=t.request;t&&t.url&&(t.url=N(t.url,i))},te.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);0<e.length&&(t.sdk=t.sdk||{},t.sdk.integrations=u(t.sdk.integrations||[],e))},te.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},te.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then(function(t){return t.event_id},function(t){J.error(t)})},te.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.beforeSend,o=o.sampleRate;if(!this._isEnabled())return Et.reject(new k("SDK not enabled, will not capture event."));var s="transaction"===t.type;return!s&&"number"==typeof o&&Math.random()>o?Et.reject(new k("Discarding event because it's not included in the random sample (sampling rate = "+o+")")):this._prepareEvent(t,n,e).then(function(t){if(null===t)throw new k("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||s||!i)return t;t=i(t,e);return r._ensureBeforeSendRv(t)}).then(function(t){if(null===t)throw new k("`beforeSend` returned `null`, will not send event.");var e=n&&n.getSession&&n.getSession();return!s&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t}).then(null,function(t){if(t instanceof k)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new k("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},te.prototype._process=function(t){var e=this;this._processing+=1,t.then(function(t){return--e._processing,t},function(t){return--e._processing,t})},te.prototype._ensureBeforeSendRv=function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(E(t))return t.then(function(t){if(!g(t)&&null!==t)throw new k(e);return t},function(t){throw new k("beforeSend rejected with "+t)});if(!g(t)&&null!==t)throw new k(e);return t},te);function te(t,e){this._integrations={},this._processing=0,this._backend=new t(e),(this._options=e).dsn&&(this._dsn=new R(e.dsn))}var ee=(ne.prototype.sendEvent=function(t){return Et.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:a.Skipped})},ne.prototype.close=function(t){return Et.resolve(!0)},ne);function ne(){}var re=(oe.prototype.eventFromException=function(t,e){throw new k("Backend has to implement `eventFromException` method")},oe.prototype.eventFromMessage=function(t,e,n){throw new k("Backend has to implement `eventFromMessage` method")},oe.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,function(t){J.error("Error while sending event: "+t)})},oe.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,function(t){J.error("Error while sending session: "+t)}):J.warn("Dropping session because custom transport doesn't implement sendSession")},oe.prototype.getTransport=function(){return this._transport},oe.prototype._setupTransport=function(){return new ee},oe);function oe(t){this._options=t,this._options.dsn||J.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}function ie(t){if(t.metadata&&t.metadata.sdk){t=t.metadata.sdk;return{name:t.name,version:t.version}}}function se(t,e){var n=ie(e),r=JSON.stringify(l(l({sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()})),n="aggregates"in t?"sessions":"session";return{body:r+"\n"+JSON.stringify({type:n})+"\n"+JSON.stringify(t),type:n,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function ae(t,e){var n=ie(e),r=t.type||"event",o="transaction"===r||e.forceEnvelope(),i=t.debug_meta||{},s=i.transactionSampling,a=function(t,e){var n={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}(i,["transactionSampling"]),i=s||{},s=i.method,i=i.rate;0===Object.keys(a).length?delete t.debug_meta:t.debug_meta=a;var c,c={body:JSON.stringify(n?(c=t,(a=e.metadata.sdk)&&(c.sdk=c.sdk||{},c.sdk.name=c.sdk.name||a.name,c.sdk.version=c.sdk.version||a.version,c.sdk.integrations=u(c.sdk.integrations||[],a.integrations||[]),c.sdk.packages=u(c.sdk.packages||[],a.packages||[])),c):t),type:r,url:o?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};return o&&(i=JSON.stringify(l(l({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:s,rate:i}]})+"\n"+c.body,c.body=i),c}var ce,ue="6.8.0",pe=(le.prototype.setupOnce=function(){ce=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry_original__||this;return ce.apply(n,t)}},le.id="FunctionToString",le);function le(){this.name=le.id}var he=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],de=(fe.prototype.setupOnce=function(){Ct(function(t){var e=Mt();if(!e)return t;var n=e.getIntegration(fe);if(n){e=e.getClient(),e=e?e.getOptions():{},e="function"==typeof n._mergeOptions?n._mergeOptions(e):{};return"function"!=typeof n._shouldDropEvent?t:n._shouldDropEvent(t,e)?null:t}return t})},fe.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(J.warn("Event dropped due to being internal Sentry Error.\nEvent: "+q(t)),!0):this._isIgnoredError(t,e)?(J.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+q(t)),!0):this._isDeniedUrl(t,e)?(J.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+q(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(J.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+q(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},fe.prototype._isSentryError=function(t,e){if(!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}},fe.prototype._isIgnoredError=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this._getPossibleEventMessages(t).some(function(e){return n.ignoreErrors.some(function(t){return L(e,t)})})},fe.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some(function(t){return L(n,t)})},fe.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some(function(t){return L(n,t)})},fe.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:u(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:u(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:u(this._options.ignoreErrors||[],t.ignoreErrors||[],he),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},fe.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,t=t.value,t=void 0===t?"":t;return[""+t,(void 0===n?"":n)+": "+t]}catch(t){return J.error("Cannot extract message for event "+q(e)),[]}return[]},fe.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return J.error("Cannot extract url for event "+q(e)),null}},fe.id="InboundFilters",fe);function fe(t){void 0===t&&(t={}),this._options=t,this.name=fe.id}var _e=Object.freeze({__proto__:null,FunctionToString:pe,InboundFilters:de}),ve="?",ye=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,me=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,be=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ee=/\((\S*)(?::(\d+))(?::(\d+))\)/,Se=/Minified React error #\d+;/i;function xe(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:Se.test(t.message)&&(n=1));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,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),s=[],a=0;a<i.length;a+=2){var c=null;(e=r.exec(i[a]))?c={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=o.exec(i[a]))&&(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=ve),s.push(c))}return s.length?{message:ke(t),name:t.name,stack:s}:null}(t))return we(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r=[],o=t.stack.split("\n"),i=0;i<o.length;++i){if(n=ye.exec(o[i])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=Ee.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]);var a=n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],c=n[1]||ve,u=-1!==c.indexOf("safari-extension"),p=-1!==c.indexOf("safari-web-extension");(u||p)&&(c=-1!==c.indexOf("@")?c.split("@")[0]:ve,a=u?"safari-extension:"+a:"safari-web-extension:"+a),s={url:a,func:c,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=me.exec(o[i]))s={url:n[2],func:n[1]||ve,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=ge.exec(o[i])))continue;n[3]&&-1<n[3].indexOf(" > eval")&&(e=be.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==i||n[5]||void 0===t.columnNumber||(r[0].column=t.columnNumber+1),s={url:n[3],func:n[1]||ve,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!s.func&&s.line&&(s.func=ve),r.push(s)}return r.length?{message:ke(t),name:t.name,stack:r}:null}(t))return we(e,n)}catch(t){}return{message:ke(t),name:t&&t.name,stack:[],failed:!0}}function we(e,t){try{return l(l({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function ke(t){t=t&&t.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}var Oe=50;function Te(t){var e=Ie(t.stack),t={type:t.name,value:t.message};return e&&e.length&&(t.stacktrace={frames:e}),void 0===t.type&&""===t.value&&(t.value="Unrecoverable error caught"),t}function je(t,e,n){t={exception:{values:[{type:m(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+function(t,e){void 0===e&&(e=40);var n=Object.keys(Z(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return N(n[0],e);for(var r=n.length;0<r;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:N(o,e)}return""}(t)}]},extra:{__serialized__:function t(e,n,r){void 0===r&&(r=102400);var o=rt(e,n=void 0===n?3:n);return tt(o)>r?t(e,n-1,r):o}(t)}};return e&&(e=Ie(xe(e).stack),t.stacktrace={frames:e}),t}function Re(t){return{exception:{values:[Te(t)]}}}function Ie(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",t=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),(e=-1!==t.indexOf("sentryWrapped")?e.slice(0,-1):e).slice(0,Oe).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}}).reverse()}function De(t,e,n){t=Ce(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return H(t,{handled:!0,type:"generic"}),t.level=s.Error,n&&n.event_id&&(t.event_id=n.event_id),Et.resolve(t)}function Ne(t,e,n,r){void 0===n&&(n=s.Info);t=Le(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return t.level=n,r&&r.event_id&&(t.event_id=r.event_id),Et.resolve(t)}function Ce(t,e,n){if(void 0===n&&(n={}),d(t)&&t.error)return r=Re(xe(t=t.error));if(f(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var r,o=t,i=o.name||(f(o)?"DOMError":"DOMException"),i=o.message?i+": "+o.message:i;return M(r=Le(i,e,n),i),"code"in o&&(r.tags=l(l({},r.tags),{"DOMException.code":""+o.code})),r}return h(t)?r=Re(xe(t)):(g(t)||m(t)?H(r=je(t,e,n.rejection),{synthetic:!0}):(M(r=Le(t,e,n),""+t,void 0),H(r,{synthetic:!0})),r)}function Le(t,e,n){t={message:t};return(n=void 0===n?{}:n).attachStacktrace&&e&&(e=Ie(xe(e).stack),t.stacktrace={frames:e}),t}var Ae={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},Ue=(Pe.prototype.sendEvent=function(t){throw new k("Transport Class has to implement `sendEvent` method")},Pe.prototype.close=function(t){return this._buffer.drain(t)},Pe.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,i=t.reject,t=a.fromHttpCode(n.status);this._handleRateLimit(r)&&J.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),t!==a.Success?i(n):o({status:t})},Pe.prototype._disabledUntil=function(t){t=Ae[t];return this._rateLimits[t]||this._rateLimits.all},Pe.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},Pe.prototype._handleRateLimit=function(t){var e,n,r,o,i=Date.now(),s=t["x-sentry-rate-limits"],t=t["retry-after"];if(s){try{for(var a=_(s.trim().split(",")),c=a.next();!c.done;c=a.next()){var u=c.value.split(":",2),p=parseInt(u[0],10),l=1e3*(isNaN(p)?60:p);try{for(var h=(r=void 0,_(u[1].split(";"))),d=h.next();!d.done;d=h.next()){var f=d.value;this._rateLimits[f||"all"]=new Date(i+l)}}catch(t){r={error:t}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}return!!t&&(this._rateLimits.all=new Date(i+function(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);return isNaN(n)?(e=Date.parse(""+e),isNaN(e)?6e4:e-t):1e3*n}(i,t)),!0)},Pe);function Pe(t){this.options=t,this._buffer=new xt(30),this._rateLimits={},this._api=new Xt(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}var Fe,qe=(t(Be,Fe=Ue),Be.prototype.sendEvent=function(t){return this._sendRequest(ae(t,this._api),t)},Be.prototype.sendSession=function(t){return this._sendRequest(se(t,this._api),t)},Be.prototype._sendRequest=function(o,t){var i=this;if(this._isRateLimited(o.type))return Promise.reject({event:t,type:o.type,reason:"Transport for "+o.type+" requests locked till "+this._disabledUntil(o.type)+" due to too many requests.",status:429});var e={body:o.body,method:"POST",referrerPolicy:function(){if(it())try{return new Request("_",{referrerPolicy:"origin"}),1}catch(t){return}}()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(e,this.options.fetchParameters),void 0!==this.options.headers&&(e.headers=this.options.headers),this._buffer.add(function(){return new Et(function(n,r){i._fetch(o.url,e).then(function(t){var e={"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")};i._handleResponse({requestType:o.type,response:t,headers:e,resolve:n,reject:r})}).catch(r)})})},Be);function Be(t,e){void 0===e&&(e=function(){var t,e=U();if(st(e.fetch))return e.fetch.bind(e);var n=e.document,r=e.fetch;if("function"==typeof(null===n||void 0===n?void 0:n.createElement))try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),null!==(t=o.contentWindow)&&void 0!==t&&t.fetch&&(r=o.contentWindow.fetch),n.head.removeChild(o)}catch(t){J.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return r.bind(e)}());t=Fe.call(this,t)||this;return t._fetch=e,t}var Me,He=(t(We,Me=Ue),We.prototype.sendEvent=function(t){return this._sendRequest(ae(t,this._api),t)},We.prototype.sendSession=function(t){return this._sendRequest(se(t,this._api),t)},We.prototype._sendRequest=function(o,t){var i=this;return this._isRateLimited(o.type)?Promise.reject({event:t,type:o.type,reason:"Transport for "+o.type+" requests locked till "+this._disabledUntil(o.type)+" due to too many requests.",status:429}):this._buffer.add(function(){return new Et(function(e,n){var t,r=new XMLHttpRequest;for(t in r.onreadystatechange=function(){var t;4===r.readyState&&(t={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")},i._handleResponse({requestType:o.type,response:r,headers:t,resolve:e,reject:n}))},r.open("POST",o.url),i.options.headers)i.options.headers.hasOwnProperty(t)&&r.setRequestHeader(t,i.options.headers[t]);r.send(o.body)})})},We);function We(){return null!==Me&&Me.apply(this,arguments)||this}var Ye,ze=Object.freeze({__proto__:null,BaseTransport:Ue,FetchTransport:qe,XHRTransport:He}),Ge=(t(Je,Ye=re),Je.prototype.eventFromException=function(t,e){return De(this._options,t,e)},Je.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=s.Info),Ne(this._options,t,e,n)},Je.prototype._setupTransport=function(){if(!this._options.dsn)return Ye.prototype._setupTransport.call(this);var t=l(l({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return new(this._options.transport||(it()?qe:He))(t)},Je);function Je(){return null!==Ye&&Ye.apply(this,arguments)||this}var Xe=0;function Ke(e,r,o){if(void 0===r&&(r={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}function t(){var n=Array.prototype.slice.call(arguments);try{o&&"function"==typeof o&&o.apply(this,arguments);var t=n.map(function(t){return Ke(t,r)});return e.handleEvent?e.handleEvent.apply(this,t):e.apply(this,t)}catch(e){throw Xe+=1,setTimeout(function(){--Xe}),Jt(function(t){t.addEventProcessor(function(t){t=l({},t);return r.mechanism&&(M(t,void 0,void 0),H(t,r.mechanism)),t.extra=l(l({},t.extra),{arguments:n}),t}),Gt(e)}),e}}try{for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}catch(t){}e.prototype=e.prototype||{},t.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:t}),Object.defineProperties(t,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(t,"name").configurable&&Object.defineProperty(t,"name",{get:function(){return e.name}})}catch(t){}return t}function Ve(t){var e;(t=void 0===t?{}:t).eventId?t.dsn?((e=document.createElement("script")).async=!0,e.src=new Xt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)):J.error("Missing dsn option in showReportDialog call"):J.error("Missing eventId option in showReportDialog call")}$e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(J.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(J.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},$e.prototype._installGlobalOnErrorHandler=function(){var i=this;this._onErrorHandlerInstalled||(ht({callback:function(t){var e=t.error,n=Mt(),r=n.getIntegration($e),o=e&&!0===e.__sentry_own_request__;!r||0<Xe||o||(o=n.getClient(),H(t=void 0===e&&v(t.msg)?i._eventFromIncompleteOnError(t.msg,t.url,t.line,t.column):i._enhanceEventWithInitialFrame(Ce(e||t.msg,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!1}),t.url,t.line,t.column),{handled:!1,type:"onerror"}),n.captureEvent(t,{originalException:e}))},type:"error"}),this._onErrorHandlerInstalled=!0)},$e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var i=this;this._onUnhandledRejectionHandlerInstalled||(ht({callback:function(t){var e=t;try{"reason"in t?e=t.reason:"detail"in t&&"reason"in t.detail&&(e=t.detail.reason)}catch(t){}var n=Mt(),r=n.getIntegration($e),o=e&&!0===e.__sentry_own_request__;if(!r||0<Xe||o)return!0;o=n.getClient(),o=y(e)?i._eventFromRejectionWithPrimitive(e):Ce(e,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!0});o.level=s.Error,H(o,{handled:!1,type:"onunhandledrejection"}),n.captureEvent(o,{originalException:e})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},$e.prototype._eventFromIncompleteOnError=function(t,e,n,r){var o,i=d(t)?t.message:t,t=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);t&&(o=t[1],i=t[2]);i={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(i,e,n,r)},$e.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},$e.prototype._enhanceEventWithInitialFrame=function(t,e,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];r=isNaN(parseInt(r,10))?void 0:r,n=isNaN(parseInt(n,10))?void 0:n,e=v(e)&&0<e.length?e:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:r,filename:e,function:"?",in_app:!0,lineno:n}),t},$e.id="GlobalHandlers",z=$e;function $e(t){this.name=$e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=l({onerror:!0,onunhandledrejection:!0},t)}var Qe=["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"],Ze=(tn.prototype.setupOnce=function(){var t=U();this._options.setTimeout&&Q(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Q(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Q(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&Q(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Qe).forEach(this._wrapEventTarget.bind(this))},tn.prototype._wrapTimeFunction=function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0];return t[0]=Ke(n,{mechanism:{data:{function:$(r)},handled:!0,type:"instrument"}}),r.apply(this,t)}},tn.prototype._wrapRAF=function(e){return function(t){return e.call(this,Ke(t,{mechanism:{data:{function:"requestAnimationFrame",handler:$(e)},handled:!0,type:"instrument"}}))}},tn.prototype._wrapEventTarget=function(o){var t=U(),t=t[o]&&t[o].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Q(t,"addEventListener",function(r){return function(t,e,n){try{"function"==typeof e.handleEvent&&(e.handleEvent=Ke(e.handleEvent.bind(e),{mechanism:{data:{function:"handleEvent",handler:$(e),target:o},handled:!0,type:"instrument"}}))}catch(t){}return r.call(this,t,Ke(e,{mechanism:{data:{function:"addEventListener",handler:$(e),target:o},handled:!0,type:"instrument"}}),n)}}),Q(t,"removeEventListener",function(i){return function(t,e,n){var r=e;try{var o=null===r||void 0===r?void 0:r.__sentry_wrapped__;o&&i.call(this,t,o,n)}catch(t){}return i.call(this,t,r,n)}}))},tn.prototype._wrapXHR=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(n){n in r&&"function"==typeof r[n]&&Q(r,n,function(t){var e={mechanism:{data:{function:n,handler:$(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(e.mechanism.data.handler=$(t.__sentry_original__)),Ke(t,e)})}),n.apply(this,t)}},tn.id="TryCatch",tn);function tn(t){this.name=tn.id,this._options=l({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}var en=(nn.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&Mt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:q(t)},{event:t})},nn.prototype.setupOnce=function(){var n=this;this._options.console&&ht({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._consoleBreadcrumb.apply(n,u(t))},type:"console"}),this._options.dom&&ht({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._domBreadcrumb.apply(n,u(t))},type:"dom"}),this._options.xhr&&ht({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._xhrBreadcrumb.apply(n,u(t))},type:"xhr"}),this._options.fetch&&ht({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._fetchBreadcrumb.apply(n,u(t))},type:"fetch"}),this._options.history&&ht({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._historyBreadcrumb.apply(n,u(t))},type:"history"})},nn.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:s.fromString(t.level),message:C(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(C(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}Mt().addBreadcrumb(e,{input:t.args,level:t.level})},nn.prototype._domBreadcrumb=function(t){var e,n="object"===r(this._options.dom)?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{e=t.event.target?x(t.event.target,n):x(t.event,n)}catch(t){e="<unknown>"}0!==e.length&&Mt().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},nn.prototype._xhrBreadcrumb=function(t){var e,n,r,o;t.endTimestamp&&(t.xhr.__sentry_own_request__||(e=(o=t.xhr.__sentry_xhr__||{}).method,n=o.url,r=o.status_code,o=o.body,Mt().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:o})))},nn.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Mt().addBreadcrumb({category:"fetch",data:t.fetchData,level:s.Error,type:"http"},{data:t.error,input:t.args}):Mt().addBreadcrumb({category:"fetch",data:l(l({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},nn.prototype._historyBreadcrumb=function(t){var e=U(),n=t.from,r=t.to,o=F(e.location.href),t=F(n),e=F(r);t.path||(t=o),o.protocol===e.protocol&&o.host===e.host&&(r=e.relative),o.protocol===t.protocol&&o.host===t.host&&(n=t.relative),Mt().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},nn.id="Breadcrumbs",nn);function nn(t){this.name=nn.id,this._options=l({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}var rn="cause",on=5,kt=(sn.prototype.setupOnce=function(){Ct(function(t,e){var n=Mt().getIntegration(sn);return n?n._handler(t,e):t})},sn.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&S(e.originalException,Error)))return t;e=this._walkErrorTree(e.originalException,this._key);return t.exception.values=u(e,t.exception.values),t},sn.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!S(t[e],Error)||n.length+1>=this._limit)return n;var r=Te(xe(t[e]));return this._walkErrorTree(t[e],e,u([r],n))},sn.id="LinkedErrors",sn);function sn(t){void 0===t&&(t={}),this.name=sn.id,this._key=t.key||rn,this._limit=t.limit||on}var an=U(),Tt=(cn.prototype.setupOnce=function(){Ct(function(t){var e;if(Mt().getIntegration(cn)){if(!an.navigator&&!an.location&&!an.document)return t;var n=(null===(o=t.request)||void 0===o?void 0:o.url)||(null===(e=an.location)||void 0===e?void 0:e.href),r=(an.document||{}).referrer,o=(an.navigator||{}).userAgent,o=l(l(l({},null===(e=t.request)||void 0===e?void 0:e.headers),r&&{Referer:r}),o&&{"User-Agent":o}),o=l(l({},n&&{url:n}),{headers:o});return l(l({},t),{request:o})}return t})},cn.id="UserAgent",cn);function cn(){this.name=cn.id}un.prototype.setupOnce=function(t,r){t(function(e){var n=r().getIntegration(un);if(n){try{if(n._shouldDropEvent(e,n._previousEvent))return null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e})},un.prototype._shouldDropEvent=function(t,e){return!!e&&(!!this._isSameMessageEvent(t,e)||!!this._isSameExceptionEvent(t,e))},un.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))))},un.prototype._getFramesFromEvent=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},un.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(r.length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0},un.prototype._getExceptionFromEvent=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},un.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)))},un.prototype._isSameFingerprint=function(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}},un.id="Dedupe",Ue=un;function un(){this.name=un.id}var pn,re=Object.freeze({__proto__:null,GlobalHandlers:z,TryCatch:Ze,Breadcrumbs:en,LinkedErrors:kt,UserAgent:Tt,Dedupe:Ue}),ln=(t(hn,pn=Zt),hn.prototype.showReportDialog=function(t){void 0===t&&(t={}),U().document&&(this._isEnabled()?Ve(l(l({},t),{dsn:t.dsn||this.getDsn()})):J.error("Trying to call showReportDialog with Sentry Client disabled"))},hn.prototype._prepareEvent=function(t,e,n){return t.platform=t.platform||"javascript",pn.prototype._prepareEvent.call(this,t,e,n)},hn.prototype._sendEvent=function(t){var e=this.getIntegration(en);e&&e.addSentryBreadcrumb(t),pn.prototype._sendEvent.call(this,t)},hn);function hn(t){return(t=void 0===t?{}:t)._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:ue}],version:ue},pn.call(this,Ge,t)||this}var dn=[new de,new pe,new Ze,new en,new z,new kt,new Ue,new Tt];Ue={},Tt=U();Tt.Sentry&&Tt.Sentry.Integrations&&(Ue=Tt.Sentry.Integrations);var _e=l(l(l({},Ue),_e),re),re=Object.freeze({__proto__:null,Integrations:_e,Transports:ze,get Severity(){return s},get Status(){return a},addGlobalEventProcessor:Ct,addBreadcrumb:function(t){zt("addBreadcrumb",t)},captureException:Gt,captureEvent:function(t){return zt("captureEvent",t)},captureMessage:function(t,e){var n;try{throw new Error(t)}catch(t){n=t}return zt("captureMessage",t,"string"==typeof e?e:void 0,l({originalException:t,syntheticException:n},"string"!=typeof e?{captureContext:e}:void 0))},configureScope:function(t){zt("configureScope",t)},getHubFromCarrier:Wt,getCurrentHub:Mt,Hub:Pt,makeMain:Bt,Scope:It,startTransaction:function(t,e){return zt("startTransaction",l({},t),e)},SDK_VERSION:ue,setContext:function(t,e){zt("setContext",t,e)},setExtra:function(t,e){zt("setExtra",t,e)},setExtras:function(t){zt("setExtras",t)},setTag:function(t,e){zt("setTag",t,e)},setTags:function(t){zt("setTags",t)},setUser:function(t){zt("setUser",t)},withScope:Jt,BrowserClient:ln,injectReportDialog:Ve,eventFromException:De,eventFromMessage:Ne,defaultIntegrations:dn,forceLoad:function(){},init:function(t){var e;void 0===(t=void 0===t?{}:t).defaultIntegrations&&(t.defaultIntegrations=dn),void 0!==t.release||(e=U()).SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),function(t,e){var n;!0===e.debug&&J.enable();var r=Mt();null!==(n=r.getScope())&&void 0!==n&&n.update(e.initialScope),e=new t(e),r.bindClient(e)}(ln,t),t.autoSessionTracking&&function(){if(void 0===U().document)return J.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var n=Mt();"function"==typeof n.startSession&&"function"==typeof n.captureSession&&(n.startSession({ignoreDuration:!0}),n.captureSession(),ht({callback:function(t){var e=t.from,t=t.to;void 0!==e&&e!==t&&(n.startSession({ignoreDuration:!0}),n.captureSession())},type:"history"}))}()},lastEventId:function(){return Mt().lastEventId()},onLoad:function(t){t()},showReportDialog:function(t){(t=void 0===t?{}:t).eventId||(t.eventId=Mt().lastEventId());var e=Mt().getClient();e&&e.showReportDialog(t)},flush:function(t){var e=Mt().getClient();return e?e.flush(t):Et.reject(!1)},close:function(t){var e=Mt().getClient();return e?e.close(t):Et.reject(!1)},wrap:function(t){return Ke(t)()},SDK_NAME:"sentry.javascript.browser"}),fn="undefined"!=typeof document&&"undefined"!=typeof window&&window.cordova&&window.cordova.platformId,_e=window.isDevEv||window.JSTESTING,ze=_n("RavenURL",_e?"https://65d65a6c23ab46e49d5d75247f98a782@sentry.io/44142":"https://8843f791501144e0b0dd4e8bd560d758@sentry.io/44141"),re=window.Sentry||re,_e={dsn:ze,release:"12.1.0",environment:_e?"development":"production",maxBreadcrumbs:20,ignoreErrors:["'null' is not an object (evaluating 'a.id')",'"null" is not an object (evaluating "a.id")',"/redirect/redirectslider.aspx","<anonymous> in zteMove","Cannot read property '_avast_submit' of undefined","Cannot read property 'end' of undefined","Cannot read property 'move' of undefined","/redirect/redirectslider.aspx","/maps-api-v3/api/js/31/0/common.js",/gc\.kis\.v2\.scr\.kaspersky\-labs\.com/,"js/static.js",/chrome-extension:\/\//,/webkitExitFullScreen/,"Extension context invalidated",/ResizeObserver/,"a.LegacyGlobal.LP_explicit_ignored is not a function"],beforeSend:function(t,e){if(window.isLocalEv||window.JSTESTING)return null;t.logger=(fn?"native-":"web-")+"ng2-js";try{if(t.extra.__serialized__&&e){var n=e.originalException;if(n instanceof Event&&(t.extra.__type__=n.type,t.extra.__source__=(n.target||"").toString(),"unhandledrejection"==t.extra.__serialized__.type&&t.extra.__serialized__.reason&&t.extra.__serialized__.reason.message&&-1<t.extra.__serialized__.reason.message.indexOf("Extension")))return null}}catch(t){}return-1<navigator.userAgent.indexOf("BrandVerity")?null:t},beforeBreadcrumb:function(t){return"console"==t.category?null:t}};re&&re.Integrations&&(_e.integrations=[new re.Integrations.Breadcrumbs({console:!1})]),re.init(_e),re.setTag("Application","WH-FE-NG2"),re.setTag("Color",window.SRV_COLOR||"Default");_n("Raven",re)}}});