import{a as ce}from"/a/statics/assets/chunk-EEWSZVTE.js";import{a as dt,fa as hn,ha as pt}from"/a/statics/assets/chunk-O4US6Y65.js";import{c as lt}from"/a/statics/assets/chunk-PY4JI7SK.js";var ut={};lt(ut,{Breadcrumbs:()=>P,BrowserClient:()=>ge,Dedupe:()=>N,FunctionToString:()=>G,GlobalHandlers:()=>x,HttpContext:()=>R,Hub:()=>$,InboundFilters:()=>k,Integrations:()=>ai,LinkedErrors:()=>v,SDK_VERSION:()=>he,Scope:()=>T,TryCatch:()=>U,WINDOW:()=>d,addBreadcrumb:()=>Wt,addGlobalEventProcessor:()=>K,captureEvent:()=>jt,captureException:()=>Ue,captureMessage:()=>Yt,chromeStackLineParser:()=>fn,close:()=>hr,configureScope:()=>Ht,createTransport:()=>se,defaultIntegrations:()=>mn,defaultStackLineParsers:()=>pn,defaultStackParser:()=>ct,flush:()=>mr,forceLoad:()=>pr,geckoStackLineParser:()=>ln,getCurrentHub:()=>p,getHubFromCarrier:()=>F,init:()=>Ge,lastEventId:()=>dr,makeFetchTransport:()=>st,makeMain:()=>ke,makeXHRTransport:()=>at,onLoad:()=>_r,opera10StackLineParser:()=>Zn,opera11StackLineParser:()=>Qn,setContext:()=>qt,setExtra:()=>Kt,setExtras:()=>zt,setTag:()=>Jt,setTags:()=>Xt,setUser:()=>Vt,showReportDialog:()=>lr,startTransaction:()=>Zt,winjsStackLineParser:()=>dn,withScope:()=>Ae,wrap:()=>gr});var gn=Object.prototype.toString;function Se(t){switch(gn.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return D(t,Error)}}function ue(t,e){return gn.call(t)===`[object ${e}]`}function be(t){return ue(t,"ErrorEvent")}function Me(t){return ue(t,"DOMError")}function _t(t){return ue(t,"DOMException")}function O(t){return ue(t,"String")}function fe(t){return t===null||typeof t!="object"&&typeof t!="function"}function A(t){return ue(t,"Object")}function le(t){return typeof Event<"u"&&D(t,Event)}function mt(t){return typeof Element<"u"&&D(t,Element)}function ht(t){return ue(t,"RegExp")}function te(t){return Boolean(t&&t.then&&typeof t.then=="function")}function gt(t){return A(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Et(t){return typeof t=="number"&&t!==t}function D(t,e){try{return t instanceof e}catch{return!1}}function Ce(t){return t&&t.Math==Math?t:void 0}var S=typeof globalThis=="object"&&Ce(globalThis)||typeof window=="object"&&Ce(window)||typeof self=="object"&&Ce(self)||typeof window=="object"&&Ce(window)||function(){return this}()||{};function j(){return S}function ne(t,e,n){let r=n||S,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}var Sr=j(),br=80;function de(t,e={}){try{let n=t,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,_=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||br;for(;n&&i++<r&&(u=Tr(n,_),!(u==="html"||i>1&&s+o.length*c+u.length>=l));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Tr(t,e){let n=t,r=[],o,i,s,a,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());let u=e&&e.length?e.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(u&&u.length)u.forEach(l=>{r.push(`[${l[0]}="${l[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&O(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);let _=["type","name","title","alt"];for(c=0;c<_.length;c++)s=_[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function yt(){try{return Sr.document.location.href}catch{return""}}var h=class extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};var xr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function vr(t){return t==="http"||t==="https"}function J(t,e=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function En(t){let e=xr.exec(t);if(!e)throw new h(`Invalid Sentry Dsn: ${t}`);let[n,r,o="",i,s="",a]=e.slice(1),c="",u=a,_=u.split("/");if(_.length>1&&(c=_.slice(0,-1).join("/"),u=_.pop()),u){let l=u.match(/^\d+/);l&&(u=l[0])}return yn({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function yn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Rr(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;let{port:e,projectId:n,protocol:r}=t;if(["protocol","publicKey","host","projectId"].forEach(i=>{if(!t[i])throw new h(`Invalid Sentry Dsn: ${i} missing`)}),!n.match(/^\d+$/))throw new h(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!vr(r))throw new h(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(e&&isNaN(parseInt(e,10)))throw new h(`Invalid Sentry Dsn: Invalid port ${e}`);return!0}function Te(t){let e=typeof t=="string"?En(t):yn(t);return Rr(e),e}var Nr="Sentry Logger ",pe=["debug","info","warn","error","log","assert","trace"];function $e(t){if(!("console"in S))return t();let e=S.console,n={};pe.forEach(r=>{let o=e[r]&&e[r].__sentry_original__;r in e&&o&&(n[r]=e[r],e[r]=o)});try{return t()}finally{Object.keys(n).forEach(r=>{e[r]=n[r]})}}function Sn(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?pe.forEach(n=>{e[n]=(...r)=>{t&&$e(()=>{S.console[n](`${Nr}[${n}]:`,...r)})}}):pe.forEach(n=>{e[n]=()=>{}}),e}var f;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?f=ne("logger",Sn):f=Sn();function V(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.substr(0,e)}...`}function Ye(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let o=t[r];try{n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function bn(t,e,n=!1){return O(t)?ht(e)?e.test(t):O(e)?n?t===e:t.includes(e):!1:!1}function xe(t,e=[],n=!1){return e.some(r=>bn(t,r,n))}function E(t,e,n){if(!(e in t))return;let r=t[e],o=n(r);if(typeof o=="function")try{je(o,r)}catch{}t[e]=o}function _e(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function je(t,e){let n=e.prototype||{};t.prototype=e.prototype=n,_e(t,"__sentry_original__",e)}function re(t){return t.__sentry_original__}function bt(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function He(t){if(Se(t))return{message:t.message,name:t.name,stack:t.stack,...xn(t)};if(le(t)){let e={type:t.type,target:Tn(t.target),currentTarget:Tn(t.currentTarget),...xn(t)};return typeof CustomEvent<"u"&&D(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Tn(t){try{return mt(t)?de(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function xn(t){if(typeof t=="object"&&t!==null){let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function Tt(t,e=40){let n=Object.keys(He(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return V(n[0],e);for(let r=n.length;r>0;r--){let o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:V(o,e)}return""}function oe(t){return St(t,new Map)}function St(t,e){if(A(t)){let n=e.get(t);if(n!==void 0)return n;let r={};e.set(t,r);for(let o of Object.keys(t))typeof t[o]<"u"&&(r[o]=St(t[o],e));return r}if(Array.isArray(t)){let n=e.get(t);if(n!==void 0)return n;let r=[];return e.set(t,r),t.forEach(o=>{r.push(St(o,e))}),r}return t}function xt(t){let e,n=t[0],r=1;for(;r<t.length;){let o=t[r],i=t[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(e=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(e,...s)),e=void 0)}return n}var Or=50;function We(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{let o=[];for(let i of n.split(`
`).slice(r)){let s=i.replace(/\(error: (.*)\)/,"$1");for(let a of e){let c=a(s);if(c){o.push(c);break}}}return vn(o)}}function Rt(t){return Array.isArray(t)?We(...t):t}function vn(t){if(!t.length)return[];let e=t,n=e[0].function||"",r=e[e.length-1].function||"";return(n.indexOf("captureMessage")!==-1||n.indexOf("captureException")!==-1)&&(e=e.slice(1)),r.indexOf("sentryWrapped")!==-1&&(e=e.slice(0,-1)),e.slice(0,Or).map(o=>({...o,filename:o.filename||e[0].filename,function:o.function||"?"})).reverse()}var vt="<anonymous>";function w(t){try{return!t||typeof t!="function"?vt:t.name||vt}catch{return vt}}var ie=j();function qe(){if(!("fetch"in ie))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ve(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Nt(){if(!qe())return!1;if(ve(ie.fetch))return!0;let t=!1,e=ie.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=ve(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Ot(){let t=ie.chrome,e=t&&t.app&&t.app.runtime,n="history"in ie&&!!ie.history.pushState&&!!ie.history.replaceState;return!e&&n}var m=j(),Re={},Rn={};function Dr(t){if(!Rn[t])switch(Rn[t]=!0,t){case"console":wr();break;case"dom":Gr();break;case"xhr":Ur();break;case"fetch":Ir();break;case"history":Ar();break;case"error":Mr();break;case"unhandledrejection":Cr();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("unknown instrumentation type:",t);return}}function I(t,e){Re[t]=Re[t]||[],Re[t].push(e),Dr(t)}function B(t,e){if(!(!t||!Re[t]))for(let n of Re[t]||[])try{n(e)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${w(n)}
Error:`,r)}}function wr(){"console"in m&&pe.forEach(function(t){t in m.console&&E(m.console,t,function(e){return function(...n){B("console",{args:n,level:t}),e&&e.apply(m.console,n)}})})}function Ir(){Nt()&&E(m,"fetch",function(t){return function(...e){let n={args:e,fetchData:{method:kr(e),url:Pr(e)},startTimestamp:Date.now()};return B("fetch",{...n}),t.apply(m,e).then(r=>(B("fetch",{...n,endTimestamp:Date.now(),response:r}),r),r=>{throw B("fetch",{...n,endTimestamp:Date.now(),error:r}),r})}})}function kr(t=[]){return"Request"in m&&D(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function Pr(t=[]){return typeof t[0]=="string"?t[0]:"Request"in m&&D(t[0],Request)?t[0].url:String(t[0])}function Ur(){if(!("XMLHttpRequest"in m))return;let t=XMLHttpRequest.prototype;E(t,"open",function(e){return function(...n){let r=this,o=n[1],i=r.__sentry_xhr__={method:O(n[0])?n[0].toUpperCase():n[0],url:n[1]};O(o)&&i.method==="POST"&&o.match(/sentry_key/)&&(r.__sentry_own_request__=!0);let s=function(){if(r.readyState===4){try{i.status_code=r.status}catch{}B("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?E(r,"onreadystatechange",function(a){return function(...c){return s(),a.apply(r,c)}}):r.addEventListener("readystatechange",s),e.apply(r,n)}}),E(t,"send",function(e){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),B("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}var ze;function Ar(){if(!Ot())return;let t=m.onpopstate;m.onpopstate=function(...n){let r=m.location.href,o=ze;if(ze=r,B("history",{from:o,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){let o=r.length>2?r[2]:void 0;if(o){let i=ze,s=String(o);ze=s,B("history",{from:i,to:s})}return n.apply(this,r)}}E(m.history,"pushState",e),E(m.history,"replaceState",e)}var Br=1e3,Ke,Xe;function Lr(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function Fr(t){if(t.type!=="keypress")return!1;try{let e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function Nn(t,e=!1){return n=>{if(!n||Xe===n||Fr(n))return;let r=n.type==="keypress"?"input":n.type;Ke===void 0?(t({event:n,name:r,global:e}),Xe=n):Lr(Xe,n)&&(t({event:n,name:r,global:e}),Xe=n),clearTimeout(Ke),Ke=m.setTimeout(()=>{Ke=void 0},Br)}}function Gr(){if(!("document"in m))return;let t=B.bind(null,"dom"),e=Nn(t,!0);m.document.addEventListener("click",e,!1),m.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let r=m[n]&&m[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(E(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},_=u[i]=u[i]||{refCount:0};if(!_.handler){let l=Nn(t);_.handler=l,o.call(this,i,l,a)}_.refCount++}catch{}return o.call(this,i,s,a)}}),E(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__||{},_=u[i];_&&(_.refCount--,_.refCount<=0&&(o.call(this,i,_.handler,a),_.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,a)}}))})}var Dt=null;function Mr(){Dt=m.onerror,m.onerror=function(t,e,n,r,o){return B("error",{column:r,error:o,line:n,msg:t,url:e}),Dt?Dt.apply(this,arguments):!1}}var wt=null;function Cr(){wt=m.onunhandledrejection,m.onunhandledrejection=function(t){return B("unhandledrejection",t),wt?wt.apply(this,arguments):!0}}function On(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let i=0;i<e.length;i++)if(e[i]===o)return!0;return e.push(o),!1}function r(o){if(t)e.delete(o);else for(let i=0;i<e.length;i++)if(e[i]===o){e.splice(i,1);break}}return[n,r]}function M(){let t=S,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");let n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Dn(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function C(t){let{message:e,event_id:n}=t;if(e)return e;let r=Dn(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function me(t,e,n){let r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function H(t,e){let n=Dn(t);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data};n.mechanism.data=i}}function Je(t){if(t&&t.__sentry_captured__)return!0;try{_e(t,"__sentry_captured__",!0)}catch{}return!1}function Ne(t){return Array.isArray(t)?t:[t]}function wn(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Oe(){return!wn()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function It(t,e){return t.require(e)}function L(t,e=1/0,n=1/0){try{return Ve("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ze(t,e=3,n=100*1024){let r=L(t,e);return jr(r)>n?Ze(t,e-1,n):r}function Ve(t,e,n=1/0,r=1/0,o=On()){let[i,s]=o;if(e===null||["number","boolean","string"].includes(typeof e)&&!Et(e))return e;let a=$r(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;if(n===0)return a.replace("object ","");if(i(e))return"[Circular ~]";let c=e;if(c&&typeof c.toJSON=="function")try{let y=c.toJSON();return Ve("",y,n-1,r,o)}catch{}let u=Array.isArray(e)?[]:{},_=0,l=He(e);for(let y in l){if(!Object.prototype.hasOwnProperty.call(l,y))continue;if(_>=r){u[y]="[MaxProperties ~]";break}let ee=l[y];u[y]=Ve(y,ee,n-1,r,o),_++}return s(e),u}function $r(t,e){try{return t==="domain"&&e&&typeof e=="object"&&e._events?"[Domain]":t==="domainEmitter"?"[DomainEmitter]":typeof window<"u"&&e===window?"[Global]":typeof window<"u"&&e===window?"[Window]":typeof document<"u"&&e===document?"[Document]":gt(e)?"[SyntheticEvent]":typeof e=="number"&&e!==e?"[NaN]":e===void 0?"[undefined]":typeof e=="function"?`[Function: ${w(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${Object.getPrototypeOf(e).constructor.name}]`}catch(n){return`**non-serializable** (${n})`}}function Yr(t){return~-encodeURI(t).split(/%..|./).length}function jr(t){return Yr(JSON.stringify(t))}var W;(function(t){t[t.PENDING=0]="PENDING";let n=1;t[t.RESOLVED=n]="RESOLVED";let r=2;t[t.REJECTED=r]="REJECTED"})(W||(W={}));function b(t){return new g(e=>{e(t)})}function Z(t){return new g((e,n)=>{n(t)})}var g=class{__init(){this._state=W.PENDING}__init2(){this._handlers=[]}constructor(e){g.prototype.__init.call(this),g.prototype.__init2.call(this),g.prototype.__init3.call(this),g.prototype.__init4.call(this),g.prototype.__init5.call(this),g.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new g((r,o)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new g((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{if(i){r(o);return}n(o)})})}__init3(){this._resolve=e=>{this._setResult(W.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(W.REJECTED,e)}}__init5(){this._setResult=(e,n)=>{if(this._state===W.PENDING){if(te(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===W.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===W.RESOLVED&&n[1](this._value),this._state===W.REJECTED&&n[2](this._value),n[0]=!0)})}}};function kt(t){let e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]}function o(s){if(!n())return Z(new h("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new g((a,c)=>{let u=e.length;if(!u)return a(!0);let _=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(l=>{b(l).then(()=>{--u||(clearTimeout(_),a(!0))},c)})})}return{$:e,add:o,drain:i}}function De(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}var In=["fatal","error","warning","log","info","debug"];function Pt(t){return t==="warn"?"warning":In.includes(t)?t:"log"}var Pn=j(),At={nowSeconds:()=>Date.now()/1e3};function Hr(){let{performance:t}=Pn;if(!t||!t.now)return;let e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function Wr(){try{return It(module,"perf_hooks").performance}catch{return}}var Ut=Oe()?Wr():Hr(),kn=Ut===void 0?At:{nowSeconds:()=>(Ut.timeOrigin+Ut.now())/1e3},q=At.nowSeconds.bind(At),Qe=kn.nowSeconds.bind(kn);var we,qr=(()=>{let{performance:t}=Pn;if(!t||!t.now){we="none";return}let e=3600*1e3,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=o<e,s=t.timing&&t.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):e,u=c<e;return i||u?o<=c?(we="timeOrigin",t.timeOrigin):(we="navigationStart",s):(we="dateNow",r)})();function Q(t,e=[]){return[t,e]}function Lt(t,e){let[n,r]=t;return[n,[...r,e]]}function et(t,e){t[1].forEach(r=>{let o=r[0].type;e(r,o)})}function Bt(t,e){return(e||new TextEncoder).encode(t)}function Ie(t,e){let[n,r]=t,o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[Bt(o,e),s]:o.push(typeof s=="string"?Bt(s,e):s)}for(let s of r){let[a,c]=s;if(i(`
${JSON.stringify(a)}
`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(L(c))}i(u)}}return typeof o=="string"?o:zr(o)}function zr(t){let e=t.reduce((o,i)=>o+i.length,0),n=new Uint8Array(e),r=0;for(let o of t)n.set(o,r),r+=o.length;return n}function Ft(t,e){let n=typeof t.data=="string"?Bt(t.data,e):t.data;return[oe({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}var Kr={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile"};function tt(t){return Kr[t]}function Gt(t,e,n){let r=[{type:"client_report"},{timestamp:n||q(),discarded_events:t}];return Q(e?{dsn:e}:{},[r])}function Un(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function An(t,e){return t[e]||t.all||0}function Mt(t,e,n=Date.now()){return An(t,e)>n}function Ct(t,{statusCode:e,headers:n},r=Date.now()){let o={...t},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u]=a.split(":",2),_=parseInt(c,10),l=(isNaN(_)?60:_)*1e3;if(!u)o.all=r+l;else for(let y of u.split(";"))o[y]=r+l}else s?o.all=r+Un(s,r):e===429&&(o.all=r+60*1e3);return o}function Bn(t){let e=Qe(),n={sid:M(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Xr(n)};return t&&z(n,t),n}function z(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Qe(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:M()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ln(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),z(t,n)}function Xr(t){return oe({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}var Jr=100,T=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){let n=new T;return e&&(n._breadcrumbs=[...e._breadcrumbs],n._tags={...e._tags},n._extra={...e._extra},n._contexts={...e._contexts},n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=[...e._eventProcessors],n._requestSession=e._requestSession,n._attachments=[...e._attachments],n._sdkProcessingMetadata={...e._sdkProcessingMetadata}),n}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&z(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){let n=e(this);return n instanceof T?n:this}return e instanceof T?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):A(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Jr;if(r<=0)return this;let o={timestamp:q(),...e};return this._breadcrumbs=[...this._breadcrumbs,o].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,n={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let r=this._span.transaction&&this._span.transaction.name;r&&(e.tags={transaction:r,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Fn(),...this._eventProcessors],e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,n,r,o=0){return new g((i,s)=>{let a=e[o];if(n===null||typeof a!="function")i(n);else{let c=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&c===null&&f.log(`Event processor "${a.id}" dropped event`),te(c)?c.then(u=>this._notifyEventProcessors(e,u,r,o+1).then(i)).then(null,s):this._notifyEventProcessors(e,c,r,o+1).then(i).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Ne(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function Fn(){return ne("globalEventProcessors",()=>[])}function K(t){Fn().push(t)}var $t=4,Vr=100,$=class{__init(){this._stack=[{}]}constructor(e,n=new T,r=$t){this._version=r,$.prototype.__init.call(this),this.getStackTop().scope=n,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let n=this.getStackTop();n.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=T.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let n=this.pushScope();try{e(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:M(),o=new Error("Sentry syntheticException");return this._withClient((i,s)=>{i.captureException(e,{originalException:e,syntheticException:o,...n,event_id:r},s)}),r}captureMessage(e,n,r){let o=this._lastEventId=r&&r.event_id?r.event_id:M(),i=new Error(e);return this._withClient((s,a)=>{s.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:o},a)}),o}captureEvent(e,n){let r=n&&n.event_id?n.event_id:M();return e.type!=="transaction"&&(this._lastEventId=r),this._withClient((o,i)=>{o.captureEvent(e,{...n,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){let{scope:r,client:o}=this.getStackTop();if(!r||!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Vr}=o.getOptions&&o.getOptions()||{};if(s<=0)return;let c={timestamp:q(),...e},u=i?$e(()=>i(c,n)):c;u!==null&&r.addBreadcrumb(u,s)}setUser(e){let n=this.getScope();n&&n.setUser(e)}setTags(e){let n=this.getScope();n&&n.setTags(e)}setExtras(e){let n=this.getScope();n&&n.setExtras(e)}setTag(e,n){let r=this.getScope();r&&r.setTag(e,n)}setExtra(e,n){let r=this.getScope();r&&r.setExtra(e,n)}setContext(e,n){let r=this.getScope();r&&r.setContext(e,n)}configureScope(e){let{scope:n,client:r}=this.getStackTop();n&&r&&e(n)}run(e){let n=ke(this);try{e(this)}finally{ke(n)}}getIntegration(e){let n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){return this._callExtensionMethod("startTransaction",e,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop(),n=e&&e.scope,r=n&&n.getSession();r&&Ln(r),this._sendSessionUpdate(),n&&n.setSession()}startSession(e){let{scope:n,client:r}=this.getStackTop(),{release:o,environment:i}=r&&r.getOptions()||{},{userAgent:s}=S.navigator||{},a=Bn({release:o,environment:i,...n&&{user:n.getUser()},...s&&{userAgent:s},...e});if(n){let c=n.getSession&&n.getSession();c&&c.status==="ok"&&z(c,{status:"exited"}),this.endSession(),n.setSession(a)}return a}shouldSendDefaultPii(){let e=this.getClient(),n=e&&e.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:n}=this.getStackTop();if(!e)return;let r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(e){let{scope:n,client:r}=this.getStackTop();r&&e(r,n)}_callExtensionMethod(e,...n){let o=Pe().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function Pe(){return S.__SENTRY__=S.__SENTRY__||{extensions:{},hub:void 0},S}function ke(t){let e=Pe(),n=F(e);return nt(e,t),n}function p(){let t=Pe();return(!Gn(t)||F(t).isOlderThan($t))&&nt(t,new $),Oe()?Zr(t):F(t)}function Zr(t){try{let e=Pe().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return F(t);if(!Gn(n)||F(n).isOlderThan($t)){let r=F(t).getStackTop();nt(n,new $(r.client,T.clone(r.scope)))}return F(n)}catch{return F(t)}}function Gn(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function F(t){return ne("hub",()=>new $,t)}function nt(t,e){if(!t)return!1;let n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function Ue(t,e){return p().captureException(t,{captureContext:e})}function Yt(t,e){let n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return p().captureMessage(t,n,r)}function jt(t,e){return p().captureEvent(t,e)}function Ht(t){p().configureScope(t)}function Wt(t){p().addBreadcrumb(t)}function qt(t,e){p().setContext(t,e)}function zt(t){p().setExtras(t)}function Kt(t,e){p().setExtra(t,e)}function Xt(t){p().setTags(t)}function Jt(t,e){p().setTag(t,e)}function Vt(t){p().setUser(t)}function Ae(t){p().withScope(t)}function Zt(t,e){return p().startTransaction({...t},e)}var Qr="7";function Mn(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function eo(t){return`${Mn(t)}${t.projectId}/envelope/`}function to(t,e){return bt({sentry_key:t.publicKey,sentry_version:Qr,...e&&{sentry_client:`${e.name}/${e.version}`}})}function Be(t,e={}){let n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${eo(t)}?${to(t,r)}`}function Qt(t,e){let n=Te(t),r=`${Mn(n)}embed/error-page/`,o=`dsn=${J(n)}`;for(let i in e)if(i!=="dsn")if(i==="user"){let s=e.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`;return`${r}?${o}`}function Cn(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function no(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function $n(t,e,n,r){let o=Cn(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&{dsn:J(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t];return Q(i,[s])}function Yn(t,e,n,r){let o=Cn(n),i=t.type||"event";no(t,n&&n.sdk);let s=ro(t,o,r,e);return delete t.sdkProcessingMetadata,Q(s,[[{type:i},t]])}function ro(t,e,n,r){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&{dsn:J(r)},...t.type==="transaction"&&o&&{trace:oe({...o})}}}var jn=[];function oo(t){let e={};return t.forEach(n=>{let{name:r}=n,o=e[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function en(t){let e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=Ne(n(e)):r=e;let o=oo(r),i=o.findIndex(s=>s.name==="Debug");if(i!==-1){let[s]=o.splice(i,1);o.push(s)}return o}function Hn(t){let e={};return t.forEach(n=>{e[n.name]=n,jn.indexOf(n.name)===-1&&(n.setupOnce(K,p),jn.push(n.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Integration installed: ${n.name}`))}),e}var Wn="Not capturing exception because it's already been captured.",Y=class{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(Y.prototype.__init.call(this),Y.prototype.__init2.call(this),Y.prototype.__init3.call(this),Y.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=Te(e.dsn);let n=Be(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("No DSN provided, client will not do anything.")}captureException(e,n,r){if(Je(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(Wn);return}let o=n&&n.event_id;return this._process(this.eventFromException(e,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(e,n,r,o){let i=r&&r.event_id,s=fe(e)?this.eventFromMessage(String(e),n,r):this.eventFromException(e,r);return this._process(s.then(a=>this._captureEvent(a,r,o)).then(a=>{i=a})),i}captureEvent(e,n,r){if(n&&n.originalException&&Je(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(Wn);return}let o=n&&n.event_id;return this._process(this._captureEvent(e,n,r).then(i=>{o=i})),o}captureSession(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),z(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){let n=this._transport;return n?this._isClientDoneProcessing(e).then(r=>n.flush(e).then(o=>r&&o)):b(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=Hn(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,n={}){if(this._dsn){let r=Yn(e,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=Lt(r,Ft(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){let n=$n(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){let o=`${e}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}_updateSessionFromEvent(e,n){let r=!1,o=!1,i=n.exception&&n.exception.values;if(i){o=!0;for(let c of i){let u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}let s=e.status==="ok";(s&&e.errors===0||s&&r)&&(z(e,{...r&&{status:"crashed"},errors:e.errors||Number(o||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new g(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,e&&r>=e&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(e,n,r){let{normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=this.getOptions(),s={...e,event_id:e.event_id||n.event_id||M(),timestamp:e.timestamp||q()};this._applyClientOptions(s),this._applyIntegrationsMetadata(s);let a=r;n.captureContext&&(a=T.clone(a).update(n.captureContext));let c=b(s);if(a&&a.getAttachments){let u=[...n.attachments||[],...a.getAttachments()];u.length&&(n.attachments=u),c=a.applyToEvent(s,n)}return c.then(u=>typeof o=="number"&&o>0?this._normalizeEvent(u,o,i):u)}_normalizeEvent(e,n,r){if(!e)return null;let o={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:L(i.data,n,r)}}))},...e.user&&{user:L(e.user,n,r)},...e.contexts&&{contexts:L(e.contexts,n,r)},...e.extra&&{extra:L(e.extra,n,r)}};return e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=L(e.contexts.trace.data,n,r))),e.spans&&(o.spans=e.spans.map(i=>(i.data&&(i.data=L(i.data,n,r)),i))),o}_applyClientOptions(e){let n=this.getOptions(),{environment:r,release:o,dist:i,maxValueLength:s=250}=n;"environment"in e||(e.environment="environment"in n?r:"production"),e.release===void 0&&o!==void 0&&(e.release=o),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=V(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=V(a.value,s));let c=e.request;c&&c.url&&(c.url=V(c.url,s))}_applyIntegrationsMetadata(e){let n=Object.keys(this._integrations);n.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...n])}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(o=>o.event_id,o=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let i=o;i.logLevel==="log"?f.log(i.message):f.warn(i)}})}_processEvent(e,n,r){let o=this.getOptions(),{sampleRate:i}=o;if(!this._isEnabled())return Z(new h("SDK not enabled, will not capture event.","log"));let s=e.type==="transaction",a=s?"beforeSendTransaction":"beforeSend",c=o[a];return!s&&typeof i=="number"&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error",e),Z(new h(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(e,n,r).then(u=>{if(u===null)throw this.recordDroppedEvent("event_processor",e.type||"error",e),new h("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0||!c)return u;let l=c(u,n);return io(l,a)}).then(u=>{if(u===null)throw this.recordDroppedEvent("before_send",e.type||"error",e),new h(`\`${a}\` returned \`null\`, will not send event.`,"log");let _=r&&r.getSession();!s&&_&&this._updateSessionFromEvent(_,u);let l=u.transaction_info;if(s&&l&&u.transaction!==e.transaction){let y="custom";u.transaction_info={...l,source:y,changes:[...l.changes,{source:y,timestamp:u.timestamp,propagations:l.propagations}]}}return this.sendEvent(u,n),u}).then(null,u=>{throw u instanceof h?u:(this.captureException(u,{data:{__sentry__:!0},originalException:u}),new h(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${u}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Error while sending event:",n)}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{let[r,o]=n.split(":");return{reason:r,category:o,quantity:e[n]}})}};function io(t,e){let n=`\`${e}\` must return \`null\` or a valid event.`;if(te(t))return t.then(r=>{if(!A(r)&&r!==null)throw new h(n);return r},r=>{throw new h(`\`${e}\` rejected with ${r}`)});if(!A(t)&&t!==null)throw new h(n);return t}function tn(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?f.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let n=p(),r=n.getScope();r&&r.update(e.initialScope);let o=new t(e);n.bindClient(o)}var so=30;function se(t,e,n=kt(t.bufferSize||so)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(et(s,(l,y)=>{let ee=tt(y);if(Mt(r,ee)){let ft=qn(l,y);t.recordDroppedEvent("ratelimit_backoff",ee,ft)}else a.push(l)}),a.length===0)return b();let c=Q(s[0],a),u=l=>{et(c,(y,ee)=>{let ft=qn(y,ee);t.recordDroppedEvent(l,tt(ee),ft)})},_=()=>e({body:Ie(c,t.textEncoder)}).then(l=>{l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Ct(r,l)},l=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Failed while sending event:",l),u("network_error")});return n.add(_).then(l=>l,l=>{if(l instanceof h)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Skipped sending event because buffer is full."),u("queue_overflow"),b();throw l})}return{send:i,flush:o}}function qn(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}var he="7.25.0";var ae={};lt(ae,{FunctionToString:()=>G,InboundFilters:()=>k});var zn,G=class{constructor(){G.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=G.id}setupOnce(){zn=Function.prototype.toString,Function.prototype.toString=function(...e){let n=re(this)||this;return zn.apply(n,e)}}};G.__initStatic();var ao=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],k=class{static __initStatic(){this.id="InboundFilters"}__init(){this.name=k.id}constructor(e={}){this._options=e,k.prototype.__init.call(this)}setupOnce(e,n){let r=o=>{let i=n();if(i){let s=i.getIntegration(k);if(s){let a=i.getClient(),c=a?a.getOptions():{},u=co(s._options,c);return uo(o,u)?null:o}}return o};r.id=this.name,e(r)}};k.__initStatic();function co(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...ao],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function uo(t,e){return e.ignoreInternal&&mo(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to being internal Sentry Error.
Event: ${C(t)}`),!0):fo(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${C(t)}`),!0):lo(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${C(t)}.
Url: ${rt(t)}`),!0):po(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${C(t)}.
Url: ${rt(t)}`),!0)}function fo(t,e){return!e||!e.length?!1:_o(t).some(n=>xe(n,e))}function lo(t,e){if(!e||!e.length)return!1;let n=rt(t);return n?xe(n,e):!1}function po(t,e){if(!e||!e.length)return!0;let n=rt(t);return n?xe(n,e):!0}function _o(t){if(t.message)return[t.message];if(t.exception)try{let{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(`Cannot extract message for event ${C(t)}`),[]}return[]}function mo(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function ho(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function rt(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?ho(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(`Cannot extract url for event ${C(t)}`),null}}var d=S,nn=0;function rn(){return nn>0}function go(){nn++,setTimeout(()=>{nn--})}function X(t,e={},n){if(typeof t!="function")return t;try{let o=t.__sentry_wrapped__;if(o)return o;if(re(t))return t}catch{return t}let r=function(){let o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let i=o.map(s=>X(s,e));return t.apply(this,i)}catch(i){throw go(),Ae(s=>{s.addEventProcessor(a=>(e.mechanism&&(me(a,void 0,void 0),H(a,e.mechanism)),a.extra={...a.extra,arguments:o},a)),Ue(i)}),i}};try{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}je(r,t),_e(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function an(t,e){let n=cn(t,e),r={type:e&&e.name,value:bo(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Eo(t,e,n,r){let i=p().getClient(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:le(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Tt(e)}`}]},extra:{__serialized__:Ze(e,s)}};if(n){let c=cn(t,n);c.length&&(a.exception.values[0].stacktrace={frames:c})}return a}function on(t,e){return{exception:{values:[an(t,e)]}}}function cn(t,e){let n=e.stacktrace||e.stack||"",r=So(e);try{return t(n,r)}catch{}return[]}var yo=/Minified React error #\d+;/i;function So(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(yo.test(t.message))return 1}return 0}function bo(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Kn(t,e,n,r){let o=n&&n.syntheticException||void 0,i=ot(t,e,o,r);return H(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),b(i)}function Xn(t,e,n="info",r,o){let i=r&&r.syntheticException||void 0,s=sn(t,e,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),b(s)}function ot(t,e,n,r,o){let i;if(be(e)&&e.error)return on(t,e.error);if(Me(e)||_t(e)){let s=e;if("stack"in e)i=on(t,e);else{let a=s.name||(Me(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=sn(t,c,n,r),me(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Se(e)?on(t,e):A(e)||le(e)?(i=Eo(t,e,n,o),H(i,{synthetic:!0}),i):(i=sn(t,e,n,r),me(i,`${e}`,void 0),H(i,{synthetic:!0}),i)}function sn(t,e,n,r){let o={message:e};if(r&&n){let i=cn(t,n);i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]})}return o}var it=1024,un="Breadcrumbs",P=class{static __initStatic(){this.id=un}__init(){this.name=P.id}constructor(e){P.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&I("console",xo),this.options.dom&&I("dom",To(this.options.dom)),this.options.xhr&&I("xhr",vo),this.options.fetch&&I("fetch",Ro),this.options.history&&I("history",No)}addSentryBreadcrumb(e){this.options.sentry&&p().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:C(e)},{event:e})}};P.__initStatic();function To(t){function e(n){let r,o=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>it&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`\`dom.maxStringLength\` cannot exceed ${it}, but a value of ${i} was configured. Sentry will use ${it} instead.`),i=it),typeof o=="string"&&(o=[o]);try{r=n.event.target?de(n.event.target,{keyAttrs:o,maxStringLength:i}):de(n.event,{keyAttrs:o,maxStringLength:i})}catch{r="<unknown>"}r.length!==0&&p().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return e}function xo(t){for(let n=0;n<t.args.length;n++)if(t.args[n]==="ref=Ref<"){t.args[n+1]="viewRef";break}let e={category:"console",data:{arguments:t.args,logger:"console"},level:Pt(t.level),message:Ye(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${Ye(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1);else return;p().addBreadcrumb(e,{input:t.args,level:t.level})}function vo(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;let{method:e,url:n,status_code:r,body:o}=t.xhr.__sentry_xhr__||{};p().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:o});return}}function Ro(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"||(t.error?p().addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args}):p().addBreadcrumb({category:"fetch",data:{...t.fetchData,status_code:t.response.status},type:"http"},{input:t.args,response:t.response})))}function No(t){let e=t.from,n=t.to,r=De(d.location.href),o=De(e),i=De(n);o.path||(o=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(e=o.relative),p().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}var ge=class extends Y{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:he}],version:he},super(e),e.sendClientReports&&d.document&&d.document.addEventListener("visibilitychange",()=>{d.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Kn(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Xn(this._options.stackParser,e,n,r,this._options.attachStacktrace)}sendEvent(e,n){let r=this.getIntegrationById(un);xt([r,"optionalAccess",o=>o.addSentryBreadcrumb,"optionalCall",o=>o(e)]),super.sendEvent(e,n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("Sending outcomes:",e);let n=Be(this._dsn,this._options),r=Gt(e,this._options.tunnel&&J(this._dsn));try{Object.prototype.toString.call(d&&d.navigator)==="[object Navigator]"&&typeof d.navigator.sendBeacon=="function"&&!this._options.transportOptions?d.navigator.sendBeacon.bind(d.navigator)(n,Ie(r)):this._sendEnvelope(r)}catch(o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(o)}}};var Le;function Jn(){if(Le)return Le;if(ve(d.fetch))return Le=d.fetch.bind(d);let t=d.document,e=d.fetch;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Le=e.bind(d)}function Vn(){Le=void 0}function st(t,e=Jn()){function n(r){let o={body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r.body.length<=65536,...t.fetchOptions};try{return e(t.url,o).then(i=>({statusCode:i.status,headers:{"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")}}))}catch(i){return Vn(),Z(i)}}return se(t,n)}var Oo=4;function at(t){function e(n){return new g((r,o)=>{let i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===Oo&&r({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(let s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&i.setRequestHeader(s,t.headers[s]);i.send(n.body)})}return se(t,e)}var Ee="?",Do=10,wo=20,Io=30,ko=40,Po=50;function Fe(t,e,n,r){let o={filename:t,function:e,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var Uo=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ao=/\((\S*)(?::(\d+))(?::(\d+))\)/,Bo=t=>{let e=Uo.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){let i=Ao.exec(e[2]);i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3])}let[r,o]=er(e[1]||Ee,e[2]);return Fe(o,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},fn=[Io,Bo],Lo=/^\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,Fo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Go=t=>{let e=Lo.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let i=Fo.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let r=e[3],o=e[1]||Ee;return[o,r]=er(o,r),Fe(r,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},ln=[Po,Go],Mo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Co=t=>{let e=Mo.exec(t);return e?Fe(e[2],e[1]||Ee,+e[3],e[4]?+e[4]:void 0):void 0},dn=[ko,Co],$o=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Yo=t=>{let e=$o.exec(t);return e?Fe(e[2],e[3]||Ee,+e[1]):void 0},Zn=[Do,Yo],jo=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Ho=t=>{let e=jo.exec(t);return e?Fe(e[5],e[3]||e[4]||Ee,+e[1],+e[2]):void 0},Qn=[wo,Ho],pn=[fn,ln,dn],ct=We(...pn),er=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Ee,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var _n={};lt(_n,{Breadcrumbs:()=>P,Dedupe:()=>N,GlobalHandlers:()=>x,HttpContext:()=>R,LinkedErrors:()=>v,TryCatch:()=>U});var x=class{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=x.id}__init2(){this._installFunc={onerror:Wo,onunhandledrejection:qo}}constructor(e){x.prototype.__init.call(this),x.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let n in e){let r=this._installFunc[n];r&&e[n]&&(Xo(n),r(),this._installFunc[n]=void 0)}}};x.__initStatic();function Wo(){I("error",t=>{let[e,n,r]=rr();if(!e.getIntegration(x))return;let{msg:o,url:i,line:s,column:a,error:c}=t;if(rn()||c&&c.__sentry_own_request__)return;let u=c===void 0&&O(o)?Ko(o,i,s,a):tr(ot(n,c||o,void 0,r,!1),i,s,a);u.level="error",nr(e,c,u,"onerror")})}function qo(){I("unhandledrejection",t=>{let[e,n,r]=rr();if(!e.getIntegration(x))return;let o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch{}if(rn()||o&&o.__sentry_own_request__)return!0;let i=fe(o)?zo(o):ot(n,o,void 0,r,!0);i.level="error",nr(e,o,i,"onunhandledrejection")})}function zo(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Ko(t,e,n,r){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=be(t)?t.message:t,s="Error",a=i.match(o);return a&&(s=a[1],i=a[2]),tr({exception:{values:[{type:s,value:i}]}},e,n,r)}function tr(t,e,n,r){let o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,_=isNaN(parseInt(n,10))?void 0:n,l=O(e)&&e.length>0?e:yt();return c.length===0&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:_}),t}function Xo(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Global Handler attached: ${t}`)}function nr(t,e,n,r){H(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function rr(){let t=p(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}var Jo=["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"],U=class{static __initStatic(){this.id="TryCatch"}__init(){this.name=U.id}constructor(e){U.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&E(d,"setTimeout",or),this._options.setInterval&&E(d,"setInterval",or),this._options.requestAnimationFrame&&E(d,"requestAnimationFrame",Vo),this._options.XMLHttpRequest&&"XMLHttpRequest"in d&&E(XMLHttpRequest.prototype,"send",Zo);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:Jo).forEach(Qo)}};U.__initStatic();function or(t){return function(...e){let n=e[0];return e[0]=X(n,{mechanism:{data:{function:w(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Vo(t){return function(e){return t.apply(this,[X(e,{mechanism:{data:{function:"requestAnimationFrame",handler:w(t)},handled:!0,type:"instrument"}})])}}function Zo(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&E(n,o,function(i){let s={mechanism:{data:{function:o,handler:w(i)},handled:!0,type:"instrument"}},a=re(i);return a&&(s.mechanism.data.handler=w(a)),X(i,s)})}),t.apply(this,e)}}function Qo(t){let e=d,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(E(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=X(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:w(i),target:t},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[o,X(i,{mechanism:{data:{function:"addEventListener",handler:w(i),target:t},handled:!0,type:"instrument"}}),s])}}),E(n,"removeEventListener",function(r){return function(o,i,s){let a=i;try{let c=a&&a.__sentry_wrapped__;c&&r.call(this,o,c,s)}catch{}return r.call(this,o,a,s)}}))}var ei="cause",ti=5,v=class{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=v.id}constructor(e={}){v.prototype.__init.call(this),this._key=e.key||ei,this._limit=e.limit||ti}setupOnce(){let e=p().getClient();e&&K((n,r)=>{let o=p().getIntegration(v);return o?ni(e.getOptions().stackParser,o._key,o._limit,n,r):n})}};v.__initStatic();function ni(t,e,n,r,o){if(!r.exception||!r.exception.values||!o||!D(o.originalException,Error))return r;let i=ir(t,n,o.originalException,e);return r.exception.values=[...i,...r.exception.values],r}function ir(t,e,n,r,o=[]){if(!D(n[r],Error)||o.length+1>=e)return o;let i=an(t,n[r]);return ir(t,e,n[r],r,[i,...o])}var R=class{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=R.id}setupOnce(){K(e=>{if(p().getIntegration(R)){if(!d.navigator&&!d.location&&!d.document)return e;let n=e.request&&e.request.url||d.location&&d.location.href,{referrer:r}=d.document||{},{userAgent:o}=d.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}},s={...n&&{url:n},headers:i};return{...e,request:s}}return e})}};R.__initStatic();var N=class{constructor(){N.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=N.id}setupOnce(e,n){let r=o=>{let i=n().getIntegration(N);if(i){try{if(ri(o,i._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return i._previousEvent=o}return i._previousEvent=o}return o};r.id=this.name,e(r)}};N.__initStatic();function ri(t,e){return e?!!(oi(t,e)||ii(t,e)):!1}function oi(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ur(t,e)||!cr(t,e))}function ii(t,e){let n=sr(e),r=sr(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ur(t,e)||!cr(t,e))}function cr(t,e){let n=ar(t),r=ar(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function ur(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function sr(t){return t.exception&&t.exception.values&&t.exception.values[0]}function ar(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}var mn=[new ae.InboundFilters,new ae.FunctionToString,new U,new P,new x,new v,new N,new R];function Ge(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=mn),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),d.SENTRY_RELEASE&&d.SENTRY_RELEASE.id&&(t.release=d.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);let e={...t,stackParser:Rt(t.stackParser||ct),integrations:en(t),transport:t.transport||(qe()?st:at)};tn(ge,e),t.autoSessionTracking&&si()}function lr(t={},e=p()){if(!d.document){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Global document not defined in showReportDialog call");return}let{client:n,scope:r}=e.getStackTop(),o=t.dsn||n&&n.getDsn();if(!o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("DSN not configured for showReportDialog call");return}r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());let i=d.document.createElement("script");i.async=!0,i.src=Qt(o,t),t.onLoad&&(i.onload=t.onLoad);let s=d.document.head||d.document.body;s?s.appendChild(i):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Not injecting report dialog. No injection point found in HTML")}function dr(){return p().lastEventId()}function pr(){}function _r(t){t()}function mr(t){let e=p().getClient();return e?e.flush(t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Cannot flush events. No client defined."),b(!1))}function hr(t){let e=p().getClient();return e?e.close(t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Cannot flush events and disable SDK. No client defined."),b(!1))}function gr(t){return X(t)()}function fr(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function si(){if(typeof d.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let t=p();t.captureSession&&(fr(t),I("history",({from:e,to:n})=>{e===void 0||e===n||fr(p())}))}var Er={};d.Sentry&&d.Sentry.Integrations&&(Er=d.Sentry.Integrations);var ai={...Er,...ae,..._n};var yr=100,ci=.1,ye=new Map;function ui(t){var n,r;let e=[];for(let o=t.length-1;o>=0;o--){let i=t[o];if(i.function==="softAssertFail"||i.function==="softAssert"||i.function==="switchImpossibleCase")e.push(i.function);else{e.push(...dt([i.function,(n=i.lineno)==null?void 0:n.toString(),(r=i.colno)==null?void 0:r.toString()]));break}}return e.join("-")}function fi(t){var n,r,o;let e=(r=(n=t==null?void 0:t.exception)==null?void 0:n.values)==null?void 0:r[0];return e?dt([e.type,e.value,ui(((o=e.stacktrace)==null?void 0:o.frames)??[])]).join("-"):null}function li(t){let e=ye.get(t)??1;if(Math.random()>e)return!1;if(ye.set(t,e*ci),ye.size>yr){let r=Array.from(ye.entries()).sort(([o,i],[s,a])=>i-a);ye.clear();for(let[o,i]of r.slice(0,yr/2))ye.set(o,i)}return!0}var di=()=>{switch(ce.nodeEnv){case"production":{Ge({dsn:"https://a437538a8c974d11baa006431d21f8f5@sentry.io/1143855",environment:ce.heightEnv,release:ce.commitSHA??"",allowUrls:[/https?:\/\/([a-z0-9_|-]+\.)*height\.app/,/https?:\/\/([a-z0-9_|-]+\.)*heightstaging\.com/],ignoreErrors:["TypeError: Failed to fetch","TypeError: cancelled","TypeError: The network connection was lost.",/ResizeObserver loop.*/,"NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node."],beforeSend:t=>{if(window.sentryDisabled)return null;try{let e=fi(t);return e?li(e)?t:null:t}catch{return t}}}),self.Sentry=ut,pt.info("Sentry initialized");break}case"development":{ce.sentryEnableDevEvents&&(Ge({dsn:"https://a437538a8c974d11baa006431d21f8f5@sentry.io/1143855",environment:"dev",release:"development"}),self.Sentry=ut,pt.info("Sentry initialized"));break}case"test":break;default:hn(ce.nodeEnv)}};di();
//# sourceMappingURL=/a/statics/entrypoints/frontend/bootstrap/sentryBootstrap.js.map
