Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/browser

Package Overview
Dependencies
Maintainers
9
Versions
559
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version 5.0.0-rc.0 to 5.0.0-rc.1

4

build/bundle.es6.min.js

@@ -1,3 +0,3 @@

/*! @sentry/browser 5.0.0-rc.0 (bfbf9b94) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var n,e,r;function i(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function s(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function c(t){return"[object String]"===Object.prototype.toString.call(t)}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return Boolean(t&&t.then&&"function"==typeof t.then)}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(n||(n={})),(e=t.Severity||(t.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",function(t){t.fromString=function(n){switch(n){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={})),(r=t.Status||(t.Status={})).Unknown="unknown",r.Skipped="skipped",r.Success="success",r.RateLimit="rate_limit",r.Invalid="invalid",r.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));const l={};function f(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function d(){const t=f(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){const t=new Uint16Array(8);n.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=t=>{let n=t.toString(16);for(;n.length<4;)n=`0${n}`;return n};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,t=>{const n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function p(t){const n=[];let e,r,i,s,o;if(!t||!t.tagName)return"";if(n.push(t.tagName.toLowerCase()),t.id&&n.push(`#${t.id}`),(e=t.className)&&c(e))for(r=e.split(/\s+/),o=0;o<r.length;o++)n.push(`.${r[o]}`);const u=["type","name","title","alt"];for(o=0;o<u.length;o++)i=u[o],(s=t.getAttribute(i))&&n.push(`[${i}="${s}"]`);return n.join("")}function v(t){if(!t)return{};const n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+e+r}}function m(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const n=t.exception.values[0];return n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function y(t){const n=f();if(!("console"in n))return t();const e=n.console,r={};["debug","info","warn","error","log"].forEach(t=>{t in n.console&&e[t].t&&(r[t]=e[t].i,e[t]=e[t].s)});const i=t();return Object.keys(r).forEach(t=>{e[t]=r[t]}),i}function b(t,n,e,r={handled:!0,type:"generic"}){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||n||"",t.exception.values[0].type=t.exception.values[0].type||e||"Error",t.exception.values[0].mechanism=t.exception.values[0].mechanism||r}class g{constructor(){this.o="function"==typeof WeakSet,this.u=this.o?new WeakSet:[]}memoize(t){if(this.o)return!!this.u.has(t)||(this.u.add(t),!1);for(let n=0;n<this.u.length;n++){if(this.u[n]===t)return!0}return this.u.push(t),!1}unmemoize(t){if(this.o)this.u.delete(t);else for(let n=0;n<this.u.length;n++)if(this.u[n]===t){this.u.splice(n,1);break}}}function w(t,n,e){if(!(n in t)||t[n].t)return;const r=t[n],i=e(r);"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{t:{enumerable:!1,value:!0},s:{enumerable:!1,value:r},i:{enumerable:!1,value:i}})),t[n]=i}function E(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function $(t,n=3,e=102400){const r=O(t,n);return E(r)>e?$(t,n-1,e):r}function _(t,n){return"domain"===n&&"object"==typeof t&&t.h?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${t.name||"<unknown-function-name>"}]`:t;var e}function j(t,n,e=1/0,r=new g){if(0===e)return function(t){const n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";const e=_(t);return u(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();const s=_(n,t);if(u(s))return s;const o=i(n)?function(t){const n={message:t.message,name:t.name,stack:t.stack};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}(n):n,c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&(c[t]=j(t,o[t],e-1,r));return r.unmemoize(n),c}function O(t,n){try{return JSON.parse(JSON.stringify(t,(t,e)=>j(t,e,n)))}catch(t){return"**non-serializable**"}}var x;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(x||(x={}));class S{constructor(t){this.l=x.PENDING,this.p=[],this.v=(t=>{this.m(t,x.RESOLVED)}),this.g=(t=>{this.m(t,x.REJECTED)}),this.m=((t,n)=>{this.l===x.PENDING&&(h(t)?t.then(this.v,this.g):(this.$=t,this.l=n,this._()))}),this._=(()=>{this.l!==x.PENDING&&(this.l===x.REJECTED?this.p.forEach(t=>t.onFail&&t.onFail(this.$)):this.p.forEach(t=>t.onSuccess&&t.onSuccess(this.$)),this.p=[])}),this.j=(t=>{this.p=this.p.concat(t),this._()});try{t(this.v,this.g)}catch(t){this.g(t)}}then(t,n){return new S((e,r)=>{this.j({onFail:t=>{if(n)try{return void e(n(t))}catch(t){return void r(t)}else r(t)},onSuccess:n=>{if(t)try{return void e(t(n))}catch(t){return void r(t)}else e(n)}})})}catch(t){return this.then(t=>t,t)}toString(){return"[object SyncPromise]"}static resolve(t){return new S(n=>{n(t)})}static reject(t){return new S((n,e)=>{e(t)})}}class k{constructor(){this.O=!1,this.S=[],this.k=[],this.T=[],this.R={},this.F={},this.D={}}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this.k.push(t),this}M(){this.O||(this.O=!0,setTimeout(()=>{this.S.forEach(t=>{t(this)}),this.O=!1}))}C(t,n,e,r=0){return new S((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o(Object.assign({},n),e);h(c)?c.then(n=>this.C(t,n,e,r+1).then(i)).catch(s):this.C(t,c,e,r+1).then(i).catch(s)}})}setUser(t){return this.R=O(t),this.M(),this}setTags(t){return this.F=Object.assign({},this.F,O(t)),this.M(),this}setTag(t,n){return this.F=Object.assign({},this.F,{[t]:O(n)}),this.M(),this}setExtras(t){return this.D=Object.assign({},this.D,O(t)),this.M(),this}setExtra(t,n){return this.D=Object.assign({},this.D,{[t]:O(n)}),this.M(),this}setFingerprint(t){return this.I=O(t),this.M(),this}setLevel(t){return this.P=O(t),this.M(),this}static clone(t){const n=new k;return Object.assign(n,t,{S:[]}),t&&(n.T=[...t.T],n.F=Object.assign({},t.F),n.D=Object.assign({},t.D),n.R=t.R,n.P=t.P,n.I=t.I,n.k=[...t.k]),n}clear(){return this.T=[],this.F={},this.D={},this.R={},this.P=void 0,this.I=void 0,this.M(),this}addBreadcrumb(t,n){return this.T=void 0!==n&&n>=0?[...this.T,O(t)].slice(-n):[...this.T,O(t)],this.M(),this}clearBreadcrumbs(){return this.T=[],this.M(),this}U(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.I&&(t.fingerprint=t.fingerprint.concat(this.I)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}applyToEvent(t,n){return this.D&&Object.keys(this.D).length&&(t.extra=Object.assign({},this.D,t.extra)),this.F&&Object.keys(this.F).length&&(t.tags=Object.assign({},this.F,t.tags)),this.R&&Object.keys(this.R).length&&(t.user=Object.assign({},this.R,t.user)),this.P&&(t.level=this.P),this.U(t),(!t.breadcrumbs||0===t.breadcrumbs.length)&&this.T.length>0&&(t.breadcrumbs=this.T),this.C([...T(),...this.k],t,n)}}function T(){const t=f();return t.A=t.A||{},t.A.globalEventProcessors=t.A.globalEventProcessors||[],t.A.globalEventProcessors}function R(t){T().push(t)}const F=f(),D="Sentry Logger ";const M=new class{constructor(){this.L=!1}disable(){this.L=!1}enable(){this.L=!0}log(...t){this.L&&y(()=>{F.console.log(`${D}[Log]: ${t.join(" ")}`)})}warn(...t){this.L&&y(()=>{F.console.warn(`${D}[Warn]: ${t.join(" ")}`)})}error(...t){this.L&&y(()=>{F.console.error(`${D}[Error]: ${t.join(" ")}`)})}},C=3,I=30,P=100;class U{constructor(t,n=new k,e=C){this.N=e,this.B=[],this.B.push({client:t,scope:n})}H(t,...n){const e=this.getStackTop();e&&e.client&&e.client[t]&&e.client[t](...n,e.scope)}isOlderThan(t){return this.N<t}bindClient(t){this.getStackTop().client=t}pushScope(){const t=this.getStack(),n=t.length>0?t[t.length-1].scope:void 0,e=k.clone(n);return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return void 0!==this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.B}getStackTop(){return this.B[this.B.length-1]}captureException(t,n){const e=this.q=d();return this.H("captureException",t,Object.assign({},n,{event_id:e})),e}captureMessage(t,n,e){const r=this.q=d();return this.H("captureMessage",t,n,Object.assign({},e,{event_id:r})),r}captureEvent(t,n){const e=this.q=d();return this.H("captureEvent",t,Object.assign({},n,{event_id:e})),e}lastEventId(){return this.q}addBreadcrumb(t,n){const e=this.getStackTop();if(!e.scope||!e.client)return;const{beforeBreadcrumb:r,maxBreadcrumbs:i=I}=e.client.getOptions();if(i<=0)return;const s=(new Date).getTime()/1e3,o=Object.assign({timestamp:s},t),c=r?y(()=>r(o,n)):o;null!==c&&e.scope.addBreadcrumb(c,Math.min(i,P))}configureScope(t){const n=this.getStackTop();n.scope&&n.client&&t(n.scope)}run(t){const n=L(this);try{t(this)}finally{L(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return M.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}}function A(){const t=f();return t.A=t.A||{hub:void 0},t}function L(t){const n=A(),e=H(n);return q(n,t),e}function N(){const t=A();B(t)&&!H(t).isOlderThan(C)||q(t,new U);try{const r=(n=module,e="domain",n.require(e)).active;if(!r)return H(t);if(!B(r)||H(r).isOlderThan(C)){const n=H(t).getStackTop();q(r,new U(n.client,k.clone(n.scope)))}return H(r)}catch(n){return H(t)}var n,e}function B(t){return!!(t&&t.A&&t.A.hub)}function H(t){return t&&t.A&&t.A.hub?t.A.hub:(t.A={},t.A.hub=new U,t.A.hub)}function q(t,n){return!!t&&(t.A=t.A||{},t.A.hub=n,!0)}function W(t,...n){const e=N();if(e&&e[t])return e[t](...n);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return W("captureException",t,{originalException:t,syntheticException:n})}function J(t){W("withScope",t)}class X extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}const z=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,G="Invalid Dsn";class V{constructor(t){"string"==typeof t?this.W(t):this.J(t),this.X()}toString(t=!1){const{host:n,path:e,pass:r,port:i,projectId:s,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${n}${i?`:${i}`:""}/${e?`${e}/`:e}${s}`}W(t){const n=z.exec(t);if(!n)throw new X(G);const[e,r,i="",s,o="",c]=n.slice(1);let u="",a=c;const h=a.split("/");h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),Object.assign(this,{host:s,pass:i,path:u,projectId:a,port:o,protocol:e,user:r})}J(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}X(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new X(G)}),"http"!==this.protocol&&"https"!==this.protocol)throw new X(G);if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new X(G)}}const K="7";class Z{constructor(t){this.dsn=t,this.G=new V(t)}getDsn(){return this.G}getStoreEndpoint(){return`${this.V()}${this.getStoreEndpointPath()}`}getStoreEndpointWithUrlEncodedAuth(){const t={sentry_key:this.G.user,sentry_version:K};return`${this.getStoreEndpoint()}?${n=t,Object.keys(n).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`).join("&")}`;var n}V(){const t=this.G,n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}`}getStoreEndpointPath(){const t=this.G;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,n){const e=this.G,r=[`Sentry sentry_version=${K}`];return r.push(`sentry_timestamp=${(new Date).getTime()}`),r.push(`sentry_client=${t}/${n}`),r.push(`sentry_key=${e.user}`),e.pass&&r.push(`sentry_secret=${e.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const n=this.G,e=`${this.V()}${n.path?`/${n.path}`:""}/api/embed/error-page/`,r=[];r.push(`dsn=${n.toString()}`);for(const n in t)if("user"===n){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(n)}=${encodeURIComponent(t[n])}`);return r.length?`${e}?${r.join("&")}`:e}}function Q(t,n,e,r){return new(e||(e=Promise))(function(i,s){function o(t){try{u(r.next(t))}catch(t){s(t)}}function c(t){try{u(r.throw(t))}catch(t){s(t)}}function u(t){t.done?i(t.value):new e(function(n){n(t.value)}).then(o,c)}u((r=r.apply(t,n||[])).next())})}function Y(t,n=0){return 0===n?t:t.length<=n?t:`${t.substr(0,n)}...`}function tt(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function nt(t,n=40){if(!t.length)return"[object has no keys]";if(t[0].length>=n)return Y(t[0],n);for(let e=t.length;e>0;e--){const r=t.slice(0,e).join(", ");if(!(r.length>n))return e===t.length?r:Y(r,n)}return""}const et=[];function rt(t){const n={};return function(t){const n=t.defaultIntegrations&&[...t.defaultIntegrations]||[],e=t.integrations;let r=[];if(Array.isArray(e)){const t=e.map(t=>t.name),i=[];n.forEach(n=>{-1===t.indexOf(it(n))&&-1===i.indexOf(it(n))&&(r.push(n),i.push(it(n)))}),e.forEach(t=>{-1===i.indexOf(it(t))&&(r.push(t),i.push(it(t)))})}else{if("function"!=typeof e)return[...n];r=e(n),r=Array.isArray(r)?r:[r]}return r}(t).forEach(t=>{n[it(t)]=t,function(t){-1===et.indexOf(it(t))&&(t.setupOnce(R,N),et.push(it(t)),M.log(`Integration installed: ${it(t)}`))}(t)}),n}function it(t){return t.constructor.id||t.name}class st{constructor(t,n){this.K=!1,this.Z=new t(n),this.Y=n,n.dsn&&(this.tt=new V(n.dsn)),this.nt=rt(this.Y)}captureException(t,n,e){let r=n&&n.event_id;return this.K=!0,this.et().eventFromException(t,n).then(t=>this.rt(t,n,e)).then(t=>{r=t&&t.event_id,this.K=!1}).catch(t=>{M.log(t),this.K=!1}),r}captureMessage(t,n,e,r){let i=e&&e.event_id;return this.K=!0,(u(t)?this.et().eventFromMessage(`${t}`,n,e):this.et().eventFromException(t,e)).then(t=>this.rt(t,e,r)).then(t=>{i=t&&t.event_id,this.K=!1}).catch(t=>{M.log(t),this.K=!1}),i}captureEvent(t,n,e){let r=n&&n.event_id;return this.K=!0,this.rt(t,n,e).then(t=>{r=t&&t.event_id,this.K=!1}).catch(t=>{M.log(t),this.K=!1}),r}getDsn(){return this.tt}getOptions(){return this.Y}flush(t){return Q(this,void 0,void 0,function*(){return(yield Promise.all([this.et().getTransport().close(t),this.it()])).reduce((t,n)=>t&&n)})}close(t){return Q(this,void 0,void 0,function*(){return this.flush(t).finally(()=>{this.getOptions().enabled=!1})})}getIntegrations(){return this.nt||{}}getIntegration(t){try{return this.nt[t.id]||null}catch(n){return M.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}it(t=0){return Q(this,void 0,void 0,function*(){return new Promise(n=>{this.K?t>=10?n(!1):setTimeout(()=>Q(this,void 0,void 0,function*(){n(yield this.it(t+1))}),10):n(!0)})})}et(){return this.Z}st(){return!1!==this.getOptions().enabled&&void 0!==this.tt}ot(t,n,e){const{environment:r,release:i,dist:s,maxValueLength:o=250}=this.getOptions(),c=Object.assign({},t);void 0===c.environment&&void 0!==r&&(c.environment=r),void 0===c.release&&void 0!==i&&(c.release=i),void 0===c.dist&&void 0!==s&&(c.dist=s),c.message&&(c.message=Y(c.message,o));const u=c.exception&&c.exception.values&&c.exception.values[0];u&&u.value&&(u.value=Y(u.value,o));const a=c.request;a&&a.url&&(a.url=Y(a.url,o)),void 0===c.event_id&&(c.event_id=d());let h=S.resolve(c);return n&&(h=n.applyToEvent(c,e)),h}rt(t,n,e){const{beforeSend:r,sampleRate:i}=this.getOptions();return this.st()?"number"==typeof i&&Math.random()>i?S.reject("This event has been sampled, will not send event."):new S((i,s)=>{this.ot(t,e,n).then(t=>{if(null===t)return void s("An event processor returned null, will not send event.");let e=t;try{if(n&&n.data&&!0===n.data.t||!r)return this.et().sendEvent(e),void i(e);const o=r(t,n);if(void 0===o)M.error("`beforeSend` method has to return `null` or a valid event.");else if(h(o))this.ct(o,i,s);else{if(null===(e=o))return M.log("`beforeSend` returned `null`, will not send event."),void i(null);this.et().sendEvent(e),i(e)}}catch(t){this.captureException(t,{data:{t:!0},originalException:t}),s("`beforeSend` throw an error, will not send event.")}})}):S.reject("SDK not enabled, will not send event.")}ct(t,n,e){t.then(t=>{null!==t?(this.et().sendEvent(t),n(t)):e("`beforeSend` returned `null`, will not send event.")}).catch(t=>{e(`beforeSend rejected with ${t}`)})}}class ot{sendEvent(n){return Q(this,void 0,void 0,function*(){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})})}close(t){return Q(this,void 0,void 0,function*(){return Promise.resolve(!0)})}}class ct{constructor(t){this.Y=t,this.Y.dsn||M.warn("No DSN provided, backend will not do anything."),this.ut=this.at()}at(){return new ot}eventFromException(t,n){throw new X("Backend has to implement `eventFromException` method")}eventFromMessage(t,n,e){throw new X("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.ut.sendEvent(t).catch(t=>{M.error(`Error while sending event: ${t}`)})}getTransport(){return this.ut}}let ut;class at{constructor(){this.name=at.id}setupOnce(){ut=Function.prototype.toString,Function.prototype.toString=function(...t){const n=this.t?this.s:this;return ut.apply(n,t)}}}at.id="FunctionToString";const ht=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class lt{constructor(t={}){this.Y=t,this.name=lt.id}setupOnce(){R(t=>{const n=N();if(!n)return t;const e=n.getIntegration(lt);if(e){const r=n.getClient(),i=r?r.getOptions():{},s=e.ht(i);if(e.lt(t,s))return null}return t})}lt(t,n){return this.ft(t,n)?(M.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${m(t)}`),!0):this.dt(t,n)?(M.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${m(t)}`),!0):this.pt(t,n)?(M.warn(`Event dropped due to being matched by \`blacklistUrls\` option.\nEvent: ${m(t)}.\nUrl: ${this.vt(t)}`),!0):!this.yt(t,n)&&(M.warn(`Event dropped due to not being matched by \`whitelistUrls\` option.\nEvent: ${m(t)}.\nUrl: ${this.vt(t)}`),!0)}ft(t,n={}){if(!n.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}}dt(t,n={}){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.bt(t).some(t=>n.ignoreErrors.some(n=>this.gt(t,n)))}pt(t,n={}){if(!n.blacklistUrls||!n.blacklistUrls.length)return!1;const e=this.vt(t);return!!e&&n.blacklistUrls.some(t=>this.gt(e,t))}yt(t,n={}){if(!n.whitelistUrls||!n.whitelistUrls.length)return!0;const e=this.vt(t);return!e||n.whitelistUrls.some(t=>this.gt(e,t))}ht(t={}){return{blacklistUrls:[...this.Y.blacklistUrls||[],...t.blacklistUrls||[]],ignoreErrors:[...this.Y.ignoreErrors||[],...t.ignoreErrors||[],...ht],ignoreInternal:void 0===this.Y.ignoreInternal||this.Y.ignoreInternal,whitelistUrls:[...this.Y.whitelistUrls||[],...t.whitelistUrls||[]]}}gt(t,n){return e=n,"[object RegExp]"===Object.prototype.toString.call(e)?n.test(t):"string"==typeof n&&t.includes(n);var e}bt(t){if(t.message)return[t.message];if(t.exception)try{const{type:n,value:e}=t.exception.values[0];return[`${e}`,`${n}: ${e}`]}catch(n){return M.error(`Cannot extract message for event ${m(t)}`),[]}return[]}vt(t){try{if(t.stacktrace){const n=t.stacktrace.frames;return n[n.length-1].filename}if(t.exception){const n=t.exception.values[0].stacktrace.frames;return n[n.length-1].filename}return null}catch(n){return M.error(`Cannot extract url for event ${m(t)}`),null}}}lt.id="InboundFilters";var ft=Object.freeze({FunctionToString:at,InboundFilters:lt});function dt(){if(!("fetch"in f()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function pt(){const t=f();return"navigator"in t&&"sendBeacon"in t.navigator}function vt(){if(!dt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var mt=f(),yt={report:!1,collectWindowErrors:!1,computeStackTrace:!1,linesOfContext:!1},bt="?",gt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function wt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Et(){return"undefined"==typeof document||null==document.location?"":document.location.href}yt.report=function(){var t,n,e=[],r=null,o=null;function c(t,n,r){var i=null;if(!n||yt.collectWindowErrors){for(var s in e)if(wt(e,s))try{e[s](t,n,r)}catch(t){i=t}if(i)throw i}}function u(n,e,r,u,a){var l=null;if(a=s(a)?a.error:a,n=s(n)?n.message:n,o)yt.computeStackTrace.augmentStackTraceWithInitialElement(o,e,r,n),h();else if(a&&i(a))(l=yt.computeStackTrace(a)).mechanism="onerror",c(l,!0,a);else{var f,d={url:e,line:r,column:u},p=n;if("[object String]"==={}.toString.call(n)){var v=n.match(gt);v&&(f=v[1],p=v[2])}d.func=bt,d.context=null,c(l={name:f,message:p,mode:"onerror",mechanism:"onerror",stack:[Object.assign({},d,{url:d.url||Et()})]},!0,null)}return!!t&&t.apply(this,arguments)}function a(t){var n=t&&(t.detail?t.detail.reason:t.reason)||t,e=yt.computeStackTrace(n);e.mechanism="onunhandledrejection",c(e,!0,n)}function h(){var t=o,n=r;o=null,r=null,c(t,!1,n)}function l(t){if(o){if(r===t)return;h()}var n=yt.computeStackTrace(t);throw o=n,r=t,setTimeout(function(){r===t&&h()},n.incomplete?2e3:0),t}return l.subscribe=function(t){e.push(t)},l.installGlobalHandler=function(){!0!==n&&(t=mt.onerror,mt.onerror=u,n=!0)},l.installGlobalUnhandledRejectionHandler=function(){mt.onunhandledrejection=a},l}(),yt.computeStackTrace=function(){function t(t){if(!t.stack)return null;for(var n,e,r,i=/^\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,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=t.stack.split("\n"),h=[],l=/^(.*) is undefined$/.exec(t.message),f=0,d=a.length;f<d;++f){if(e=i.exec(a[f])){var p=e[2]&&0===e[2].indexOf("native");e[2]&&0===e[2].indexOf("eval")&&(n=u.exec(e[2]))&&(e[2]=n[1]),r={url:p?null:e[2],func:e[1]||bt,args:p?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=o.exec(a[f]))r={url:e[2],func:e[1]||bt,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=s.exec(a[f])))continue;e[3]&&e[3].indexOf(" > eval")>-1&&(n=c.exec(e[3]))?e[3]=n[1]:0!==f||e[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),r={url:e[3],func:e[1]||bt,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!r.func&&r.line&&(r.func=bt),r.context=null,h.push(r)}return h.length?(h[0]&&h[0].line&&!h[0].column&&l&&(h[0].column=null),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function n(t,n,e,r){var i={url:n,line:e};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=bt),i.context||(i.context=null),/ '([^']+)' /.exec(r)&&(i.column=null),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function e(t,i){for(var s,o,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],a={},h=!1,l=e.caller;l&&!h;l=l.caller)if(l!==r&&l!==yt.report){if(o={url:null,func:bt,args:[],line:null,column:null},l.name?o.func=l.name:(s=c.exec(l.toString()))&&(o.func=s[1]),void 0===o.func)try{o.func=s.input.substring(0,s.input.indexOf("{"))}catch(t){}a[""+l]?h=!0:a[""+l]=!0,u.push(o)}i&&u.splice(0,i);var f={mode:"callers",name:t.name,message:t.message,stack:u};return n(f,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),f}function r(n,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var n=t.stacktrace;if(n){for(var e,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=n.split("\n"),o=[],c=0;c<s.length;c+=2){var u=null;(e=r.exec(s[c]))?u={url:e[2],line:+e[1],column:null,func:e[3],args:[]}:(e=i.exec(s[c]))&&(u={url:e[6],line:+e[1],column:+e[2],func:e[3]||e[4],args:e[5]?e[5].split(","):[]}),u&&(!u.func&&u.line&&(u.func=bt),u.line&&(u.context=null),u.context||(u.context=[s[c+1]]),o.push(u))}return o.length?{mode:"stacktrace",name:t.name,message:t.message,stack:o}:null}}(n))return i}catch(t){}try{if(i=t(n))return i}catch(t){}try{if(i=function(t){var n=t.message.split("\n");if(n.length<4)return null;var e,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of function script\s*$/i,o=[],c=mt&&mt.document&&mt.document.getElementsByTagName("script"),u=[];for(var a in c)wt(c,a)&&!c[a].src&&u.push(c[a]);for(var h=2;h<n.length;h+=2){var l=null;(e=r.exec(n[h]))?l={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=i.exec(n[h]))?l={url:e[3],func:e[4],args:[],line:+e[1],column:null}:(e=s.exec(n[h]))&&(l={url:Et().replace(/#.*$/,""),func:"",args:[],line:e[1],column:null}),l&&(l.func||(l.func=bt),l.context=[n[h+1]],o.push(l))}return o.length?{mode:"multiline",name:t.name,message:n[0],stack:o}:null}(n))return i}catch(t){}try{if(i=e(n,r+1))return i}catch(t){}return{original:n,name:n.name,message:n.message,mode:"failed"}}return r.augmentStackTraceWithInitialElement=n,r.computeStackTraceFromStackProp=t,r}(),yt.collectWindowErrors=!0,yt.linesOfContext=11;const $t=yt.report.subscribe,_t=yt.report.installGlobalHandler,jt=yt.report.installGlobalUnhandledRejectionHandler,Ot=yt.computeStackTrace,xt=50;function St(t){const n=Tt(t.stack),e={type:t.name,value:t.message};return n&&n.length&&(e.stacktrace={frames:n}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function kt(t){return{exception:{values:[St(t)]}}}function Tt(t){if(!t||!t.length)return[];let n=t;const e=n[0].func||"",r=n[n.length-1].func||"";return(e.includes("captureMessage")||e.includes("captureException"))&&(n=n.slice(1)),r.includes("sentryWrapped")&&(n=n.slice(0,-1)),n.map(t=>({colno:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:t.line})).slice(0,xt).reverse()}class Rt{constructor(t){this.wt=t,this.Et=[]}isReady(){return void 0===this.wt||this.length()<this.wt}add(t){return Q(this,void 0,void 0,function*(){return this.isReady()?(-1===this.Et.indexOf(t)&&this.Et.push(t),t.then(()=>Q(this,void 0,void 0,function*(){return this.remove(t)})).catch(()=>Q(this,void 0,void 0,function*(){return this.remove(t).catch(()=>{})})),t):Promise.reject(new X("Not adding Promise due to buffer limit reached."))})}remove(t){return Q(this,void 0,void 0,function*(){return this.Et.splice(this.Et.indexOf(t),1)[0]})}length(){return this.Et.length}drain(t){return Q(this,void 0,void 0,function*(){return new Promise(n=>{const e=setTimeout(()=>{t&&t>0&&n(!1)},t);Promise.all(this.Et).then(()=>{clearTimeout(e),n(!0)}).catch(()=>{n(!0)})})})}}class Ft{constructor(t){this.options=t,this.Et=new Rt(30),this.url=new Z(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){return Q(this,void 0,void 0,function*(){throw new X("Transport Class has to implement `sendEvent` method")})}close(t){return Q(this,void 0,void 0,function*(){return this.Et.drain(t)})}}const Dt=f();class Mt extends Ft{sendEvent(n){return Q(this,void 0,void 0,function*(){const e={body:JSON.stringify(n),method:"POST",referrerPolicy:vt()?"origin":""};return this.Et.add(Dt.fetch(this.url,e).then(n=>({status:t.Status.fromHttpCode(n.status)})))})}}class Ct extends Ft{sendEvent(n){return Q(this,void 0,void 0,function*(){return this.Et.add(new Promise((e,r)=>{const i=new XMLHttpRequest;i.onreadystatechange=(()=>{4===i.readyState&&(200===i.status&&e({status:t.Status.fromHttpCode(i.status)}),r(i))}),i.open("POST",this.url),i.send(JSON.stringify(n))}))})}}const It=f();class Pt extends Ft{sendEvent(n){return Q(this,void 0,void 0,function*(){const e=It.navigator.sendBeacon(this.url,JSON.stringify(n));return this.Et.add(Promise.resolve({status:e?t.Status.Success:t.Status.Failed}))})}}var Ut=Object.freeze({BaseTransport:Ft,FetchTransport:Mt,XHRTransport:Ct,BeaconTransport:Pt});class At extends ct{at(){if(!this.Y.dsn)return super.at();const t=this.Y.transportOptions?this.Y.transportOptions:{dsn:this.Y.dsn};return this.Y.transport?new this.Y.transport(t):pt()?new Pt(t):dt()?new Mt(t):new Ct(t)}eventFromException(n,e){let r;if(s(n)&&n.error){return n=n.error,r=kt(Ot(n)),S.resolve(this.$t(r,e))}if(o(n)||(c=n,"[object DOMException]"===Object.prototype.toString.call(c))){const r=n,i=r.name||(o(r)?"DOMError":"DOMException"),s=r.message?`${i}: ${r.message}`:i;return this.eventFromMessage(s,t.Severity.Error,e).then(t=>(b(t,s),S.resolve(this.$t(t,e))))}var c;if(i(n))return r=kt(Ot(n)),S.resolve(this.$t(r,e));if(a(n)&&e&&e.syntheticException){return b(r=function(t,n){const e=Object.keys(t).sort(),r={extra:{_t:$(t)},message:`Non-Error exception captured with keys: ${nt(e)}`};if(n){const t=Tt(Ot(n).stack);r.stacktrace={frames:t}}return r}(n,e.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),r.level=t.Severity.Error,S.resolve(this.$t(r,e))}const u=n;return this.eventFromMessage(u,void 0,e).then(n=>(b(n,`${u}`,void 0,{handled:!0,synthetic:!0,type:"generic"}),n.level=t.Severity.Error,S.resolve(this.$t(n,e))))}$t(t,n){return Object.assign({},t,{event_id:n&&n.event_id})}eventFromMessage(n,e=t.Severity.Info,r){const i={event_id:r&&r.event_id,level:e,message:n};if(this.Y.attachStacktrace&&r&&r.syntheticException){const t=Tt(Ot(r.syntheticException).stack);i.stacktrace={frames:t}}return S.resolve(i)}}const Lt="sentry.javascript.browser",Nt="5.0.0-rc.0";class Bt extends st{constructor(t={}){super(At,t)}ot(t,n,e){return t.platform=t.platform||"javascript",t.sdk=Object.assign({},t.sdk,{name:Lt,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:Nt}],version:Nt}),super.ot(t,n,e)}showReportDialog(t={}){const n=f().document;if(!n)return;if(!this.st())return void M.error("Trying to call showReportDialog with Sentry Client is disabled");const e=t.dsn||this.getDsn();if(!t.eventId)return void M.error("Missing `eventId` option in showReportDialog call");if(!e)return void M.error("Missing `Dsn` option in showReportDialog call");const r=n.createElement("script");r.async=!0,r.src=new Z(e).getReportDialogEndpoint(t),(n.head||n.body).appendChild(r)}}const Ht=1e3;let qt,Wt,Jt=0;function Xt(t,n={},e){if("function"!=typeof t)return t;try{if(t.t)return t;if(t.i)return t.i}catch(n){return t}const sentryWrapped=function(){e&&"function"==typeof e&&e.apply(this,arguments);const r=Array.prototype.slice.call(arguments);try{const e=r.map(t=>Xt(t,n));return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Jt+=1,setTimeout(()=>{Jt-=1}),J(e=>{e.addEventProcessor(t=>{const e=Object.assign({},t);return n.mechanism&&b(e,void 0,void 0,n.mechanism),e.extra=Object.assign({},e.extra,{arguments:O(r,3)}),e}),captureException(t)}),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"i",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{t:{enumerable:!1,value:!0},s:{enumerable:!1,value:t}});try{Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function zt(t){return n=>{if(qt=void 0,Wt===n)return;let e;Wt=n;try{e=function(t){let n=t;const e=[];let r=0,i=0;const s=" > ".length;let o;for(;n&&r++<5&&!("html"===(o=p(n))||r>1&&i+e.length*s+o.length>=80);)e.push(o),i+=o.length,n=n.parentNode;return e.reverse().join(" > ")}(n.target)}catch(t){e="<unknown>"}N().addBreadcrumb({category:`ui.${t}`,message:e},{event:n,name:t})}}function Gt(){return t=>{let n;try{n=t.target}catch(t){return}const e=n&&n.tagName;e&&("INPUT"===e||"TEXTAREA"===e||n.isContentEditable)&&(qt||zt("input")(t),clearTimeout(qt),qt=setTimeout(()=>{qt=void 0},Ht))}}class Vt{constructor(t){this.name=Vt.id,this.Y=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,$t((t,n,e)=>{if(Jt>0)return;const r=N().getIntegration(Vt);r&&N().captureEvent(r.jt(t),{data:{stack:t},originalException:e})}),this.Y.onerror&&(M.log("Global Handler attached: onerror"),_t()),this.Y.onunhandledrejection&&(M.log("Global Handler attached: onunhandledrejection"),jt())}jt(t){const n=kt(t),e={mode:t.mode};t.message&&(e.message=t.message),t.name&&(e.name=t.name);const r=N().getClient(),i=r&&r.getOptions().maxValueLength||250;return b(n,t.original?Y(JSON.stringify(O(t.original)),i):"","onunhandledrejection"===t.mechanism?"UnhandledRejection":"Error",{data:e,handled:!1,type:t.mechanism}),n}}Vt.id="GlobalHandlers";class Kt{constructor(){this.Ot=0,this.name=Kt.id}xt(t){return function(...n){const e=n[0];return n[0]=Xt(e,{mechanism:{data:{function:Zt(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}St(t){return function(n){return t(Xt(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Zt(t)},handled:!0,type:"instrument"}}))}}kt(t){const n=f(),e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(w(e,"addEventListener",function(n){return function(e,r,i){try{r.handleEvent=Xt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Zt(r),target:t},handled:!0,type:"instrument"}})}catch(t){}let s,o,c;return"EventTarget"!==t&&"Node"!==t||(o=zt("click"),c=Gt(),s=function(t){if(!t)return;let n;try{n=t.type}catch(t){return}return"click"===n?o(t):"keypress"===n?c(t):void 0}),n.call(this,e,Xt(r,{mechanism:{data:{function:"addEventListener",handler:Zt(r),target:t},handled:!0,type:"instrument"}},s),i)}}),w(e,"removeEventListener",function(t){return function(n,e,r){let i=e;try{i=i&&(i.i||i)}catch(t){}return t.call(this,n,i,r)}}))}setupOnce(){this.Ot=this.Ot;const t=f();w(t,"setTimeout",this.xt.bind(this)),w(t,"setInterval",this.xt.bind(this)),w(t,"requestAnimationFrame",this.St.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.kt.bind(this))}}function Zt(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}Kt.id="TryCatch";const Qt=f();let Yt;class tn{constructor(t){this.name=tn.id,this.Y=Object.assign({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}Tt(){pt()&&w(Qt.navigator,"sendBeacon",function(n){return function(...e){const r=e[0],i=e[1],s=n.apply(this,e),o=N().getClient(),c=o&&o.getDsn();if(c){const t=new Z(c).getStoreEndpoint();if(t&&r.includes(t))return nn(i),s}const u={category:"beacon",data:i,type:"http"};return s||(u.level=t.Severity.Error),tn.addBreadcrumb(u,{input:e,result:s}),s}})}Rt(){"console"in Qt&&["debug","info","warn","error","log"].forEach(function(n){n in Qt.console&&w(Qt.console,n,function(e){return function(...r){const i={category:"console",data:{extra:{arguments:O(r,3)},logger:"console"},level:t.Severity.fromString(n),message:tt(r," ")};"assert"===n&&!1===r[0]&&(i.message=`Assertion failed: ${tt(r.slice(1)," ")||"console.assert"}`,i.data.extra.arguments=O(r.slice(1),3)),tn.addBreadcrumb(i,{input:r,level:n}),e&&Function.prototype.apply.call(e,Qt.console,r)}})})}Ft(){"document"in Qt&&(Qt.document.addEventListener("click",zt("click"),!1),Qt.document.addEventListener("keypress",Gt(),!1))}Dt(){dt()&&-1!==f().fetch.toString().indexOf("native")&&w(Qt,"fetch",function(n){return function(...e){const r=e[0];let i,s="GET";"string"==typeof r?i=r:"Request"in Qt&&r instanceof Request?(i=r.url,r.method&&(s=r.method)):i=String(r),e[1]&&e[1].method&&(s=e[1].method);const o=N().getClient(),c=o&&o.getDsn();if(c){const t=new Z(c).getStoreEndpoint();if(t&&i.includes(t))return"POST"===s&&e[1]&&e[1].body&&nn(e[1].body),n.apply(Qt,e)}const u={method:s,url:i};return n.apply(Qt,e).then(t=>(u.status_code=t.status,tn.addBreadcrumb({category:"fetch",data:u,type:"http"},{input:e,response:t}),t)).catch(n=>{throw tn.addBreadcrumb({category:"fetch",data:u,level:t.Severity.Error,type:"http"},{error:n,input:e}),n})}})}Mt(){if(!function(){const t=f(),n=t.chrome,e=n&&n.app&&n.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&r}())return;const t=(t,n)=>{const e=v(Qt.location.href),r=v(n);let i=v(t);i.path||(i=e),Yt=n,e.protocol===r.protocol&&e.host===r.host&&(n=r.relative),e.protocol===i.protocol&&e.host===i.host&&(t=i.relative),tn.addBreadcrumb({category:"navigation",data:{from:t,to:n}})},n=Qt.onpopstate;function e(n){return function(...e){const r=e.length>2?e[2]:void 0;return r&&t(Yt,String(r)),n.apply(this,e)}}Qt.onpopstate=((...e)=>{const r=Qt.location.href;if(t(Yt,r),n)return n.apply(this,e)}),w(Qt.history,"pushState",e),w(Qt.history,"replaceState",e)}Ct(){if(!("XMLHttpRequest"in Qt))return;const t=XMLHttpRequest.prototype;w(t,"open",t=>(function(...n){const e=n[1];this.It={method:n[0],url:n[1]};const r=N().getClient(),i=r&&r.getDsn();if(i){const t=new Z(i).getStoreEndpoint();c(e)&&t&&e.includes(t)&&(this.Pt=!0)}return t.apply(this,n)})),w(t,"send",t=>(function(...n){const e=this;function r(){if(4===e.readyState){if(e.Pt)return;try{e.It&&(e.It.status_code=e.status)}catch(t){}tn.addBreadcrumb({category:"xhr",data:e.It,type:"http"},{xhr:e})}}return e.Pt&&nn(n[0]),["onload","onerror","onprogress"].forEach(t=>{!function(t,n){t in n&&"function"==typeof n[t]&&w(n,t,n=>Xt(n,{mechanism:{data:{function:t,handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}}))}(t,e)}),"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?w(e,"onreadystatechange",function(t){return Xt(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},r)}):e.onreadystatechange=r,t.apply(this,n)}))}static addBreadcrumb(t,n){N().getIntegration(tn)&&N().addBreadcrumb(t,n)}setupOnce(){this.Y.console&&this.Rt(),this.Y.dom&&this.Ft(),this.Y.xhr&&this.Ct(),this.Y.fetch&&this.Dt(),this.Y.beacon&&this.Tt(),this.Y.history&&this.Mt()}}function nn(n){try{const e=JSON.parse(n);tn.addBreadcrumb({category:"sentry",event_id:e.event_id,level:e.level||t.Severity.fromString("error"),message:m(e)},{event:e})}catch(t){M.error("Error while adding sentry type breadcrumb")}}tn.id="Breadcrumbs";const en="cause",rn=5;class sn{constructor(t={}){this.name=sn.id,this.Ut=t.key||en,this.wt=t.limit||rn}setupOnce(){R((t,n)=>{const e=N().getIntegration(sn);return e?e.handler(t,n):t})}handler(t,n){if(!(t.exception&&t.exception.values&&n&&n.originalException instanceof Error))return t;const e=this.walkErrorTree(n.originalException,this.Ut);return t.exception.values=[...e,...t.exception.values],t}walkErrorTree(t,n,e=[]){if(!(t[n]instanceof Error)||e.length+1>=this.wt)return e;const r=St(Ot(t[n]));return this.walkErrorTree(t[n],n,[r,...e])}}sn.id="LinkedErrors";const on=f();class cn{constructor(){this.name=cn.id}setupOnce(){R(t=>{if(N().getIntegration(cn)){if(!on.navigator||!on.location)return t;const n=t.request||{};return n.url=n.url||on.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=on.navigator.userAgent,Object.assign({},t,{request:n})}return t})}}cn.id="UserAgent";var un=Object.freeze({GlobalHandlers:Vt,TryCatch:Kt,Breadcrumbs:tn,LinkedErrors:sn,UserAgent:cn});const an=[new lt,new at,new Kt,new tn,new Vt,new sn,new cn];const hn=Object.assign({},ft,un);return t.Integrations=hn,t.Transports=Ut,t.addGlobalEventProcessor=R,t.addBreadcrumb=function(t){W("addBreadcrumb",t)},t.captureException=captureException,t.captureEvent=function(t){return W("captureEvent",t)},t.captureMessage=function(t,n){let e;try{throw new Error(t)}catch(t){e=t}return W("captureMessage",t,n,{originalException:t,syntheticException:e})},t.configureScope=function(t){W("configureScope",t)},t.withScope=J,t.getHubFromCarrier=H,t.getCurrentHub=N,t.Hub=U,t.Scope=k,t.BrowserClient=Bt,t.defaultIntegrations=an,t.forceLoad=function(){},t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=an),function(t,n){!0===n.debug&&M.enable(),N().bindClient(new t(n))}(Bt,t)},t.lastEventId=function(){return N().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t={}){t.eventId||(t.eventId=N().lastEventId());const n=N().getClient();n&&n.showReportDialog(t)},t.flush=function(t){return Q(this,void 0,void 0,function*(){const n=N().getClient();return n?n.flush(t):Promise.reject(!1)})},t.close=function(t){return Q(this,void 0,void 0,function*(){const n=N().getClient();return n?n.close(t):Promise.reject(!1)})},t.SDK_NAME=Lt,t.SDK_VERSION=Nt,t}({});
/*! @sentry/browser 5.0.0-rc.1 (6b2ce566) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var n,e,r;function i(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function s(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function c(t){return"[object String]"===Object.prototype.toString.call(t)}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return Boolean(t&&t.then&&"function"==typeof t.then)}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(n||(n={})),(e=t.Severity||(t.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",function(t){t.fromString=function(n){switch(n){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={})),(r=t.Status||(t.Status={})).Unknown="unknown",r.Skipped="skipped",r.Success="success",r.RateLimit="rate_limit",r.Invalid="invalid",r.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));const l={};function f(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function d(){const t=f(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){const t=new Uint16Array(8);n.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=t=>{let n=t.toString(16);for(;n.length<4;)n=`0${n}`;return n};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,t=>{const n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function p(t){const n=[];let e,r,i,s,o;if(!t||!t.tagName)return"";if(n.push(t.tagName.toLowerCase()),t.id&&n.push(`#${t.id}`),(e=t.className)&&c(e))for(r=e.split(/\s+/),o=0;o<r.length;o++)n.push(`.${r[o]}`);const u=["type","name","title","alt"];for(o=0;o<u.length;o++)i=u[o],(s=t.getAttribute(i))&&n.push(`[${i}="${s}"]`);return n.join("")}function v(t){if(!t)return{};const n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+e+r}}function m(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const n=t.exception.values[0];return n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function y(t){const n=f();if(!("console"in n))return t();const e=n.console,r={};["debug","info","warn","error","log"].forEach(t=>{t in n.console&&e[t].t&&(r[t]=e[t].i,e[t]=e[t].s)});const i=t();return Object.keys(r).forEach(t=>{e[t]=r[t]}),i}function b(t,n,e,r={handled:!0,type:"generic"}){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||n||"",t.exception.values[0].type=t.exception.values[0].type||e||"Error",t.exception.values[0].mechanism=t.exception.values[0].mechanism||r}class g{constructor(){this.o="function"==typeof WeakSet,this.u=this.o?new WeakSet:[]}memoize(t){if(this.o)return!!this.u.has(t)||(this.u.add(t),!1);for(let n=0;n<this.u.length;n++){if(this.u[n]===t)return!0}return this.u.push(t),!1}unmemoize(t){if(this.o)this.u.delete(t);else for(let n=0;n<this.u.length;n++)if(this.u[n]===t){this.u.splice(n,1);break}}}function w(t,n,e){if(!(n in t)||t[n].t)return;const r=t[n],i=e(r);"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{t:{enumerable:!1,value:!0},s:{enumerable:!1,value:r},i:{enumerable:!1,value:i}})),t[n]=i}function E(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function $(t,n=3,e=102400){const r=O(t,n);return E(r)>e?$(t,n-1,e):r}function _(t,n){return"domain"===n&&"object"==typeof t&&t.h?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${t.name||"<unknown-function-name>"}]`:t;var e}function j(t,n,e=1/0,r=new g){if(0===e)return function(t){const n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";const e=_(t);return u(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();const s=_(n,t);if(u(s))return s;const o=i(n)?function(t){const n={message:t.message,name:t.name,stack:t.stack};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}(n):n,c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&(c[t]=j(t,o[t],e-1,r));return r.unmemoize(n),c}function O(t,n){try{return JSON.parse(JSON.stringify(t,(t,e)=>j(t,e,n)))}catch(t){return"**non-serializable**"}}var x;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(x||(x={}));class S{constructor(t){this.l=x.PENDING,this.p=[],this.v=(t=>{this.m(t,x.RESOLVED)}),this.g=(t=>{this.m(t,x.REJECTED)}),this.m=((t,n)=>{this.l===x.PENDING&&(h(t)?t.then(this.v,this.g):(this.$=t,this.l=n,this._()))}),this._=(()=>{this.l!==x.PENDING&&(this.l===x.REJECTED?this.p.forEach(t=>t.onFail&&t.onFail(this.$)):this.p.forEach(t=>t.onSuccess&&t.onSuccess(this.$)),this.p=[])}),this.j=(t=>{this.p=this.p.concat(t),this._()});try{t(this.v,this.g)}catch(t){this.g(t)}}then(t,n){return new S((e,r)=>{this.j({onFail:t=>{if(n)try{return void e(n(t))}catch(t){return void r(t)}else r(t)},onSuccess:n=>{if(t)try{return void e(t(n))}catch(t){return void r(t)}else e(n)}})})}catch(t){return this.then(t=>t,t)}toString(){return"[object SyncPromise]"}static resolve(t){return new S(n=>{n(t)})}static reject(t){return new S((n,e)=>{e(t)})}}class k{constructor(){this.O=!1,this.S=[],this.k=[],this.T=[],this.R={},this.F={},this.D={}}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this.k.push(t),this}M(){this.O||(this.O=!0,setTimeout(()=>{this.S.forEach(t=>{t(this)}),this.O=!1}))}C(t,n,e,r=0){return new S((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o(Object.assign({},n),e);h(c)?c.then(n=>this.C(t,n,e,r+1).then(i)).catch(s):this.C(t,c,e,r+1).then(i).catch(s)}})}setUser(t){return this.R=O(t),this.M(),this}setTags(t){return this.F=Object.assign({},this.F,O(t)),this.M(),this}setTag(t,n){return this.F=Object.assign({},this.F,{[t]:O(n)}),this.M(),this}setExtras(t){return this.D=Object.assign({},this.D,O(t)),this.M(),this}setExtra(t,n){return this.D=Object.assign({},this.D,{[t]:O(n)}),this.M(),this}setFingerprint(t){return this.I=O(t),this.M(),this}setLevel(t){return this.P=O(t),this.M(),this}static clone(t){const n=new k;return Object.assign(n,t,{S:[]}),t&&(n.T=[...t.T],n.F=Object.assign({},t.F),n.D=Object.assign({},t.D),n.R=t.R,n.P=t.P,n.I=t.I,n.k=[...t.k]),n}clear(){return this.T=[],this.F={},this.D={},this.R={},this.P=void 0,this.I=void 0,this.M(),this}addBreadcrumb(t,n){return this.T=void 0!==n&&n>=0?[...this.T,O(t)].slice(-n):[...this.T,O(t)],this.M(),this}clearBreadcrumbs(){return this.T=[],this.M(),this}U(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.I&&(t.fingerprint=t.fingerprint.concat(this.I)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}applyToEvent(t,n){return this.D&&Object.keys(this.D).length&&(t.extra=Object.assign({},this.D,t.extra)),this.F&&Object.keys(this.F).length&&(t.tags=Object.assign({},this.F,t.tags)),this.R&&Object.keys(this.R).length&&(t.user=Object.assign({},this.R,t.user)),this.P&&(t.level=this.P),this.U(t),(!t.breadcrumbs||0===t.breadcrumbs.length)&&this.T.length>0&&(t.breadcrumbs=this.T),this.C([...T(),...this.k],t,n)}}function T(){const t=f();return t.A=t.A||{},t.A.globalEventProcessors=t.A.globalEventProcessors||[],t.A.globalEventProcessors}function R(t){T().push(t)}const F=f(),D="Sentry Logger ";const M=new class{constructor(){this.L=!1}disable(){this.L=!1}enable(){this.L=!0}log(...t){this.L&&y(()=>{F.console.log(`${D}[Log]: ${t.join(" ")}`)})}warn(...t){this.L&&y(()=>{F.console.warn(`${D}[Warn]: ${t.join(" ")}`)})}error(...t){this.L&&y(()=>{F.console.error(`${D}[Error]: ${t.join(" ")}`)})}},C=3,I=30,P=100;class U{constructor(t,n=new k,e=C){this.N=e,this.B=[],this.B.push({client:t,scope:n})}H(t,...n){const e=this.getStackTop();e&&e.client&&e.client[t]&&e.client[t](...n,e.scope)}isOlderThan(t){return this.N<t}bindClient(t){this.getStackTop().client=t}pushScope(){const t=this.getStack(),n=t.length>0?t[t.length-1].scope:void 0,e=k.clone(n);return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return void 0!==this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.B}getStackTop(){return this.B[this.B.length-1]}captureException(t,n){const e=this.q=d();return this.H("captureException",t,Object.assign({},n,{event_id:e})),e}captureMessage(t,n,e){const r=this.q=d();return this.H("captureMessage",t,n,Object.assign({},e,{event_id:r})),r}captureEvent(t,n){const e=this.q=d();return this.H("captureEvent",t,Object.assign({},n,{event_id:e})),e}lastEventId(){return this.q}addBreadcrumb(t,n){const e=this.getStackTop();if(!e.scope||!e.client)return;const{beforeBreadcrumb:r,maxBreadcrumbs:i=I}=e.client.getOptions();if(i<=0)return;const s=(new Date).getTime()/1e3,o=Object.assign({timestamp:s},t),c=r?y(()=>r(o,n)):o;null!==c&&e.scope.addBreadcrumb(c,Math.min(i,P))}configureScope(t){const n=this.getStackTop();n.scope&&n.client&&t(n.scope)}run(t){const n=L(this);try{t(this)}finally{L(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return M.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}}function A(){const t=f();return t.A=t.A||{hub:void 0},t}function L(t){const n=A(),e=H(n);return q(n,t),e}function N(){const t=A();B(t)&&!H(t).isOlderThan(C)||q(t,new U);try{const r=(n=module,e="domain",n.require(e)).active;if(!r)return H(t);if(!B(r)||H(r).isOlderThan(C)){const n=H(t).getStackTop();q(r,new U(n.client,k.clone(n.scope)))}return H(r)}catch(n){return H(t)}var n,e}function B(t){return!!(t&&t.A&&t.A.hub)}function H(t){return t&&t.A&&t.A.hub?t.A.hub:(t.A={},t.A.hub=new U,t.A.hub)}function q(t,n){return!!t&&(t.A=t.A||{},t.A.hub=n,!0)}function W(t,...n){const e=N();if(e&&e[t])return e[t](...n);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t){let n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return W("captureException",t,{originalException:t,syntheticException:n})}function J(t){W("withScope",t)}class X extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}const z=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,G="Invalid Dsn";class V{constructor(t){"string"==typeof t?this.W(t):this.J(t),this.X()}toString(t=!1){const{host:n,path:e,pass:r,port:i,projectId:s,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${n}${i?`:${i}`:""}/${e?`${e}/`:e}${s}`}W(t){const n=z.exec(t);if(!n)throw new X(G);const[e,r,i="",s,o="",c]=n.slice(1);let u="",a=c;const h=a.split("/");h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),Object.assign(this,{host:s,pass:i,path:u,projectId:a,port:o,protocol:e,user:r})}J(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}X(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new X(G)}),"http"!==this.protocol&&"https"!==this.protocol)throw new X(G);if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new X(G)}}const K="7";class Z{constructor(t){this.dsn=t,this.G=new V(t)}getDsn(){return this.G}getStoreEndpoint(){return`${this.V()}${this.getStoreEndpointPath()}`}getStoreEndpointWithUrlEncodedAuth(){const t={sentry_key:this.G.user,sentry_version:K};return`${this.getStoreEndpoint()}?${n=t,Object.keys(n).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`).join("&")}`;var n}V(){const t=this.G,n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}`}getStoreEndpointPath(){const t=this.G;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,n){const e=this.G,r=[`Sentry sentry_version=${K}`];return r.push(`sentry_timestamp=${(new Date).getTime()}`),r.push(`sentry_client=${t}/${n}`),r.push(`sentry_key=${e.user}`),e.pass&&r.push(`sentry_secret=${e.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const n=this.G,e=`${this.V()}${n.path?`/${n.path}`:""}/api/embed/error-page/`,r=[];r.push(`dsn=${n.toString()}`);for(const n in t)if("user"===n){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(n)}=${encodeURIComponent(t[n])}`);return r.length?`${e}?${r.join("&")}`:e}}function Q(t,n,e,r){return new(e||(e=Promise))(function(i,s){function o(t){try{u(r.next(t))}catch(t){s(t)}}function c(t){try{u(r.throw(t))}catch(t){s(t)}}function u(t){t.done?i(t.value):new e(function(n){n(t.value)}).then(o,c)}u((r=r.apply(t,n||[])).next())})}function Y(t,n=0){return 0===n?t:t.length<=n?t:`${t.substr(0,n)}...`}function tt(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function nt(t,n=40){if(!t.length)return"[object has no keys]";if(t[0].length>=n)return Y(t[0],n);for(let e=t.length;e>0;e--){const r=t.slice(0,e).join(", ");if(!(r.length>n))return e===t.length?r:Y(r,n)}return""}const et=[];function rt(t){const n={};return function(t){const n=t.defaultIntegrations&&[...t.defaultIntegrations]||[],e=t.integrations;let r=[];if(Array.isArray(e)){const t=e.map(t=>t.name),i=[];n.forEach(n=>{-1===t.indexOf(it(n))&&-1===i.indexOf(it(n))&&(r.push(n),i.push(it(n)))}),e.forEach(t=>{-1===i.indexOf(it(t))&&(r.push(t),i.push(it(t)))})}else{if("function"!=typeof e)return[...n];r=e(n),r=Array.isArray(r)?r:[r]}return r}(t).forEach(t=>{n[it(t)]=t,function(t){-1===et.indexOf(it(t))&&(t.setupOnce(R,N),et.push(it(t)),M.log(`Integration installed: ${it(t)}`))}(t)}),n}function it(t){return t.constructor.id||t.name}class st{constructor(t,n){this.K=!1,this.Z=new t(n),this.Y=n,n.dsn&&(this.tt=new V(n.dsn)),this.nt=rt(this.Y)}captureException(t,n,e){let r=n&&n.event_id;return this.K=!0,this.et().eventFromException(t,n).then(t=>this.rt(t,n,e)).then(t=>{r=t&&t.event_id,this.K=!1}).catch(t=>{M.log(t),this.K=!1}),r}captureMessage(t,n,e,r){let i=e&&e.event_id;return this.K=!0,(u(t)?this.et().eventFromMessage(`${t}`,n,e):this.et().eventFromException(t,e)).then(t=>this.rt(t,e,r)).then(t=>{i=t&&t.event_id,this.K=!1}).catch(t=>{M.log(t),this.K=!1}),i}captureEvent(t,n,e){let r=n&&n.event_id;return this.K=!0,this.rt(t,n,e).then(t=>{r=t&&t.event_id,this.K=!1}).catch(t=>{M.log(t),this.K=!1}),r}getDsn(){return this.tt}getOptions(){return this.Y}flush(t){return Q(this,void 0,void 0,function*(){return(yield Promise.all([this.et().getTransport().close(t),this.it()])).reduce((t,n)=>t&&n)})}close(t){return Q(this,void 0,void 0,function*(){return this.flush(t).finally(()=>{this.getOptions().enabled=!1})})}getIntegrations(){return this.nt||{}}getIntegration(t){try{return this.nt[t.id]||null}catch(n){return M.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}it(t=0){return Q(this,void 0,void 0,function*(){return new Promise(n=>{this.K?t>=10?n(!1):setTimeout(()=>Q(this,void 0,void 0,function*(){n(yield this.it(t+1))}),10):n(!0)})})}et(){return this.Z}st(){return!1!==this.getOptions().enabled&&void 0!==this.tt}ot(t,n,e){const{environment:r,release:i,dist:s,maxValueLength:o=250}=this.getOptions(),c=Object.assign({},t);void 0===c.environment&&void 0!==r&&(c.environment=r),void 0===c.release&&void 0!==i&&(c.release=i),void 0===c.dist&&void 0!==s&&(c.dist=s),c.message&&(c.message=Y(c.message,o));const u=c.exception&&c.exception.values&&c.exception.values[0];u&&u.value&&(u.value=Y(u.value,o));const a=c.request;a&&a.url&&(a.url=Y(a.url,o)),void 0===c.event_id&&(c.event_id=d());let h=S.resolve(c);return n&&(h=n.applyToEvent(c,e)),h}rt(t,n,e){const{beforeSend:r,sampleRate:i}=this.getOptions();return this.st()?"number"==typeof i&&Math.random()>i?S.reject("This event has been sampled, will not send event."):new S((i,s)=>{this.ot(t,e,n).then(t=>{if(null===t)return void s("An event processor returned null, will not send event.");let e=t;try{if(n&&n.data&&!0===n.data.t||!r)return this.et().sendEvent(e),void i(e);const o=r(t,n);if(void 0===o)M.error("`beforeSend` method has to return `null` or a valid event.");else if(h(o))this.ct(o,i,s);else{if(null===(e=o))return M.log("`beforeSend` returned `null`, will not send event."),void i(null);this.et().sendEvent(e),i(e)}}catch(t){this.captureException(t,{data:{t:!0},originalException:t}),s("`beforeSend` throw an error, will not send event.")}})}):S.reject("SDK not enabled, will not send event.")}ct(t,n,e){t.then(t=>{null!==t?(this.et().sendEvent(t),n(t)):e("`beforeSend` returned `null`, will not send event.")}).catch(t=>{e(`beforeSend rejected with ${t}`)})}}class ot{sendEvent(n){return Q(this,void 0,void 0,function*(){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})})}close(t){return Q(this,void 0,void 0,function*(){return Promise.resolve(!0)})}}class ct{constructor(t){this.Y=t,this.Y.dsn||M.warn("No DSN provided, backend will not do anything."),this.ut=this.at()}at(){return new ot}eventFromException(t,n){throw new X("Backend has to implement `eventFromException` method")}eventFromMessage(t,n,e){throw new X("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.ut.sendEvent(t).catch(t=>{M.error(`Error while sending event: ${t}`)})}getTransport(){return this.ut}}let ut;class at{constructor(){this.name=at.id}setupOnce(){ut=Function.prototype.toString,Function.prototype.toString=function(...t){const n=this.t?this.s:this;return ut.apply(n,t)}}}at.id="FunctionToString";const ht=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class lt{constructor(t={}){this.Y=t,this.name=lt.id}setupOnce(){R(t=>{const n=N();if(!n)return t;const e=n.getIntegration(lt);if(e){const r=n.getClient(),i=r?r.getOptions():{},s=e.ht(i);if(e.lt(t,s))return null}return t})}lt(t,n){return this.ft(t,n)?(M.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${m(t)}`),!0):this.dt(t,n)?(M.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${m(t)}`),!0):this.pt(t,n)?(M.warn(`Event dropped due to being matched by \`blacklistUrls\` option.\nEvent: ${m(t)}.\nUrl: ${this.vt(t)}`),!0):!this.yt(t,n)&&(M.warn(`Event dropped due to not being matched by \`whitelistUrls\` option.\nEvent: ${m(t)}.\nUrl: ${this.vt(t)}`),!0)}ft(t,n={}){if(!n.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}}dt(t,n={}){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.bt(t).some(t=>n.ignoreErrors.some(n=>this.gt(t,n)))}pt(t,n={}){if(!n.blacklistUrls||!n.blacklistUrls.length)return!1;const e=this.vt(t);return!!e&&n.blacklistUrls.some(t=>this.gt(e,t))}yt(t,n={}){if(!n.whitelistUrls||!n.whitelistUrls.length)return!0;const e=this.vt(t);return!e||n.whitelistUrls.some(t=>this.gt(e,t))}ht(t={}){return{blacklistUrls:[...this.Y.blacklistUrls||[],...t.blacklistUrls||[]],ignoreErrors:[...this.Y.ignoreErrors||[],...t.ignoreErrors||[],...ht],ignoreInternal:void 0===this.Y.ignoreInternal||this.Y.ignoreInternal,whitelistUrls:[...this.Y.whitelistUrls||[],...t.whitelistUrls||[]]}}gt(t,n){return e=n,"[object RegExp]"===Object.prototype.toString.call(e)?n.test(t):"string"==typeof n&&t.includes(n);var e}bt(t){if(t.message)return[t.message];if(t.exception)try{const{type:n,value:e}=t.exception.values[0];return[`${e}`,`${n}: ${e}`]}catch(n){return M.error(`Cannot extract message for event ${m(t)}`),[]}return[]}vt(t){try{if(t.stacktrace){const n=t.stacktrace.frames;return n[n.length-1].filename}if(t.exception){const n=t.exception.values[0].stacktrace.frames;return n[n.length-1].filename}return null}catch(n){return M.error(`Cannot extract url for event ${m(t)}`),null}}}lt.id="InboundFilters";var ft=Object.freeze({FunctionToString:at,InboundFilters:lt});function dt(){if(!("fetch"in f()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function pt(){const t=f();return"navigator"in t&&"sendBeacon"in t.navigator}function vt(){if(!dt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var mt=f(),yt={report:!1,collectWindowErrors:!1,computeStackTrace:!1,linesOfContext:!1},bt="?",gt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function wt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Et(){return"undefined"==typeof document||null==document.location?"":document.location.href}yt.report=function(){var t,n,e=[],r=null,o=null;function c(t,n,r){var i=null;if(!n||yt.collectWindowErrors){for(var s in e)if(wt(e,s))try{e[s](t,n,r)}catch(t){i=t}if(i)throw i}}function u(n,e,r,u,a){var l=null;if(a=s(a)?a.error:a,n=s(n)?n.message:n,o)yt.computeStackTrace.augmentStackTraceWithInitialElement(o,e,r,n),h();else if(a&&i(a))(l=yt.computeStackTrace(a)).mechanism="onerror",c(l,!0,a);else{var f,d={url:e,line:r,column:u},p=n;if("[object String]"==={}.toString.call(n)){var v=n.match(gt);v&&(f=v[1],p=v[2])}d.func=bt,d.context=null,c(l={name:f,message:p,mode:"onerror",mechanism:"onerror",stack:[Object.assign({},d,{url:d.url||Et()})]},!0,null)}return!!t&&t.apply(this,arguments)}function a(t){var n=t&&(t.detail?t.detail.reason:t.reason)||t,e=yt.computeStackTrace(n);e.mechanism="onunhandledrejection",c(e,!0,n)}function h(){var t=o,n=r;o=null,r=null,c(t,!1,n)}function l(t){if(o){if(r===t)return;h()}var n=yt.computeStackTrace(t);throw o=n,r=t,setTimeout(function(){r===t&&h()},n.incomplete?2e3:0),t}return l.subscribe=function(t){e.push(t)},l.installGlobalHandler=function(){!0!==n&&(t=mt.onerror,mt.onerror=u,n=!0)},l.installGlobalUnhandledRejectionHandler=function(){mt.onunhandledrejection=a},l}(),yt.computeStackTrace=function(){function t(t){if(!t.stack)return null;for(var n,e,r,i=/^\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,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=t.stack.split("\n"),h=[],l=/^(.*) is undefined$/.exec(t.message),f=0,d=a.length;f<d;++f){if(e=i.exec(a[f])){var p=e[2]&&0===e[2].indexOf("native");e[2]&&0===e[2].indexOf("eval")&&(n=u.exec(e[2]))&&(e[2]=n[1]),r={url:p?null:e[2],func:e[1]||bt,args:p?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=o.exec(a[f]))r={url:e[2],func:e[1]||bt,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=s.exec(a[f])))continue;e[3]&&e[3].indexOf(" > eval")>-1&&(n=c.exec(e[3]))?e[3]=n[1]:0!==f||e[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),r={url:e[3],func:e[1]||bt,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!r.func&&r.line&&(r.func=bt),r.context=null,h.push(r)}return h.length?(h[0]&&h[0].line&&!h[0].column&&l&&(h[0].column=null),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function n(t,n,e,r){var i={url:n,line:e};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=bt),i.context||(i.context=null),/ '([^']+)' /.exec(r)&&(i.column=null),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function e(t,i){for(var s,o,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],a={},h=!1,l=e.caller;l&&!h;l=l.caller)if(l!==r&&l!==yt.report){if(o={url:null,func:bt,args:[],line:null,column:null},l.name?o.func=l.name:(s=c.exec(l.toString()))&&(o.func=s[1]),void 0===o.func)try{o.func=s.input.substring(0,s.input.indexOf("{"))}catch(t){}a[""+l]?h=!0:a[""+l]=!0,u.push(o)}i&&u.splice(0,i);var f={mode:"callers",name:t.name,message:t.message,stack:u};return n(f,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),f}function r(n,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var n=t.stacktrace;if(n){for(var e,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=n.split("\n"),o=[],c=0;c<s.length;c+=2){var u=null;(e=r.exec(s[c]))?u={url:e[2],line:+e[1],column:null,func:e[3],args:[]}:(e=i.exec(s[c]))&&(u={url:e[6],line:+e[1],column:+e[2],func:e[3]||e[4],args:e[5]?e[5].split(","):[]}),u&&(!u.func&&u.line&&(u.func=bt),u.line&&(u.context=null),u.context||(u.context=[s[c+1]]),o.push(u))}return o.length?{mode:"stacktrace",name:t.name,message:t.message,stack:o}:null}}(n))return i}catch(t){}try{if(i=t(n))return i}catch(t){}try{if(i=function(t){var n=t.message.split("\n");if(n.length<4)return null;var e,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of function script\s*$/i,o=[],c=mt&&mt.document&&mt.document.getElementsByTagName("script"),u=[];for(var a in c)wt(c,a)&&!c[a].src&&u.push(c[a]);for(var h=2;h<n.length;h+=2){var l=null;(e=r.exec(n[h]))?l={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=i.exec(n[h]))?l={url:e[3],func:e[4],args:[],line:+e[1],column:null}:(e=s.exec(n[h]))&&(l={url:Et().replace(/#.*$/,""),func:"",args:[],line:e[1],column:null}),l&&(l.func||(l.func=bt),l.context=[n[h+1]],o.push(l))}return o.length?{mode:"multiline",name:t.name,message:n[0],stack:o}:null}(n))return i}catch(t){}try{if(i=e(n,r+1))return i}catch(t){}return{original:n,name:n.name,message:n.message,mode:"failed"}}return r.augmentStackTraceWithInitialElement=n,r.computeStackTraceFromStackProp=t,r}(),yt.collectWindowErrors=!0,yt.linesOfContext=11;const $t=yt.report.subscribe,_t=yt.report.installGlobalHandler,jt=yt.report.installGlobalUnhandledRejectionHandler,Ot=yt.computeStackTrace,xt=50;function St(t){const n=Tt(t.stack),e={type:t.name,value:t.message};return n&&n.length&&(e.stacktrace={frames:n}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function kt(t){return{exception:{values:[St(t)]}}}function Tt(t){if(!t||!t.length)return[];let n=t;const e=n[0].func||"",r=n[n.length-1].func||"";return(e.includes("captureMessage")||e.includes("captureException"))&&(n=n.slice(1)),r.includes("sentryWrapped")&&(n=n.slice(0,-1)),n.map(t=>({colno:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:t.line})).slice(0,xt).reverse()}class Rt{constructor(t){this.wt=t,this.Et=[]}isReady(){return void 0===this.wt||this.length()<this.wt}add(t){return Q(this,void 0,void 0,function*(){return this.isReady()?(-1===this.Et.indexOf(t)&&this.Et.push(t),t.then(()=>Q(this,void 0,void 0,function*(){return this.remove(t)})).catch(()=>Q(this,void 0,void 0,function*(){return this.remove(t).catch(()=>{})})),t):Promise.reject(new X("Not adding Promise due to buffer limit reached."))})}remove(t){return Q(this,void 0,void 0,function*(){return this.Et.splice(this.Et.indexOf(t),1)[0]})}length(){return this.Et.length}drain(t){return Q(this,void 0,void 0,function*(){return new Promise(n=>{const e=setTimeout(()=>{t&&t>0&&n(!1)},t);Promise.all(this.Et).then(()=>{clearTimeout(e),n(!0)}).catch(()=>{n(!0)})})})}}class Ft{constructor(t){this.options=t,this.Et=new Rt(30),this.url=new Z(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){return Q(this,void 0,void 0,function*(){throw new X("Transport Class has to implement `sendEvent` method")})}close(t){return Q(this,void 0,void 0,function*(){return this.Et.drain(t)})}}const Dt=f();class Mt extends Ft{sendEvent(n){return Q(this,void 0,void 0,function*(){const e={body:JSON.stringify(n),method:"POST",referrerPolicy:vt()?"origin":""};return this.Et.add(Dt.fetch(this.url,e).then(n=>({status:t.Status.fromHttpCode(n.status)})))})}}class Ct extends Ft{sendEvent(n){return Q(this,void 0,void 0,function*(){return this.Et.add(new Promise((e,r)=>{const i=new XMLHttpRequest;i.onreadystatechange=(()=>{4===i.readyState&&(200===i.status&&e({status:t.Status.fromHttpCode(i.status)}),r(i))}),i.open("POST",this.url),i.send(JSON.stringify(n))}))})}}const It=f();class Pt extends Ft{sendEvent(n){return Q(this,void 0,void 0,function*(){const e=It.navigator.sendBeacon(this.url,JSON.stringify(n));return this.Et.add(Promise.resolve({status:e?t.Status.Success:t.Status.Failed}))})}}var Ut=Object.freeze({BaseTransport:Ft,FetchTransport:Mt,XHRTransport:Ct,BeaconTransport:Pt});class At extends ct{at(){if(!this.Y.dsn)return super.at();const t=this.Y.transportOptions?this.Y.transportOptions:{dsn:this.Y.dsn};return this.Y.transport?new this.Y.transport(t):pt()?new Pt(t):dt()?new Mt(t):new Ct(t)}eventFromException(n,e){let r;if(s(n)&&n.error){return n=n.error,r=kt(Ot(n)),S.resolve(this.$t(r,e))}if(o(n)||(c=n,"[object DOMException]"===Object.prototype.toString.call(c))){const r=n,i=r.name||(o(r)?"DOMError":"DOMException"),s=r.message?`${i}: ${r.message}`:i;return this.eventFromMessage(s,t.Severity.Error,e).then(t=>(b(t,s),S.resolve(this.$t(t,e))))}var c;if(i(n))return r=kt(Ot(n)),S.resolve(this.$t(r,e));if(a(n)&&e&&e.syntheticException){return b(r=function(t,n){const e=Object.keys(t).sort(),r={extra:{_t:$(t)},message:`Non-Error exception captured with keys: ${nt(e)}`};if(n){const t=Tt(Ot(n).stack);r.stacktrace={frames:t}}return r}(n,e.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),r.level=t.Severity.Error,S.resolve(this.$t(r,e))}const u=n;return this.eventFromMessage(u,void 0,e).then(n=>(b(n,`${u}`,void 0,{handled:!0,synthetic:!0,type:"generic"}),n.level=t.Severity.Error,S.resolve(this.$t(n,e))))}$t(t,n){return Object.assign({},t,{event_id:n&&n.event_id})}eventFromMessage(n,e=t.Severity.Info,r){const i={event_id:r&&r.event_id,level:e,message:n};if(this.Y.attachStacktrace&&r&&r.syntheticException){const t=Tt(Ot(r.syntheticException).stack);i.stacktrace={frames:t}}return S.resolve(i)}}const Lt="sentry.javascript.browser",Nt="5.0.0-rc.1";class Bt extends st{constructor(t={}){super(At,t)}ot(t,n,e){return t.platform=t.platform||"javascript",t.sdk=Object.assign({},t.sdk,{name:Lt,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:Nt}],version:Nt}),super.ot(t,n,e)}showReportDialog(t={}){const n=f().document;if(!n)return;if(!this.st())return void M.error("Trying to call showReportDialog with Sentry Client is disabled");const e=t.dsn||this.getDsn();if(!t.eventId)return void M.error("Missing `eventId` option in showReportDialog call");if(!e)return void M.error("Missing `Dsn` option in showReportDialog call");const r=n.createElement("script");r.async=!0,r.src=new Z(e).getReportDialogEndpoint(t),(n.head||n.body).appendChild(r)}}const Ht=1e3;let qt,Wt,Jt=0;function Xt(t,n={},e){if("function"!=typeof t)return t;try{if(t.t)return t;if(t.i)return t.i}catch(n){return t}const sentryWrapped=function(){e&&"function"==typeof e&&e.apply(this,arguments);const r=Array.prototype.slice.call(arguments);try{const e=r.map(t=>Xt(t,n));return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Jt+=1,setTimeout(()=>{Jt-=1}),J(e=>{e.addEventProcessor(t=>{const e=Object.assign({},t);return n.mechanism&&b(e,void 0,void 0,n.mechanism),e.extra=Object.assign({},e.extra,{arguments:O(r,3)}),e}),captureException(t)}),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"i",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{t:{enumerable:!1,value:!0},s:{enumerable:!1,value:t}});try{Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function zt(t){return n=>{if(qt=void 0,Wt===n)return;let e;Wt=n;try{e=function(t){let n=t;const e=[];let r=0,i=0;const s=" > ".length;let o;for(;n&&r++<5&&!("html"===(o=p(n))||r>1&&i+e.length*s+o.length>=80);)e.push(o),i+=o.length,n=n.parentNode;return e.reverse().join(" > ")}(n.target)}catch(t){e="<unknown>"}N().addBreadcrumb({category:`ui.${t}`,message:e},{event:n,name:t})}}function Gt(){return t=>{let n;try{n=t.target}catch(t){return}const e=n&&n.tagName;e&&("INPUT"===e||"TEXTAREA"===e||n.isContentEditable)&&(qt||zt("input")(t),clearTimeout(qt),qt=setTimeout(()=>{qt=void 0},Ht))}}class Vt{constructor(t){this.name=Vt.id,this.Y=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,$t((t,n,e)=>{if(Jt>0)return;const r=N().getIntegration(Vt);r&&N().captureEvent(r.jt(t),{data:{stack:t},originalException:e})}),this.Y.onerror&&(M.log("Global Handler attached: onerror"),_t()),this.Y.onunhandledrejection&&(M.log("Global Handler attached: onunhandledrejection"),jt())}jt(t){const n=kt(t),e={mode:t.mode};t.message&&(e.message=t.message),t.name&&(e.name=t.name);const r=N().getClient(),i=r&&r.getOptions().maxValueLength||250;return b(n,t.original?Y(JSON.stringify(O(t.original)),i):"","onunhandledrejection"===t.mechanism?"UnhandledRejection":"Error",{data:e,handled:!1,type:t.mechanism}),n}}Vt.id="GlobalHandlers";class Kt{constructor(){this.Ot=0,this.name=Kt.id}xt(t){return function(...n){const e=n[0];return n[0]=Xt(e,{mechanism:{data:{function:Zt(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}St(t){return function(n){return t(Xt(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Zt(t)},handled:!0,type:"instrument"}}))}}kt(t){const n=f(),e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(w(e,"addEventListener",function(n){return function(e,r,i){try{r.handleEvent=Xt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Zt(r),target:t},handled:!0,type:"instrument"}})}catch(t){}let s,o,c;return"EventTarget"!==t&&"Node"!==t||(o=zt("click"),c=Gt(),s=function(t){if(!t)return;let n;try{n=t.type}catch(t){return}return"click"===n?o(t):"keypress"===n?c(t):void 0}),n.call(this,e,Xt(r,{mechanism:{data:{function:"addEventListener",handler:Zt(r),target:t},handled:!0,type:"instrument"}},s),i)}}),w(e,"removeEventListener",function(t){return function(n,e,r){let i=e;try{i=i&&(i.i||i)}catch(t){}return t.call(this,n,i,r)}}))}setupOnce(){this.Ot=this.Ot;const t=f();w(t,"setTimeout",this.xt.bind(this)),w(t,"setInterval",this.xt.bind(this)),w(t,"requestAnimationFrame",this.St.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.kt.bind(this))}}function Zt(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}Kt.id="TryCatch";const Qt=f();let Yt;class tn{constructor(t){this.name=tn.id,this.Y=Object.assign({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}Tt(){pt()&&w(Qt.navigator,"sendBeacon",function(n){return function(...e){const r=e[0],i=e[1],s=n.apply(this,e),o=N().getClient(),c=o&&o.getDsn();if(c){const t=new Z(c).getStoreEndpoint();if(t&&r.includes(t))return nn(i),s}const u={category:"beacon",data:i,type:"http"};return s||(u.level=t.Severity.Error),tn.addBreadcrumb(u,{input:e,result:s}),s}})}Rt(){"console"in Qt&&["debug","info","warn","error","log"].forEach(function(n){n in Qt.console&&w(Qt.console,n,function(e){return function(...r){const i={category:"console",data:{extra:{arguments:O(r,3)},logger:"console"},level:t.Severity.fromString(n),message:tt(r," ")};"assert"===n&&!1===r[0]&&(i.message=`Assertion failed: ${tt(r.slice(1)," ")||"console.assert"}`,i.data.extra.arguments=O(r.slice(1),3)),tn.addBreadcrumb(i,{input:r,level:n}),e&&Function.prototype.apply.call(e,Qt.console,r)}})})}Ft(){"document"in Qt&&(Qt.document.addEventListener("click",zt("click"),!1),Qt.document.addEventListener("keypress",Gt(),!1))}Dt(){dt()&&-1!==f().fetch.toString().indexOf("native")&&w(Qt,"fetch",function(n){return function(...e){const r=e[0];let i,s="GET";"string"==typeof r?i=r:"Request"in Qt&&r instanceof Request?(i=r.url,r.method&&(s=r.method)):i=String(r),e[1]&&e[1].method&&(s=e[1].method);const o=N().getClient(),c=o&&o.getDsn();if(c){const t=new Z(c).getStoreEndpoint();if(t&&i.includes(t))return"POST"===s&&e[1]&&e[1].body&&nn(e[1].body),n.apply(Qt,e)}const u={method:s,url:i};return n.apply(Qt,e).then(t=>(u.status_code=t.status,tn.addBreadcrumb({category:"fetch",data:u,type:"http"},{input:e,response:t}),t)).catch(n=>{throw tn.addBreadcrumb({category:"fetch",data:u,level:t.Severity.Error,type:"http"},{error:n,input:e}),n})}})}Mt(){if(!function(){const t=f(),n=t.chrome,e=n&&n.app&&n.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&r}())return;const t=(t,n)=>{const e=v(Qt.location.href),r=v(n);let i=v(t);i.path||(i=e),Yt=n,e.protocol===r.protocol&&e.host===r.host&&(n=r.relative),e.protocol===i.protocol&&e.host===i.host&&(t=i.relative),tn.addBreadcrumb({category:"navigation",data:{from:t,to:n}})},n=Qt.onpopstate;function e(n){return function(...e){const r=e.length>2?e[2]:void 0;return r&&t(Yt,String(r)),n.apply(this,e)}}Qt.onpopstate=((...e)=>{const r=Qt.location.href;if(t(Yt,r),n)return n.apply(this,e)}),w(Qt.history,"pushState",e),w(Qt.history,"replaceState",e)}Ct(){if(!("XMLHttpRequest"in Qt))return;const t=XMLHttpRequest.prototype;w(t,"open",t=>(function(...n){const e=n[1];this.It={method:n[0],url:n[1]};const r=N().getClient(),i=r&&r.getDsn();if(i){const t=new Z(i).getStoreEndpoint();c(e)&&t&&e.includes(t)&&(this.Pt=!0)}return t.apply(this,n)})),w(t,"send",t=>(function(...n){const e=this;function r(){if(4===e.readyState){if(e.Pt)return;try{e.It&&(e.It.status_code=e.status)}catch(t){}tn.addBreadcrumb({category:"xhr",data:e.It,type:"http"},{xhr:e})}}return e.Pt&&nn(n[0]),["onload","onerror","onprogress"].forEach(t=>{!function(t,n){t in n&&"function"==typeof n[t]&&w(n,t,n=>Xt(n,{mechanism:{data:{function:t,handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}}))}(t,e)}),"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?w(e,"onreadystatechange",function(t){return Xt(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},r)}):e.onreadystatechange=r,t.apply(this,n)}))}static addBreadcrumb(t,n){N().getIntegration(tn)&&N().addBreadcrumb(t,n)}setupOnce(){this.Y.console&&this.Rt(),this.Y.dom&&this.Ft(),this.Y.xhr&&this.Ct(),this.Y.fetch&&this.Dt(),this.Y.beacon&&this.Tt(),this.Y.history&&this.Mt()}}function nn(n){try{const e=JSON.parse(n);tn.addBreadcrumb({category:"sentry",event_id:e.event_id,level:e.level||t.Severity.fromString("error"),message:m(e)},{event:e})}catch(t){M.error("Error while adding sentry type breadcrumb")}}tn.id="Breadcrumbs";const en="cause",rn=5;class sn{constructor(t={}){this.name=sn.id,this.Ut=t.key||en,this.wt=t.limit||rn}setupOnce(){R((t,n)=>{const e=N().getIntegration(sn);return e?e.handler(t,n):t})}handler(t,n){if(!(t.exception&&t.exception.values&&n&&n.originalException instanceof Error))return t;const e=this.walkErrorTree(n.originalException,this.Ut);return t.exception.values=[...e,...t.exception.values],t}walkErrorTree(t,n,e=[]){if(!(t[n]instanceof Error)||e.length+1>=this.wt)return e;const r=St(Ot(t[n]));return this.walkErrorTree(t[n],n,[r,...e])}}sn.id="LinkedErrors";const on=f();class cn{constructor(){this.name=cn.id}setupOnce(){R(t=>{if(N().getIntegration(cn)){if(!on.navigator||!on.location)return t;const n=t.request||{};return n.url=n.url||on.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=on.navigator.userAgent,Object.assign({},t,{request:n})}return t})}}cn.id="UserAgent";var un=Object.freeze({GlobalHandlers:Vt,TryCatch:Kt,Breadcrumbs:tn,LinkedErrors:sn,UserAgent:cn});const an=[new lt,new at,new Kt,new tn,new Vt,new sn,new cn];const hn=Object.assign({},ft,un);return t.Integrations=hn,t.Transports=Ut,t.addGlobalEventProcessor=R,t.addBreadcrumb=function(t){W("addBreadcrumb",t)},t.captureException=captureException,t.captureEvent=function(t){return W("captureEvent",t)},t.captureMessage=function(t,n){let e;try{throw new Error(t)}catch(t){e=t}return W("captureMessage",t,n,{originalException:t,syntheticException:e})},t.configureScope=function(t){W("configureScope",t)},t.withScope=J,t.getHubFromCarrier=H,t.getCurrentHub=N,t.Hub=U,t.Scope=k,t.BrowserClient=Bt,t.defaultIntegrations=an,t.forceLoad=function(){},t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=an),function(t,n){!0===n.debug&&M.enable(),N().bindClient(new t(n))}(Bt,t)},t.lastEventId=function(){return N().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t={}){t.eventId||(t.eventId=N().lastEventId());const n=N().getClient();n&&n.showReportDialog(t)},t.flush=function(t){return Q(this,void 0,void 0,function*(){const n=N().getClient();return n?n.flush(t):Promise.reject(!1)})},t.close=function(t){return Q(this,void 0,void 0,function*(){const n=N().getClient();return n?n.close(t):Promise.reject(!1)})},t.SDK_NAME=Lt,t.SDK_VERSION=Nt,t}({});
//# sourceMappingURL=bundle.es6.min.js.map

@@ -1,3 +0,3 @@

/*! @sentry/browser 5.0.0-rc.0 (bfbf9b94) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(n){"use strict";var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function i(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var e in t=arguments[r])Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}).apply(this,arguments)};function c(n,t,r,i){return new(r||(r=Promise))(function(e,o){function u(n){try{s(i.next(n))}catch(n){o(n)}}function c(n){try{s(i.throw(n))}catch(n){o(n)}}function s(n){n.done?e(n.value):new r(function(t){t(n.value)}).then(u,c)}s((i=i.apply(n,t||[])).next())})}function s(n,t){var r,i,e,o,u={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(e=2&o[0]?i.return:o[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,o[1])).done)return e;switch(i=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,i=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(e=(e=u.trys).length>0&&e[e.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){u.label=o[1];break}if(6===o[0]&&u.label<e[1]){u.label=e[1],e=o;break}if(e&&u.label<e[2]){u.label=e[2],u.ops.push(o);break}e[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],i=0}finally{r=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function f(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var i,e,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function a(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(f(arguments[t]));return n}function h(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function v(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function l(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function d(n){return"[object String]"===Object.prototype.toString.call(n)}function p(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function y(n){return"[object Object]"===Object.prototype.toString.call(n)}function m(n){return Boolean(n&&n.then&&"function"==typeof n.then)}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(i||(i={})),(e=n.Severity||(n.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(n.Severity||(n.Severity={})),(o=n.Status||(n.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var b={};function w(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:b}function g(){var n=w(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function E(n){var t,r,i,e,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&d(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)u.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(e=n.getAttribute(i))&&u.push("["+i+'="'+e+'"]');return u.join("")}function x(n){if(!n)return{};var t=n.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+i}}function j(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.exception.values[0]){var t=n.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||n.event_id||"<unknown>"}return n.event_id||"<unknown>"}function S(n){var t=w();if(!("console"in t))return n();var r=t.console,i={};["debug","info","warn","error","log"].forEach(function(n){n in t.console&&r[n].t&&(i[n]=r[n].i,r[n]=r[n].o)});var e=n();return Object.keys(i).forEach(function(n){r[n]=i[n]}),e}function _(n,t,r,i){void 0===i&&(i={handled:!0,type:"generic"}),n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||t||"",n.exception.values[0].type=n.exception.values[0].type||r||"Error",n.exception.values[0].mechanism=n.exception.values[0].mechanism||i}var O,k=function(){function n(){this.u="function"==typeof WeakSet,this.s=this.u?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.u)return!!this.s.has(n)||(this.s.add(n),!1);for(var t=0;t<this.s.length;t++){if(this.s[t]===n)return!0}return this.s.push(n),!1},n.prototype.unmemoize=function(n){if(this.u)this.s.delete(n);else for(var t=0;t<this.s.length;t++)if(this.s[t]===n){this.s.splice(t,1);break}},n}();function T(n,t,r){if(t in n&&!n[t].t){var i=n[t],e=r(i);"function"==typeof e&&(e.prototype=e.prototype||{},Object.defineProperties(e,{t:{enumerable:!1,value:!0},o:{enumerable:!1,value:i},i:{enumerable:!1,value:e}})),n[t]=e}}function R(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}function D(n,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var i=A(n,t);return R(i)>r?D(n,t-1,r):i}function I(n,t){return"domain"===t&&"object"==typeof n&&n.h?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":y(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function N(n,t,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new k),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=I(n);return p(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var e=I(t,n);if(p(e))return e;var o=h(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=N(c,o[c],r-1,i));return i.unmemoize(t),u}function A(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return N(n,r,t)}))}catch(n){return"**non-serializable**"}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(O||(O={}));var C=function(){function n(n){var t=this;this.v=O.PENDING,this.l=[],this.p=function(n){t.m(n,O.RESOLVED)},this.g=function(n){t.m(n,O.REJECTED)},this.m=function(n,r){t.v===O.PENDING&&(m(n)?n.then(t.p,t.g):(t.j=n,t.v=r,t.S()))},this.S=function(){t.v!==O.PENDING&&(t.v===O.REJECTED?t.l.forEach(function(n){return n.onFail&&n.onFail(t.j)}):t.l.forEach(function(n){return n.onSuccess&&n.onSuccess(t.j)}),t.l=[])},this._=function(n){t.l=t.l.concat(n),t.S()};try{n(this.p,this.g)}catch(n){this.g(n)}}return n.prototype.then=function(t,r){var i=this;return new n(function(n,e){i._({onFail:function(t){if(r)try{return void n(r(t))}catch(n){return void e(n)}else e(t)},onSuccess:function(r){if(t)try{return void n(t(r))}catch(n){return void e(n)}else n(r)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.toString=function(){return"[object SyncPromise]"},n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,r){r(t)})},n}(),M=function(){function n(){this.O=!1,this.k=[],this.T=[],this.R=[],this.D={},this.I={},this.N={}}return n.prototype.addScopeListener=function(n){this.k.push(n)},n.prototype.addEventProcessor=function(n){return this.T.push(n),this},n.prototype.A=function(){var n=this;this.O||(this.O=!0,setTimeout(function(){n.k.forEach(function(t){t(n)}),n.O=!1}))},n.prototype.C=function(n,t,r,i){var e=this;return void 0===i&&(i=0),new C(function(o,c){var s=n[i];if(null===t||"function"!=typeof s)o(t);else{var f=s(u({},t),r);m(f)?f.then(function(t){return e.C(n,t,r,i+1).then(o)}).catch(c):e.C(n,f,r,i+1).then(o).catch(c)}})},n.prototype.setUser=function(n){return this.D=A(n),this.A(),this},n.prototype.setTags=function(n){return this.I=u({},this.I,A(n)),this.A(),this},n.prototype.setTag=function(n,t){var r;return this.I=u({},this.I,((r={})[n]=A(t),r)),this.A(),this},n.prototype.setExtras=function(n){return this.N=u({},this.N,A(n)),this.A(),this},n.prototype.setExtra=function(n,t){var r;return this.N=u({},this.N,((r={})[n]=A(t),r)),this.A(),this},n.prototype.setFingerprint=function(n){return this.M=A(n),this.A(),this},n.prototype.setLevel=function(n){return this.F=A(n),this.A(),this},n.clone=function(t){var r=new n;return Object.assign(r,t,{k:[]}),t&&(r.R=a(t.R),r.I=u({},t.I),r.N=u({},t.N),r.D=t.D,r.F=t.F,r.M=t.M,r.T=a(t.T)),r},n.prototype.clear=function(){return this.R=[],this.I={},this.N={},this.D={},this.F=void 0,this.M=void 0,this.A(),this},n.prototype.addBreadcrumb=function(n,t){return this.R=void 0!==t&&t>=0?a(this.R,[A(n)]).slice(-t):a(this.R,[A(n)]),this.A(),this},n.prototype.clearBreadcrumbs=function(){return this.R=[],this.A(),this},n.prototype.P=function(n){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],this.M&&(n.fingerprint=n.fingerprint.concat(this.M)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint},n.prototype.applyToEvent=function(n,t){return this.N&&Object.keys(this.N).length&&(n.extra=u({},this.N,n.extra)),this.I&&Object.keys(this.I).length&&(n.tags=u({},this.I,n.tags)),this.D&&Object.keys(this.D).length&&(n.user=u({},this.D,n.user)),this.F&&(n.level=this.F),this.P(n),(!n.breadcrumbs||0===n.breadcrumbs.length)&&this.R.length>0&&(n.breadcrumbs=this.R),this.C(a(F(),this.T),n,t)},n}();function F(){var n=w();return n.U=n.U||{},n.U.globalEventProcessors=n.U.globalEventProcessors||[],n.U.globalEventProcessors}function P(n){F().push(n)}var U=w(),L="Sentry Logger ",$=new(function(){function n(){this.L=!1}return n.prototype.disable=function(){this.L=!1},n.prototype.enable=function(){this.L=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.L&&S(function(){U.console.log(L+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.L&&S(function(){U.console.warn(L+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.L&&S(function(){U.console.error(L+"[Error]: "+n.join(" "))})},n}()),q=3,H=function(){function n(n,t,r){void 0===t&&(t=new M),void 0===r&&(r=q),this.$=r,this.q=[],this.q.push({client:n,scope:t})}return n.prototype.H=function(n){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var e=this.getStackTop();e&&e.client&&e.client[n]&&(t=e.client)[n].apply(t,a(r,[e.scope]))},n.prototype.isOlderThan=function(n){return this.$<n},n.prototype.bindClient=function(n){this.getStackTop().client=n},n.prototype.pushScope=function(){var n=this.getStack(),t=n.length>0?n[n.length-1].scope:void 0,r=M.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return void 0!==this.getStack().pop()},n.prototype.withScope=function(n){var t=this.pushScope();try{n(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this.q},n.prototype.getStackTop=function(){return this.q[this.q.length-1]},n.prototype.captureException=function(n,t){var r=this.B=g();return this.H("captureException",n,u({},t,{event_id:r})),r},n.prototype.captureMessage=function(n,t,r){var i=this.B=g();return this.H("captureMessage",n,t,u({},r,{event_id:i})),i},n.prototype.captureEvent=function(n,t){var r=this.B=g();return this.H("captureEvent",n,u({},t,{event_id:r})),r},n.prototype.lastEventId=function(){return this.B},n.prototype.addBreadcrumb=function(n,t){var r=this.getStackTop();if(r.scope&&r.client){var i=r.client.getOptions(),e=i.beforeBreadcrumb,o=i.maxBreadcrumbs,c=void 0===o?30:o;if(!(c<=0)){var s=(new Date).getTime()/1e3,f=u({timestamp:s},n),a=e?S(function(){return e(f,t)}):f;null!==a&&r.scope.addBreadcrumb(a,Math.min(c,100))}}},n.prototype.configureScope=function(n){var t=this.getStackTop();t.scope&&t.client&&n(t.scope)},n.prototype.run=function(n){var t=W(this);try{n(this)}finally{W(t)}},n.prototype.getIntegration=function(n){var t=this.getClient();if(!t)return null;try{return t.getIntegration(n)}catch(t){return $.warn("Cannot retrieve integration "+n.id+" from the current Hub"),null}},n}();function B(){var n=w();return n.U=n.U||{hub:void 0},n}function W(n){var t=B(),r=X(t);return z(t,n),r}function J(){var n,t,r=B();G(r)&&!X(r).isOlderThan(q)||z(r,new H);try{var i=(n=module,t="domain",n.require(t)).active;if(!i)return X(r);if(!G(i)||X(i).isOlderThan(q)){var e=X(r).getStackTop();z(i,new H(e.client,M.clone(e.scope)))}return X(i)}catch(n){return X(r)}}function G(n){return!!(n&&n.U&&n.U.hub)}function X(n){return n&&n.U&&n.U.hub?n.U.hub:(n.U={},n.U.hub=new H,n.U.hub)}function z(n,t){return!!n&&(n.U=n.U||{},n.U.hub=t,!0)}function V(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=J();if(i&&i[n])return i[n].apply(i,a(t));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function captureException(n){var t;try{throw new Error("Sentry syntheticException")}catch(n){t=n}return V("captureException",n,{originalException:n,syntheticException:t})}function K(n){V("withScope",n)}var Z=function(n){function t(t){var r=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i}return r(t,n),t}(Error),Q=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,Y=function(){function n(n){"string"==typeof n?this.W(n):this.J(n),this.G()}return n.prototype.toString=function(n){void 0===n&&(n=!1);var t=this,r=t.host,i=t.path,e=t.pass,o=t.port,u=t.projectId;return t.protocol+"://"+t.user+(n&&e?":"+e:"")+"@"+r+(o?":"+o:"")+"/"+(i?i+"/":i)+u},n.prototype.W=function(n){var t=Q.exec(n);if(!t)throw new Z("Invalid Dsn");var r=f(t.slice(1),6),i=r[0],e=r[1],o=r[2],u=void 0===o?"":o,c=r[3],s=r[4],a=void 0===s?"":s,h="",v=r[5],l=v.split("/");l.length>1&&(h=l.slice(0,-1).join("/"),v=l.pop()),Object.assign(this,{host:c,pass:u,path:h,projectId:v,port:a,protocol:i,user:e})},n.prototype.J=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},n.prototype.G=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!n[t])throw new Z("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new Z("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new Z("Invalid Dsn")},n}(),nn=function(){function n(n){this.dsn=n,this.X=new Y(n)}return n.prototype.getDsn=function(){return this.X},n.prototype.getStoreEndpoint=function(){return""+this.V()+this.getStoreEndpointPath()},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var n,t={sentry_key:this.X.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(n=t,Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&"))},n.prototype.V=function(){var n=this.X,t=n.protocol?n.protocol+":":"",r=n.port?":"+n.port:"";return t+"//"+n.host+r},n.prototype.getStoreEndpointPath=function(){var n=this.X;return(n.path?"/"+n.path:"")+"/api/"+n.projectId+"/store/"},n.prototype.getRequestHeaders=function(n,t){var r=this.X,i=["Sentry sentry_version=7"];return i.push("sentry_timestamp="+(new Date).getTime()),i.push("sentry_client="+n+"/"+t),i.push("sentry_key="+r.user),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},n.prototype.getReportDialogEndpoint=function(n){void 0===n&&(n={});var t=this.X,r=this.V()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",i=[];for(var e in i.push("dsn="+t.toString()),n)if("user"===e){if(!n.user)continue;n.user.name&&i.push("name="+encodeURIComponent(n.user.name)),n.user.email&&i.push("email="+encodeURIComponent(n.user.email))}else i.push(encodeURIComponent(e)+"="+encodeURIComponent(n[e]));return i.length?r+"?"+i.join("&"):r},n}();function tn(n,t){return void 0===t&&(t=0),0===t?n:n.length<=t?n:n.substr(0,t)+"..."}function rn(n,t){if(!Array.isArray(n))return"";for(var r=[],i=0;i<n.length;i++){var e=n[i];try{r.push(String(e))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}function en(n,t){if(void 0===t&&(t=40),!n.length)return"[object has no keys]";if(n[0].length>=t)return tn(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:tn(i,t)}return""}var on=[];function un(n){var t={};return function(n){var t=n.defaultIntegrations&&a(n.defaultIntegrations)||[],r=n.integrations,i=[];if(Array.isArray(r)){var e=r.map(function(n){return n.name}),o=[];t.forEach(function(n){-1===e.indexOf(cn(n))&&-1===o.indexOf(cn(n))&&(i.push(n),o.push(cn(n)))}),r.forEach(function(n){-1===o.indexOf(cn(n))&&(i.push(n),o.push(cn(n)))})}else{if("function"!=typeof r)return a(t);i=r(t),i=Array.isArray(i)?i:[i]}return i}(n).forEach(function(n){t[cn(n)]=n,function(n){-1===on.indexOf(cn(n))&&(n.setupOnce(P,J),on.push(cn(n)),$.log("Integration installed: "+cn(n)))}(n)}),t}function cn(n){return n.constructor.id||n.name}var sn,fn=function(){function n(n,t){this.K=!1,this.Z=new n(t),this.Y=t,t.dsn&&(this.nn=new Y(t.dsn)),this.tn=un(this.Y)}return n.prototype.captureException=function(n,t,r){var i=this,e=t&&t.event_id;return this.K=!0,this.rn().eventFromException(n,t).then(function(n){return i.in(n,t,r)}).then(function(n){e=n&&n.event_id,i.K=!1}).catch(function(n){$.log(n),i.K=!1}),e},n.prototype.captureMessage=function(n,t,r,i){var e=this,o=r&&r.event_id;return this.K=!0,(p(n)?this.rn().eventFromMessage(""+n,t,r):this.rn().eventFromException(n,r)).then(function(n){return e.in(n,r,i)}).then(function(n){o=n&&n.event_id,e.K=!1}).catch(function(n){$.log(n),e.K=!1}),o},n.prototype.captureEvent=function(n,t,r){var i=this,e=t&&t.event_id;return this.K=!0,this.in(n,t,r).then(function(n){e=n&&n.event_id,i.K=!1}).catch(function(n){$.log(n),i.K=!1}),e},n.prototype.getDsn=function(){return this.nn},n.prototype.getOptions=function(){return this.Y},n.prototype.flush=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,Promise.all([this.rn().getTransport().close(n),this.en()])];case 1:return[2,t.sent().reduce(function(n,t){return n&&t})]}})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,this.flush(n).finally(function(){t.getOptions().enabled=!1})]})})},n.prototype.getIntegrations=function(){return this.tn||{}},n.prototype.getIntegration=function(n){try{return this.tn[n.id]||null}catch(t){return $.warn("Cannot retrieve integration "+n.id+" from the current Client"),null}},n.prototype.en=function(n){return void 0===n&&(n=0),c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){t.K?n>=10?r(!1):setTimeout(function(){return c(t,void 0,void 0,function(){var t;return s(this,function(i){switch(i.label){case 0:return t=r,[4,this.en(n+1)];case 1:return t.apply(void 0,[i.sent()]),[2]}})})},10):r(!0)})]})})},n.prototype.rn=function(){return this.Z},n.prototype.on=function(){return!1!==this.getOptions().enabled&&void 0!==this.nn},n.prototype.un=function(n,t,r){var i=this.getOptions(),e=i.environment,o=i.release,c=i.dist,s=i.maxValueLength,f=void 0===s?250:s,a=u({},n);void 0===a.environment&&void 0!==e&&(a.environment=e),void 0===a.release&&void 0!==o&&(a.release=o),void 0===a.dist&&void 0!==c&&(a.dist=c),a.message&&(a.message=tn(a.message,f));var h=a.exception&&a.exception.values&&a.exception.values[0];h&&h.value&&(h.value=tn(h.value,f));var v=a.request;v&&v.url&&(v.url=tn(v.url,f)),void 0===a.event_id&&(a.event_id=g());var l=C.resolve(a);return t&&(l=t.applyToEvent(a,r)),l},n.prototype.in=function(n,t,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate;return this.on()?"number"==typeof u&&Math.random()>u?C.reject("This event has been sampled, will not send event."):new C(function(e,u){i.un(n,r,t).then(function(n){if(null!==n){var r=n;try{if(t&&t.data&&!0===t.data.t||!o)return i.rn().sendEvent(r),void e(r);var c=o(n,t);if(void 0===c)$.error("`beforeSend` method has to return `null` or a valid event.");else if(m(c))i.cn(c,e,u);else{if(null===(r=c))return $.log("`beforeSend` returned `null`, will not send event."),void e(null);i.rn().sendEvent(r),e(r)}}catch(n){i.captureException(n,{data:{t:!0},originalException:n}),u("`beforeSend` throw an error, will not send event.")}}else u("An event processor returned null, will not send event.")})}):C.reject("SDK not enabled, will not send event.")},n.prototype.cn=function(n,t,r){var i=this;n.then(function(n){null!==n?(i.rn().sendEvent(n),t(n)):r("`beforeSend` returned `null`, will not send event.")}).catch(function(n){r("beforeSend rejected with "+n)})},n}(),an=function(){function t(){}return t.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})]})})},t.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){return[2,Promise.resolve(!0)]})})},t}(),hn=function(){function n(n){this.Y=n,this.Y.dsn||$.warn("No DSN provided, backend will not do anything."),this.sn=this.fn()}return n.prototype.fn=function(){return new an},n.prototype.eventFromException=function(n,t){throw new Z("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(n,t,r){throw new Z("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(n){this.sn.sendEvent(n).catch(function(n){$.error("Error while sending event: "+n)})},n.prototype.getTransport=function(){return this.sn},n}();var vn=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){sn=Function.prototype.toString,Function.prototype.toString=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this.t?this.o:this;return sn.apply(r,n)}},n.id="FunctionToString",n}(),ln=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],dn=function(){function n(t){void 0===t&&(t={}),this.Y=t,this.name=n.id}return n.prototype.setupOnce=function(){P(function(t){var r=J();if(!r)return t;var i=r.getIntegration(n);if(i){var e=r.getClient(),o=e?e.getOptions():{},u=i.an(o);if(i.hn(t,u))return null}return t})},n.prototype.hn=function(n,t){return this.vn(n,t)?($.warn("Event dropped due to being internal Sentry Error.\nEvent: "+j(n)),!0):this.ln(n,t)?($.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+j(n)),!0):this.dn(n,t)?($.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+j(n)+".\nUrl: "+this.pn(n)),!0):!this.yn(n,t)&&($.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+j(n)+".\nUrl: "+this.pn(n)),!0)},n.prototype.vn=function(n,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return"SentryError"===n.exception.values[0].type}catch(n){return!1}},n.prototype.ln=function(n,t){var r=this;return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this.mn(n).some(function(n){return t.ignoreErrors.some(function(t){return r.bn(n,t)})})},n.prototype.dn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var i=this.pn(n);return!!i&&t.blacklistUrls.some(function(n){return r.bn(i,n)})},n.prototype.yn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var i=this.pn(n);return!i||t.whitelistUrls.some(function(n){return r.bn(i,n)})},n.prototype.an=function(n){return void 0===n&&(n={}),{blacklistUrls:a(this.Y.blacklistUrls||[],n.blacklistUrls||[]),ignoreErrors:a(this.Y.ignoreErrors||[],n.ignoreErrors||[],ln),ignoreInternal:void 0===this.Y.ignoreInternal||this.Y.ignoreInternal,whitelistUrls:a(this.Y.whitelistUrls||[],n.whitelistUrls||[])}},n.prototype.bn=function(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r},n.prototype.mn=function(n){if(n.message)return[n.message];if(n.exception)try{var t=n.exception.values[0],r=t.type,i=t.value;return[""+i,r+": "+i]}catch(t){return $.error("Cannot extract message for event "+j(n)),[]}return[]},n.prototype.pn=function(n){try{if(n.stacktrace){var t=n.stacktrace.frames;return t[t.length-1].filename}if(n.exception){var r=n.exception.values[0].stacktrace.frames;return r[r.length-1].filename}return null}catch(t){return $.error("Cannot extract url for event "+j(n)),null}},n.id="InboundFilters",n}(),pn=Object.freeze({FunctionToString:vn,InboundFilters:dn});function yn(){if(!("fetch"in w()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function mn(){var n=w();return"navigator"in n&&"sendBeacon"in n.navigator}function bn(){if(!yn())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var wn=w(),gn={report:!1,collectWindowErrors:!1,computeStackTrace:!1,linesOfContext:!1},En="?",xn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function jn(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function Sn(){return"undefined"==typeof document||null==document.location?"":document.location.href}gn.report=function(){var n,t,r=[],i=null,e=null;function o(n,t,i){var e=null;if(!t||gn.collectWindowErrors){for(var o in r)if(jn(r,o))try{r[o](n,t,i)}catch(n){e=n}if(e)throw e}}function c(t,r,i,c,s){var a=null;if(s=v(s)?s.error:s,t=v(t)?t.message:t,e)gn.computeStackTrace.augmentStackTraceWithInitialElement(e,r,i,t),f();else if(s&&h(s))(a=gn.computeStackTrace(s)).mechanism="onerror",o(a,!0,s);else{var l,d={url:r,line:i,column:c},p=t;if("[object String]"==={}.toString.call(t)){var y=t.match(xn);y&&(l=y[1],p=y[2])}d.func=En,d.context=null,o(a={name:l,message:p,mode:"onerror",mechanism:"onerror",stack:[u({},d,{url:d.url||Sn()})]},!0,null)}return!!n&&n.apply(this,arguments)}function s(n){var t=n&&(n.detail?n.detail.reason:n.reason)||n,r=gn.computeStackTrace(t);r.mechanism="onunhandledrejection",o(r,!0,t)}function f(){var n=e,t=i;e=null,i=null,o(n,!1,t)}function a(n){if(e){if(i===n)return;f()}var t=gn.computeStackTrace(n);throw e=t,i=n,setTimeout(function(){i===n&&f()},t.incomplete?2e3:0),n}return a.subscribe=function(n){r.push(n)},a.installGlobalHandler=function(){!0!==t&&(n=wn.onerror,wn.onerror=c,t=!0)},a.installGlobalUnhandledRejectionHandler=function(){wn.onunhandledrejection=s},a}(),gn.computeStackTrace=function(){function n(n){if(!n.stack)return null;for(var t,r,i,e=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=n.stack.split("\n"),a=[],h=/^(.*) is undefined$/.exec(n.message),v=0,l=f.length;v<l;++v){if(r=e.exec(f[v])){var d=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=s.exec(r[2]))&&(r[2]=t[1]),i={url:d?null:r[2],func:r[1]||En,args:d?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=u.exec(f[v]))i={url:r[2],func:r[1]||En,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=o.exec(f[v])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=c.exec(r[3]))?r[3]=t[1]:0!==v||r[5]||void 0===n.columnNumber||(a[0].column=n.columnNumber+1),i={url:r[3],func:r[1]||En,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!i.func&&i.line&&(i.func=En),i.context=null,a.push(i)}return a.length?(a[0]&&a[0].line&&!a[0].column&&h&&(a[0].column=null),{mode:"stack",name:n.name,message:n.message,stack:a}):null}function t(n,t,r,i){var e={url:t,line:r};if(e.url&&e.line){if(n.incomplete=!1,e.func||(e.func=En),e.context||(e.context=null),/ '([^']+)' /.exec(i)&&(e.column=null),n.stack.length>0&&n.stack[0].url===e.url){if(n.stack[0].line===e.line)return!1;if(!n.stack[0].line&&n.stack[0].func===e.func)return n.stack[0].line=e.line,n.stack[0].context=e.context,!1}return n.stack.unshift(e),n.partial=!0,!0}return n.incomplete=!0,!1}function r(n,e){for(var o,u,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],f={},a=!1,h=r.caller;h&&!a;h=h.caller)if(h!==i&&h!==gn.report){if(u={url:null,func:En,args:[],line:null,column:null},h.name?u.func=h.name:(o=c.exec(h.toString()))&&(u.func=o[1]),void 0===u.func)try{u.func=o.input.substring(0,o.input.indexOf("{"))}catch(n){}f[""+h]?a=!0:f[""+h]=!0,s.push(u)}e&&s.splice(0,e);var v={mode:"callers",name:n.name,message:n.message,stack:s};return t(v,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),v}function i(t,i){var e=null;i=null==i?0:+i;try{if(e=function(n){var t=n.stacktrace;if(t){for(var r,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),u=[],c=0;c<o.length;c+=2){var s=null;(r=i.exec(o[c]))?s={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=e.exec(o[c]))&&(s={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),s&&(!s.func&&s.line&&(s.func=En),s.line&&(s.context=null),s.context||(s.context=[o[c+1]]),u.push(s))}return u.length?{mode:"stacktrace",name:n.name,message:n.message,stack:u}:null}}(t))return e}catch(n){}try{if(e=n(t))return e}catch(n){}try{if(e=function(n){var t=n.message.split("\n");if(t.length<4)return null;var r,i=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,e=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,u=[],c=wn&&wn.document&&wn.document.getElementsByTagName("script"),s=[];for(var f in c)jn(c,f)&&!c[f].src&&s.push(c[f]);for(var a=2;a<t.length;a+=2){var h=null;(r=i.exec(t[a]))?h={url:r[2],func:r[3],args:[],line:+r[1],column:null}:(r=e.exec(t[a]))?h={url:r[3],func:r[4],args:[],line:+r[1],column:null}:(r=o.exec(t[a]))&&(h={url:Sn().replace(/#.*$/,""),func:"",args:[],line:r[1],column:null}),h&&(h.func||(h.func=En),h.context=[t[a+1]],u.push(h))}return u.length?{mode:"multiline",name:n.name,message:t[0],stack:u}:null}(t))return e}catch(n){}try{if(e=r(t,i+1))return e}catch(n){}return{original:t,name:t.name,message:t.message,mode:"failed"}}return i.augmentStackTraceWithInitialElement=t,i.computeStackTraceFromStackProp=n,i}(),gn.collectWindowErrors=!0,gn.linesOfContext=11;var _n=gn.report.subscribe,On=gn.report.installGlobalHandler,kn=gn.report.installGlobalUnhandledRejectionHandler,Tn=gn.computeStackTrace,Rn=50;function Dn(n){var t=Nn(n.stack),r={type:n.name,value:n.message};return t&&t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function In(n){return{exception:{values:[Dn(n)]}}}function Nn(n){if(!n||!n.length)return[];var t=n,r=t[0].func||"",i=t[t.length-1].func||"";return(r.includes("captureMessage")||r.includes("captureException"))&&(t=t.slice(1)),i.includes("sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(n){return{colno:n.column,filename:n.url||t[0].url,function:n.func||"?",in_app:!0,lineno:n.line}}).slice(0,Rn).reverse()}var An,Cn,Mn=function(){function n(n){this.wn=n,this.gn=[]}return n.prototype.isReady=function(){return void 0===this.wn||this.length()<this.wn},n.prototype.add=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return this.isReady()?(-1===this.gn.indexOf(n)&&this.gn.push(n),n.then(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n)]})})}).catch(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n).catch(function(){})]})})}),[2,n]):[2,Promise.reject(new Z("Not adding Promise due to buffer limit reached."))]})})},n.prototype.remove=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.gn.splice(this.gn.indexOf(n),1)[0]]})})},n.prototype.length=function(){return this.gn.length},n.prototype.drain=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){var i=setTimeout(function(){n&&n>0&&r(!1)},n);Promise.all(t.gn).then(function(){clearTimeout(i),r(!0)}).catch(function(){r(!0)})})]})})},n}(),Fn=function(){function n(n){this.options=n,this.gn=new Mn(30),this.url=new nn(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){throw new Z("Transport Class has to implement `sendEvent` method")})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.gn.drain(n)]})})},n}(),Pn=w(),Un=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r;return s(this,function(i){return r={body:JSON.stringify(t),method:"POST",referrerPolicy:bn()?"origin":""},[2,this.gn.add(Pn.fetch(this.url,r).then(function(t){return{status:n.Status.fromHttpCode(t.status)}}))]})})},i}(Fn),Ln=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r=this;return s(this,function(i){return[2,this.gn.add(new Promise(function(i,e){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&i({status:n.Status.fromHttpCode(o.status)}),e(o))},o.open("POST",r.url),o.send(JSON.stringify(t))}))]})})},i}(Fn),$n=w(),qn=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r;return s(this,function(i){return r=$n.navigator.sendBeacon(this.url,JSON.stringify(t)),[2,this.gn.add(Promise.resolve({status:r?n.Status.Success:n.Status.Failed}))]})})},i}(Fn),Hn=Object.freeze({BaseTransport:Fn,FetchTransport:Un,XHRTransport:Ln,BeaconTransport:qn}),Bn=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.fn=function(){if(!this.Y.dsn)return t.prototype.fn.call(this);var n=this.Y.transportOptions?this.Y.transportOptions:{dsn:this.Y.dsn};return this.Y.transport?new this.Y.transport(n):mn()?new qn(n):yn()?new Un(n):new Ln(n)},i.prototype.eventFromException=function(t,r){var i,e,o=this;if(v(t)&&t.error)return t=t.error,i=In(Tn(t)),C.resolve(this.En(i,r));if(l(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var u=t,c=u.name||(l(u)?"DOMError":"DOMException"),s=u.message?c+": "+u.message:c;return this.eventFromMessage(s,n.Severity.Error,r).then(function(n){return _(n,s),C.resolve(o.En(n,r))})}if(h(t))return i=In(Tn(t)),C.resolve(this.En(i,r));if(y(t)&&r&&r.syntheticException)return _(i=function(n,t){var r=Object.keys(n).sort(),i={extra:{xn:D(n)},message:"Non-Error exception captured with keys: "+en(r)};if(t){var e=Nn(Tn(t).stack);i.stacktrace={frames:e}}return i}(t,r.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),i.level=n.Severity.Error,C.resolve(this.En(i,r));var f=t;return this.eventFromMessage(f,void 0,r).then(function(t){return _(t,""+f,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=n.Severity.Error,C.resolve(o.En(t,r))})},i.prototype.En=function(n,t){return u({},n,{event_id:t&&t.event_id})},i.prototype.eventFromMessage=function(t,r,i){void 0===r&&(r=n.Severity.Info);var e={event_id:i&&i.event_id,level:r,message:t};if(this.Y.attachStacktrace&&i&&i.syntheticException){var o=Nn(Tn(i.syntheticException).stack);e.stacktrace={frames:o}}return C.resolve(e)},i}(hn),Wn="sentry.javascript.browser",Jn=function(n){function t(t){return void 0===t&&(t={}),n.call(this,Bn,t)||this}return r(t,n),t.prototype.un=function(t,r,i){return t.platform=t.platform||"javascript",t.sdk=u({},t.sdk,{name:Wn,packages:a(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.0.0-rc.0"}]),version:"5.0.0-rc.0"}),n.prototype.un.call(this,t,r,i)},t.prototype.showReportDialog=function(n){void 0===n&&(n={});var t=w().document;if(t)if(this.on()){var r=n.dsn||this.getDsn();if(n.eventId)if(r){var i=t.createElement("script");i.async=!0,i.src=new nn(r).getReportDialogEndpoint(n),(t.head||t.body).appendChild(i)}else $.error("Missing `Dsn` option in showReportDialog call");else $.error("Missing `eventId` option in showReportDialog call")}else $.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(fn),Gn=1e3,Xn=0;function zn(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{if(n.t)return n;if(n.i)return n.i}catch(t){return n}var sentryWrapped=function(){r&&"function"==typeof r&&r.apply(this,arguments);var i=Array.prototype.slice.call(arguments);try{var e=i.map(function(n){return zn(n,t)});return n.handleEvent?n.handleEvent.apply(this,e):n.apply(this,e)}catch(n){throw Xn+=1,setTimeout(function(){Xn-=1}),K(function(r){r.addEventProcessor(function(n){var r=u({},n);return t.mechanism&&_(r,void 0,void 0,t.mechanism),r.extra=u({},r.extra,{arguments:A(i,3)}),r}),captureException(n)}),n}};try{for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(sentryWrapped[i]=n[i])}catch(n){}n.prototype=n.prototype||{},sentryWrapped.prototype=n.prototype,Object.defineProperty(n,"i",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{t:{enumerable:!1,value:!0},o:{enumerable:!1,value:n}});try{Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}function Vn(n){return function(t){if(An=void 0,Cn!==t){var r;Cn=t;try{r=function(n){for(var t,r=n,i=[],e=0,o=0,u=" > ".length;r&&e++<5&&!("html"===(t=E(r))||e>1&&o+i.length*u+t.length>=80);)i.push(t),o+=t.length,r=r.parentNode;return i.reverse().join(" > ")}(t.target)}catch(n){r="<unknown>"}J().addBreadcrumb({category:"ui."+n,message:r},{event:t,name:n})}}}function Kn(){return function(n){var t;try{t=n.target}catch(n){return}var r=t&&t.tagName;r&&("INPUT"===r||"TEXTAREA"===r||t.isContentEditable)&&(An||Vn("input")(n),clearTimeout(An),An=setTimeout(function(){An=void 0},Gn))}}var Zn=function(){function n(t){this.name=n.id,this.Y=u({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,_n(function(t,r,i){if(!(Xn>0)){var e=J().getIntegration(n);e&&J().captureEvent(e.jn(t),{data:{stack:t},originalException:i})}}),this.Y.onerror&&($.log("Global Handler attached: onerror"),On()),this.Y.onunhandledrejection&&($.log("Global Handler attached: onunhandledrejection"),kn())},n.prototype.jn=function(n){var t=In(n),r={mode:n.mode};n.message&&(r.message=n.message),n.name&&(r.name=n.name);var i=J().getClient(),e=i&&i.getOptions().maxValueLength||250;return _(t,n.original?tn(JSON.stringify(A(n.original)),e):"","onunhandledrejection"===n.mechanism?"UnhandledRejection":"Error",{data:r,handled:!1,type:n.mechanism}),t},n.id="GlobalHandlers",n}(),Qn=function(){function n(){this.Sn=0,this.name=n.id}return n.prototype._n=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t[0];return t[0]=zn(i,{mechanism:{data:{function:Yn(n)},handled:!0,type:"instrument"}}),n.apply(this,t)}},n.prototype.On=function(n){return function(t){return n(zn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Yn(n)},handled:!0,type:"instrument"}}))}},n.prototype.kn=function(n){var t=w(),r=t[n]&&t[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(T(r,"addEventListener",function(t){return function(r,i,e){try{i.handleEvent=zn(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:Yn(i),target:n},handled:!0,type:"instrument"}})}catch(n){}var o,u,c;return"EventTarget"!==n&&"Node"!==n||(u=Vn("click"),c=Kn(),o=function(n){if(n){var t;try{t=n.type}catch(n){return}return"click"===t?u(n):"keypress"===t?c(n):void 0}}),t.call(this,r,zn(i,{mechanism:{data:{function:"addEventListener",handler:Yn(i),target:n},handled:!0,type:"instrument"}},o),e)}}),T(r,"removeEventListener",function(n){return function(t,r,i){var e=r;try{e=e&&(e.i||e)}catch(n){}return n.call(this,t,e,i)}}))},n.prototype.setupOnce=function(){this.Sn=this.Sn;var n=w();T(n,"setTimeout",this._n.bind(this)),T(n,"setInterval",this._n.bind(this)),T(n,"requestAnimationFrame",this.On.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.kn.bind(this))},n.id="TryCatch",n}();function Yn(n){try{return n&&n.name||"<anonymous>"}catch(n){return"<anonymous>"}}var nt,tt=w(),rt=function(){function t(n){this.name=t.id,this.Y=u({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.Tn=function(){mn()&&T(tt.navigator,"sendBeacon",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o=i[0],u=i[1],c=r.apply(this,i),s=J().getClient(),f=s&&s.getDsn();if(f){var a=new nn(f).getStoreEndpoint();if(a&&o.includes(a))return it(u),c}var h={category:"beacon",data:u,type:"http"};return c||(h.level=n.Severity.Error),t.addBreadcrumb(h,{input:i,result:c}),c}})},t.prototype.Rn=function(){"console"in tt&&["debug","info","warn","error","log"].forEach(function(r){r in tt.console&&T(tt.console,r,function(i){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var u={category:"console",data:{extra:{arguments:A(e,3)},logger:"console"},level:n.Severity.fromString(r),message:rn(e," ")};"assert"===r&&!1===e[0]&&(u.message="Assertion failed: "+(rn(e.slice(1)," ")||"console.assert"),u.data.extra.arguments=A(e.slice(1),3)),t.addBreadcrumb(u,{input:e,level:r}),i&&Function.prototype.apply.call(i,tt.console,e)}})})},t.prototype.Dn=function(){"document"in tt&&(tt.document.addEventListener("click",Vn("click"),!1),tt.document.addEventListener("keypress",Kn(),!1))},t.prototype.In=function(){yn()&&-1!==w().fetch.toString().indexOf("native")&&T(tt,"fetch",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o,u=i[0],c="GET";"string"==typeof u?o=u:"Request"in tt&&u instanceof Request?(o=u.url,u.method&&(c=u.method)):o=String(u),i[1]&&i[1].method&&(c=i[1].method);var s=J().getClient(),f=s&&s.getDsn();if(f){var a=new nn(f).getStoreEndpoint();if(a&&o.includes(a))return"POST"===c&&i[1]&&i[1].body&&it(i[1].body),r.apply(tt,i)}var h={method:c,url:o};return r.apply(tt,i).then(function(n){return h.status_code=n.status,t.addBreadcrumb({category:"fetch",data:h,type:"http"},{input:i,response:n}),n}).catch(function(r){throw t.addBreadcrumb({category:"fetch",data:h,level:n.Severity.Error,type:"http"},{error:r,input:i}),r})}})},t.prototype.Nn=function(){var n=this;if(r=w(),i=r.chrome,e=i&&i.app&&i.app.runtime,o="history"in r&&!!r.history.pushState&&!!r.history.replaceState,!e&&o){var r,i,e,o,u=function(n,r){var i=x(tt.location.href),e=x(r),o=x(n);o.path||(o=i),nt=r,i.protocol===e.protocol&&i.host===e.host&&(r=e.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),t.addBreadcrumb({category:"navigation",data:{from:n,to:r}})},c=tt.onpopstate;tt.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=tt.location.href;if(u(nt,i),c)return c.apply(n,t)},T(tt.history,"pushState",s),T(tt.history,"replaceState",s)}function s(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t.length>2?t[2]:void 0;return i&&u(nt,String(i)),n.apply(this,t)}}},t.prototype.An=function(){if("XMLHttpRequest"in tt){var n=XMLHttpRequest.prototype;T(n,"open",function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t[1];this.Cn={method:t[0],url:t[1]};var e=J().getClient(),o=e&&e.getDsn();if(o){var u=new nn(o).getStoreEndpoint();d(i)&&u&&i.includes(u)&&(this.Mn=!0)}return n.apply(this,t)}}),T(n,"send",function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var e=this;function o(){if(4===e.readyState){if(e.Mn)return;try{e.Cn&&(e.Cn.status_code=e.status)}catch(n){}t.addBreadcrumb({category:"xhr",data:e.Cn,type:"http"},{xhr:e})}}return e.Mn&&it(r[0]),["onload","onerror","onprogress"].forEach(function(n){!function(n,t){n in t&&"function"==typeof t[n]&&T(t,n,function(t){return zn(t,{mechanism:{data:{function:n,handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}})})}(n,e)}),"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?T(e,"onreadystatechange",function(n){return zn(n,{mechanism:{data:{function:"onreadystatechange",handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}},o)}):e.onreadystatechange=o,n.apply(this,r)}})}},t.addBreadcrumb=function(n,r){J().getIntegration(t)&&J().addBreadcrumb(n,r)},t.prototype.setupOnce=function(){this.Y.console&&this.Rn(),this.Y.dom&&this.Dn(),this.Y.xhr&&this.An(),this.Y.fetch&&this.In(),this.Y.beacon&&this.Tn(),this.Y.history&&this.Nn()},t.id="Breadcrumbs",t}();function it(t){try{var r=JSON.parse(t);rt.addBreadcrumb({category:"sentry",event_id:r.event_id,level:r.level||n.Severity.fromString("error"),message:j(r)},{event:r})}catch(n){$.error("Error while adding sentry type breadcrumb")}}var et="cause",ot=5,ut=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.Fn=t.key||et,this.wn=t.limit||ot}return n.prototype.setupOnce=function(){P(function(t,r){var i=J().getIntegration(n);return i?i.handler(t,r):t})},n.prototype.handler=function(n,t){if(!(n.exception&&n.exception.values&&t&&t.originalException instanceof Error))return n;var r=this.walkErrorTree(t.originalException,this.Fn);return n.exception.values=a(r,n.exception.values),n},n.prototype.walkErrorTree=function(n,t,r){if(void 0===r&&(r=[]),!(n[t]instanceof Error)||r.length+1>=this.wn)return r;var i=Dn(Tn(n[t]));return this.walkErrorTree(n[t],t,a([i],r))},n.id="LinkedErrors",n}(),ct=w(),st=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){P(function(t){if(J().getIntegration(n)){if(!ct.navigator||!ct.location)return t;var r=t.request||{};return r.url=r.url||ct.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=ct.navigator.userAgent,u({},t,{request:r})}return t})},n.id="UserAgent",n}(),ft=Object.freeze({GlobalHandlers:Zn,TryCatch:Qn,Breadcrumbs:rt,LinkedErrors:ut,UserAgent:st}),at=[new dn,new vn,new Qn,new rt,new Zn,new ut,new st];var ht=u({},pn,ft);return n.Integrations=ht,n.Transports=Hn,n.addGlobalEventProcessor=P,n.addBreadcrumb=function(n){V("addBreadcrumb",n)},n.captureException=captureException,n.captureEvent=function(n){return V("captureEvent",n)},n.captureMessage=function(n,t){var r;try{throw new Error(n)}catch(n){r=n}return V("captureMessage",n,t,{originalException:n,syntheticException:r})},n.configureScope=function(n){V("configureScope",n)},n.withScope=K,n.getHubFromCarrier=X,n.getCurrentHub=J,n.Hub=H,n.Scope=M,n.BrowserClient=Jn,n.defaultIntegrations=at,n.forceLoad=function(){},n.init=function(n){void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=at),function(n,t){!0===t.debug&&$.enable(),J().bindClient(new n(t))}(Jn,n)},n.lastEventId=function(){return J().lastEventId()},n.onLoad=function(n){n()},n.showReportDialog=function(n){void 0===n&&(n={}),n.eventId||(n.eventId=J().lastEventId());var t=J().getClient();t&&t.showReportDialog(n)},n.flush=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=J().getClient())?[2,t.flush(n)]:[2,Promise.reject(!1)]})})},n.close=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=J().getClient())?[2,t.close(n)]:[2,Promise.reject(!1)]})})},n.SDK_NAME=Wn,n.SDK_VERSION="5.0.0-rc.0",n}({});
/*! @sentry/browser 5.0.0-rc.1 (6b2ce566) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(n){"use strict";var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function i(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var e in t=arguments[r])Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}).apply(this,arguments)};function c(n,t,r,i){return new(r||(r=Promise))(function(e,o){function u(n){try{s(i.next(n))}catch(n){o(n)}}function c(n){try{s(i.throw(n))}catch(n){o(n)}}function s(n){n.done?e(n.value):new r(function(t){t(n.value)}).then(u,c)}s((i=i.apply(n,t||[])).next())})}function s(n,t){var r,i,e,o,u={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(e=2&o[0]?i.return:o[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,o[1])).done)return e;switch(i=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,i=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(e=(e=u.trys).length>0&&e[e.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){u.label=o[1];break}if(6===o[0]&&u.label<e[1]){u.label=e[1],e=o;break}if(e&&u.label<e[2]){u.label=e[2],u.ops.push(o);break}e[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],i=0}finally{r=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function f(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var i,e,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function a(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(f(arguments[t]));return n}function h(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function v(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function l(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function d(n){return"[object String]"===Object.prototype.toString.call(n)}function p(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function y(n){return"[object Object]"===Object.prototype.toString.call(n)}function m(n){return Boolean(n&&n.then&&"function"==typeof n.then)}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(i||(i={})),(e=n.Severity||(n.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(n.Severity||(n.Severity={})),(o=n.Status||(n.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var b={};function w(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:b}function g(){var n=w(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function E(n){var t,r,i,e,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&d(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)u.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(e=n.getAttribute(i))&&u.push("["+i+'="'+e+'"]');return u.join("")}function x(n){if(!n)return{};var t=n.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+i}}function j(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.exception.values[0]){var t=n.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||n.event_id||"<unknown>"}return n.event_id||"<unknown>"}function S(n){var t=w();if(!("console"in t))return n();var r=t.console,i={};["debug","info","warn","error","log"].forEach(function(n){n in t.console&&r[n].t&&(i[n]=r[n].i,r[n]=r[n].o)});var e=n();return Object.keys(i).forEach(function(n){r[n]=i[n]}),e}function _(n,t,r,i){void 0===i&&(i={handled:!0,type:"generic"}),n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||t||"",n.exception.values[0].type=n.exception.values[0].type||r||"Error",n.exception.values[0].mechanism=n.exception.values[0].mechanism||i}var O,k=function(){function n(){this.u="function"==typeof WeakSet,this.s=this.u?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.u)return!!this.s.has(n)||(this.s.add(n),!1);for(var t=0;t<this.s.length;t++){if(this.s[t]===n)return!0}return this.s.push(n),!1},n.prototype.unmemoize=function(n){if(this.u)this.s.delete(n);else for(var t=0;t<this.s.length;t++)if(this.s[t]===n){this.s.splice(t,1);break}},n}();function T(n,t,r){if(t in n&&!n[t].t){var i=n[t],e=r(i);"function"==typeof e&&(e.prototype=e.prototype||{},Object.defineProperties(e,{t:{enumerable:!1,value:!0},o:{enumerable:!1,value:i},i:{enumerable:!1,value:e}})),n[t]=e}}function R(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}function D(n,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var i=A(n,t);return R(i)>r?D(n,t-1,r):i}function I(n,t){return"domain"===t&&"object"==typeof n&&n.h?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":y(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function N(n,t,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new k),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=I(n);return p(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var e=I(t,n);if(p(e))return e;var o=h(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=N(c,o[c],r-1,i));return i.unmemoize(t),u}function A(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return N(n,r,t)}))}catch(n){return"**non-serializable**"}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(O||(O={}));var C=function(){function n(n){var t=this;this.v=O.PENDING,this.l=[],this.p=function(n){t.m(n,O.RESOLVED)},this.g=function(n){t.m(n,O.REJECTED)},this.m=function(n,r){t.v===O.PENDING&&(m(n)?n.then(t.p,t.g):(t.j=n,t.v=r,t.S()))},this.S=function(){t.v!==O.PENDING&&(t.v===O.REJECTED?t.l.forEach(function(n){return n.onFail&&n.onFail(t.j)}):t.l.forEach(function(n){return n.onSuccess&&n.onSuccess(t.j)}),t.l=[])},this._=function(n){t.l=t.l.concat(n),t.S()};try{n(this.p,this.g)}catch(n){this.g(n)}}return n.prototype.then=function(t,r){var i=this;return new n(function(n,e){i._({onFail:function(t){if(r)try{return void n(r(t))}catch(n){return void e(n)}else e(t)},onSuccess:function(r){if(t)try{return void n(t(r))}catch(n){return void e(n)}else n(r)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.toString=function(){return"[object SyncPromise]"},n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,r){r(t)})},n}(),M=function(){function n(){this.O=!1,this.k=[],this.T=[],this.R=[],this.D={},this.I={},this.N={}}return n.prototype.addScopeListener=function(n){this.k.push(n)},n.prototype.addEventProcessor=function(n){return this.T.push(n),this},n.prototype.A=function(){var n=this;this.O||(this.O=!0,setTimeout(function(){n.k.forEach(function(t){t(n)}),n.O=!1}))},n.prototype.C=function(n,t,r,i){var e=this;return void 0===i&&(i=0),new C(function(o,c){var s=n[i];if(null===t||"function"!=typeof s)o(t);else{var f=s(u({},t),r);m(f)?f.then(function(t){return e.C(n,t,r,i+1).then(o)}).catch(c):e.C(n,f,r,i+1).then(o).catch(c)}})},n.prototype.setUser=function(n){return this.D=A(n),this.A(),this},n.prototype.setTags=function(n){return this.I=u({},this.I,A(n)),this.A(),this},n.prototype.setTag=function(n,t){var r;return this.I=u({},this.I,((r={})[n]=A(t),r)),this.A(),this},n.prototype.setExtras=function(n){return this.N=u({},this.N,A(n)),this.A(),this},n.prototype.setExtra=function(n,t){var r;return this.N=u({},this.N,((r={})[n]=A(t),r)),this.A(),this},n.prototype.setFingerprint=function(n){return this.M=A(n),this.A(),this},n.prototype.setLevel=function(n){return this.F=A(n),this.A(),this},n.clone=function(t){var r=new n;return Object.assign(r,t,{k:[]}),t&&(r.R=a(t.R),r.I=u({},t.I),r.N=u({},t.N),r.D=t.D,r.F=t.F,r.M=t.M,r.T=a(t.T)),r},n.prototype.clear=function(){return this.R=[],this.I={},this.N={},this.D={},this.F=void 0,this.M=void 0,this.A(),this},n.prototype.addBreadcrumb=function(n,t){return this.R=void 0!==t&&t>=0?a(this.R,[A(n)]).slice(-t):a(this.R,[A(n)]),this.A(),this},n.prototype.clearBreadcrumbs=function(){return this.R=[],this.A(),this},n.prototype.P=function(n){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],this.M&&(n.fingerprint=n.fingerprint.concat(this.M)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint},n.prototype.applyToEvent=function(n,t){return this.N&&Object.keys(this.N).length&&(n.extra=u({},this.N,n.extra)),this.I&&Object.keys(this.I).length&&(n.tags=u({},this.I,n.tags)),this.D&&Object.keys(this.D).length&&(n.user=u({},this.D,n.user)),this.F&&(n.level=this.F),this.P(n),(!n.breadcrumbs||0===n.breadcrumbs.length)&&this.R.length>0&&(n.breadcrumbs=this.R),this.C(a(F(),this.T),n,t)},n}();function F(){var n=w();return n.U=n.U||{},n.U.globalEventProcessors=n.U.globalEventProcessors||[],n.U.globalEventProcessors}function P(n){F().push(n)}var U=w(),L="Sentry Logger ",$=new(function(){function n(){this.L=!1}return n.prototype.disable=function(){this.L=!1},n.prototype.enable=function(){this.L=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.L&&S(function(){U.console.log(L+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.L&&S(function(){U.console.warn(L+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.L&&S(function(){U.console.error(L+"[Error]: "+n.join(" "))})},n}()),q=3,H=function(){function n(n,t,r){void 0===t&&(t=new M),void 0===r&&(r=q),this.$=r,this.q=[],this.q.push({client:n,scope:t})}return n.prototype.H=function(n){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var e=this.getStackTop();e&&e.client&&e.client[n]&&(t=e.client)[n].apply(t,a(r,[e.scope]))},n.prototype.isOlderThan=function(n){return this.$<n},n.prototype.bindClient=function(n){this.getStackTop().client=n},n.prototype.pushScope=function(){var n=this.getStack(),t=n.length>0?n[n.length-1].scope:void 0,r=M.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return void 0!==this.getStack().pop()},n.prototype.withScope=function(n){var t=this.pushScope();try{n(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this.q},n.prototype.getStackTop=function(){return this.q[this.q.length-1]},n.prototype.captureException=function(n,t){var r=this.B=g();return this.H("captureException",n,u({},t,{event_id:r})),r},n.prototype.captureMessage=function(n,t,r){var i=this.B=g();return this.H("captureMessage",n,t,u({},r,{event_id:i})),i},n.prototype.captureEvent=function(n,t){var r=this.B=g();return this.H("captureEvent",n,u({},t,{event_id:r})),r},n.prototype.lastEventId=function(){return this.B},n.prototype.addBreadcrumb=function(n,t){var r=this.getStackTop();if(r.scope&&r.client){var i=r.client.getOptions(),e=i.beforeBreadcrumb,o=i.maxBreadcrumbs,c=void 0===o?30:o;if(!(c<=0)){var s=(new Date).getTime()/1e3,f=u({timestamp:s},n),a=e?S(function(){return e(f,t)}):f;null!==a&&r.scope.addBreadcrumb(a,Math.min(c,100))}}},n.prototype.configureScope=function(n){var t=this.getStackTop();t.scope&&t.client&&n(t.scope)},n.prototype.run=function(n){var t=W(this);try{n(this)}finally{W(t)}},n.prototype.getIntegration=function(n){var t=this.getClient();if(!t)return null;try{return t.getIntegration(n)}catch(t){return $.warn("Cannot retrieve integration "+n.id+" from the current Hub"),null}},n}();function B(){var n=w();return n.U=n.U||{hub:void 0},n}function W(n){var t=B(),r=X(t);return z(t,n),r}function J(){var n,t,r=B();G(r)&&!X(r).isOlderThan(q)||z(r,new H);try{var i=(n=module,t="domain",n.require(t)).active;if(!i)return X(r);if(!G(i)||X(i).isOlderThan(q)){var e=X(r).getStackTop();z(i,new H(e.client,M.clone(e.scope)))}return X(i)}catch(n){return X(r)}}function G(n){return!!(n&&n.U&&n.U.hub)}function X(n){return n&&n.U&&n.U.hub?n.U.hub:(n.U={},n.U.hub=new H,n.U.hub)}function z(n,t){return!!n&&(n.U=n.U||{},n.U.hub=t,!0)}function V(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=J();if(i&&i[n])return i[n].apply(i,a(t));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function captureException(n){var t;try{throw new Error("Sentry syntheticException")}catch(n){t=n}return V("captureException",n,{originalException:n,syntheticException:t})}function K(n){V("withScope",n)}var Z=function(n){function t(t){var r=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i}return r(t,n),t}(Error),Q=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,Y=function(){function n(n){"string"==typeof n?this.W(n):this.J(n),this.G()}return n.prototype.toString=function(n){void 0===n&&(n=!1);var t=this,r=t.host,i=t.path,e=t.pass,o=t.port,u=t.projectId;return t.protocol+"://"+t.user+(n&&e?":"+e:"")+"@"+r+(o?":"+o:"")+"/"+(i?i+"/":i)+u},n.prototype.W=function(n){var t=Q.exec(n);if(!t)throw new Z("Invalid Dsn");var r=f(t.slice(1),6),i=r[0],e=r[1],o=r[2],u=void 0===o?"":o,c=r[3],s=r[4],a=void 0===s?"":s,h="",v=r[5],l=v.split("/");l.length>1&&(h=l.slice(0,-1).join("/"),v=l.pop()),Object.assign(this,{host:c,pass:u,path:h,projectId:v,port:a,protocol:i,user:e})},n.prototype.J=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},n.prototype.G=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!n[t])throw new Z("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new Z("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new Z("Invalid Dsn")},n}(),nn=function(){function n(n){this.dsn=n,this.X=new Y(n)}return n.prototype.getDsn=function(){return this.X},n.prototype.getStoreEndpoint=function(){return""+this.V()+this.getStoreEndpointPath()},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var n,t={sentry_key:this.X.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(n=t,Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&"))},n.prototype.V=function(){var n=this.X,t=n.protocol?n.protocol+":":"",r=n.port?":"+n.port:"";return t+"//"+n.host+r},n.prototype.getStoreEndpointPath=function(){var n=this.X;return(n.path?"/"+n.path:"")+"/api/"+n.projectId+"/store/"},n.prototype.getRequestHeaders=function(n,t){var r=this.X,i=["Sentry sentry_version=7"];return i.push("sentry_timestamp="+(new Date).getTime()),i.push("sentry_client="+n+"/"+t),i.push("sentry_key="+r.user),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},n.prototype.getReportDialogEndpoint=function(n){void 0===n&&(n={});var t=this.X,r=this.V()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",i=[];for(var e in i.push("dsn="+t.toString()),n)if("user"===e){if(!n.user)continue;n.user.name&&i.push("name="+encodeURIComponent(n.user.name)),n.user.email&&i.push("email="+encodeURIComponent(n.user.email))}else i.push(encodeURIComponent(e)+"="+encodeURIComponent(n[e]));return i.length?r+"?"+i.join("&"):r},n}();function tn(n,t){return void 0===t&&(t=0),0===t?n:n.length<=t?n:n.substr(0,t)+"..."}function rn(n,t){if(!Array.isArray(n))return"";for(var r=[],i=0;i<n.length;i++){var e=n[i];try{r.push(String(e))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}function en(n,t){if(void 0===t&&(t=40),!n.length)return"[object has no keys]";if(n[0].length>=t)return tn(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:tn(i,t)}return""}var on=[];function un(n){var t={};return function(n){var t=n.defaultIntegrations&&a(n.defaultIntegrations)||[],r=n.integrations,i=[];if(Array.isArray(r)){var e=r.map(function(n){return n.name}),o=[];t.forEach(function(n){-1===e.indexOf(cn(n))&&-1===o.indexOf(cn(n))&&(i.push(n),o.push(cn(n)))}),r.forEach(function(n){-1===o.indexOf(cn(n))&&(i.push(n),o.push(cn(n)))})}else{if("function"!=typeof r)return a(t);i=r(t),i=Array.isArray(i)?i:[i]}return i}(n).forEach(function(n){t[cn(n)]=n,function(n){-1===on.indexOf(cn(n))&&(n.setupOnce(P,J),on.push(cn(n)),$.log("Integration installed: "+cn(n)))}(n)}),t}function cn(n){return n.constructor.id||n.name}var sn,fn=function(){function n(n,t){this.K=!1,this.Z=new n(t),this.Y=t,t.dsn&&(this.nn=new Y(t.dsn)),this.tn=un(this.Y)}return n.prototype.captureException=function(n,t,r){var i=this,e=t&&t.event_id;return this.K=!0,this.rn().eventFromException(n,t).then(function(n){return i.in(n,t,r)}).then(function(n){e=n&&n.event_id,i.K=!1}).catch(function(n){$.log(n),i.K=!1}),e},n.prototype.captureMessage=function(n,t,r,i){var e=this,o=r&&r.event_id;return this.K=!0,(p(n)?this.rn().eventFromMessage(""+n,t,r):this.rn().eventFromException(n,r)).then(function(n){return e.in(n,r,i)}).then(function(n){o=n&&n.event_id,e.K=!1}).catch(function(n){$.log(n),e.K=!1}),o},n.prototype.captureEvent=function(n,t,r){var i=this,e=t&&t.event_id;return this.K=!0,this.in(n,t,r).then(function(n){e=n&&n.event_id,i.K=!1}).catch(function(n){$.log(n),i.K=!1}),e},n.prototype.getDsn=function(){return this.nn},n.prototype.getOptions=function(){return this.Y},n.prototype.flush=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,Promise.all([this.rn().getTransport().close(n),this.en()])];case 1:return[2,t.sent().reduce(function(n,t){return n&&t})]}})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,this.flush(n).finally(function(){t.getOptions().enabled=!1})]})})},n.prototype.getIntegrations=function(){return this.tn||{}},n.prototype.getIntegration=function(n){try{return this.tn[n.id]||null}catch(t){return $.warn("Cannot retrieve integration "+n.id+" from the current Client"),null}},n.prototype.en=function(n){return void 0===n&&(n=0),c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){t.K?n>=10?r(!1):setTimeout(function(){return c(t,void 0,void 0,function(){var t;return s(this,function(i){switch(i.label){case 0:return t=r,[4,this.en(n+1)];case 1:return t.apply(void 0,[i.sent()]),[2]}})})},10):r(!0)})]})})},n.prototype.rn=function(){return this.Z},n.prototype.on=function(){return!1!==this.getOptions().enabled&&void 0!==this.nn},n.prototype.un=function(n,t,r){var i=this.getOptions(),e=i.environment,o=i.release,c=i.dist,s=i.maxValueLength,f=void 0===s?250:s,a=u({},n);void 0===a.environment&&void 0!==e&&(a.environment=e),void 0===a.release&&void 0!==o&&(a.release=o),void 0===a.dist&&void 0!==c&&(a.dist=c),a.message&&(a.message=tn(a.message,f));var h=a.exception&&a.exception.values&&a.exception.values[0];h&&h.value&&(h.value=tn(h.value,f));var v=a.request;v&&v.url&&(v.url=tn(v.url,f)),void 0===a.event_id&&(a.event_id=g());var l=C.resolve(a);return t&&(l=t.applyToEvent(a,r)),l},n.prototype.in=function(n,t,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate;return this.on()?"number"==typeof u&&Math.random()>u?C.reject("This event has been sampled, will not send event."):new C(function(e,u){i.un(n,r,t).then(function(n){if(null!==n){var r=n;try{if(t&&t.data&&!0===t.data.t||!o)return i.rn().sendEvent(r),void e(r);var c=o(n,t);if(void 0===c)$.error("`beforeSend` method has to return `null` or a valid event.");else if(m(c))i.cn(c,e,u);else{if(null===(r=c))return $.log("`beforeSend` returned `null`, will not send event."),void e(null);i.rn().sendEvent(r),e(r)}}catch(n){i.captureException(n,{data:{t:!0},originalException:n}),u("`beforeSend` throw an error, will not send event.")}}else u("An event processor returned null, will not send event.")})}):C.reject("SDK not enabled, will not send event.")},n.prototype.cn=function(n,t,r){var i=this;n.then(function(n){null!==n?(i.rn().sendEvent(n),t(n)):r("`beforeSend` returned `null`, will not send event.")}).catch(function(n){r("beforeSend rejected with "+n)})},n}(),an=function(){function t(){}return t.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})]})})},t.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){return[2,Promise.resolve(!0)]})})},t}(),hn=function(){function n(n){this.Y=n,this.Y.dsn||$.warn("No DSN provided, backend will not do anything."),this.sn=this.fn()}return n.prototype.fn=function(){return new an},n.prototype.eventFromException=function(n,t){throw new Z("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(n,t,r){throw new Z("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(n){this.sn.sendEvent(n).catch(function(n){$.error("Error while sending event: "+n)})},n.prototype.getTransport=function(){return this.sn},n}();var vn=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){sn=Function.prototype.toString,Function.prototype.toString=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this.t?this.o:this;return sn.apply(r,n)}},n.id="FunctionToString",n}(),ln=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],dn=function(){function n(t){void 0===t&&(t={}),this.Y=t,this.name=n.id}return n.prototype.setupOnce=function(){P(function(t){var r=J();if(!r)return t;var i=r.getIntegration(n);if(i){var e=r.getClient(),o=e?e.getOptions():{},u=i.an(o);if(i.hn(t,u))return null}return t})},n.prototype.hn=function(n,t){return this.vn(n,t)?($.warn("Event dropped due to being internal Sentry Error.\nEvent: "+j(n)),!0):this.ln(n,t)?($.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+j(n)),!0):this.dn(n,t)?($.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+j(n)+".\nUrl: "+this.pn(n)),!0):!this.yn(n,t)&&($.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+j(n)+".\nUrl: "+this.pn(n)),!0)},n.prototype.vn=function(n,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return"SentryError"===n.exception.values[0].type}catch(n){return!1}},n.prototype.ln=function(n,t){var r=this;return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this.mn(n).some(function(n){return t.ignoreErrors.some(function(t){return r.bn(n,t)})})},n.prototype.dn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var i=this.pn(n);return!!i&&t.blacklistUrls.some(function(n){return r.bn(i,n)})},n.prototype.yn=function(n,t){var r=this;if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var i=this.pn(n);return!i||t.whitelistUrls.some(function(n){return r.bn(i,n)})},n.prototype.an=function(n){return void 0===n&&(n={}),{blacklistUrls:a(this.Y.blacklistUrls||[],n.blacklistUrls||[]),ignoreErrors:a(this.Y.ignoreErrors||[],n.ignoreErrors||[],ln),ignoreInternal:void 0===this.Y.ignoreInternal||this.Y.ignoreInternal,whitelistUrls:a(this.Y.whitelistUrls||[],n.whitelistUrls||[])}},n.prototype.bn=function(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r},n.prototype.mn=function(n){if(n.message)return[n.message];if(n.exception)try{var t=n.exception.values[0],r=t.type,i=t.value;return[""+i,r+": "+i]}catch(t){return $.error("Cannot extract message for event "+j(n)),[]}return[]},n.prototype.pn=function(n){try{if(n.stacktrace){var t=n.stacktrace.frames;return t[t.length-1].filename}if(n.exception){var r=n.exception.values[0].stacktrace.frames;return r[r.length-1].filename}return null}catch(t){return $.error("Cannot extract url for event "+j(n)),null}},n.id="InboundFilters",n}(),pn=Object.freeze({FunctionToString:vn,InboundFilters:dn});function yn(){if(!("fetch"in w()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function mn(){var n=w();return"navigator"in n&&"sendBeacon"in n.navigator}function bn(){if(!yn())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var wn=w(),gn={report:!1,collectWindowErrors:!1,computeStackTrace:!1,linesOfContext:!1},En="?",xn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function jn(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function Sn(){return"undefined"==typeof document||null==document.location?"":document.location.href}gn.report=function(){var n,t,r=[],i=null,e=null;function o(n,t,i){var e=null;if(!t||gn.collectWindowErrors){for(var o in r)if(jn(r,o))try{r[o](n,t,i)}catch(n){e=n}if(e)throw e}}function c(t,r,i,c,s){var a=null;if(s=v(s)?s.error:s,t=v(t)?t.message:t,e)gn.computeStackTrace.augmentStackTraceWithInitialElement(e,r,i,t),f();else if(s&&h(s))(a=gn.computeStackTrace(s)).mechanism="onerror",o(a,!0,s);else{var l,d={url:r,line:i,column:c},p=t;if("[object String]"==={}.toString.call(t)){var y=t.match(xn);y&&(l=y[1],p=y[2])}d.func=En,d.context=null,o(a={name:l,message:p,mode:"onerror",mechanism:"onerror",stack:[u({},d,{url:d.url||Sn()})]},!0,null)}return!!n&&n.apply(this,arguments)}function s(n){var t=n&&(n.detail?n.detail.reason:n.reason)||n,r=gn.computeStackTrace(t);r.mechanism="onunhandledrejection",o(r,!0,t)}function f(){var n=e,t=i;e=null,i=null,o(n,!1,t)}function a(n){if(e){if(i===n)return;f()}var t=gn.computeStackTrace(n);throw e=t,i=n,setTimeout(function(){i===n&&f()},t.incomplete?2e3:0),n}return a.subscribe=function(n){r.push(n)},a.installGlobalHandler=function(){!0!==t&&(n=wn.onerror,wn.onerror=c,t=!0)},a.installGlobalUnhandledRejectionHandler=function(){wn.onunhandledrejection=s},a}(),gn.computeStackTrace=function(){function n(n){if(!n.stack)return null;for(var t,r,i,e=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=n.stack.split("\n"),a=[],h=/^(.*) is undefined$/.exec(n.message),v=0,l=f.length;v<l;++v){if(r=e.exec(f[v])){var d=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=s.exec(r[2]))&&(r[2]=t[1]),i={url:d?null:r[2],func:r[1]||En,args:d?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=u.exec(f[v]))i={url:r[2],func:r[1]||En,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=o.exec(f[v])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=c.exec(r[3]))?r[3]=t[1]:0!==v||r[5]||void 0===n.columnNumber||(a[0].column=n.columnNumber+1),i={url:r[3],func:r[1]||En,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!i.func&&i.line&&(i.func=En),i.context=null,a.push(i)}return a.length?(a[0]&&a[0].line&&!a[0].column&&h&&(a[0].column=null),{mode:"stack",name:n.name,message:n.message,stack:a}):null}function t(n,t,r,i){var e={url:t,line:r};if(e.url&&e.line){if(n.incomplete=!1,e.func||(e.func=En),e.context||(e.context=null),/ '([^']+)' /.exec(i)&&(e.column=null),n.stack.length>0&&n.stack[0].url===e.url){if(n.stack[0].line===e.line)return!1;if(!n.stack[0].line&&n.stack[0].func===e.func)return n.stack[0].line=e.line,n.stack[0].context=e.context,!1}return n.stack.unshift(e),n.partial=!0,!0}return n.incomplete=!0,!1}function r(n,e){for(var o,u,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],f={},a=!1,h=r.caller;h&&!a;h=h.caller)if(h!==i&&h!==gn.report){if(u={url:null,func:En,args:[],line:null,column:null},h.name?u.func=h.name:(o=c.exec(h.toString()))&&(u.func=o[1]),void 0===u.func)try{u.func=o.input.substring(0,o.input.indexOf("{"))}catch(n){}f[""+h]?a=!0:f[""+h]=!0,s.push(u)}e&&s.splice(0,e);var v={mode:"callers",name:n.name,message:n.message,stack:s};return t(v,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),v}function i(t,i){var e=null;i=null==i?0:+i;try{if(e=function(n){var t=n.stacktrace;if(t){for(var r,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),u=[],c=0;c<o.length;c+=2){var s=null;(r=i.exec(o[c]))?s={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=e.exec(o[c]))&&(s={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),s&&(!s.func&&s.line&&(s.func=En),s.line&&(s.context=null),s.context||(s.context=[o[c+1]]),u.push(s))}return u.length?{mode:"stacktrace",name:n.name,message:n.message,stack:u}:null}}(t))return e}catch(n){}try{if(e=n(t))return e}catch(n){}try{if(e=function(n){var t=n.message.split("\n");if(t.length<4)return null;var r,i=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,e=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,u=[],c=wn&&wn.document&&wn.document.getElementsByTagName("script"),s=[];for(var f in c)jn(c,f)&&!c[f].src&&s.push(c[f]);for(var a=2;a<t.length;a+=2){var h=null;(r=i.exec(t[a]))?h={url:r[2],func:r[3],args:[],line:+r[1],column:null}:(r=e.exec(t[a]))?h={url:r[3],func:r[4],args:[],line:+r[1],column:null}:(r=o.exec(t[a]))&&(h={url:Sn().replace(/#.*$/,""),func:"",args:[],line:r[1],column:null}),h&&(h.func||(h.func=En),h.context=[t[a+1]],u.push(h))}return u.length?{mode:"multiline",name:n.name,message:t[0],stack:u}:null}(t))return e}catch(n){}try{if(e=r(t,i+1))return e}catch(n){}return{original:t,name:t.name,message:t.message,mode:"failed"}}return i.augmentStackTraceWithInitialElement=t,i.computeStackTraceFromStackProp=n,i}(),gn.collectWindowErrors=!0,gn.linesOfContext=11;var _n=gn.report.subscribe,On=gn.report.installGlobalHandler,kn=gn.report.installGlobalUnhandledRejectionHandler,Tn=gn.computeStackTrace,Rn=50;function Dn(n){var t=Nn(n.stack),r={type:n.name,value:n.message};return t&&t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function In(n){return{exception:{values:[Dn(n)]}}}function Nn(n){if(!n||!n.length)return[];var t=n,r=t[0].func||"",i=t[t.length-1].func||"";return(r.includes("captureMessage")||r.includes("captureException"))&&(t=t.slice(1)),i.includes("sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(n){return{colno:n.column,filename:n.url||t[0].url,function:n.func||"?",in_app:!0,lineno:n.line}}).slice(0,Rn).reverse()}var An,Cn,Mn=function(){function n(n){this.wn=n,this.gn=[]}return n.prototype.isReady=function(){return void 0===this.wn||this.length()<this.wn},n.prototype.add=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return this.isReady()?(-1===this.gn.indexOf(n)&&this.gn.push(n),n.then(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n)]})})}).catch(function(){return c(t,void 0,void 0,function(){return s(this,function(t){return[2,this.remove(n).catch(function(){})]})})}),[2,n]):[2,Promise.reject(new Z("Not adding Promise due to buffer limit reached."))]})})},n.prototype.remove=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.gn.splice(this.gn.indexOf(n),1)[0]]})})},n.prototype.length=function(){return this.gn.length},n.prototype.drain=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){var i=setTimeout(function(){n&&n>0&&r(!1)},n);Promise.all(t.gn).then(function(){clearTimeout(i),r(!0)}).catch(function(){r(!0)})})]})})},n}(),Fn=function(){function n(n){this.options=n,this.gn=new Mn(30),this.url=new nn(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){throw new Z("Transport Class has to implement `sendEvent` method")})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.gn.drain(n)]})})},n}(),Pn=w(),Un=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r;return s(this,function(i){return r={body:JSON.stringify(t),method:"POST",referrerPolicy:bn()?"origin":""},[2,this.gn.add(Pn.fetch(this.url,r).then(function(t){return{status:n.Status.fromHttpCode(t.status)}}))]})})},i}(Fn),Ln=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r=this;return s(this,function(i){return[2,this.gn.add(new Promise(function(i,e){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&i({status:n.Status.fromHttpCode(o.status)}),e(o))},o.open("POST",r.url),o.send(JSON.stringify(t))}))]})})},i}(Fn),$n=w(),qn=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r;return s(this,function(i){return r=$n.navigator.sendBeacon(this.url,JSON.stringify(t)),[2,this.gn.add(Promise.resolve({status:r?n.Status.Success:n.Status.Failed}))]})})},i}(Fn),Hn=Object.freeze({BaseTransport:Fn,FetchTransport:Un,XHRTransport:Ln,BeaconTransport:qn}),Bn=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.fn=function(){if(!this.Y.dsn)return t.prototype.fn.call(this);var n=this.Y.transportOptions?this.Y.transportOptions:{dsn:this.Y.dsn};return this.Y.transport?new this.Y.transport(n):mn()?new qn(n):yn()?new Un(n):new Ln(n)},i.prototype.eventFromException=function(t,r){var i,e,o=this;if(v(t)&&t.error)return t=t.error,i=In(Tn(t)),C.resolve(this.En(i,r));if(l(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var u=t,c=u.name||(l(u)?"DOMError":"DOMException"),s=u.message?c+": "+u.message:c;return this.eventFromMessage(s,n.Severity.Error,r).then(function(n){return _(n,s),C.resolve(o.En(n,r))})}if(h(t))return i=In(Tn(t)),C.resolve(this.En(i,r));if(y(t)&&r&&r.syntheticException)return _(i=function(n,t){var r=Object.keys(n).sort(),i={extra:{xn:D(n)},message:"Non-Error exception captured with keys: "+en(r)};if(t){var e=Nn(Tn(t).stack);i.stacktrace={frames:e}}return i}(t,r.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),i.level=n.Severity.Error,C.resolve(this.En(i,r));var f=t;return this.eventFromMessage(f,void 0,r).then(function(t){return _(t,""+f,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=n.Severity.Error,C.resolve(o.En(t,r))})},i.prototype.En=function(n,t){return u({},n,{event_id:t&&t.event_id})},i.prototype.eventFromMessage=function(t,r,i){void 0===r&&(r=n.Severity.Info);var e={event_id:i&&i.event_id,level:r,message:t};if(this.Y.attachStacktrace&&i&&i.syntheticException){var o=Nn(Tn(i.syntheticException).stack);e.stacktrace={frames:o}}return C.resolve(e)},i}(hn),Wn="sentry.javascript.browser",Jn=function(n){function t(t){return void 0===t&&(t={}),n.call(this,Bn,t)||this}return r(t,n),t.prototype.un=function(t,r,i){return t.platform=t.platform||"javascript",t.sdk=u({},t.sdk,{name:Wn,packages:a(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.0.0-rc.1"}]),version:"5.0.0-rc.1"}),n.prototype.un.call(this,t,r,i)},t.prototype.showReportDialog=function(n){void 0===n&&(n={});var t=w().document;if(t)if(this.on()){var r=n.dsn||this.getDsn();if(n.eventId)if(r){var i=t.createElement("script");i.async=!0,i.src=new nn(r).getReportDialogEndpoint(n),(t.head||t.body).appendChild(i)}else $.error("Missing `Dsn` option in showReportDialog call");else $.error("Missing `eventId` option in showReportDialog call")}else $.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(fn),Gn=1e3,Xn=0;function zn(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{if(n.t)return n;if(n.i)return n.i}catch(t){return n}var sentryWrapped=function(){r&&"function"==typeof r&&r.apply(this,arguments);var i=Array.prototype.slice.call(arguments);try{var e=i.map(function(n){return zn(n,t)});return n.handleEvent?n.handleEvent.apply(this,e):n.apply(this,e)}catch(n){throw Xn+=1,setTimeout(function(){Xn-=1}),K(function(r){r.addEventProcessor(function(n){var r=u({},n);return t.mechanism&&_(r,void 0,void 0,t.mechanism),r.extra=u({},r.extra,{arguments:A(i,3)}),r}),captureException(n)}),n}};try{for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(sentryWrapped[i]=n[i])}catch(n){}n.prototype=n.prototype||{},sentryWrapped.prototype=n.prototype,Object.defineProperty(n,"i",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{t:{enumerable:!1,value:!0},o:{enumerable:!1,value:n}});try{Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}function Vn(n){return function(t){if(An=void 0,Cn!==t){var r;Cn=t;try{r=function(n){for(var t,r=n,i=[],e=0,o=0,u=" > ".length;r&&e++<5&&!("html"===(t=E(r))||e>1&&o+i.length*u+t.length>=80);)i.push(t),o+=t.length,r=r.parentNode;return i.reverse().join(" > ")}(t.target)}catch(n){r="<unknown>"}J().addBreadcrumb({category:"ui."+n,message:r},{event:t,name:n})}}}function Kn(){return function(n){var t;try{t=n.target}catch(n){return}var r=t&&t.tagName;r&&("INPUT"===r||"TEXTAREA"===r||t.isContentEditable)&&(An||Vn("input")(n),clearTimeout(An),An=setTimeout(function(){An=void 0},Gn))}}var Zn=function(){function n(t){this.name=n.id,this.Y=u({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,_n(function(t,r,i){if(!(Xn>0)){var e=J().getIntegration(n);e&&J().captureEvent(e.jn(t),{data:{stack:t},originalException:i})}}),this.Y.onerror&&($.log("Global Handler attached: onerror"),On()),this.Y.onunhandledrejection&&($.log("Global Handler attached: onunhandledrejection"),kn())},n.prototype.jn=function(n){var t=In(n),r={mode:n.mode};n.message&&(r.message=n.message),n.name&&(r.name=n.name);var i=J().getClient(),e=i&&i.getOptions().maxValueLength||250;return _(t,n.original?tn(JSON.stringify(A(n.original)),e):"","onunhandledrejection"===n.mechanism?"UnhandledRejection":"Error",{data:r,handled:!1,type:n.mechanism}),t},n.id="GlobalHandlers",n}(),Qn=function(){function n(){this.Sn=0,this.name=n.id}return n.prototype._n=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t[0];return t[0]=zn(i,{mechanism:{data:{function:Yn(n)},handled:!0,type:"instrument"}}),n.apply(this,t)}},n.prototype.On=function(n){return function(t){return n(zn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Yn(n)},handled:!0,type:"instrument"}}))}},n.prototype.kn=function(n){var t=w(),r=t[n]&&t[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(T(r,"addEventListener",function(t){return function(r,i,e){try{i.handleEvent=zn(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:Yn(i),target:n},handled:!0,type:"instrument"}})}catch(n){}var o,u,c;return"EventTarget"!==n&&"Node"!==n||(u=Vn("click"),c=Kn(),o=function(n){if(n){var t;try{t=n.type}catch(n){return}return"click"===t?u(n):"keypress"===t?c(n):void 0}}),t.call(this,r,zn(i,{mechanism:{data:{function:"addEventListener",handler:Yn(i),target:n},handled:!0,type:"instrument"}},o),e)}}),T(r,"removeEventListener",function(n){return function(t,r,i){var e=r;try{e=e&&(e.i||e)}catch(n){}return n.call(this,t,e,i)}}))},n.prototype.setupOnce=function(){this.Sn=this.Sn;var n=w();T(n,"setTimeout",this._n.bind(this)),T(n,"setInterval",this._n.bind(this)),T(n,"requestAnimationFrame",this.On.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.kn.bind(this))},n.id="TryCatch",n}();function Yn(n){try{return n&&n.name||"<anonymous>"}catch(n){return"<anonymous>"}}var nt,tt=w(),rt=function(){function t(n){this.name=t.id,this.Y=u({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.Tn=function(){mn()&&T(tt.navigator,"sendBeacon",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o=i[0],u=i[1],c=r.apply(this,i),s=J().getClient(),f=s&&s.getDsn();if(f){var a=new nn(f).getStoreEndpoint();if(a&&o.includes(a))return it(u),c}var h={category:"beacon",data:u,type:"http"};return c||(h.level=n.Severity.Error),t.addBreadcrumb(h,{input:i,result:c}),c}})},t.prototype.Rn=function(){"console"in tt&&["debug","info","warn","error","log"].forEach(function(r){r in tt.console&&T(tt.console,r,function(i){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var u={category:"console",data:{extra:{arguments:A(e,3)},logger:"console"},level:n.Severity.fromString(r),message:rn(e," ")};"assert"===r&&!1===e[0]&&(u.message="Assertion failed: "+(rn(e.slice(1)," ")||"console.assert"),u.data.extra.arguments=A(e.slice(1),3)),t.addBreadcrumb(u,{input:e,level:r}),i&&Function.prototype.apply.call(i,tt.console,e)}})})},t.prototype.Dn=function(){"document"in tt&&(tt.document.addEventListener("click",Vn("click"),!1),tt.document.addEventListener("keypress",Kn(),!1))},t.prototype.In=function(){yn()&&-1!==w().fetch.toString().indexOf("native")&&T(tt,"fetch",function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o,u=i[0],c="GET";"string"==typeof u?o=u:"Request"in tt&&u instanceof Request?(o=u.url,u.method&&(c=u.method)):o=String(u),i[1]&&i[1].method&&(c=i[1].method);var s=J().getClient(),f=s&&s.getDsn();if(f){var a=new nn(f).getStoreEndpoint();if(a&&o.includes(a))return"POST"===c&&i[1]&&i[1].body&&it(i[1].body),r.apply(tt,i)}var h={method:c,url:o};return r.apply(tt,i).then(function(n){return h.status_code=n.status,t.addBreadcrumb({category:"fetch",data:h,type:"http"},{input:i,response:n}),n}).catch(function(r){throw t.addBreadcrumb({category:"fetch",data:h,level:n.Severity.Error,type:"http"},{error:r,input:i}),r})}})},t.prototype.Nn=function(){var n=this;if(r=w(),i=r.chrome,e=i&&i.app&&i.app.runtime,o="history"in r&&!!r.history.pushState&&!!r.history.replaceState,!e&&o){var r,i,e,o,u=function(n,r){var i=x(tt.location.href),e=x(r),o=x(n);o.path||(o=i),nt=r,i.protocol===e.protocol&&i.host===e.host&&(r=e.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),t.addBreadcrumb({category:"navigation",data:{from:n,to:r}})},c=tt.onpopstate;tt.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=tt.location.href;if(u(nt,i),c)return c.apply(n,t)},T(tt.history,"pushState",s),T(tt.history,"replaceState",s)}function s(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t.length>2?t[2]:void 0;return i&&u(nt,String(i)),n.apply(this,t)}}},t.prototype.An=function(){if("XMLHttpRequest"in tt){var n=XMLHttpRequest.prototype;T(n,"open",function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t[1];this.Cn={method:t[0],url:t[1]};var e=J().getClient(),o=e&&e.getDsn();if(o){var u=new nn(o).getStoreEndpoint();d(i)&&u&&i.includes(u)&&(this.Mn=!0)}return n.apply(this,t)}}),T(n,"send",function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var e=this;function o(){if(4===e.readyState){if(e.Mn)return;try{e.Cn&&(e.Cn.status_code=e.status)}catch(n){}t.addBreadcrumb({category:"xhr",data:e.Cn,type:"http"},{xhr:e})}}return e.Mn&&it(r[0]),["onload","onerror","onprogress"].forEach(function(n){!function(n,t){n in t&&"function"==typeof t[n]&&T(t,n,function(t){return zn(t,{mechanism:{data:{function:n,handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}})})}(n,e)}),"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?T(e,"onreadystatechange",function(n){return zn(n,{mechanism:{data:{function:"onreadystatechange",handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}},o)}):e.onreadystatechange=o,n.apply(this,r)}})}},t.addBreadcrumb=function(n,r){J().getIntegration(t)&&J().addBreadcrumb(n,r)},t.prototype.setupOnce=function(){this.Y.console&&this.Rn(),this.Y.dom&&this.Dn(),this.Y.xhr&&this.An(),this.Y.fetch&&this.In(),this.Y.beacon&&this.Tn(),this.Y.history&&this.Nn()},t.id="Breadcrumbs",t}();function it(t){try{var r=JSON.parse(t);rt.addBreadcrumb({category:"sentry",event_id:r.event_id,level:r.level||n.Severity.fromString("error"),message:j(r)},{event:r})}catch(n){$.error("Error while adding sentry type breadcrumb")}}var et="cause",ot=5,ut=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.Fn=t.key||et,this.wn=t.limit||ot}return n.prototype.setupOnce=function(){P(function(t,r){var i=J().getIntegration(n);return i?i.handler(t,r):t})},n.prototype.handler=function(n,t){if(!(n.exception&&n.exception.values&&t&&t.originalException instanceof Error))return n;var r=this.walkErrorTree(t.originalException,this.Fn);return n.exception.values=a(r,n.exception.values),n},n.prototype.walkErrorTree=function(n,t,r){if(void 0===r&&(r=[]),!(n[t]instanceof Error)||r.length+1>=this.wn)return r;var i=Dn(Tn(n[t]));return this.walkErrorTree(n[t],t,a([i],r))},n.id="LinkedErrors",n}(),ct=w(),st=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){P(function(t){if(J().getIntegration(n)){if(!ct.navigator||!ct.location)return t;var r=t.request||{};return r.url=r.url||ct.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=ct.navigator.userAgent,u({},t,{request:r})}return t})},n.id="UserAgent",n}(),ft=Object.freeze({GlobalHandlers:Zn,TryCatch:Qn,Breadcrumbs:rt,LinkedErrors:ut,UserAgent:st}),at=[new dn,new vn,new Qn,new rt,new Zn,new ut,new st];var ht=u({},pn,ft);return n.Integrations=ht,n.Transports=Hn,n.addGlobalEventProcessor=P,n.addBreadcrumb=function(n){V("addBreadcrumb",n)},n.captureException=captureException,n.captureEvent=function(n){return V("captureEvent",n)},n.captureMessage=function(n,t){var r;try{throw new Error(n)}catch(n){r=n}return V("captureMessage",n,t,{originalException:n,syntheticException:r})},n.configureScope=function(n){V("configureScope",n)},n.withScope=K,n.getHubFromCarrier=X,n.getCurrentHub=J,n.Hub=H,n.Scope=M,n.BrowserClient=Jn,n.defaultIntegrations=at,n.forceLoad=function(){},n.init=function(n){void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=at),function(n,t){!0===t.debug&&$.enable(),J().bindClient(new n(t))}(Jn,n)},n.lastEventId=function(){return J().lastEventId()},n.onLoad=function(n){n()},n.showReportDialog=function(n){void 0===n&&(n={}),n.eventId||(n.eventId=J().lastEventId());var t=J().getClient();t&&t.showReportDialog(n)},n.flush=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=J().getClient())?[2,t.flush(n)]:[2,Promise.reject(!1)]})})},n.close=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=J().getClient())?[2,t.close(n)]:[2,Promise.reject(!1)]})})},n.SDK_NAME=Wn,n.SDK_VERSION="5.0.0-rc.1",n}({});
//# sourceMappingURL=bundle.min.js.map
export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "5.0.0-rc.0";
export declare const SDK_VERSION = "5.0.0-rc.1";
export const SDK_NAME = 'sentry.javascript.browser';
export const SDK_VERSION = '5.0.0-rc.0';
export const SDK_VERSION = '5.0.0-rc.1';
//# sourceMappingURL=version.js.map
{
"name": "@sentry/browser",
"version": "5.0.0-rc.0",
"version": "5.0.0-rc.1",
"description": "Offical Sentry SDK for browsers",

@@ -20,5 +20,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "5.0.0-rc.0",
"@sentry/types": "5.0.0-rc.0",
"@sentry/utils": "5.0.0-rc.0",
"@sentry/core": "5.0.0-rc.1",
"@sentry/types": "5.0.0-rc.1",
"@sentry/utils": "5.0.0-rc.1",
"tslib": "^1.9.3"

@@ -25,0 +25,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc