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