/*! @sentry/browser 7.28.0 (eeccd6e) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){const n=Object.prototype.toString;function e(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return h(t,Error)}}function r(t,e){return n.call(t)===`[object ${e}]`}function i(t){return r(t,"ErrorEvent")}function s(t){return r(t,"DOMError")}function o(t){return r(t,"String")}function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return r(t,"Object")}function a(t){return"undefined"!=typeof Event&&h(t,Event)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function h(t,n){try{return t instanceof n}catch(t){return!1}}function l(t){return t&&t.Math==Math?t:void 0}const d="object"==typeof globalThis&&l(globalThis)||"object"==typeof window&&l(window)||"object"==typeof self&&l(self)||"object"==typeof global&&l(global)||function(){return this}()||{};function p(){return d}function y(t,n,e){const r=e||d,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const v=p();function m(t,n={}){try{let e=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let a;const f=Array.isArray(n)?n:n.keyAttrs,h=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&s++1&&o+i.length*u+a.length>=h));)i.push(a),o+=a.length,e=e.parentNode;return i.reverse().join(c)}catch(t){return""}}function g(t,n){const e=t,r=[];let i,s,c,u,a;if(!e||!e.tagName)return"";r.push(e.tagName.toLowerCase());const f=n&&n.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(f&&f.length)f.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(e.id&&r.push(`#${e.id}`),i=e.className,i&&o(i))for(s=i.split(/\s+/),a=0;a1&&(u=f.slice(0,-1).join("/"),a=f.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return E({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):E(t)}const $=["debug","info","warn","error","log","assert","trace"];function x(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.substr(0,n)}...`}function k(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;nj(t,n,e)))}function T(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);if("function"==typeof i)try{R(i,r)}catch(t){}t[n]=i}function D(t,n,e){Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}function R(t,n){const e=n.prototype||{};t.prototype=n.prototype=e,D(t,"__sentry_original__",n)}function A(t){return t.__sentry_original__}function I(t){if(e(t))return{message:t.message,name:t.name,stack:t.stack,...M(t)};if(a(t)){const n={type:t.type,target:C(t.target),currentTarget:C(t.currentTarget),...M(t)};return"undefined"!=typeof CustomEvent&&h(t,CustomEvent)&&(n.detail=t.detail),n}return t}function C(t){try{return n=t,"undefined"!=typeof Element&&h(n,Element)?m(t):Object.prototype.toString.call(t)}catch(t){return""}var n}function M(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function N(t,n=40){const e=Object.keys(I(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return x(e[0],n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:x(r,n)}return""}function L(t){return U(t,new Map)}function U(t,n){if(u(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.keys(t))void 0!==t[e]&&(r[e]=U(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(U(t,n))})),r}return t}!function(){const t={enable:()=>{},disable:()=>{}};$.forEach((n=>{t[n]=()=>{}}))}();function q(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0)=>{const r=[];for(const i of t.split("\n").slice(e)){const t=i.replace(/\(error: (.*)\)/,"$1");for(const e of n){const n=e(t);if(n){r.push(n);break}}}return function(t){if(!t.length)return[];let n=t;const e=n[0].function||"",r=n[n.length-1].function||"";-1===e.indexOf("captureMessage")&&-1===e.indexOf("captureException")||(n=n.slice(1));-1!==r.indexOf("sentryWrapped")&&(n=n.slice(0,-1));return n.slice(0,50).map((t=>({...t,filename:t.filename||n[0].filename,function:t.function||"?"}))).reverse()}(r)}}const P="";function B(t){try{return t&&"function"==typeof t&&t.name||P}catch(t){return P}}const H=p();function F(){if(!("fetch"in H))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function X(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const z=p(),W={},J={};function K(t){if(!J[t])switch(J[t]=!0,t){case"console":!function(){if(!("console"in z))return;$.forEach((function(t){t in z.console&&T(z.console,t,(function(n){return function(...e){V("console",{args:e,level:t}),n&&n.apply(z.console,e)}}))}))}();break;case"dom":!function(){if(!("document"in z))return;const t=V.bind(null,"dom"),n=et(t,!0);z.document.addEventListener("click",n,!1),z.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=z[n]&&z[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(T(e,"addEventListener",(function(n){return function(e,r,i){if("click"===e||"keypress"==e)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[e]=s[e]||{refCount:0};if(!o.handler){const r=et(t);o.handler=r,n.call(this,e,r,i)}o.refCount++}catch(t){}return n.call(this,e,r,i)}})),T(e,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this,i=e.__sentry_instrumentation_handlers__||{},s=i[n];s&&(s.refCount--,s.refCount<=0&&(t.call(this,n,s.handler,r),s.handler=void 0,delete i[n]),0===Object.keys(i).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in z))return;const t=XMLHttpRequest.prototype;T(t,"open",(function(t){return function(...n){const e=this,r=n[1],i=e.__sentry_xhr__={method:o(n[0])?n[0].toUpperCase():n[0],url:n[1]};o(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const s=function(){if(4===e.readyState){try{i.status_code=e.status}catch(t){}V("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:e})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?T(e,"onreadystatechange",(function(t){return function(...n){return s(),t.apply(e,n)}})):e.addEventListener("readystatechange",s),t.apply(e,n)}})),T(t,"send",(function(t){return function(...n){return this.__sentry_xhr__&&void 0!==n[0]&&(this.__sentry_xhr__.body=n[0]),V("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}();break;case"fetch":!function(){if(!function(){if(!F())return!1;if(X(H.fetch))return!0;let t=!1;const n=H.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=X(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}())return;T(z,"fetch",(function(t){return function(...n){const e={args:n,fetchData:{method:Y(n),url:Q(n)},startTimestamp:Date.now()};return V("fetch",{...e}),t.apply(z,n).then((t=>(V("fetch",{...e,endTimestamp:Date.now(),response:t}),t)),(t=>{throw V("fetch",{...e,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!function(){const t=H.chrome,n=t&&t.app&&t.app.runtime,e="history"in H&&!!H.history.pushState&&!!H.history.replaceState;return!n&&e}())return;const t=z.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=Z,n=String(e);Z=n,V("history",{from:t,to:n})}return t.apply(this,n)}}z.onpopstate=function(...n){const e=z.location.href,r=Z;if(Z=e,V("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},T(z.history,"pushState",n),T(z.history,"replaceState",n)}();break;case"error":rt=z.onerror,z.onerror=function(t,n,e,r,i){return V("error",{column:r,error:i,line:e,msg:t,url:n}),!!rt&&rt.apply(this,arguments)};break;case"unhandledrejection":it=z.onunhandledrejection,z.onunhandledrejection=function(t){return V("unhandledrejection",t),!it||it.apply(this,arguments)};break;default:return}}function G(t,n){W[t]=W[t]||[],W[t].push(n),K(t)}function V(t,n){if(t&&W[t])for(const e of W[t]||[])try{e(n)}catch(t){}}function Y(t=[]){return"Request"in z&&h(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function Q(t=[]){return"string"==typeof t[0]?t[0]:"Request"in z&&h(t[0],Request)?t[0].url:String(t[0])}let Z;let tt,nt;function et(t,n=!1){return e=>{if(!e||nt===e)return;if(function(t){if("keypress"!==t.type)return!1;try{const n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(e))return;const r="keypress"===e.type?"input":e.type;(void 0===tt||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(nt,e))&&(t({event:e,name:r,global:n}),nt=e),clearTimeout(tt),tt=z.setTimeout((()=>{tt=void 0}),1e3)}}let rt=null;let it=null;function st(){const t=d,n=t.crypto||t.msCrypto;if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");const e=n&&n.getRandomValues?()=>n.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function ot(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ct(t){const{message:n,event_id:e}=t;if(n)return n;const r=ot(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"":e||""}function ut(t,n,e){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=n||""),s.type||(s.type=e||"Error")}function at(t,n){const e=ot(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r&&r.data,...n.data};e.mechanism.data=t}}function ft(t){if(t&&t.__sentry_captured__)return!0;try{D(t,"__sentry_captured__",!0)}catch(t){}return!1}function ht(t){return Array.isArray(t)?t:[t]}function lt(t,n=1/0,e=1/0){try{return pt("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function dt(t,n=3,e=102400){const r=lt(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?dt(t,n-1,e):r;var i}function pt(t,n,e=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function(e){if(t)return!!n.has(e)||(n.add(e),!1);for(let t=0;t=r){h[t]="[MaxProperties ~]";break}const n=d[t];h[t]=pt(t,n,e-1,r,i),l++}return o(n),h}var yt;function vt(t){return new gt((n=>{n(t)}))}function mt(t){return new gt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(yt||(yt={}));class gt{__init(){this.i=yt.PENDING}__init2(){this.o=[]}constructor(t){gt.prototype.__init.call(this),gt.prototype.__init2.call(this),gt.prototype.__init3.call(this),gt.prototype.__init4.call(this),gt.prototype.__init5.call(this),gt.prototype.__init6.call(this);try{t(this.u,this.h)}catch(t){this.h(t)}}then(t,n){return new gt(((e,r)=>{this.o.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.l()}))}catch(t){return this.then((t=>t),t)}finally(t){return new gt(((n,e)=>{let r,i;return this.then((n=>{i=!1,r=n,t&&t()}),(n=>{i=!0,r=n,t&&t()})).then((()=>{i?e(r):n(r)}))}))}__init3(){this.u=t=>{this.p(yt.RESOLVED,t)}}__init4(){this.h=t=>{this.p(yt.REJECTED,t)}}__init5(){this.p=(t,n)=>{this.i===yt.PENDING&&(f(n)?n.then(this.u,this.h):(this.i=t,this.v=n,this.l()))}}__init6(){this.l=()=>{if(this.i===yt.PENDING)return;const t=this.o.slice();this.o=[],t.forEach((t=>{t[0]||(this.i===yt.RESOLVED&&t[1](this.v),this.i===yt.REJECTED&&t[2](this.v),t[0]=!0)}))}}}function bt(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(r){if(!(void 0===t||n.lengthe(i))).then(null,(()=>e(i).then(null,(()=>{})))),i},drain:function(t){return new gt(((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{vt(t).then((()=>{--i||(clearTimeout(s),e(!0))}),r)}))}))}}}function _t(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+e+r}}const wt=["fatal","error","warning","log","info","debug"];const Et=p(),St={nowSeconds:()=>Date.now()/1e3};const $t=function(){const{performance:t}=Et;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),xt=void 0===$t?St:{nowSeconds:()=>($t.timeOrigin+$t.now())/1e3},kt=St.nowSeconds.bind(St),jt=xt.nowSeconds.bind(xt);function Ot(t,n=[]){return[t,n]}function Tt(t,n){const[e,r]=t;return[e,[...r,n]]}function Dt(t,n){t[1].forEach((t=>{const e=t[0].type;n(t,e)}))}function Rt(t,n){return(n||new TextEncoder).encode(t)}function At(t,n){const[e,r]=t;let i=JSON.stringify(e);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[Rt(i,n),t]:i.push("string"==typeof t?Rt(t,n):t)}for(const t of r){const[n,e]=t;if(s(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(lt(e))}s(t)}}return"string"==typeof i?i:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(i)}function It(t,n){const e="string"==typeof t.data?Rt(t.data,n):t.data;return[L({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}(()=>{const{performance:t}=Et;if(!t||!t.now)return;const n=36e5,e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):n,s=ifunction(t){return L({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&qt(e,t),e}function qt(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||jt(),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:st()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}class Pt{constructor(){this.m=!1,this.g=[],this._=[],this.S=[],this.k=[],this.j={},this.O={},this.T={},this.D={},this.R={}}static clone(t){const n=new Pt;return t&&(n.S=[...t.S],n.O={...t.O},n.T={...t.T},n.D={...t.D},n.j=t.j,n.A=t.A,n.I=t.I,n.C=t.C,n.M=t.M,n.N=t.N,n._=[...t._],n.L=t.L,n.k=[...t.k],n.R={...t.R}),n}addScopeListener(t){this.g.push(t)}addEventProcessor(t){return this._.push(t),this}setUser(t){return this.j=t||{},this.C&&qt(this.C,{user:t}),this.U(),this}getUser(){return this.j}getRequestSession(){return this.L}setRequestSession(t){return this.L=t,this}setTags(t){return this.O={...this.O,...t},this.U(),this}setTag(t,n){return this.O={...this.O,[t]:n},this.U(),this}setExtras(t){return this.T={...this.T,...t},this.U(),this}setExtra(t,n){return this.T={...this.T,[t]:n},this.U(),this}setFingerprint(t){return this.N=t,this.U(),this}setLevel(t){return this.A=t,this.U(),this}setTransactionName(t){return this.M=t,this.U(),this}setContext(t,n){return null===n?delete this.D[t]:this.D[t]=n,this.U(),this}setSpan(t){return this.I=t,this.U(),this}getSpan(){return this.I}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.C=t:delete this.C,this.U(),this}getSession(){return this.C}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof Pt?n:this}return t instanceof Pt?(this.O={...this.O,...t.O},this.T={...this.T,...t.T},this.D={...this.D,...t.D},t.j&&Object.keys(t.j).length&&(this.j=t.j),t.A&&(this.A=t.A),t.N&&(this.N=t.N),t.L&&(this.L=t.L)):u(t)&&(t=t,this.O={...this.O,...t.tags},this.T={...this.T,...t.extra},this.D={...this.D,...t.contexts},t.user&&(this.j=t.user),t.level&&(this.A=t.level),t.fingerprint&&(this.N=t.fingerprint),t.requestSession&&(this.L=t.requestSession)),this}clear(){return this.S=[],this.O={},this.T={},this.j={},this.D={},this.A=void 0,this.M=void 0,this.N=void 0,this.L=void 0,this.I=void 0,this.C=void 0,this.U(),this.k=[],this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:kt(),...t};return this.S=[...this.S,r].slice(-e),this.U(),this}getLastBreadcrumb(){return this.S[this.S.length-1]}clearBreadcrumbs(){return this.S=[],this.U(),this}addAttachment(t){return this.k.push(t),this}getAttachments(){return this.k}clearAttachments(){return this.k=[],this}applyToEvent(t,n={}){if(this.T&&Object.keys(this.T).length&&(t.extra={...this.T,...t.extra}),this.O&&Object.keys(this.O).length&&(t.tags={...this.O,...t.tags}),this.j&&Object.keys(this.j).length&&(t.user={...this.j,...t.user}),this.D&&Object.keys(this.D).length&&(t.contexts={...this.D,...t.contexts}),this.A&&(t.level=this.A),this.M&&(t.transaction=this.M),this.I){t.contexts={trace:this.I.getTraceContext(),...t.contexts};const n=this.I.transaction&&this.I.transaction.name;n&&(t.tags={transaction:n,...t.tags})}return this.q(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.S],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this.R},this.P([...Bt(),...this._],t,n)}setSDKProcessingMetadata(t){return this.R={...this.R,...t},this}P(t,n,e,r=0){return new gt(((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o({...n},e);f(c)?c.then((n=>this.P(t,n,e,r+1).then(i))).then(null,s):this.P(t,c,e,r+1).then(i).then(null,s)}}))}U(){this.m||(this.m=!0,this.g.forEach((t=>{t(this)})),this.m=!1)}q(t){t.fingerprint=t.fingerprint?ht(t.fingerprint):[],this.N&&(t.fingerprint=t.fingerprint.concat(this.N)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Bt(){return y("globalEventProcessors",(()=>[]))}function Ht(t){Bt().push(t)}const Ft=100;class Xt{__init(){this.B=[{}]}constructor(t,n=new Pt,e=4){this.H=e,Xt.prototype.__init.call(this),this.getStackTop().scope=n,t&&this.bindClient(t)}isOlderThan(t){return this.H{i.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},s)})),e}captureMessage(t,n,e){const r=this.F=e&&e.event_id?e.event_id:st(),i=new Error(t);return this.X(((s,o)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},o)})),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:st();return"transaction"!==t.type&&(this.F=e),this.X(((r,i)=>{r.captureEvent(t,{...n,event_id:e},i)})),e}lastEventId(){return this.F}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!e||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Ft}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:kt(),...t},c=i?function(t){if(!("console"in d))return t();const n=d.console,e={};$.forEach((t=>{const r=n[t]&&n[t].__sentry_original__;t in n&&r&&(e[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(e).forEach((t=>{n[t]=e[t]}))}}((()=>i(o,n))):o;null!==c&&e.addBreadcrumb(c,s)}setUser(t){const n=this.getScope();n&&n.setUser(t)}setTags(t){const n=this.getScope();n&&n.setTags(t)}setExtras(t){const n=this.getScope();n&&n.setExtras(t)}setTag(t,n){const e=this.getScope();e&&e.setTag(t,n)}setExtra(t,n){const e=this.getScope();e&&e.setExtra(t,n)}setContext(t,n){const e=this.getScope();e&&e.setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();n&&e&&t(n)}run(t){const n=Wt(this);try{t(this)}finally{Wt(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){return this.W("startTransaction",t,n)}traceHeaders(){return this.W("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.J()}endSession(){const t=this.getStackTop(),n=t&&t.scope,e=n&&n.getSession();e&&function(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),qt(t,e)}(e),this.J(),n&&n.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i}=e&&e.getOptions()||{},{userAgent:s}=d.navigator||{},o=Ut({release:r,environment:i,...n&&{user:n.getUser()},...s&&{userAgent:s},...t});if(n){const t=n.getSession&&n.getSession();t&&"ok"===t.status&&qt(t,{status:"exited"}),this.endSession(),n.setSession(o)}return o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}J(){const{scope:t,client:n}=this.getStackTop();if(!t)return;const e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}X(t){const{scope:n,client:e}=this.getStackTop();e&&t(e,n)}W(t,...n){const e=zt().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function zt(){return d.__SENTRY__=d.__SENTRY__||{extensions:{},hub:void 0},d}function Wt(t){const n=zt(),e=Kt(n);return Gt(n,t),e}function Jt(){const t=zt();var n;return(n=t)&&n.__SENTRY__&&n.__SENTRY__.hub&&!Kt(t).isOlderThan(4)||Gt(t,new Xt),Kt(t)}function Kt(t){return y("hub",(()=>new Xt),t)}function Gt(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function captureException(t,n){return Jt().captureException(t,{captureContext:n})}function Vt(t){Jt().withScope(t)}function Yt(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function Qt(t,n){return e={sentry_key:t.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}},Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");var e}function Zt(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.K?n.K.sdk:void 0;return e||`${function(t){return`${Yt(t)}${t.projectId}/envelope/`}(t)}?${Qt(t,r)}`}function tn(t,n,e,r){const i=Nt(e),s=t.type||"event";!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=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const o=function(t,n,e,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&{dsn:w(r)},..."transaction"===t.type&&i&&{trace:L({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return Ot(o,[[{type:s},t]])}const nn=[];function en(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;n.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(e)?[...n,...e]:"function"==typeof e?ht(e(n)):n;const i=function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.values(n)}(r),s=i.findIndex((t=>"Debug"===t.name));if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}class rn{__init(){this.G={}}__init2(){this.V=!1}__init3(){this.Y=0}__init4(){this.Z={}}constructor(t){if(rn.prototype.__init.call(this),rn.prototype.__init2.call(this),rn.prototype.__init3.call(this),rn.prototype.__init4.call(this),this.tt=t,t.dsn){this.nt=S(t.dsn);const n=Zt(this.nt,t);this.et=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){if(ft(t))return;let r=n&&n.event_id;return this.rt(this.eventFromException(t,n).then((t=>this.it(t,n,e))).then((t=>{r=t}))),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const s=c(t)?this.eventFromMessage(String(t),n,e):this.eventFromException(t,e);return this.rt(s.then((t=>this.it(t,e,r))).then((t=>{i=t}))),i}captureEvent(t,n,e){if(n&&n.originalException&&ft(n.originalException))return;let r=n&&n.event_id;return this.rt(this.it(t,n,e).then((t=>{r=t}))),r}captureSession(t){this.st()&&("string"!=typeof t.release||(this.sendSession(t),qt(t,{init:!1})))}getDsn(){return this.nt}getOptions(){return this.tt}getTransport(){return this.et}flush(t){const n=this.et;return n?this.ot(t).then((e=>n.flush(t).then((t=>e&&t)))):vt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this.st()&&!this.V&&(this.G=function(t){const n={};return t.forEach((t=>{n[t.name]=t,-1===nn.indexOf(t.name)&&(t.setupOnce(Ht,Jt),nn.push(t.name))})),n}(this.tt.integrations),this.V=!0)}getIntegrationById(t){return this.G[t]}getIntegration(t){try{return this.G[t.id]||null}catch(t){return null}}sendEvent(t,n={}){if(this.nt){let e=tn(t,this.nt,this.tt.K,this.tt.tunnel);for(const t of n.attachments||[])e=Tt(e,It(t,this.tt.transportOptions&&this.tt.transportOptions.textEncoder));this.ct(e)}}sendSession(t){if(this.nt){const n=function(t,n,e,r){const i=Nt(e);return Ot({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:w(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this.nt,this.tt.K,this.tt.tunnel);this.ct(n)}}recordDroppedEvent(t,n,e){if(this.tt.sendClientReports){const e=`${t}:${n}`;this.Z[e]=this.Z[e]+1||1}}ut(t,n){let e=!1,r=!1;const i=n.exception&&n.exception.values;if(i){r=!0;for(const t of i){const n=t.mechanism;if(n&&!1===n.handled){e=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&e)&&(qt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}ot(t){return new gt((n=>{let e=0;const r=setInterval((()=>{0==this.Y?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}st(){return!1!==this.getOptions().enabled&&void 0!==this.nt}_prepareEvent(t,n,e){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions(),s={...t,event_id:t.event_id||n.event_id||st(),timestamp:t.timestamp||kt()};this.ft(s),this.ht(s);let o=e;n.captureContext&&(o=Pt.clone(o).update(n.captureContext));let c=vt(s);if(o&&o.getAttachments){const t=[...n.attachments||[],...o.getAttachments()];t.length&&(n.attachments=t),c=o.applyToEvent(s,n)}return c.then((t=>"number"==typeof r&&r>0?this.lt(t,r,i):t))}lt(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:lt(t.data,n,e)}})))},...t.user&&{user:lt(t.user,n,e)},...t.contexts&&{contexts:lt(t.contexts,n,e)},...t.extra&&{extra:lt(t.extra,n,e)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=lt(t.contexts.trace.data,n,e))),t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=lt(t.data,n,e)),t)))),r}ft(t){const n=this.getOptions(),{environment:e,release:r,dist:i,maxValueLength:s=250}=n;"environment"in t||(t.environment="environment"in n?e:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=x(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=x(o.value,s));const c=t.request;c&&c.url&&(c.url=x(c.url,s))}ht(t){const n=Object.keys(this.G);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}it(t,n={},e){return this.dt(t,n,e).then((t=>t.event_id),(t=>{}))}dt(t,n,e){const r=this.getOptions(),{sampleRate:i}=r;if(!this.st())return mt(new b("SDK not enabled, will not capture event.","log"));const s=on(t),o=sn(t),c=t.type||"error",a=`before send for type \`${c}\``;return o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error",t),mt(new b(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(t,n,e).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",c,t),new b("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return e;const i=function(t,n,e){const{beforeSend:r,beforeSendTransaction:i}=t;if(sn(n)&&r)return r(n,e);if(on(n)&&i)return i(n,e);return n}(r,e,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(f(t))return t.then((t=>{if(!u(t)&&null!==t)throw new b(e);return t}),(t=>{throw new b(`${n} rejected with ${t}`)}));if(!u(t)&&null!==t)throw new b(e);return t}(i,a)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",t.type||"error",t),new b(`${a} returned \`null\`, will not send event.`,"log");const i=e&&e.getSession();!s&&i&&this.ut(i,r);const o=r.transaction_info;if(s&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t,changes:[...o.changes,{source:t,timestamp:r.timestamp,propagations:o.propagations}]}}return this.sendEvent(r,n),r})).then(null,(t=>{if(t instanceof b)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}rt(t){this.Y++,t.then((t=>(this.Y--,t)),(t=>(this.Y--,t)))}ct(t){this.et&&this.nt&&this.et.send(t).then(null,(t=>{}))}yt(){const t=this.Z;return this.Z={},Object.keys(t).map((n=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t[n]}}))}}function sn(t){return void 0===t.type}function on(t){return"transaction"===t.type}function cn(t,n,e=bt(t.bufferSize||30)){let r={};return{send:function(i){const s=[];if(Dt(i,((n,e)=>{const i=Mt(e);if(function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,i)){const r=un(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(n)})),0===s.length)return vt();const o=Ot(i[0],s),c=n=>{Dt(o,((e,r)=>{const i=un(e,r);t.recordDroppedEvent(n,Mt(r),i)}))};return e.add((()=>n({body:At(o,t.textEncoder)}).then((t=>{r=Lt(r,t)}),(t=>{c("network_error")})))).then((t=>t),(t=>{if(t instanceof b)return c("queue_overflow"),vt();throw t}))},flush:t=>e.drain(t)}}function un(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}const an="7.28.0";let fn;class hn{constructor(){hn.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=hn.id}setupOnce(){fn=Function.prototype.toString,Function.prototype.toString=function(...t){const n=A(this)||this;return fn.apply(n,t)}}}hn.__initStatic();const ln=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class dn{static __initStatic(){this.id="InboundFilters"}__init(){this.name=dn.id}constructor(t={}){this.tt=t,dn.prototype.__init.call(this)}setupOnce(t,n){const e=t=>{const e=n();if(e){const n=e.getIntegration(dn);if(n){const r=e.getClient(),i=r?r.getOptions():{},s=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...ln],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(n.tt,i);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,n){if(!n||!n.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{const{type:n="",value:e=""}=t.exception.values&&t.exception.values[0]||{};return[`${e}`,`${n}: ${e}`]}catch(t){return[]}return[]}(t).some((t=>O(t,n)))}(t,n.ignoreErrors))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=pn(t);return!!e&&O(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=pn(t);return!e||O(e,n)}(t,n.allowUrls))return!0;return!1}(t,s)?null:t}}return t};e.id=this.name,t(e)}}function pn(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&""!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(t){return null}}dn.__initStatic();var yn=Object.freeze({__proto__:null,FunctionToString:hn,InboundFilters:dn});const vn=d;let mn=0;function gn(){return mn>0}function bn(){mn++,setTimeout((()=>{mn--}))}function _n(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(A(t))return t}catch(n){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);const i=r.map((t=>_n(t,n)));return t.apply(this,i)}catch(t){throw bn(),Vt((e=>{e.addEventProcessor((t=>(n.mechanism&&(ut(t,void 0,void 0),at(t,n.mechanism)),t.extra={...t.extra,arguments:r},t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}R(sentryWrapped,t),D(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function wn(t,n){const e=Sn(t,n),r={type:n&&n.name,value:xn(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function En(t,n){return{exception:{values:[wn(t,n)]}}}function Sn(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if($n.test(t.message))return 1}return 0}(n);try{return t(e,r)}catch(t){}return[]}const $n=/Minified React error #\d+;/i;function xn(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function kn(t,n,e,r){const i=On(t,n,e&&e.syntheticException||void 0,r);return at(i),i.level="error",e&&e.event_id&&(i.event_id=e.event_id),vt(i)}function jn(t,n,e="info",r,i){const s=Tn(t,n,r&&r.syntheticException||void 0,i);return s.level=e,r&&r.event_id&&(s.event_id=r.event_id),vt(s)}function On(t,n,o,c,f){let h;if(i(n)&&n.error){return En(t,n.error)}if(s(n)||r(n,"DOMException")){const e=n;if("stack"in n)h=En(t,n);else{const n=e.name||(s(e)?"DOMError":"DOMException"),r=e.message?`${n}: ${e.message}`:n;h=Tn(t,r,o,c),ut(h,r)}return"code"in e&&(h.tags={...h.tags,"DOMException.code":`${e.code}`}),h}if(e(n))return En(t,n);if(u(n)||a(n)){return h=function(t,n,e,r){const i=Jt().getClient(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:a(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${N(n)}`}]},extra:{__serialized__:dt(n,s)}};if(e){const n=Sn(t,e);n.length&&(o.exception.values[0].stacktrace={frames:n})}return o}(t,n,o,f),at(h,{synthetic:!0}),h}return h=Tn(t,n,o,c),ut(h,`${n}`,void 0),at(h,{synthetic:!0}),h}function Tn(t,n,e,r){const i={message:n};if(r&&e){const r=Sn(t,e);r.length&&(i.exception={values:[{value:n,stacktrace:{frames:r}}]})}return i}const Dn=1024,Rn="Breadcrumbs";class An{static __initStatic(){this.id=Rn}__init(){this.name=An.id}constructor(t){An.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&G("console",In),this.options.dom&&G("dom",function(t){function n(n){let e,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>Dn&&(i=Dn),"string"==typeof r&&(r=[r]);try{e=n.event.target?m(n.event.target,{keyAttrs:r,maxStringLength:i}):m(n.event,{keyAttrs:r,maxStringLength:i})}catch(t){e=""}0!==e.length&&Jt().addBreadcrumb({category:`ui.${n.name}`,message:e},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&G("xhr",Cn),this.options.fetch&&G("fetch",Mn),this.options.history&&G("history",Nn)}addSentryBreadcrumb(t){this.options.sentry&&Jt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ct(t)},{event:t})}}function In(t){for(let n=0;n{"hidden"===vn.document.visibilityState&&this.vt()}))}eventFromException(t,n){return kn(this.tt.stackParser,t,n,this.tt.attachStacktrace)}eventFromMessage(t,n="info",e){return jn(this.tt.stackParser,t,n,e,this.tt.attachStacktrace)}sendEvent(t,n){!function(t){let n,e=t[0],r=1;for(;re.call(n,...t))),n=void 0)}}([this.getIntegrationById(Rn),"optionalAccess",t=>t.addSentryBreadcrumb,"optionalCall",n=>n(t)]),super.sendEvent(t,n)}_prepareEvent(t,n,e){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,e)}vt(){const t=this.yt();if(0===t.length)return;if(!this.nt)return;const n=Zt(this.nt,this.tt),e=(r=t,Ot((i=this.tt.tunnel&&w(this.nt))?{dsn:i}:{},[[{type:"client_report"},{timestamp:s||kt(),discarded_events:r}]]));var r,i,s;try{const t="[object Navigator]"===Object.prototype.toString.call(vn&&vn.navigator);if(t&&"function"==typeof vn.navigator.sendBeacon&&!this.tt.transportOptions){vn.navigator.sendBeacon.bind(vn.navigator)(n,At(e))}else this.ct(e)}catch(t){}}}let Un;function qn(t,n=function(){if(Un)return Un;if(X(vn.fetch))return Un=vn.fetch.bind(vn);const t=vn.document;let n=vn.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(t){}return Un=n.bind(vn)}()){return cn(t,(function(e){const r={body:e.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:e.body.length<=65536,...t.fetchOptions};try{return n(t.url,r).then((t=>({statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Un=void 0,mt(t)}}))}function Pn(t){return cn(t,(function(n){return new gt(((e,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&e({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const n in t.headers)Object.prototype.hasOwnProperty.call(t.headers,n)&&i.setRequestHeader(n,t.headers[n]);i.send(n.body)}))}))}const Bn="?";function Hn(t,n,e,r){const i={filename:t,function:n,in_app:!0};return void 0!==e&&(i.lineno=e),void 0!==r&&(i.colno=r),i}const Fn=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xn=/\((\S*)(?::(\d+))(?::(\d+))\)/,zn=[30,t=>{const n=Fn.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=Xn.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=re(n[1]||Bn,n[2]);return Hn(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Wn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Jn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Kn=[50,t=>{const n=Wn.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=Jn.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||Bn;return[e,t]=re(e,t),Hn(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],Gn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vn=[40,t=>{const n=Gn.exec(t);return n?Hn(n[2],n[1]||Bn,+n[3],n[4]?+n[4]:void 0):void 0}],Yn=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Qn=[10,t=>{const n=Yn.exec(t);return n?Hn(n[2],n[3]||Bn,+n[1]):void 0}],Zn=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,te=[20,t=>{const n=Zn.exec(t);return n?Hn(n[5],n[3]||n[4]||Bn,+n[1],+n[2]):void 0}],ne=[zn,Kn,Vn],ee=q(...ne),re=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:Bn,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};class ie{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ie.id}__init2(){this.gt={onerror:se,onunhandledrejection:oe}}constructor(t){ie.prototype.__init.call(this),ie.prototype.__init2.call(this),this.tt={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this.tt;for(const n in t){const e=this.gt[n];e&&t[n]&&(e(),this.gt[n]=void 0)}}}function se(){G("error",(t=>{const[n,e,r]=ae();if(!n.getIntegration(ie))return;const{msg:s,url:c,line:u,column:a,error:f}=t;if(gn()||f&&f.__sentry_own_request__)return;const h=void 0===f&&o(s)?function(t,n,e,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=i(t)?t.message:t,c="Error";const u=o.match(s);u&&(c=u[1],o=u[2]);return ce({exception:{values:[{type:c,value:o}]}},n,e,r)}(s,c,u,a):ce(On(e,f||s,void 0,r,!1),c,u,a);h.level="error",ue(n,f,h,"onerror")}))}function oe(){G("unhandledrejection",(t=>{const[n,e,r]=ae();if(!n.getIntegration(ie))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(gn()||i&&i.__sentry_own_request__)return!0;const s=c(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:On(e,i,void 0,r,!0);s.level="error",ue(n,i,s,"onunhandledrejection")}))}function ce(t,n,e,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],c=s[0]=s[0]||{},u=c.stacktrace=c.stacktrace||{},a=u.frames=u.frames||[],f=isNaN(parseInt(r,10))?void 0:r,h=isNaN(parseInt(e,10))?void 0:e,l=o(n)&&n.length>0?n:function(){try{return v.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:f,filename:l,function:"?",in_app:!0,lineno:h}),t}function ue(t,n,e,r){at(e,{handled:!1,type:r}),t.captureEvent(e,{originalException:n})}function ae(){const t=Jt(),n=t.getClient(),e=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,e.stackParser,e.attachStacktrace]}ie.__initStatic();const fe=["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"];class he{static __initStatic(){this.id="TryCatch"}__init(){this.name=he.id}constructor(t){he.prototype.__init.call(this),this.tt={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this.tt.setTimeout&&T(vn,"setTimeout",le),this.tt.setInterval&&T(vn,"setInterval",le),this.tt.requestAnimationFrame&&T(vn,"requestAnimationFrame",de),this.tt.XMLHttpRequest&&"XMLHttpRequest"in vn&&T(XMLHttpRequest.prototype,"send",pe);const t=this.tt.eventTarget;if(t){(Array.isArray(t)?t:fe).forEach(ye)}}}function le(t){return function(...n){const e=n[0];return n[0]=_n(e,{mechanism:{data:{function:B(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function de(t){return function(n){return t.apply(this,[_n(n,{mechanism:{data:{function:"requestAnimationFrame",handler:B(t)},handled:!0,type:"instrument"}})])}}function pe(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&T(e,t,(function(n){const e={mechanism:{data:{function:t,handler:B(n)},handled:!0,type:"instrument"}},r=A(n);return r&&(e.mechanism.data.handler=B(r)),_n(n,e)}))})),t.apply(this,n)}}function ye(t){const n=vn,e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(T(e,"addEventListener",(function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=_n(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:B(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.apply(this,[e,_n(r,{mechanism:{data:{function:"addEventListener",handler:B(r),target:t},handled:!0,type:"instrument"}}),i])}})),T(e,"removeEventListener",(function(t){return function(n,e,r){const i=e;try{const e=i&&i.__sentry_wrapped__;e&&t.call(this,n,e,r)}catch(t){}return t.call(this,n,i,r)}})))}he.__initStatic();class ve{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=ve.id}constructor(t={}){ve.prototype.__init.call(this),this.bt=t.key||"cause",this._t=t.limit||5}setupOnce(){const t=Jt().getClient();t&&Ht(((n,e)=>{const r=Jt().getIntegration(ve);return r?function(t,n,e,r,i){if(!(r.exception&&r.exception.values&&i&&h(i.originalException,Error)))return r;const s=me(t,e,i.originalException,n);return r.exception.values=[...s,...r.exception.values],r}(t.getOptions().stackParser,r.bt,r._t,n,e):n}))}}function me(t,n,e,r,i=[]){if(!h(e[r],Error)||i.length+1>=n)return i;const s=wn(t,e[r]);return me(t,n,e[r],r,[s,...i])}ve.__initStatic();class ge{constructor(){ge.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=ge.id}setupOnce(){Ht((t=>{if(Jt().getIntegration(ge)){if(!vn.navigator&&!vn.location&&!vn.document)return t;const n=t.request&&t.request.url||vn.location&&vn.location.href,{referrer:e}=vn.document||{},{userAgent:r}=vn.navigator||{},i={...n&&{url:n},headers:{...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}}};return{...t,request:i}}return t}))}}ge.__initStatic();class be{constructor(){be.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=be.id}setupOnce(t,n){const e=t=>{const e=n().getIntegration(be);if(e){try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!we(t,n))return!1;if(!_e(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Ee(n),r=Ee(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!we(t,n))return!1;if(!_e(t,n))return!1;return!0}(t,n))return!0;return!1}(t,e.wt))return null}catch(n){return e.wt=t}return e.wt=t}return t};e.id=this.name,t(e)}}function _e(t,n){let e=Se(t),r=Se(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(e=e,r=r,r.length!==e.length)return!1;for(let t=0;t{void 0!==t&&t!==n&&ke(Jt())}))}()},t.lastEventId=function(){return Jt().lastEventId()},t.makeFetchTransport=qn,t.makeMain=Wt,t.makeXHRTransport=Pn,t.onLoad=function(t){t()},t.opera10StackLineParser=Qn,t.opera11StackLineParser=te,t.setContext=function(t,n){Jt().setContext(t,n)},t.setExtra=function(t,n){Jt().setExtra(t,n)},t.setExtras=function(t){Jt().setExtras(t)},t.setTag=function(t,n){Jt().setTag(t,n)},t.setTags=function(t){Jt().setTags(t)},t.setUser=function(t){Jt().setUser(t)},t.showReportDialog=function(t={},n=Jt()){if(!vn.document)return;const{client:e,scope:r}=n.getStackTop(),i=t.dsn||e&&e.getDsn();if(!i)return;r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=n.lastEventId());const s=vn.document.createElement("script");s.async=!0,s.src=function(t,n){const e=S(t),r=`${Yt(e)}embed/error-page/`;let i=`dsn=${w(e)}`;for(const t in n)if("dsn"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(s.onload=t.onLoad);const o=vn.document.head||vn.document.body;o&&o.appendChild(s)},t.startTransaction=function(t,n){return Jt().startTransaction({...t},n)},t.winjsStackLineParser=Vn,t.withScope=Vt,t.wrap=function(t){return _n(t)()},t}({}); //# sourceMappingURL=bundle.min.js.map