/* eslint-disable */ /*! @sentry/browser 6.0.2 (6d7700c) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var e,i,o,u,s,c=function(){return(c=Object.assign||function(t){for(var n,r=1,e=arguments.length;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function f(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,i,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function h(){for(var t=[],n=0;n ".length,u=void 0;n&&e++<5&&!("html"===(u=j(n))||e>1&&i+r.length*o+u.length>=80);)r.push(u),i+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function j(t){var n,r,e,i,o,u=t,s=[];if(!u||!u.tagName)return"";if(s.push(u.tagName.toLowerCase()),u.id&&s.push("#"+u.id),(n=u.className)&&p(n))for(r=n.split(/\s+/),o=0;o=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={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(s||(s={}));var _=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r]);return t});var k=function(t){function n(n){var r=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=r.prototype.constructor.name,_(e,r.prototype),e}return r(n,t),n}(Error),S=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,O=function(){function t(t){"string"==typeof t?this.t(t):this.i(t),this.o()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,r=n.host,e=n.path,i=n.pass,o=n.port,u=n.projectId;return n.protocol+"://"+n.user+(t&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(e?e+"/":e)+u},t.prototype.t=function(t){var n=S.exec(t);if(!n)throw new k("Invalid Dsn");var r=f(n.slice(1),6),e=r[0],i=r[1],o=r[2],u=void 0===o?"":o,s=r[3],c=r[4],a=void 0===c?"":c,h="",v=r[5],l=v.split("/");if(l.length>1&&(h=l.slice(0,-1).join("/"),v=l.pop()),v){var d=v.match(/^\d+/);d&&(v=d[0])}this.i({host:s,pass:u,path:h,projectId:v,port:a,protocol:e,user:i})},t.prototype.i=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype.o=function(){var t=this;if(["protocol","user","host","projectId"].forEach(function(n){if(!t[n])throw new k("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new k("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new k("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new k("Invalid Dsn: Invalid port "+this.port)},t}(),T=function(){function t(){this.u="function"==typeof WeakSet,this.s=this.u?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.u)return!!this.s.has(t)||(this.s.add(t),!1);for(var n=0;n";function R(t){try{return t&&"function"==typeof t&&t.name||D}catch(t){return D}}function I(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function N(t,n){if(!Array.isArray(t))return"";for(var r=[],e=0;e"}try{o.currentTarget=w(i.currentTarget)?x(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){o.currentTarget=""}for(var e in"undefined"!=typeof CustomEvent&&E(t,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,e)&&(o[e]=i);return o}return t}function q(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function L(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var e=P(t,n);return q(e)>r?L(t,n-1,r):e}function U(t,n){return"domain"===n&&t&&"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]":m(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+R(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function H(t,n,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new T),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=U(t);return y(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var i=U(n,t);if(y(i))return i;var o=C(n),u=Array.isArray(n)?[]:{};if(e.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=H(s,o[s],r-1,e));return e.unmemoize(n),u}function P(t,n){try{return JSON.parse(JSON.stringify(t,function(t,r){return H(t,r,n)}))}catch(t){return"**non-serializable**"}}function F(t,n){void 0===n&&(n=40);var r=Object.keys(C(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return I(r[0],n);for(var e=r.length;e>0;e--){var i=r.slice(0,e).join(", ");if(!(i.length>n))return e===r.length?i:I(i,n)}return""}function X(t){var n,r;if(m(t)){var e=t,i={};try{for(var o=a(Object.keys(e)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==e[s]&&(i[s]=X(e[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}return Array.isArray(t)?t.map(X):t}function B(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var J={};function W(){return B()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:J}function $(){var t=W(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var e=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return e(r[0])+e(r[1])+e(r[2])+e(r[3])+e(r[4])+e(r[5])+e(r[6])+e(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function G(t){if(!t)return{};var n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var r=n[6]||"",e=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+r+e}}function z(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||""}return t.event_id||""}function V(t){var n=W();if(!("console"in n))return t();var r=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&r[t].__sentry_original__&&(e[t]=r[t],r[t]=r[t].__sentry_original__)});var i=t();return Object.keys(e).forEach(function(t){r[t]=e[t]}),i}function K(t,n,r){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||r||"Error"}function Q(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(r){t.exception.values[0].mechanism[r]=n[r]})}catch(t){}}var Y=6e4;var Z=W(),tt="Sentry Logger ",nt=function(){function t(){this.v=!1}return t.prototype.disable=function(){this.v=!1},t.prototype.enable=function(){this.v=!0},t.prototype.log=function(){for(var t=[],n=0;n2?n[2]:void 0;if(e){var i=ut,o=String(e);ut=o,vt("history",{from:i,to:o})}return t.apply(this,n)}}st.onpopstate=function(){for(var t=[],n=0;n0&&r(!1)},t);_t.all(n.T).then(function(){clearTimeout(e),r(!0)}).then(null,function(){r(!0)})})},t}(),St={nowSeconds:function(){return Date.now()/1e3}};var Ot=B()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=W().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Tt=void 0===Ot?St:{nowSeconds:function(){return(Ot.timeOrigin+Ot.now())/1e3}},Dt=St.nowSeconds.bind(St),Rt=(Tt.nowSeconds.bind(Tt),function(){var t=W().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(){this.D=!1,this.R=[],this.I=[],this.N=[],this.M={},this.A={},this.C={},this.q={}}return t.clone=function(n){var r=new t;return n&&(r.N=h(n.N),r.A=c({},n.A),r.C=c({},n.C),r.q=c({},n.q),r.M=n.M,r.L=n.L,r.U=n.U,r.H=n.H,r.P=n.P,r.F=n.F,r.I=h(n.I)),r},t.prototype.addScopeListener=function(t){this.R.push(t)},t.prototype.addEventProcessor=function(t){return this.I.push(t),this},t.prototype.setUser=function(t){return this.M=t||{},this.H&&this.H.update({user:t}),this.X(),this},t.prototype.getUser=function(){return this.M},t.prototype.setTags=function(t){return this.A=c(c({},this.A),t),this.X(),this},t.prototype.setTag=function(t,n){var r;return this.A=c(c({},this.A),((r={})[t]=n,r)),this.X(),this},t.prototype.setExtras=function(t){return this.C=c(c({},this.C),t),this.X(),this},t.prototype.setExtra=function(t,n){var r;return this.C=c(c({},this.C),((r={})[t]=n,r)),this.X(),this},t.prototype.setFingerprint=function(t){return this.F=t,this.X(),this},t.prototype.setLevel=function(t){return this.L=t,this.X(),this},t.prototype.setTransactionName=function(t){return this.P=t,this.X(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this.q[t]:this.q=c(c({},this.q),((r={})[t]=n,r)),this.X(),this},t.prototype.setSpan=function(t){return this.U=t,this.X(),this},t.prototype.getSpan=function(){return this.U},t.prototype.getTransaction=function(){var t,n,r,e,i=this.getSpan();return(null===(t=i)||void 0===t?void 0:t.transaction)?null===(n=i)||void 0===n?void 0:n.transaction:(null===(e=null===(r=i)||void 0===r?void 0:r.spanRecorder)||void 0===e?void 0:e.spans[0])?i.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this.H=t:delete this.H,this.X(),this},t.prototype.getSession=function(){return this.H},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.A=c(c({},this.A),n.A),this.C=c(c({},this.C),n.C),this.q=c(c({},this.q),n.q),n.M&&Object.keys(n.M).length&&(this.M=n.M),n.L&&(this.L=n.L),n.F&&(this.F=n.F)):m(n)&&(n=n,this.A=c(c({},this.A),n.tags),this.C=c(c({},this.C),n.extra),this.q=c(c({},this.q),n.contexts),n.user&&(this.M=n.user),n.level&&(this.L=n.level),n.fingerprint&&(this.F=n.fingerprint)),this},t.prototype.clear=function(){return this.N=[],this.A={},this.C={},this.M={},this.q={},this.L=void 0,this.P=void 0,this.F=void 0,this.U=void 0,this.H=void 0,this.X(),this},t.prototype.addBreadcrumb=function(t,n){var r=c({timestamp:Dt()},t);return this.N=void 0!==n&&n>=0?h(this.N,[r]).slice(-n):h(this.N,[r]),this.X(),this},t.prototype.clearBreadcrumbs=function(){return this.N=[],this.X(),this},t.prototype.applyToEvent=function(t,n){var r;if(this.C&&Object.keys(this.C).length&&(t.extra=c(c({},this.C),t.extra)),this.A&&Object.keys(this.A).length&&(t.tags=c(c({},this.A),t.tags)),this.M&&Object.keys(this.M).length&&(t.user=c(c({},this.M),t.user)),this.q&&Object.keys(this.q).length&&(t.contexts=c(c({},this.q),t.contexts)),this.L&&(t.level=this.L),this.P&&(t.transaction=this.P),this.U){t.contexts=c({trace:this.U.getTraceContext()},t.contexts);var e=null===(r=this.U.transaction)||void 0===r?void 0:r.name;e&&(t.tags=c({transaction:e},t.tags))}return this.B(t),t.breadcrumbs=h(t.breadcrumbs||[],this.N),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.J(h(It(),this.I),t,n)},t.prototype.J=function(t,n,r,e){var i=this;return void 0===e&&(e=0),new _t(function(o,u){var s=t[e];if(null===n||"function"!=typeof s)o(n);else{var a=s(c({},n),r);g(a)?a.then(function(n){return i.J(t,n,r,e+1).then(o)}).then(null,u):i.J(t,a,r,e+1).then(o).then(null,u)}})},t.prototype.X=function(){var t=this;this.D||(this.D=!0,this.R.forEach(function(n){n(t)}),this.D=!1)},t.prototype.B=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.F&&(t.fingerprint=t.fingerprint.concat(this.F)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}());function It(){var t=W();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Nt(t){It().push(t)}var Mt=function(){function t(t){this.errors=0,this.sid=$(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=i.Ok,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:$()),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===i.Ok?this.update({status:i.Exited}):this.update()},t.prototype.toJSON=function(){return X({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:X({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),At=3,Ct=function(){function t(t,n,r){void 0===n&&(n=new Rt),void 0===r&&(r=At),this.W=r,this.$=[{}],this.getStackTop().scope=n,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.W=t&&(clearInterval(i),r(!1)))},1)})},t.prototype.ct=function(){return this.it},t.prototype.vt=function(){return!1!==this.getOptions().enabled&&void 0!==this.ut},t.prototype.dt=function(t,n,r){var e=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,u=c(c({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:$()),timestamp:t.timestamp||Dt()});this.pt(u),this.yt(u);var s=n;r&&r.captureContext&&(s=Rt.clone(s).update(r.captureContext));var a=_t.resolve(u);return s&&(a=s.applyToEvent(u,r)),a.then(function(t){return"number"==typeof o&&o>0?e.bt(t,o):t})},t.prototype.bt=function(t,n){if(!t)return null;var r=c(c(c(c(c({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return c(c({},t),t.data&&{data:P(t.data,n)})})}),t.user&&{user:P(t.user,n)}),t.contexts&&{contexts:P(t.contexts,n)}),t.extra&&{extra:P(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype.pt=function(t){var n=this.getOptions(),r=n.environment,e=n.release,i=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==e&&(t.release=e),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=I(t.message,u));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=I(s.value,u));var c=t.request;c&&c.url&&(c.url=I(c.url,u))},t.prototype.yt=function(t){var n=t.sdk,r=Object.keys(this.rt);n&&r.length>0&&(n.integrations=r)},t.prototype.wt=function(t){this.ct().sendEvent(t)},t.prototype.at=function(t,n,r){return this.gt(t,n,r).then(function(t){return t.event_id},function(t){rt.error(t)})},t.prototype.gt=function(t,n,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate;if(!this.vt())return _t.reject(new k("SDK not enabled, will not send event."));var s="transaction"===t.type;return!s&&"number"==typeof u&&Math.random()>u?_t.reject(new k("Discarding event because it's not included in the random sample (sampling rate = "+u+")")):this.dt(t,r,n).then(function(t){if(null===t)throw new k("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||s||!o)return t;var r=o(t,n);if(void 0===r)throw new k("`beforeSend` method has to return `null` or a valid event.");return g(r)?r.then(function(t){return t},function(t){throw new k("beforeSend rejected with "+t)}):r}).then(function(t){if(null===t)throw new k("`beforeSend` returned `null`, will not send event.");var n=r&&r.getSession&&r.getSession();return!s&&n&&e.lt(n,t),e.wt(t),t}).then(null,function(t){if(t instanceof k)throw t;throw e.captureException(t,{data:{__sentry__:!0},originalException:t}),new k("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.st=function(t){var n=this;this.et+=1,t.then(function(t){return n.et-=1,t},function(t){return n.et-=1,t})},t}(),zt=function(){function n(){}return n.prototype.sendEvent=function(n){return _t.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return _t.resolve(!0)},n}(),Vt=function(){function t(t){this.ot=t,this.ot.dsn||rt.warn("No DSN provided, backend will not do anything."),this.Et=this.xt()}return t.prototype.eventFromException=function(t,n){throw new k("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new k("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.Et.sendEvent(t).then(null,function(t){rt.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.Et.sendSession?this.Et.sendSession(t).then(null,function(t){rt.error("Error while sending session: "+t)}):rt.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.Et},t.prototype.xt=function(){return new zt},t}();function Kt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function Qt(t,n){return n?(t.sdk=t.sdk||{name:n.name,version:n.version},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=h(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=h(t.sdk.packages||[],n.packages||[]),t):t}function Yt(t,n){var r=Kt(n);return{body:JSON.stringify(c({sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function Zt(t,n){var r=t.tags||{},e=r.__sentry_samplingMethod,i=r.__sentry_sampleRate,o=function(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(t);i|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,an=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vn=/\((\S*)(?::(\d+))(?::(\d+))\)/,ln=/Minified React error #\d+;/i;function dn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:ln.test(t.message)&&(r=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=t.stacktrace,e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),u=[],s=0;s eval")>-1&&(n=hn.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]=""):0!==u||r[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),e={url:r[3],func:r[1]||sn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!e.func&&e.line&&(e.func=sn),i.push(e)}if(!i.length)return null;return{message:yn(t),name:t.name,stack:i}}(t))return pn(n,r)}catch(t){}return{message:yn(t),name:t&&t.name,stack:[],failed:!0}}function pn(t,n){try{return c(c({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function yn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var mn=50;function bn(t){var n=gn(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function wn(t){return{exception:{values:[bn(t)]}}}function gn(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",e=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==e.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,mn).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function En(n,r,e){var i=jn(r,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return Q(i,{handled:!0,type:"generic"}),i.level=t.Severity.Error,e&&e.event_id&&(i.event_id=e.event_id),_t.resolve(i)}function xn(n,r,e,i){void 0===e&&(e=t.Severity.Info);var o=_n(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=e,i&&i.event_id&&(o.event_id=i.event_id),_t.resolve(o)}function jn(t,n,r){var e,i;if(void 0===r&&(r={}),l(t)&&t.error)return e=wn(dn(t=t.error));if(d(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var o=t,u=o.name||(d(o)?"DOMError":"DOMException"),s=o.message?u+": "+o.message:u;return K(e=_n(s,n,r),s),"code"in o&&(e.tags=c(c({},e.tags),{"DOMException.code":""+o.code})),e}return v(t)?e=wn(dn(t)):m(t)||b(t)?(Q(e=function(t,n,r){var e={exception:{values:[{type:b(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+F(t)}]},extra:{__serialized__:L(t)}};if(n){var i=gn(dn(n).stack);e.stacktrace={frames:i}}return e}(t,n,r.rejection),{synthetic:!0}),e):(K(e=_n(t,n,r),""+t,void 0),Q(e,{synthetic:!0}),e)}function _n(t,n,r){void 0===r&&(r={});var e={message:t};if(r.attachStacktrace&&n){var i=gn(dn(n).stack);e.stacktrace={frames:i}}return e}var kn=function(){function n(t){this.options=t,this.T=new kt(30),this.It={},this.Nt=new Jt(t.dsn,t.Mt),this.url=this.Nt.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(t){throw new k("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.T.drain(t)},n.prototype.At=function(n){var r=n.requestType,e=n.response,i=n.headers,o=n.resolve,u=n.reject,s=t.Status.fromHttpCode(e.status);this.Ct(i)&&rt.warn("Too many requests, backing off until: "+this.qt(r)),s!==t.Status.Success?u(e):o({status:s})},n.prototype.qt=function(t){return this.It[t]||this.It.all},n.prototype.Lt=function(t){return this.qt(t)>new Date(Date.now())},n.prototype.Ct=function(t){var n,r,e,i,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var c=a(u.trim().split(",")),f=c.next();!f.done;f=c.next()){var h=f.value.split(":",2),v=parseInt(h[0],10),l=1e3*(isNaN(v)?60:v);try{for(var d=(e=void 0,a(h[1].split(";"))),p=d.next();!p.done;p=d.next()){var y=p.value;this.It[y||"all"]=new Date(o+l)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(e)throw e.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}return!!s&&(this.It.all=new Date(o+function(t,n){if(!n)return Y;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var e=Date.parse(""+n);return isNaN(e)?Y:e-t}(o,s)),!0)},n}(),Sn=W(),On=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.Ut(Zt(t,this.Nt),t)},n.prototype.sendSession=function(t){return this.Ut(Yt(t,this.Nt),t)},n.prototype.Ut=function(t,n){var r=this;if(this.Lt(t.type))return Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.qt(t.type)+" due to too many requests.",status:429});var e={body:t.body,method:"POST",referrerPolicy:ot()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(e,this.options.fetchParameters),void 0!==this.options.headers&&(e.headers=this.options.headers),this.T.add(new _t(function(n,i){Sn.fetch(t.url,e).then(function(e){var o={"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")};r.At({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}).catch(i)}))},n}(kn),Tn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.Ut(Zt(t,this.Nt),t)},n.prototype.sendSession=function(t){return this.Ut(Yt(t,this.Nt),t)},n.prototype.Ut=function(t,n){var r=this;return this.Lt(t.type)?Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.qt(t.type)+" due to too many requests.",status:429}):this.T.add(new _t(function(n,e){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};r.At({requestType:t.type,response:i,headers:o,resolve:n,reject:e})}},i.open("POST",t.url),r.options.headers)r.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,r.options.headers[o]);i.send(t.body)}))},n}(kn),Dn=Object.freeze({__proto__:null,BaseTransport:kn,FetchTransport:On,XHRTransport:Tn}),Rn=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return r(e,n),e.prototype.eventFromException=function(t,n){return En(this.ot,t,n)},e.prototype.eventFromMessage=function(n,r,e){return void 0===r&&(r=t.Severity.Info),xn(this.ot,n,r,e)},e.prototype.xt=function(){if(!this.ot.dsn)return n.prototype.xt.call(this);var t=c(c({},this.ot.transportOptions),{dsn:this.ot.dsn,Mt:this.ot.Mt});return this.ot.transport?new this.ot.transport(t):et()?new On(t):new Tn(t)},e}(Vt),In=0;function Nn(){return In>0}function Mn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var sentryWrapped=function(){var e=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var i=e.map(function(t){return Mn(t,n)});return t.handleEvent?t.handleEvent.apply(this,i):t.apply(this,i)}catch(t){throw In+=1,setTimeout(function(){In-=1}),Bt(function(r){r.addEventProcessor(function(t){var r=c({},t);return n.mechanism&&(K(r,void 0,void 0),Q(r,n.mechanism)),r.extra=c(c({},r.extra),{arguments:e}),r}),captureException(t)}),t}};try{for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function An(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var n=document.createElement("script");n.async=!0,n.src=new Jt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad),(document.head||document.body).appendChild(n)}else rt.error("Missing dsn option in showReportDialog call");else rt.error("Missing eventId option in showReportDialog call")}var Cn=function(){function n(t){this.name=n.id,this.Ht=!1,this.Pt=!1,this.ot=c({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.ot.onerror&&(rt.log("Global Handler attached: onerror"),this.Ft()),this.ot.onunhandledrejection&&(rt.log("Global Handler attached: onunhandledrejection"),this.Xt())},n.prototype.Ft=function(){var t=this;this.Ht||(ht({callback:function(r){var e=r.error,i=Ut(),o=i.getIntegration(n),u=e&&!0===e.__sentry_own_request__;if(o&&!Nn()&&!u){var s=i.getClient(),c=y(e)?t.Bt(r.msg,r.url,r.line,r.column):t.Jt(jn(e,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);Q(c,{handled:!1,type:"onerror"}),i.captureEvent(c,{originalException:e})}},type:"error"}),this.Ht=!0)},n.prototype.Xt=function(){var r=this;this.Pt||(ht({callback:function(e){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(t){}var o=Ut(),u=o.getIntegration(n),s=i&&!0===i.__sentry_own_request__;if(!u||Nn()||s)return!0;var c=o.getClient(),a=y(i)?r.Wt(i):jn(i,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!0});a.level=t.Severity.Error,Q(a,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(a,{originalException:i})},type:"unhandledrejection"}),this.Pt=!0)},n.prototype.Bt=function(t,n,r,e){var i,o=l(t)?t.message:t;if(p(o)){var u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(i=u[1],o=u[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this.Jt(s,n,r,e)},n.prototype.Wt=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},n.prototype.Jt=function(t,n,r,e){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(e,10))?void 0:e,o=isNaN(parseInt(r,10))?void 0:r,u=p(n)&&n.length>0?n:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:u,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),qn=["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"],Ln=function(){function t(n){this.name=t.id,this.ot=c({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=W();(this.ot.setTimeout&&A(t,"setTimeout",this.$t.bind(this)),this.ot.setInterval&&A(t,"setInterval",this.$t.bind(this)),this.ot.requestAnimationFrame&&A(t,"requestAnimationFrame",this.Gt.bind(this)),this.ot.XMLHttpRequest&&"XMLHttpRequest"in t&&A(XMLHttpRequest.prototype,"send",this.zt.bind(this)),this.ot.eventTarget)&&(Array.isArray(this.ot.eventTarget)?this.ot.eventTarget:qn).forEach(this.Vt.bind(this))},t.prototype.$t=function(t){return function(){for(var n=[],r=0;r"}0!==n.length&&Ut().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name})},n.prototype.Yt=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,e=n.url,i=n.status_code,o=n.body;Ut().addBreadcrumb({category:"xhr",data:{method:r,url:e,status_code:i},type:"http"},{xhr:t.xhr,input:o})}else;},n.prototype.Zt=function(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Ut().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Ut().addBreadcrumb({category:"fetch",data:c(c({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.tn=function(t){var n=W(),r=t.from,e=t.to,i=G(n.location.href),o=G(r),u=G(e);o.path||(o=i),i.protocol===u.protocol&&i.host===u.host&&(e=u.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Ut().addBreadcrumb({category:"navigation",data:{from:r,to:e}})},n.id="Breadcrumbs",n}(),Hn="cause",Pn=5,Fn=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.nn=n.key||Hn,this.O=n.limit||Pn}return t.prototype.setupOnce=function(){Nt(function(n,r){var e=Ut().getIntegration(t);return e?e.rn(n,r):n})},t.prototype.rn=function(t,n){if(!(t.exception&&t.exception.values&&n&&E(n.originalException,Error)))return t;var r=this.en(n.originalException,this.nn);return t.exception.values=h(r,t.exception.values),t},t.prototype.en=function(t,n,r){if(void 0===r&&(r=[]),!E(t[n],Error)||r.length+1>=this.O)return r;var e=bn(dn(t[n]));return this.en(t[n],n,h([e],r))},t.id="LinkedErrors",t}(),Xn=W(),Bn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Nt(function(n){var r,e,i;if(Ut().getIntegration(t)){if(!Xn.navigator&&!Xn.location&&!Xn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(e=Xn.location)||void 0===e?void 0:e.href),u=(Xn.document||{}).referrer,s=(Xn.navigator||{}).userAgent,a=c(c(c({},null===(i=n.request)||void 0===i?void 0:i.headers),u&&{Referer:u}),s&&{"User-Agent":s}),f=c(c({},o&&{url:o}),{headers:a});return c(c({},n),{request:f})}return n})},t.id="UserAgent",t}(),Jn=Object.freeze({__proto__:null,GlobalHandlers:Cn,TryCatch:Ln,Breadcrumbs:Un,LinkedErrors:Fn,UserAgent:Bn}),Wn=function(t){function n(n){return void 0===n&&(n={}),t.call(this,Rn,n)||this}return r(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),W().document&&(this.vt()?An(c(c({},t),{dsn:t.dsn||this.getDsn()})):rt.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.dt=function(n,r,e){return n.platform=n.platform||"javascript",t.prototype.dt.call(this,n,r,e)},n.prototype.wt=function(n){var r=this.getIntegration(Un);r&&r.addSentryBreadcrumb(n),t.prototype.wt.call(this,n)},n}(Gt),$n=[new on,new rn,new Ln,new Un,new Cn,new Fn,new Bn];var Gn={},zn=W();zn.Sentry&&zn.Sentry.Integrations&&(Gn=zn.Sentry.Integrations);var Vn=c(c(c({},Gn),un),Jn);return t.BrowserClient=Wn,t.Hub=Ct,t.Integrations=Vn,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=nn,t.Scope=Rt,t.Transports=Dn,t.addBreadcrumb=function(t){Xt("addBreadcrumb",t)},t.addGlobalEventProcessor=Nt,t.captureEvent=function(t){return Xt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var r;try{throw new Error(t)}catch(t){r=t}return Xt("captureMessage",t,"string"==typeof n?n:void 0,c({originalException:t,syntheticException:r},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=Ut().getClient();return n?n.close(t):_t.reject(!1)},t.configureScope=function(t){Xt("configureScope",t)},t.defaultIntegrations=$n,t.eventFromException=En,t.eventFromMessage=xn,t.flush=function(t){var n=Ut().getClient();return n?n.flush(t):_t.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=Ut,t.getHubFromCarrier=Pt,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=$n),void 0===t.release){var n=W();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),t.Mt=t.Mt||{},t.Mt.sdk={name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:nn}],version:nn},function(t,n){!0===n.debug&&rt.enable();var r=Ut(),e=new t(n);r.bindClient(e)}(Wn,t),t.autoSessionTracking&&function(){var t=W(),n=t.document;if(void 0!==n){var r=Ut(),e="complete"===n.readyState,i=!1,o=function(){i&&e&&r.endSession()},u=function(){e=!0,o(),t.removeEventListener("load",u)};r.startSession(),e||t.addEventListener("load",u);try{var s=new PerformanceObserver(function(t,n){t.getEntries().forEach(function(t){"first-contentful-paint"===t.name&&t.startTime