/*! @sentry/browser 6.17.2 (37b1213) | 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=function(){return(i=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 u(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 a(){for(var t=[],n=0;n ".length,a=void 0;r&&i++<5&&!("html"===(a=k(r,n))||i>1&&o+e.length*u+a.length>=80);)e.push(a),o+=a.length,r=r.parentNode;return e.reverse().join(" > ")}catch(t){return""}}function k(t,n){var r,e,i,o,u,a=t,c=[];if(!a||!a.tagName)return"";c.push(a.tagName.toLowerCase());var s=n&&n.length?n.filter(function(t){return a.getAttribute(t)}).map(function(t){return[t,a.getAttribute(t)]}):null;if(s&&s.length)s.forEach(function(t){c.push("["+t[0]+'="'+t[1]+'"]')});else if(a.id&&c.push("#"+a.id),(r=a.className)&&y(r))for(e=r.split(/\s+/),u=0;u1&&(h=l.slice(0,-1).join("/"),v=l.pop()),v){var d=v.match(/^\d+/);d&&(v=d[0])}return D({host:c,pass:a,path:h,projectId:v,port:f,protocol:e,publicKey:i})}(t):D(t);return n}var R=f(),I="Sentry Logger ";function M(t){var n=f();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}var q=function(){function t(){this.t=!1}return t.prototype.disable=function(){this.t=!1},t.prototype.enable=function(){this.t=!0},t.prototype.log=function(){for(var t=[],n=0;n"}try{o.currentTarget=w(i.currentTarget)?S(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){o.currentTarget=""}for(var u in"undefined"!=typeof CustomEvent&&E(t,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,u)&&(o[u]=i[u]);return o}return t}function $(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function z(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var e=V(t,n);return $(e)>r?z(t,n-1,r):e}function G(t,n){return"domain"===n&&t&&"object"==typeof t&&t.i?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":b(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: "+L(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function K(t,n,r,e){var i,o;if(void 0===r&&(r=1/0),void 0===e&&(i="function"==typeof WeakSet,o=i?new WeakSet:[],e=[function(t){if(i)return!!o.has(t)||(o.add(t),!1);for(var n=0;n=n)return U(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:U(i,n)}return""}function Y(t){var n,r;if(b(t)){var e=t,i={};try{for(var u=o(Object.keys(e)),a=u.next();!a.done;a=u.next()){var c=a.value;void 0!==e[c]&&(i[c]=Y(e[c]))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return i}return Array.isArray(t)?t.map(Y):t}function Z(){if(!("fetch"in f()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function tt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function nt(){if(!Z())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var rt,et=f(),it={},ot={};function ut(t){if(!ot[t])switch(ot[t]=!0,t){case"console":!function(){if(!("console"in et))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in et.console&&H(et.console,t,function(n){return function(){for(var r=[],e=0;e2?n[2]:void 0;if(e){var i=rt,o=String(e);rt=o,ct("history",{from:i,to:o})}return t.apply(this,n)}}et.onpopstate=function(){for(var t=[],n=0;n":r||""}function xt(t,n,r){var e=t.exception=t.exception||{},i=e.values=e.values||[],o=i[0]=i[0]||{};o.value||(o.value=n||""),o.type||(o.type=r||"Error")}function Et(t,n){var r=gt(t);if(r){var e=r.mechanism;if(r.mechanism=i(i(i({},{type:"generic",handled:!0}),e),n),n&&"data"in n){var o=i(i({},e&&e.data),n.data);r.mechanism.data=o}}}var St=6e4;function kt(t){if(t&&t.__sentry_captured__)return!0;try{P(t,"__sentry_captured__",!0)}catch(t){}return!1}function _t(t){return new Ot(function(n){n(t)})}function jt(t){return new Ot(function(n,r){r(t)})}var Ot=function(){function t(t){var n=this;this.o=0,this.u=[],this.s=function(t){n.h(1,t)},this.v=function(t){n.h(2,t)},this.h=function(t,r){0===n.o&&(x(r)?r.then(n.s,n.v):(n.o=t,n.l=r,n.p()))},this.p=function(){if(0!==n.o){var t=n.u.slice();n.u=[],t.forEach(function(t){t[0]||(1===n.o&&t[1](n.l),2===n.o&&t[2](n.l),t[0]=!0)})}};try{t(this.s,this.v)}catch(t){this.v(t)}}return t.prototype.then=function(n,r){var e=this;return new t(function(t,i){e.u.push([!1,function(r){if(n)try{t(n(r))}catch(t){i(t)}else t(r)},function(n){if(r)try{t(r(n))}catch(t){i(t)}else i(n)}]),e.p()})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var r=this;return new t(function(t,e){var i,o;return r.then(function(t){o=!1,i=t,n&&n()},function(t){o=!0,i=t,n&&n()}).then(function(){o?e(i):t(i)})})},t}();function Tt(t){var n=[];function r(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(e){if(!(void 0===t||n.length0&&r(!1)},t);n.forEach(function(t){_t(t).then(function(){--i||(clearTimeout(o),r(!0))},e)})})}}}function Dt(n){return"warn"===n?t.Severity.Warning:function(t){return-1!==c.indexOf(t)}(n)?n:t.Severity.Log}var Nt={nowSeconds:function(){return Date.now()/1e3}};var Rt=function(){var t=f().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),It=void 0===Rt?Nt:{nowSeconds:function(){return(Rt.timeOrigin+Rt.now())/1e3}},Mt=Nt.nowSeconds.bind(Nt),qt=It.nowSeconds.bind(It),At=(function(){var t=f().performance;if(t&&t.now){var n=t.now(),r=Date.now(),e=t.timeOrigin?Math.abs(t.timeOrigin+n-r):36e5,i=e<36e5,o=t.timing&&t.timing.navigationStart,u="number"==typeof o?Math.abs(o+n-r):36e5;(i||u<36e5)&&(e<=u&&t.timeOrigin)}}(),function(){function t(){this.m=!1,this.g=[],this.S=[],this.k=[],this._={},this.j={},this.O={},this.T={},this.D={}}return t.clone=function(n){var r=new t;return n&&(r.k=a(n.k),r.j=i({},n.j),r.O=i({},n.O),r.T=i({},n.T),r._=n._,r.N=n.N,r.R=n.R,r.I=n.I,r.M=n.M,r.q=n.q,r.S=a(n.S),r.A=n.A),r},t.prototype.addScopeListener=function(t){this.g.push(t)},t.prototype.addEventProcessor=function(t){return this.S.push(t),this},t.prototype.setUser=function(t){return this._=t||{},this.I&&this.I.update({user:t}),this.C(),this},t.prototype.getUser=function(){return this._},t.prototype.getRequestSession=function(){return this.A},t.prototype.setRequestSession=function(t){return this.A=t,this},t.prototype.setTags=function(t){return this.j=i(i({},this.j),t),this.C(),this},t.prototype.setTag=function(t,n){var r;return this.j=i(i({},this.j),((r={})[t]=n,r)),this.C(),this},t.prototype.setExtras=function(t){return this.O=i(i({},this.O),t),this.C(),this},t.prototype.setExtra=function(t,n){var r;return this.O=i(i({},this.O),((r={})[t]=n,r)),this.C(),this},t.prototype.setFingerprint=function(t){return this.q=t,this.C(),this},t.prototype.setLevel=function(t){return this.N=t,this.C(),this},t.prototype.setTransactionName=function(t){return this.M=t,this.C(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this.T[t]:this.T=i(i({},this.T),((r={})[t]=n,r)),this.C(),this},t.prototype.setSpan=function(t){return this.R=t,this.C(),this},t.prototype.getSpan=function(){return this.R},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this.I=t:delete this.I,this.C(),this},t.prototype.getSession=function(){return this.I},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.j=i(i({},this.j),n.j),this.O=i(i({},this.O),n.O),this.T=i(i({},this.T),n.T),n._&&Object.keys(n._).length&&(this._=n._),n.N&&(this.N=n.N),n.q&&(this.q=n.q),n.A&&(this.A=n.A)):b(n)&&(n=n,this.j=i(i({},this.j),n.tags),this.O=i(i({},this.O),n.extra),this.T=i(i({},this.T),n.contexts),n.user&&(this._=n.user),n.level&&(this.N=n.level),n.fingerprint&&(this.q=n.fingerprint),n.requestSession&&(this.A=n.requestSession)),this},t.prototype.clear=function(){return this.k=[],this.j={},this.O={},this._={},this.T={},this.N=void 0,this.M=void 0,this.q=void 0,this.A=void 0,this.R=void 0,this.I=void 0,this.C(),this},t.prototype.addBreadcrumb=function(t,n){var r="number"==typeof n?Math.min(n,100):100;if(r<=0)return this;var e=i({timestamp:Mt()},t);return this.k=a(this.k,[e]).slice(-r),this.C(),this},t.prototype.clearBreadcrumbs=function(){return this.k=[],this.C(),this},t.prototype.applyToEvent=function(t,n){if(this.O&&Object.keys(this.O).length&&(t.extra=i(i({},this.O),t.extra)),this.j&&Object.keys(this.j).length&&(t.tags=i(i({},this.j),t.tags)),this._&&Object.keys(this._).length&&(t.user=i(i({},this._),t.user)),this.T&&Object.keys(this.T).length&&(t.contexts=i(i({},this.T),t.contexts)),this.N&&(t.level=this.N),this.M&&(t.transaction=this.M),this.R){t.contexts=i({trace:this.R.getTraceContext()},t.contexts);var r=this.R.transaction&&this.R.transaction.name;r&&(t.tags=i({transaction:r},t.tags))}return this.L(t),t.breadcrumbs=a(t.breadcrumbs||[],this.k),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.D,this.U(a(Ct(),this.S),t,n)},t.prototype.setSDKProcessingMetadata=function(t){return this.D=i(i({},this.D),t),this},t.prototype.U=function(t,n,r,e){var o=this;return void 0===e&&(e=0),new Ot(function(u,a){var c=t[e];if(null===n||"function"!=typeof c)u(n);else{var s=c(i({},n),r);x(s)?s.then(function(n){return o.U(t,n,r,e+1).then(u)}).then(null,a):o.U(t,s,r,e+1).then(u).then(null,a)}})},t.prototype.C=function(){var t=this;this.m||(this.m=!0,this.g.forEach(function(n){n(t)}),this.m=!1)},t.prototype.L=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.q&&(t.fingerprint=t.fingerprint.concat(this.q)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}());function Ct(){var t=f();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Lt(t){Ct().push(t)}var Ut=function(){function t(t){this.errors=0,this.sid=mt(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var n=qt();this.timestamp=n,this.started=n,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||qt(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:mt()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var n=this.timestamp-this.started;this.duration=n>=0?n:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return Y({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),Jt=4,Ft=function(){function t(t,n,r){void 0===n&&(n=new At),void 0===r&&(r=Jt),this.J=r,this.F=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.J=t&&(clearInterval(i),r(!1)))},1)})},t.prototype.tt=function(){return this.K},t.prototype.rt=function(){return!1!==this.getOptions().enabled&&void 0!==this.Y},t.prototype.ut=function(t,n,r){var e=this,o=this.getOptions().normalizeDepth,u=void 0===o?3:o,a=i(i({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:mt()),timestamp:t.timestamp||Mt()});this.at(a),this.ct(a);var c=n;r&&r.captureContext&&(c=At.clone(c).update(r.captureContext));var s=_t(a);return c&&(s=c.applyToEvent(a,r)),s.then(function(t){return"number"==typeof u&&u>0?e.st(t,u):t})},t.prototype.st=function(t,n){if(!t)return null;var r=i(i(i(i(i({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return i(i({},t),t.data&&{data:V(t.data,n)})})}),t.user&&{user:V(t.user,n)}),t.contexts&&{contexts:V(t.contexts,n)}),t.extra&&{extra:V(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),t.sdkProcessingMetadata=i(i({},t.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype.at=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=U(t.message,u));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=U(a.value,u));var c=t.request;c&&c.url&&(c.url=U(c.url,u))},t.prototype.ct=function(t){var n=Object.keys(this.W);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=a(t.sdk.integrations||[],n))},t.prototype.ft=function(t){this.tt().sendEvent(t)},t.prototype.nt=function(t,n,r){return this.ht(t,n,r).then(function(t){return t.event_id},function(t){A.error(t)})},t.prototype.ht=function(t,n,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate,a=this.getTransport();function c(t,n){a.recordLostEvent&&a.recordLostEvent(t,n)}if(!this.rt())return jt(new j("SDK not enabled, will not capture event."));var s="transaction"===t.type;return!s&&"number"==typeof u&&Math.random()>u?(c("sample_rate","event"),jt(new j("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this.ut(t,r,n).then(function(r){if(null===r)throw c("event_processor",t.type||"event"),new j("An event processor returned null, will not send event.");return n&&n.data&&!0===n.data.__sentry__||s||!o?r:function(t){var n="`beforeSend` method has to return `null` or a valid event.";if(x(t))return t.then(function(t){if(!b(t)&&null!==t)throw new j(n);return t},function(t){throw new j("beforeSend rejected with "+t)});if(!b(t)&&null!==t)throw new j(n);return t}(o(r,n))}).then(function(n){if(null===n)throw c("before_send",t.type||"event"),new j("`beforeSend` returned `null`, will not send event.");var i=r&&r.getSession&&r.getSession();return!s&&i&&e.ot(i,n),e.ft(n),n}).then(null,function(t){if(t instanceof j)throw t;throw e.captureException(t,{data:{__sentry__:!0},originalException:t}),new j("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.Z=function(t){var n=this;this.G+=1,t.then(function(t){return n.G-=1,t},function(t){return n.G-=1,t})},t}();var an=function(){function t(){}return t.prototype.sendEvent=function(t){return _t({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return _t(!0)},t}(),cn=function(){function t(t){this.V=t,this.V.dsn||A.warn("No DSN provided, backend will not do anything."),this.vt=this.lt()}return t.prototype.eventFromException=function(t,n){throw new j("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new j("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.vt.sendEvent(t).then(null,function(t){0})},t.prototype.sendSession=function(t){this.vt.sendSession&&this.vt.sendSession(t).then(null,function(t){0})},t.prototype.getTransport=function(){return this.vt},t.prototype.lt=function(){return new an},t}();function sn(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function fn(t,n){var r,e=sn(n),o=t.type||"event",u="transaction"===o||!!n.tunnel,c=(t.sdkProcessingMetadata||{}).transactionSampling||{},s=c.method,f=c.rate;!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=a(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=a(t.sdk.packages||[],n.packages||[]))}(t,n.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0),delete t.sdkProcessingMetadata;try{r=JSON.stringify(t)}catch(n){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=n;try{r=JSON.stringify(V(t))}catch(t){var h=t;r=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var v={body:r,type:o,url:u?tn(n.dsn,n.tunnel):Zt(n.dsn)};if(u){var l=JSON.stringify(i(i({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!n.tunnel&&{dsn:T(n.dsn)}))+"\n"+JSON.stringify({type:o,sample_rates:[{id:s,rate:f}]})+"\n"+v.body;v.body=l}return v}var hn,vn="6.17.2",ln=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){hn=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n=0;n--){var r=t[n];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null},t.prototype.xt=function(t){try{if(t.stacktrace)return this.Et(t.stacktrace.frames);var n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?this.Et(n):null}catch(t){return null}},t.id="InboundFilters",t}(),yn=Object.freeze({__proto__:null,FunctionToString:ln,InboundFilters:pn}),mn="?",bn=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,En=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sn=/Minified React error #\d+;/i;function kn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:Sn.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=[],a=0;a eval")>-1&&(e=xn.exec(i[3]))?(i[1]=i[1]||"eval",i[3]=e[1],i[4]=e[2],i[5]=""):0!==s||i[5]||void 0===t.columnNumber||(a[0].column=t.columnNumber+1);var h=i[3],v=i[1]||mn;r=u(_n(v,h),2),v=r[0],h=r[1],o={url:h,func:v,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null}}!o.func&&o.line&&(o.func=mn),a.push(o)}if(!a.length)return null;return{message:On(t),name:t.name,stack:a}}(t))return jn(n,r)}catch(t){}return{message:On(t),name:t&&t.name,stack:[],failed:!0}}var _n=function(t,n){var r=-1!==t.indexOf("safari-extension"),e=-1!==t.indexOf("safari-web-extension");return r||e?[-1!==t.indexOf("@")?t.split("@")[0]:mn,r?"safari-extension:"+n:"safari-web-extension:"+n]:[t,n]};function jn(t,n){try{return i(i({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function On(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var Tn=50;function Dn(t){var n=Rn(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 Nn(t){return{exception:{values:[Dn(t)]}}}function Rn(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,Tn).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 In(n,r,e){var i=qn(r,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return Et(i),i.level=t.Severity.Error,e&&e.event_id&&(i.event_id=e.event_id),_t(i)}function Mn(n,r,e,i){void 0===e&&(e=t.Severity.Info);var o=An(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=e,i&&i.event_id&&(o.event_id=i.event_id),_t(o)}function qn(t,n,r){var e;if(void 0===r&&(r={}),d(t)&&t.error)return e=Nn(kn(t=t.error));if(p(t)||l(t,"DOMException")){var o=t;if("stack"in t)e=Nn(kn(t));else{var u=o.name||(p(o)?"DOMError":"DOMException"),a=o.message?u+": "+o.message:u;xt(e=An(a,n,r),a)}return"code"in o&&(e.tags=i(i({},e.tags),{"DOMException.code":""+o.code})),e}return v(t)?e=Nn(kn(t)):b(t)||g(t)?(Et(e=function(t,n,r){var e={exception:{values:[{type:g(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+Q(t)}]},extra:{__serialized__:z(t)}};if(n){var i=Rn(kn(n).stack);e.stacktrace={frames:i}}return e}(t,n,r.isRejection),{synthetic:!0}),e):(xt(e=An(t,n,r),""+t,void 0),Et(e,{synthetic:!0}),e)}function An(t,n,r){void 0===r&&(r={});var e={message:t};if(r.attachStacktrace&&n){var i=Rn(kn(n).stack);e.stacktrace={frames:i}}return e}var Cn,Ln=f();function Un(){if(Cn)return Cn;if(tt(Ln.fetch))return Cn=Ln.fetch.bind(Ln);var t=Ln.document,n=Ln.fetch;if(t&&"function"==typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);var e=r.contentWindow;e&&e.fetch&&(n=e.fetch),t.head.removeChild(r)}catch(t){0}return Cn=n.bind(Ln)}function Jn(t,n){if("[object Navigator]"===Object.prototype.toString.call(Ln&&Ln.navigator)&&"function"==typeof Ln.navigator.sendBeacon)return Ln.navigator.sendBeacon.bind(Ln.navigator)(t,n);if(Z()){var r=Un();r(t,{body:n,method:"POST",credentials:"omit",keepalive:!0}).then(null,function(t){console.error(t)})}else;}function Fn(t){return"event"===t?"error":t}var Hn=f(),Pn=function(){function t(t){var n,r,e,i=this;this.options=t,this.St=Tt(30),this.kt={},this._t={},this.jt=(n=t.dsn,r=t.Ot,e=t.tunnel,{initDsn:n,metadata:r||{},dsn:N(n),tunnel:e}),this.url=Zt(this.jt.dsn),this.options.sendClientReports&&Hn.document&&Hn.document.addEventListener("visibilitychange",function(){"hidden"===Hn.document.visibilityState&&i.Tt()})}return t.prototype.sendEvent=function(t){return this.Dt(fn(t,this.jt),t)},t.prototype.sendSession=function(t){return this.Dt(function(t,n){var r=sn(n),e="aggregates"in t?"sessions":"session";return{body:JSON.stringify(i(i({sent_at:(new Date).toISOString()},r&&{sdk:r}),!!n.tunnel&&{dsn:T(n.dsn)}))+"\n"+JSON.stringify({type:e})+"\n"+JSON.stringify(t),type:e,url:tn(n.dsn,n.tunnel)}}(t,this.jt),t)},t.prototype.close=function(t){return this.St.drain(t)},t.prototype.recordLostEvent=function(t,n){var r;if(this.options.sendClientReports){var e=Fn(n)+":"+t;A.log("Adding outcome: "+e),this._t[e]=(null!=(r=this._t[e])?r:0)+1}},t.prototype.Tt=function(){if(this.options.sendClientReports){var t=this._t;if(this._t={},Object.keys(t).length){A.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var n=tn(this.jt.dsn,this.jt.tunnel),r=JSON.stringify(i({},this.jt.tunnel&&{dsn:T(this.jt.dsn)}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:Mt(),discarded_events:Object.keys(t).map(function(n){var r=u(n.split(":"),2),e=r[0];return{reason:r[1],category:e,quantity:t[n]}})});try{Jn(n,r)}catch(t){A.error(t)}}else A.log("No outcomes to flush")}},t.prototype.Nt=function(t){t.requestType;var n,r=t.response,e=t.headers,i=t.resolve,o=t.reject,u=(n=r.status)>=200&&n<300?"success":429===n?"rate_limit":n>=400&&n<500?"invalid":n>=500?"failed":"unknown";this.Rt(e);"success"!==u?o(r):i({status:u})},t.prototype.It=function(t){var n=Fn(t);return this.kt[n]||this.kt.all},t.prototype.Mt=function(t){return this.It(t)>new Date(Date.now())},t.prototype.Rt=function(t){var n,r,e,i,u=Date.now(),a=t["x-sentry-rate-limits"],c=t["retry-after"];if(a){try{for(var s=o(a.trim().split(",")),f=s.next();!f.done;f=s.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,o(h[1].split(";"))),p=d.next();!p.done;p=d.next()){var y=p.value;this.kt[y||"all"]=new Date(u+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=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!0}return!!c&&(this.kt.all=new Date(u+function(t,n){if(!n)return St;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var e=Date.parse(""+n);return isNaN(e)?St:e-t}(u,c)),!0)},t}(),Xn=function(t){function n(n,r){void 0===r&&(r=Un());var e=t.call(this,n)||this;return e.qt=r,e}return r(n,t),n.prototype.Dt=function(t,n){var r=this;if(this.Mt(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.It(t.type)+" due to too many requests.",status:429});var e={body:t.body,method:"POST",referrerPolicy:nt()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(e,this.options.fetchParameters),void 0!==this.options.headers&&(e.headers=this.options.headers),this.St.add(function(){return new Ot(function(n,i){r.qt(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.Nt({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}).catch(i)})}).then(void 0,function(n){throw n instanceof j?r.recordLostEvent("queue_overflow",t.type):r.recordLostEvent("network_error",t.type),n})},n}(Pn),Bn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.Dt=function(t,n){var r=this;return this.Mt(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.It(t.type)+" due to too many requests.",status:429})):this.St.add(function(){return new Ot(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.Nt({requestType:t.type,response:i,headers:o,resolve:n,reject:e})}},i.open("POST",t.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,o)&&i.setRequestHeader(o,r.options.headers[o]);i.send(t.body)})}).then(void 0,function(n){throw n instanceof j?r.recordLostEvent("queue_overflow",t.type):r.recordLostEvent("network_error",t.type),n})},n}(Pn),Wn=Object.freeze({__proto__:null,BaseTransport:Pn,FetchTransport:Xn,XHRTransport:Bn}),$n=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return r(e,n),e.prototype.eventFromException=function(t,n){return In(this.V,t,n)},e.prototype.eventFromMessage=function(n,r,e){return void 0===r&&(r=t.Severity.Info),Mn(this.V,n,r,e)},e.prototype.lt=function(){if(!this.V.dsn)return n.prototype.lt.call(this);var t=i(i({},this.V.transportOptions),{dsn:this.V.dsn,tunnel:this.V.tunnel,sendClientReports:this.V.sendClientReports,Ot:this.V.Ot});return this.V.transport?new this.V.transport(t):Z()?new Xn(t):new Bn(t)},e}(cn),zn=f(),Gn=0;function Kn(){return Gn>0}function Vn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{var e=t.__sentry_wrapped__;if(e)return e;if(B(t))return t}catch(n){return t}var sentryWrapped=function(){var e=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var o=e.map(function(t){return Vn(t,n)});return t.apply(this,o)}catch(t){throw Gn+=1,setTimeout(function(){Gn-=1}),Gt(function(r){r.addEventProcessor(function(t){return n.mechanism&&(xt(t,void 0,void 0),Et(t,n.mechanism)),t.extra=i(i({},t.extra),{arguments:e}),t}),captureException(t)}),t}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(sentryWrapped[o]=t[o])}catch(t){}X(sentryWrapped,t),P(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function Qn(t){if(void 0===t&&(t={}),zn.document&&t.eventId&&t.dsn){var n=zn.document.createElement("script");n.async=!0,n.src=function(t,n){var r=N(t),e=Vt(r)+"embed/error-page/",i="dsn="+T(r);for(var o in n)if("dsn"!==o)if("user"===o){if(!n.user)continue;n.user.name&&(i+="&name="+encodeURIComponent(n.user.name)),n.user.email&&(i+="&email="+encodeURIComponent(n.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);return e+"?"+i}(t.dsn,t),t.onLoad&&(n.onload=t.onLoad);var r=zn.document.head||zn.document.body;r&&r.appendChild(n)}}var Yn=function(){function t(n){this.name=t.id,this.At={onerror:Zn,onunhandledrejection:tr},this.V=i({onerror:!0,onunhandledrejection:!0},n)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this.V;for(var n in t){var r=this.At[n];r&&t[n]&&(rr(n),r(),this.At[n]=void 0)}},t.id="GlobalHandlers",t}();function Zn(){at("error",function(t){var n=u(ir(),2),r=n[0],e=n[1];if(r.getIntegration(Yn)){var i=t.msg,o=t.url,a=t.line,c=t.column,s=t.error;if(!(Kn()||s&&s.__sentry_own_request__))er(r,s,void 0===s&&y(i)?function(t,n,r,e){var i=d(t)?t.message:t,o="Error",u=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(o=u[1],i=u[2]);return nr({exception:{values:[{type:o,value:i}]}},n,r,e)}(i,o,a,c):nr(qn(s||i,void 0,{attachStacktrace:e,isRejection:!1}),o,a,c),"onerror")}})}function tr(){at("unhandledrejection",function(n){var r=u(ir(),2),e=r[0],i=r[1];if(e.getIntegration(Yn)){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(t){}if(Kn()||o&&o.__sentry_own_request__)return!0;var a=m(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o)}]}}:qn(o,void 0,{attachStacktrace:i,isRejection:!0});a.level=t.Severity.Error,er(e,o,a,"onunhandledrejection")}})}function nr(t,n,r,e){var i=t.exception=t.exception||{},o=i.values=i.values||[],u=o[0]=o[0]||{},a=u.stacktrace=u.stacktrace||{},c=a.frames=a.frames||[],s=isNaN(parseInt(e,10))?void 0:e,h=isNaN(parseInt(r,10))?void 0:r,v=y(n)&&n.length>0?n:function(){var t=f();try{return t.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:s,filename:v,function:"?",in_app:!0,lineno:h}),t}function rr(t){0}function er(t,n,r,e){Et(r,{handled:!1,type:e}),t.captureEvent(r,{originalException:n})}function ir(){var t=Xt(),n=t.getClient();return[t,n&&n.getOptions().attachStacktrace]}var or=["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"],ur=function(){function t(n){this.name=t.id,this.V=i({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=f();this.V.setTimeout&&H(t,"setTimeout",ar),this.V.setInterval&&H(t,"setInterval",ar),this.V.requestAnimationFrame&&H(t,"requestAnimationFrame",cr),this.V.XMLHttpRequest&&"XMLHttpRequest"in t&&H(XMLHttpRequest.prototype,"send",sr);var n=this.V.eventTarget;n&&(Array.isArray(n)?n:or).forEach(fr)},t.id="TryCatch",t}();function ar(t){return function(){for(var n=[],r=0;r"}if(0===r.length)return;Xt().addBreadcrumb({category:"ui."+n.name,message:r},{event:n.event,name:n.name,global:n.global})}}(this.V.dom)),this.V.xhr&&at("xhr",lr),this.V.fetch&&at("fetch",dr),this.V.history&&at("history",pr)},t.id="Breadcrumbs",t}();function vr(t){var n={category:"console",data:{arguments:t.args,logger:"console"},level:Dt(t.level),message:J(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: "+(J(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}Xt().addBreadcrumb(n,{input:t.args,level:t.level})}function lr(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;Xt().addBreadcrumb({category:"xhr",data:{method:r,url:e,status_code:i},type:"http"},{xhr:t.xhr,input:o})}else;}function dr(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Xt().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Xt().addBreadcrumb({category:"fetch",data:i(i({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))}function pr(t){var n=f(),r=t.from,e=t.to,i=bt(n.location.href),o=bt(r),u=bt(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),Xt().addBreadcrumb({category:"navigation",data:{from:r,to:e}})}var yr="cause",mr=5,br=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.Ct=n.key||yr,this.Lt=n.limit||mr}return t.prototype.setupOnce=function(){Lt(function(n,r){var e=Xt().getIntegration(t);return e?function(t,n,r,e){if(!(r.exception&&r.exception.values&&e&&E(e.originalException,Error)))return r;var i=function t(n,r,e,i){void 0===i&&(i=[]);if(!E(r[e],Error)||i.length+1>=n)return i;var o=kn(r[e]);var u=Dn(o);return t(n,r[e],e,a([u],i))}(n,e.originalException,t);return r.exception.values=a(i,r.exception.values),r}(e.Ct,e.Lt,n,r):n})},t.id="LinkedErrors",t}();var gr=f(),wr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Lt(function(n){if(Xt().getIntegration(t)){if(!gr.navigator&&!gr.location&&!gr.document)return n;var r=n.request&&n.request.url||gr.location&&gr.location.href,e=(gr.document||{}).referrer,o=(gr.navigator||{}).userAgent,u=i(i(i({},n.request&&n.request.headers),e&&{Referer:e}),o&&{"User-Agent":o}),a=i(i({},r&&{url:r}),{headers:u});return i(i({},n),{request:a})}return n})},t.id="UserAgent",t}(),xr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(n,r){n(function(n){var e=r().getIntegration(t);if(e){try{if(function(t,n){if(!n)return!1;if(function(t,n){var r=t.message,e=n.message;if(!r&&!e)return!1;if(r&&!e||!r&&e)return!1;if(r!==e)return!1;if(!Sr(t,n))return!1;if(!Er(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){var r=kr(n),e=kr(t);if(!r||!e)return!1;if(r.type!==e.type||r.value!==e.value)return!1;if(!Sr(t,n))return!1;if(!Er(t,n))return!1;return!0}(t,n))return!0;return!1}(n,e.Ut))return A.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return e.Ut=n}return e.Ut=n}return n})},t.id="Dedupe",t}();function Er(t,n){var r=_r(t),e=_r(n);if(!r&&!e)return!0;if(r&&!e||!r&&e)return!1;if(r=r,(e=e).length!==r.length)return!1;for(var i=0;i