Viewing File: /usr/local/cpanel/base/frontend/meridian/_assets/meridian-shell/assets/index.js
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WhatsNewDialog.js","./rolldown-runtime.js","./src.js","./src2.js","./module5.js","./module3.js","./module2.js","./module.js","./module4.js","./ForcedPasswordResetPage.js"])))=>i.map(i=>d[i]);
import{n as e,r as t}from"./rolldown-runtime.js";import{$ as n,$n as r,$t as i,A as a,An as o,At as s,B as c,Bn as l,Bt as u,C as d,Cn as f,Ct as p,D as m,Dn as h,Dr as g,Dt as _,E as v,En as y,Er as b,Et as x,F as S,Fn as C,Ft as w,G as ee,Gt as T,H as te,Hn as E,Ht as ne,I as re,In as D,It as ie,J as ae,Jn as oe,Jt as se,K as ce,Kn as le,Kt as ue,Ln as de,Lt as fe,M as pe,Mn as me,Mt as he,N as ge,Nn as _e,Nt as ve,O as ye,On as be,Or as xe,Ot as Se,P as Ce,Pn as we,Pt as Te,Q as Ee,Qn as De,Qt as Oe,R as ke,Rn as Ae,Rt as je,S as Me,Sn as Ne,St as Pe,T as Fe,Tr as Ie,Tt as Le,U as Re,Un as ze,Ut as Be,V as Ve,Vn as He,Vt as Ue,W as We,Wn as Ge,Wt as Ke,X as qe,Xn as Je,Xt as Ye,Y as Xe,Yn as Ze,Yt as Qe,Z as $e,Zn as et,Zt as tt,_n as nt,_r as rt,_t as it,an as at,ar as ot,at as st,bn as ct,br as lt,bt as ut,c as dt,cn as ft,cr as pt,ct as mt,dn as ht,dr as gt,dt as _t,en as vt,er as yt,et as bt,fn as xt,fr as St,ft as Ct,gn as wt,gr as Tt,gt as Et,hn as Dt,hr as Ot,ht as kt,i as At,in as jt,ir as Mt,it as Nt,j as Pt,jn as Ft,jt as It,kn as Lt,kr as Rt,kt as zt,ln as Bt,lr as Vt,lt as Ht,mn as Ut,mr as Wt,mt as Gt,n as Kt,nn as qt,nr as Jt,nt as Yt,on as Xt,or as Zt,ot as Qt,pn as $t,pr as en,pt as tn,q as nn,qt as rn,r as an,rn as on,rr as sn,rt as cn,s as ln,sn as un,sr as dn,st as fn,t as pn,tn as mn,tr as hn,tt as gn,un as _n,ur as vn,ut as yn,vn as bn,vr as xn,vt as Sn,w as Cn,wn,wr as Tn,wt as En,x as Dn,xn as On,xr as kn,xt as An,yn as jn,yr as Mn,yt as Nn,z as Pn,zn as Fn,zt as In}from"./src.js";import{$ as Ln,A as Rn,Ct as zn,D as Bn,Dt as Vn,E as Hn,Et as Un,F as Wn,G as Gn,H as Kn,I as qn,J as Jn,K as Yn,L as Xn,M as Zn,N as Qn,O as $n,Ot as O,P as er,Q as k,R as tr,S as nr,St as A,T as rr,Tt as ir,U as ar,V as or,W as sr,X as j,Y as cr,Z as lr,_ as ur,_t as dr,a as fr,at as pr,b as mr,bt as hr,c as gr,ct as _r,d as vr,dt as M,et as N,f as yr,ft as br,g as xr,gt as Sr,h as Cr,ht as wr,i as Tr,it as Er,j as Dr,k as Or,kt as kr,l as Ar,lt as jr,m as Mr,mt as Nr,n as Pr,nt as Fr,o as Ir,ot as P,p as Lr,pt as Rr,q as zr,r as Br,rt as Vr,s as Hr,st as Ur,t as Wr,tt as Gr,u as Kr,ut as qr,v as Jr,vt as Yr,w as Xr,wt as Zr,x as Qr,xt as $r,y as ei,yt as ti,z as ni}from"./src2.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var F=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,I=globalThis,ri=`10.66.0`;function ii(){return ai(I),I}function ai(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.66.0`,t[ri]=t[`10.66.0`]||{}}function oi(e,t,n=I){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[ri]=r[`10.66.0`]||{};return i[e]||(i[e]=t())}var si=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],ci=`Sentry Logger `,li={};function ui(e){if(!(`console`in I))return e();let t=I.console,n={},r=Object.keys(li);r.forEach(e=>{let r=li[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function di(){vi().enabled=!0}function fi(){vi().enabled=!1}function pi(){return vi().enabled}function mi(...e){_i(`log`,...e)}function hi(...e){_i(`warn`,...e)}function gi(...e){_i(`error`,...e)}function _i(e,...t){F&&pi()&&ui(()=>{I.console[e](`${ci}[${e}]:`,...t)})}function vi(){return F?oi(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var L={enable:di,disable:fi,isEnabled:pi,log:mi,warn:hi,error:gi},yi=50,bi=/\(error: (.*)\)/,xi=/captureMessage|captureException/;function Si(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=bi.test(n)?n.replace(bi,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=yi+r)break}}return wi(i.slice(r))}}function Ci(e){return Array.isArray(e)?Si(...e):e}function wi(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Ti(t).function||``)&&t.pop(),t.reverse(),xi.test(Ti(t).function||``)&&(t.pop(),xi.test(Ti(t).function||``)&&t.pop()),t.slice(0,yi).map(e=>({...e,filename:e.filename||Ti(t).filename,function:e.function||`?`}))}function Ti(e){return e[e.length-1]||{}}var Ei=`<anonymous>`;function Di(e){try{return!e||typeof e!=`function`?Ei:e.name||Ei}catch{return Ei}}function Oi(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var ki={},Ai={};function ji(e,t){return ki[e]=ki[e]||[],ki[e].push(t),()=>{let n=ki[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function Mi(e,t){if(!Ai[e]){Ai[e]=!0;try{t()}catch(t){F&&L.error(`Error while instrumenting ${e}`,t)}}}function Ni(e,t){let n=e&&ki[e];if(n)for(let r of n)try{r(t)}catch(t){F&&L.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${Di(r)}
Error:`,t)}}var Pi=null;function Fi(e){let t=`error`;ji(t,e),Mi(t,Ii)}function Ii(){Pi=I.onerror,I.onerror=function(e,t,n,r,i){return Ni(`error`,{column:r,error:i,line:n,msg:e,url:t}),Pi?Pi.apply(this,arguments):!1},I.onerror.__SENTRY_INSTRUMENTED__=!0}var Li=null;function Ri(e){let t=`unhandledrejection`;ji(t,e),Mi(t,zi)}function zi(){Li=I.onunhandledrejection,I.onunhandledrejection=function(e){return Ni(`unhandledrejection`,e),!Li||Li.apply(this,arguments)},I.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Bi=Object.prototype.toString;function Vi(e){switch(Bi.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return ea(e,Error)}}function Hi(e,t){return Bi.call(e)===`[object ${t}]`}function Ui(e){return Hi(e,`ErrorEvent`)}function Wi(e){return Hi(e,`DOMError`)}function Gi(e){return Hi(e,`DOMException`)}function Ki(e){return Hi(e,`String`)}function qi(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Ji(e){return e===null||qi(e)||typeof e!=`object`&&typeof e!=`function`}function Yi(e){return Hi(e,`Object`)}function Xi(e){return typeof e==`object`&&!!e}function Zi(e){return typeof Event<`u`&&ea(e,Event)}function Qi(e){return Hi(e,`RegExp`)}function $i(e){return!!(e?.then&&typeof e.then==`function`)}function ea(e,t){try{return e instanceof t}catch{return!1}}function ta(e){return typeof Request<`u`&&ea(e,Request)}function na(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&ra(i,r);try{e[t]=i}catch{F&&L.log(`Failed to replace method "${t}" in object`,e)}}function R(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{F&&L.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function ra(e,t){try{e.prototype=t.prototype=t.prototype||{},R(e,`__sentry_original__`,t)}catch{}}function ia(e){return e.__sentry_original__}function aa(e){if(Vi(e))return{message:e.message,name:e.name,stack:e.stack,...oa(e)};if(Zi(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...oa(e)}}return e}function oa(e){return Xi(e)?Object.fromEntries(Object.entries(e)):{}}function sa(e){let t=Object.keys(aa(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var ca;function la(e){if(ca!==void 0)return ca?ca(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=I;return t in n&&typeof n[t]==`function`?(ca=n[t],ca(e)):(ca=null,e())}function ua(){return la(()=>Math.random())}function da(){return la(()=>Date.now())}var fa=Symbol.for(`sentry.skipNormalization`),pa=Symbol.for(`sentry.overrideNormalizationDepth`);function ma(e){return!!e[fa]}function ha(e){let t=e[pa];return typeof t==`number`?t:void 0}var ga;function _a(e){ga=e}function va(e,t=100,n=1/0){try{return ba(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ya(e,t=3,n=102400){let r=va(e,t);return wa(r)>n?ya(e,t-1,n):r}function ba(e,t,n=1/0,r=1/0,i=Ta()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=xa(e,t);if(!s.startsWith(`[object `))return s;if(ma(t))return t;let c=ha(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return ba(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=aa(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=ba(e,t,l-1,r,i),f++}return o(t),d}function xa(e,t){try{if(ga){let e=ga(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${Di(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Sa(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Sa(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Ca(e){return~-encodeURI(e).split(/%..|./).length}function wa(e){return Ca(JSON.stringify(e))}function Ta(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Ea(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Da(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];Ji(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(xa(void 0,r))}return n.join(t)}function Oa(e,t,n=!1){return Ki(e)?Qi(t)?t.test(e):Ki(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function ka(e,t=[],n=!1){for(let r of t)if(Oa(e,r,n))return!0;return!1}function Aa(){let e=I;return e.crypto||e.msCrypto}var ja;function Ma(){return ua()*16}function Na(e=Aa()){try{if(e?.randomUUID)return la(()=>e.randomUUID()).replace(/-/g,``)}catch{}return ja||=`10000000100040008000100000000000`,ja.replace(/[018]/g,e=>(e^(Ma()&15)>>e/4).toString(16))}function Pa(e){return e.exception?.values?.[0]}function Fa(e){let{message:t,event_id:n}=e;if(t)return t;let r=Pa(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Ia(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function La(e,t){let n=Pa(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Ra(e){if(za(e))return!0;try{R(e,`__sentry_captured__`,!0)}catch{}return!1}function za(e){try{return e.__sentry_captured__}catch{}}var Ba=1e3;function Va(){return da()/Ba}function Ha(){let{performance:e}=I;if(!e?.now||!e.timeOrigin)return Va;let t=e.timeOrigin;return()=>(t+la(()=>e.now()))/Ba}var Ua;function z(){return(Ua??=Ha())()}var Wa=null;function Ga(){let{performance:e}=I;if(!e?.now)return;let t=3e5,n=la(()=>e.now()),r=da(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function B(){return Wa===null&&(Wa=Ga()),Wa}function Ka(e){let t=z(),n={sid:Na(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>Ya(n)};return e&&qa(n,e),n}function qa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||z(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Na()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ja(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),qa(e,n)}function Ya(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Xa(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Xa(r[e],t[e],n-1));return r}function Za(){return Na()}function Qa(){return Na().substring(16)}function $a(e){try{let t=I.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function eo(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var to=`_sentrySpan`;function no(e,t){t?R(e,to,$a(t)):delete e[to]}function ro(e){return eo(e[to])}var io=100,ao=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Za(),sampleRand:ua()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,no(t,ro(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&qa(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Yi(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,no(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Za(),sampleRand:ua()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:io;if(n<=0)return this;let r={timestamp:Va(),...e,message:e.message?Ea(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ro(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Xa(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Na();if(!this._client)return F&&L.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Na();if(!this._client)return F&&L.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||Na();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(F&&L.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function oo(){return oi(`defaultCurrentScope`,()=>new ao)}function so(){return oi(`defaultIsolationScope`,()=>new ao)}var co=e=>e instanceof Promise&&!e[lo],lo=Symbol(`chained PromiseLike`),uo=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return co(r)&&co(e)?r:fo(e,r)},fo=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[lo]:!0}),t},po=class{constructor(e,t){let n;n=e||new ao;let r;r=t||new ao,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return $i(n)?uo(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function mo(){let e=ai(ii());return e.stack=e.stack||new po(oo(),so())}function ho(e){return mo().withScope(e)}function go(e,t){let n=mo();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function _o(e){return mo().withScope(()=>e(mo().getIsolationScope()))}function vo(){return{withIsolationScope:_o,withScope:ho,withSetScope:go,withSetIsolationScope:(e,t)=>_o(t),getCurrentScope:()=>mo().getScope(),getIsolationScope:()=>mo().getIsolationScope()}}function yo(e){let t=ai(e);return t.acs?t.acs:vo()}function bo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function xo(e,t){let{value:n,unit:r}=bo(e)?e:{value:e,unit:void 0},i=Co(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function So(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=xo(i,t);e&&(n[r]=e)}return n}function Co(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function wo(){return!1}function V(){return yo(ii()).getCurrentScope()}function To(){return yo(ii()).getIsolationScope()}function Eo(){return oi(`globalScope`,()=>new ao)}function Do(...e){let t=yo(ii());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function H(){return V().getClient()}function Oo(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||Qa()};return n&&(i.parent_span_id=n),i}var ko=`sentry.source`,Ao=`sentry.sample_rate`,jo=`sentry.previous_trace_sample_rate`,Mo=`sentry.op`,U=`sentry.origin`,No=`sentry.idle_span_finish_reason`,Po=`sentry.measurement_unit`,Fo=`sentry.measurement_value`,Io=`sentry.custom_span_name`,Lo=`sentry.profile_id`,Ro=`sentry.exclusive_time`,zo=`url.full`,Bo=`sentry.link.type`,Vo=`gen_ai.conversation.id`;function Ho(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Uo(e,t){e.setAttribute(`http.response.status_code`,t);let n=Ho(t);n.message!==`unknown_error`&&e.setStatus(n)}var Wo=`_sentryScope`,Go=`_sentryIsolationScope`,Ko=Symbol.for(`sentry.otelSourceInference`),qo=Symbol.for(`sentry.otelSourceExplicitlySet`),Jo=Symbol.for(`sentry.tracerProviderSpan`);function Yo(e,t,n){e&&(R(e,Go,$a(n)),R(e,Wo,t))}function Xo(e){let t=e;return{scope:t[Wo],isolationScope:eo(t[Go])}}function Zo(e){return e[Ko]===!0}function Qo(e){R(e,qo,!0)}function $o(e){return e[Jo]===!0}var es=`sentry-`;function ts(e){let t=rs(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function ns(e){if(e)return as(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${es}${t}`]=n),e),{}))}function rs(e){if(!(!e||!Ki(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=is(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):is(e)}function is(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function as(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(F&&L.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var os=/^o(\d+)\./,ss=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function cs(e){return e===`http`||e===`https`}function ls(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function us(e){let t=ss.exec(e);if(!t){ui(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return ds({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function ds(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function fs(e){if(!F)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>!e[t]&&(L.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?cs(r)?t&&isNaN(parseInt(t,10))?(L.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(L.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(L.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ps(e){return e.match(os)?.[1]}function ms(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=ps(n)),r}function hs(e){let t=typeof e==`string`?us(e):ds(e);if(!(!t||!fs(t)))return t}function gs(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var _s=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function vs(e){if(!e)return;let t=e.match(_s);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function ys(e,t){let n=vs(e),r=ts(t);if(!n?.traceId)return{traceId:Za(),sampleRand:ua()};let i=Ss(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function bs(e=Za(),t=Qa(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function xs(e=Za(),t=Qa(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function Ss(e,t){let n=gs(t?.sample_rand);if(n!==void 0)return n;let r=gs(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?ua()*r:r+ua()*(1-r):ua()}var Cs=!1;function ws(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=W(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Ts(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:W(e).parent_span_id,a=Xo(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Qa():t,trace_id:n}}function Es(e){let{traceId:t,spanId:n}=e.spanContext();return bs(t,n,Ls(e))}function Ds(e){let{traceId:t,spanId:n}=e.spanContext();return xs(t,n,Ls(e))}function Os(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function ks(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function As(e){return typeof e==`number`?js(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?js(e.getTime()):z()}function js(e){return e>9999999999?e/1e3:e}function W(e){if(Is(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Fs(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Ns(e),start_timestamp:As(i),timestamp:As(o)||void 0,status:Rs(s),op:r[Mo],origin:r[U],links:Os(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Ms(e){if(Is(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Fs(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Ns(e),start_timestamp:As(i),end_timestamp:As(o),is_segment:e===Ks(e),status:zs(s),attributes:Bs(r,s),links:ks(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===Ks(e)}}function Ns(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function Ps(e){return{...e,attributes:So(e.attributes),links:e.links?.map(e=>({...e,attributes:So(e.attributes)}))}}function Fs(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Is(e){return typeof e.getSpanJSON==`function`}function Ls(e){let{traceFlags:t}=e.spanContext();return t===1}function Rs(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function zs(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function Bs(e,t){let n=zs(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var Vs=`_sentryChildSpans`,Hs=`_sentryRootSpan`;function Us(e,t){R(t,Hs,e[Hs]||e),e[Vs]?e[Vs].add(t):R(e,Vs,new Set([t]))}function Ws(e,t){e[Vs]&&e[Vs].delete(t)}function Gs(e){let t=new Set;function n(e){if(!t.has(e)&&Ls(e)){t.add(e);let r=e[Vs]?Array.from(e[Vs]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var G=Ks;function Ks(e){return e[Hs]||e}function qs(){let e=yo(ii());return e.getActiveSpan?e.getActiveSpan():ro(V())}function Js(){Cs||=(ui(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}var Ys=!1;function Xs(){if(Ys)return;function e(){let e=qs(),t=e&&G(e);if(t){let e=`internal_error`;F&&L.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}Ys=!0,Fi(e),Ri(e)}function Zs(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||H()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Qs(e){L.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function $s(e,t){if(!t?.length)return!1;for(let n of t){if(nc(n)){if(e.description&&Oa(e.description,n))return F&&Qs(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&Oa(e.description,n.name),i=!n.op||e.op&&Oa(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>ec(e.attributes?.[t],n));if(r&&i&&a)return F&&Qs(e),!0}return!1}function ec(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?Oa(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function tc(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function nc(e){return typeof e==`string`||e instanceof RegExp}var rc=Symbol.for(`sentry.nonRecordingSpan`),ic=class{constructor(e={}){this._traceId=e.traceId||Za(),this._spanId=e.spanId||Qa(),this.dropReason=e.dropReason,R(this,rc,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function ac(e){return!!e&&e[rc]===!0}var oc=`sentry.segment.name`,sc=`sentry.transaction`,cc=`production`,lc=`_frozenDsc`;function uc(e,t){R(e,lc,t)}function dc(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:ms(t)};return t.emit(`createDsc`,i),i}function fc(e,t){let n=t.getPropagationContext();return n.dsc||dc(n.traceId,e)}function pc(e){let t=H();if(!t)return{};let n=G(e),r=W(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[lc];if(c)return s(c);let l=ac(n),u=l&&n.dropReason===`ignored`;if(l&&(!Zs(t.getOptions())||u)){let e=Xo(n).scope;if(e){let n={...fc(t,e)};return u&&(n.sampled=`false`),s(n)}}let d=a?.get(`sentry.dsc`),f=d&&ts(d);if(f)return s(f);let p=dc(e.spanContext().traceId,t),m=i[`sentry.source`]??i[`sentry.span.source`],h=r.description;return m!==`url`&&h&&(p.transaction=h),Zs()&&(p.sampled=String(Ls(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??Xo(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function mc(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function hc(e,t=[]){return[e,t]}function gc(e,t){let[n,r]=e;return[n,[...r,t]]}function _c(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function vc(e,t){return _c(e,(e,n)=>t.includes(n))}function yc(e){let t=ai(I);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function bc(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[yc(r),e]:r.push(typeof e==`string`?yc(e):e)}for(let e of n){let[t,n]=e;if(i(`
${JSON.stringify(t)}
`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(va(n))}i(e)}}return typeof r==`string`?r:xc(r)}function xc(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Sc(e){return[{type:`span`},e]}function Cc(e){let t=typeof e.data==`string`?yc(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var wc={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Tc(e){return e in wc}function Ec(e){return Tc(e)?wc[e]:e}function Dc(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Oc(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(da()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ls(r)},...i&&{trace:i}}}function kc(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Ac(e,t,n,r){let i=Dc(n);return hc({sent_at:new Date(da()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ls(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function jc(e,t,n,r){let i=Dc(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;kc(e,n?.sdk);let o=Oc(e,i,r,t);return delete e.sdkProcessingMetadata,hc(o,[[{type:a},e]])}function Mc(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=pc(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(da()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:ls(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=W(e);return!$s({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=W(e);return(mc(s)?t:s(t))||(Js(),t)}:W,f=[];for(let e of l){let t=d(e);t&&f.push(Sc(t))}return hc(o,f)}function Nc(e){if(!F)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=W(e),{spanId:i}=e.spanContext(),a=Ls(e),o=G(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=W(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}L.log(`${c}
${l.join(`
`)}`)}function Pc(e){if(!F)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=W(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${G(e)===e?`root `:``}span "${t}" with ID ${r}`;L.log(i)}function Fc(e,t,n,r=qs()){let i=r&&G(r);i&&(F&&L.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Fo]:t,[Po]:n}))}function Ic(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Po],i=n[Fo];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Lc(){return ai(ii()).segmentSpanCaptureStrategy}function Rc(e){return e.getOptions().traceLifecycle===`stream`}var zc=1e3,Bc=class{constructor(e={}){this._traceId=e.traceId||Za(),this._spanId=e.spanId||Qa(),this._startTime=e.startTimestamp||z(),this._links=e.links,this._attributes={},this.setAttributes({[U]:`manual`,[Mo]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e===`sentry.source`&&t!==void 0&&Zo(this)&&Qo(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=As(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,Zo(this)||this.setAttribute(ko,`custom`),this)}end(e){if(this._endTime){this._frozen=$o(this);return}this._endTime=As(e),Pc(this),this._onSpanEnded(),this._frozen=$o(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Mo],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Rs(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[U],profile_id:this._attributes[Lo],exclusive_time:this._attributes[Ro],measurements:Ic(this._events),is_segment:this._isStandaloneSpan&&G(this)===this||void 0,segment_id:this._isStandaloneSpan?G(this).spanContext().spanId:void 0,links:Os(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===G(this),status:zs(this._status),attributes:Bs(this._attributes,this._status),links:ks(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;F&&L.log(`[Tracing] Adding an event to span:`,e);let r=Vc(t)?t:n||z(),i=Vc(t)?{}:t||{},a={name:e,time:As(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=H();e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this));let t=G(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?Wc(Mc([this],e)):(F&&L.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}if(!n){let e=Lc();if(e){let n=Xo(this).scope||V();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&Rc(e)){e.emit(`afterSegmentSpanEnd`,this);return}let r=Xo(this).scope||V(),i=Lc();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!Hc(W(this)))return;this._name||=(F&&L.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=Xo(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of Gs(this)){if(t===this||Uc(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=W(t);Hc(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[ko];delete this._attributes[Io];let o=!1;i.forEach(e=>{delete e.data[Io],e.op?.startsWith(`gen_ai.`)&&(o=!0)});let s={contexts:{trace:ws(this)},spans:i.length>zc?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,zc):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:pc(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},c=Ic(this._events);return c&&Object.keys(c).length&&(F&&L.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(c,void 0,2)),s.measurements=c),s}};function Vc(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Hc(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Uc(e){return e instanceof Bc&&e.isStandaloneSpan()}function Wc(e){let t=H();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Gc(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return Kc(i,t,n,r)}function Kc(e,t,n,r){return $i(e)?uo(e,e=>{n(),r(e)},e=>{t(e),n()}):(n(),r(e),e)}function qc(e,t,n){if(!Zs(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=gs(i);if(a===void 0)return F&&L.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return F&&L.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||F&&L.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Jc=`__SENTRY_SUPPRESS_TRACING__`;function Yc(e,t){let n=rl();if(n.startSpan)return n.startSpan(e,t);let r=nl(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return Do(s,()=>sl(a)(()=>{let n=V(),o=ol(n,a),s=H(),c=e.onlyIfParent&&!o?el(n,s):tl({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return(!ll(c)||!o)&&no(n,c),Gc(()=>t(c),()=>{let{status:e}=W(c);c.isRecording()&&(!e||e===`ok`)&&c.setStatus({code:2,message:`internal_error`})},()=>{c.end()})}))}function Xc(e){let t=rl();return t.startInactiveSpan?t.startInactiveSpan(e):Zc(e)}function Zc(e){let t=nl(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>Do(e.scope,t):r===void 0?e=>e():e=>Qc(r,e))(()=>{let i=V(),a=ol(i,r),o=H();return e.onlyIfParent&&!a?el(i,o):tl({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}function Qc(e,t){let n=rl();return n.withActiveSpan?n.withActiveSpan(e,t):Do(n=>(no(n,e||void 0),t(n)))}function $c(e=V()){let t=rl();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[Jc]===!0}function el(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new ic({traceId:e.getPropagationContext().traceId});return Yo(n,e,To()),n}function tl({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=To();if(!Zs()){let t={...i.getPropagationContext(),...r.getPropagationContext()},a=new ic({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&Us(e,a),Yo(a,r,i),a}let a=H();if(cl(a,t)){$c(r)||a?.recordDroppedEvent(`ignored`,`span`);let t=new ic({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&Us(e,t),Yo(t,r,i),t}let o;if(e&&!n)o=al(e,r,t,i),Us(e,o);else if(e){let n=pc(e),{traceId:a,spanId:s}=e.spanContext(),c=Ls(e);o=il({traceId:a,parentSpanId:s,...t},r,i,c),uc(o,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};o=il({traceId:e,parentSpanId:a,...t},r,i,s),n&&uc(o,n)}return Nc(o),o}function nl(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=As(e.startTime),delete n.startTime,n}return t}function rl(){return yo(ii())}function il(e,t,n,r){let i=H(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=$c(t),[f,p,m]=d?[!1]:qc(a,{name:o,parentSampled:c,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:gs(u.dsc?.sample_rate)},u.sampleRand),h=new Bc({...e,attributes:{[ko]:`custom`,[Ao]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(F&&L.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,Rc(i)?`span`:`transaction`)),Yo(h,t,n),i&&i.emit(`spanStart`,h),h}function al(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=$c(t),s=!o&&Ls(e),c=s?new Bc({...n,parentSpanId:i,traceId:a,sampled:s}):new ic({traceId:a});Us(e,c),Yo(c,t,r);let l=H();return l?(Rc(l)&&ac(c)&&(ac(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),n.endTimestamp&&(l.emit(`spanEnd`,c),l.emit(`afterSpanEnd`,c)),c):c}function ol(e,t){if(t)return t;if(t===null)return;let n=ro(e);if(!n)return;let r=H();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?G(n):n}function sl(e){return e===void 0?e=>e():t=>Qc(e,t)}function cl(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Rc(e)||!n?.length?!1:$s({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function ll(e){return ac(e)&&e.dropReason===`ignored`}var ul={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},dl=`heartbeatFailed`,fl=`idleTimeout`,pl=`finalTimeout`,ml=`externalFinish`;function hl(e,t={}){let n=new Map,r=!1,i,a=ml,o=!t.disableAutoFinish,s=[],{idleTimeout:c=ul.idleTimeout,finalTimeout:l=ul.finalTimeout,childSpanTimeout:u=ul.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,p=H(),m=V();if(!p||!Zs()){let e=new ic({traceId:m.getPropagationContext().traceId});return Yo(e,m,To()),e}let h=qs(),g=gl(e);g.end=new Proxy(g.end,{apply(e,t,n){if(d&&d(g),ac(t))return;let[r,...i]=n,a=As(r||z()),o=Gs(g).filter(e=>e!==g),s=W(g);if(!o.length||!f)return S(a),Reflect.apply(e,t,[a,...i]);let c=p.getOptions().ignoreSpans,u=o?.reduce((e,t)=>{let n=W(t);return!n.timestamp||c&&$s({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),m=s.start_timestamp,h=Math.min(m?m+l/1e3:1/0,Math.max(m||-1/0,Math.min(a,u||1/0)));return S(h),Reflect.apply(e,t,[h,...i])}});function _(){i&&=(clearTimeout(i),void 0)}function v(e){_(),i=setTimeout(()=>{!r&&n.size===0&&o&&(a=fl,g.end(e))},c)}function y(e){i=setTimeout(()=>{!r&&o&&(a=dl,g.end(e))},u)}function b(e){_(),n.set(e,!0),y(z()+u/1e3)}function x(e){n.has(e)&&n.delete(e),n.size===0&&v(z()+c/1e3)}function S(e){r=!0,n.clear(),s.forEach(e=>e()),no(m,h);let t=W(g),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||g.setAttribute(No,a);let o=t.status;(!o||o===`unknown`)&&g.setStatus({code:1}),L.log(`[Tracing] Idle span "${t.op}" finished`);let u=Gs(g).filter(e=>e!==g),d=0;u.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),F&&L.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=W(t),i=r<=e,a=(l+c)/1e3,o=n-r<=a;if(F){let e=JSON.stringify(t,void 0,2);i?o||L.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):L.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(Ws(g,t),d++)}),d>0&&g.setAttribute(`sentry.idle_span_discarded_spans`,d)}return s.push(p.on(`spanStart`,e=>{r||e===g||W(e).timestamp||e instanceof Bc&&e.isStandaloneSpan()||Gs(g).includes(e)&&b(e.spanContext().spanId)})),s.push(p.on(`spanEnd`,e=>{r||x(e.spanContext().spanId)})),s.push(p.on(`idleSpanEnableAutoFinish`,e=>{e===g&&(o=!0,v(),n.size&&y())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(g.setStatus({code:2,message:`deadline_exceeded`}),a=pl,g.end())},l),g}function gl(e){let t=Xc(e);return no(V(),t),F&&L.log(`[Tracing] Started span is an idle span`),t}function _l(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;xl(e,t),r&&wl(e,r),Tl(e,n),Sl(e,i),Cl(e,a)}function vl(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;yl(e,`extra`,n),yl(e,`tags`,r),yl(e,`attributes`,i),yl(e,`user`,a),yl(e,`contexts`,o),e.sdkProcessingMetadata=Xa(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function yl(e,t,n){e[t]=Xa(e[t],n,1)}function bl(e,t){let n=Eo().getScopeData();return e&&vl(n,e.getScopeData()),t&&vl(n,t.getScopeData()),n}function xl(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Sl(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Cl(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function wl(e,t){e.contexts={trace:Ts(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:pc(t),...e.sdkProcessingMetadata};let n=W(G(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Tl(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function El(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Dl=0,Ol=1,kl=2;function Al(e){return new Ml(t=>{t(e)})}function jl(e){return new Ml((t,n)=>{n(e)})}var Ml=class e{constructor(e){this._state=Dl,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Dl)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Ol&&e[1](this._value),this._state===kl&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Dl){if($i(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Ol,e)},r=e=>{t(kl,e)};try{e(n,r)}catch(e){r(e)}}};function Nl(e,t,n,r=0){try{let i=Pl(t,n,e,r);return $i(i)?i:Al(i)}catch(e){return jl(e)}}function Pl(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return F&&a===null&&L.log(`Event processor "${i.id||`?`}" dropped event`),$i(a)?a.then(e=>Pl(e,t,n,r+1)):Pl(a,t,n,r+1)}var Fl,Il,Ll,Rl;function zl(e){let t=I._sentryDebugIds,n=I._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Rl&&r.length===Il&&i.length===Ll)return Rl;Il=r.length,Ll=i.length,Rl={},Fl||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=Fl?.[r];if(i&&Rl&&t)Rl[i[0]]=t,Fl&&(Fl[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Rl&&Fl){Rl[i]=t,Fl[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),Rl}function Bl(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Na(),timestamp:t.timestamp||Va()},l=n.integrations||e.integrations.map(e=>e.name);Vl(c,e),Wl(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Hl(c,e.stackParser);let u=Kl(r,n.captureContext);n.mechanism&&La(c,n.mechanism);let d=i?i.getEventProcessors():[],f=bl(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),_l(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Al(c):Nl(m,c,n)).then(e=>(e&&Ul(e),typeof o==`number`&&o>0?Gl(e,o,s):e))}function Vl(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=Ea(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=Ea(e.value,a)})}function Hl(e,t){let n=zl(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Ul(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Wl(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Gl(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:va(e.data,t,n)}}))},...e.user&&{user:va(e.user,t,n)},...e.contexts&&{contexts:va(e.contexts,t,n)},...e.extra&&{extra:va(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=va(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:va(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=va(e.contexts.flags,3,n)),r}function Kl(e,t){if(!t)return e;let n=e?e.clone():new ao;return n.update(t),n}function ql(e){if(e)return Jl(e)||Xl(e)?{captureContext:e}:e}function Jl(e){return e instanceof ao||typeof e==`function`}var Yl=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Xl(e){return Object.keys(e).some(e=>Yl.includes(e))}function Zl(e,t){return V().captureException(e,ql(t))}function Ql(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return V().captureMessage(e,n,r)}function $l(e,t){return V().captureEvent(e,t)}function eu(e,t){To().setContext(e,t)}function tu(e){To().setUser(e)}function nu(){let e=H();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function ru(e){let t=To(),{user:n}=bl(t,V()),{userAgent:r}=I.navigator||{},i=Ka({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&qa(a,{status:`exited`}),iu(),t.setSession(i),i}function iu(){let e=To(),t=V().getSession()||e.getSession();t&&Ja(t),au(),e.setSession()}function au(){let e=To(),t=H(),n=e.getSession();n&&t&&t.captureSession(n)}function ou(e=!1){if(e){iu();return}au()}function su(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function cu(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function lu(e){return`${cu(e)}${e.projectId}/envelope/`}function uu(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function du(e,t,n){return t||`${lu(e)}?${uu(e,n)}`}var fu=[];function pu(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function mu(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return pu(r)}function hu(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&_u(e,t,n)}),n}function gu(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function _u(e,t,n){if(n[t.name]){F&&L.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!fu.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),fu.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),F&&L.log(`Integration installed: ${t.name}`)}function vu(e){return e}function yu(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function bu(){return`npm`}function xu(){return!yu()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Su(){return typeof window<`u`&&(!xu()||Cu())}function Cu(){return I.process?.type===`renderer`}function wu(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Su()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Tu(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ls(r)),hc(a,[wu(e,i)])}function Eu(e,t){let n=t??Du(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Tu(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Ou().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Du(e){return Ou().get(e)}function Ou(){return oi(`clientToLogBufferMap`,()=>new WeakMap)}function ku(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Su()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Au(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ls(r)),hc(a,[ku(e,i)])}function ju(e,t){let n=t??Mu(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Au(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Nu().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Mu(e){return Nu().get(e)}function Nu(){return oi(`clientToMetricBufferMap`,()=>new WeakMap)}function Pu(e){return Ps({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function Fu(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||Rc(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Pu(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...Su()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}var Iu=Symbol.for(`SentryBufferFullError`);function Lu(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return jl(Iu);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Al(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>su(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Ru=6e4;function zu(e,t=da()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Ru:r-t}function Bu(e,t){return e[t]||e.all||0}function Vu(e,t,n=da()){return Bu(e,t)>n}function Hu(e,{statusCode:t,headers:n},r=da()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+zu(o,r):t===429&&(i.all=r+6e4);return i}function Uu(e,t,n=Lu(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(_c(i,(t,n)=>{let i=Ec(n);Vu(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=hc(i[0],a),s=t=>{if(vc(o,[`client_report`])){F&&L.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}_c(o,(n,r)=>{e.recordDroppedEvent(t,Ec(r))})};return n.add(()=>t({body:bc(o)}).then(e=>e.statusCode===413?(F&&L.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(F&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&L.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Hu(r,e),e),e=>{throw s(`network_error`),F&&L.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Iu)return F&&L.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Wu(e,t,n){let r=[{type:`client_report`},{timestamp:n||Va(),discarded_events:e}];return hc(t?{dsn:t}:{},[r])}function Gu(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Ku(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Lo],exclusive_time:o?.[Ro],measurements:e.measurements,is_segment:!0}}function qu(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Ju=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function Yu(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Ju},httpHeaders:{request:{deny:Ju},response:{deny:Ju}},httpBodies:[],queryParams:{deny:Ju},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var Xu={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function Zu(e){let t=e.dataCollection==null?Yu(e.sendDefaultPii):Xu,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var Qu=`Not capturing exception because it's already been captured.`,$u=`Discarded session because of missing or non-string release`,ed=Symbol.for(`SentryInternalError`),td=Symbol.for(`SentryDoNotSendEventError`),nd=5e3;function rd(e){return{message:e,[ed]:!0}}function id(e){return{message:e,[td]:!0}}function ad(e){return Xi(e)&&ed in e}function od(e){return Xi(e)&&td in e}function sd(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??nd;t>0&&(s=!0,o=su(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var cd=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Lu(e.transportOptions?.bufferSize??64),this._dataCollection=Zu(e),e.dsn?this._dsn=hs(e.dsn):F&&L.warn(`No DSN provided, client will not send events.`),this._dsn){let t=du(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&sd(this,`afterCaptureLog`,`flushLogs`,hd,Eu),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&sd(this,`afterCaptureMetric`,`flushMetrics`,md,ju)}captureException(e,t,n){let r=Na();if(Ra(e))return F&&L.log(Qu),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:Na(),...n},a=qi(e)?e:String(e),o=Ji(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=Na();if(t?.originalException&&Ra(t.originalException))return F&&L.log(Qu),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=ld(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),qa(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),_u(this,e,this._integrations),t||gu(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Fu(e,this),r=jc(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=gc(r,Cc(e));n&&(r=gc(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=cc}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){F&&L.warn($u);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){F&&L.warn($u);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Ac(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;F&&L.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return F&&L.error(`Error while sending envelope:`,e),{}}return F&&L.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=hu(this,e),gu(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(qa(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Bl(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Oo(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:fc(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=V(),r=To()){return F&&fd(e)&&L.log(`Captured error event \`${Gu(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{F&&(od(e)?L.log(e.message):ad(e)?L.warn(e.message):L.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=pd(e),s=fd(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:gs(a);if(s&&typeof l==`number`&&ua()>l)return this.recordDroppedEvent(`sample_rate`,`error`),jl(id(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=ld(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),id("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:ud(dd(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw id(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw od(e)||ad(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),rd(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Iu&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){F&&L.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){F&&L.log(`No outcomes to send`);return}if(!this._dsn){F&&L.log(`No dsn provided, will not send outcomes`);return}F&&L.log(`Sending outcomes:`,e);let t=Wu(e,this._options.tunnel&&ls(this._dsn));this.sendEnvelope(t)}};function ld(e){return e===`replay_event`?`replay`:e||`error`}function ud(e,t){let n=`${t} must return \`null\` or a valid event.`;if($i(e))return e.then(e=>{if(!Yi(e)&&e!==null)throw rd(n);return e},e=>{throw rd(`${t} rejected with ${e}`)});if(!Yi(e)&&e!==null)throw rd(n);return e}function dd(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!mc(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(fd(c)&&i)return i(c,r);if(pd(c)){if(s||o){let t=Ku(c);if(o?.length&&$s({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=Xa(n,qu(e)):Js()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&$s({description:e.description,op:e.op,attributes:e.data},o)){tc(n,e);continue}if(s){let n=s(e);n?t.push(n):(Js(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function fd(e){return e.type===void 0}function pd(e){return e.type===`transaction`}function md(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+gd(e.attributes)}function hd(e){let t=0;return e.message&&(t+=e.message.length*2),t+gd(e.attributes)}function gd(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*_d(e[0]):Ji(e)?t+=_d(e):t+=100}),t}function _d(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function vd(e,t){t.debug===!0&&(F?L.enable():ui(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),V().update(t.initialScope);let n=new e(t);return yd(n),n.init(),n}function yd(e){V().setClient(e)}var bd=`thismessage:/`;function xd(e){return`isRelative`in e}function Sd(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?bd:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function Cd(e){if(xd(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function wd(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Td(e){return e.split(/[?#]/,1)[0]}function Ed(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function Dd(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Od(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:ri})),i.version=ri)}function kd(e={}){let t=e.client||H();if(!nu()||!t)return{};let n=yo(ii());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||V(),i=e.span||qs(),a=ac(i)&&!Zs(t.getOptions());if(!i&&wo())return{};let o=i&&!a?Es(i):Ad(r),s=ns(i?pc(i):fc(t,r));if(!_s.test(o))return L.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let c={"sentry-trace":o,baggage:s};return e.propagateTraceparent&&(c.traceparent=i&&!a?Ds(i):jd(r)),c}function Ad(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return bs(t,r,n)}function jd(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return xs(t,r,n)}var Md=100;function Nd(e,t){let n=H(),r=To();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Md}=n.getOptions();if(a<=0)return;let o={timestamp:Va(),...e},s=i?ui(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Pd,Fd=`FunctionToString`,Id=new WeakMap,Ld=vu((()=>({name:Fd,setupOnce(){Pd=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ia(this),n=Id.has(H())&&t!==void 0?t:this;return Pd.apply(n,e)}}catch{}},setup(e){Id.set(e,!0)}}))),Rd=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],zd=`EventFilters`,Bd=vu((e={})=>{let t;return{name:zd,setup(n){t=Hd(e,n.getOptions())},processEvent(n,r,i){return t||=Hd(e,i.getOptions()),Ud(n,t)?null:n}}}),Vd=vu(((e={})=>({...Bd(e),name:`InboundFilters`})));function Hd(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Rd],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ud(e,t){if(!e.type){if(Wd(e,t.ignoreErrors))return F&&L.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Fa(e)}`),!0;if(Xd(e))return F&&L.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Fa(e)}`),!0;if(Kd(e,t.denyUrls))return F&&L.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Fa(e)}.
Url: ${Yd(e)}`),!0;if(!qd(e,t.allowUrls))return F&&L.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Fa(e)}.
Url: ${Yd(e)}`),!0}else if(e.type===`transaction`&&Gd(e,t.ignoreTransactions))return F&&L.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Fa(e)}`),!0;return!1}function Wd(e,t){return t?.length?Gu(e).some(e=>ka(e,t)):!1}function Gd(e,t){if(!t?.length)return!1;let n=e.transaction;return n?ka(n,t):!1}function Kd(e,t){if(!t?.length)return!1;let n=Yd(e);return n?ka(n,t):!1}function qd(e,t){if(!t?.length)return!0;let n=Yd(e);return!n||ka(n,t)}function Jd(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Yd(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Jd(t):null}catch{return F&&L.error(`Cannot extract url for event ${Fa(e)}`),null}}function Xd(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Zd(e,t,n,r,i,a){if(!i.exception?.values||!a||!ea(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Qd(e,t,r,a.originalException,n,i.exception.values,o,0))}function Qd(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ea(r[i],Error)){ef(o,s,r);let a=e(t,r[i]),l=c.length;tf(a,i,l,s),c=Qd(e,t,n,r[i],i,[a,...c],a,l)}return $d(r)&&r.errors.forEach((a,l)=>{if(ea(a,Error)){ef(o,s,r);let u=e(t,a),d=c.length;tf(u,`errors[${l}]`,d,s),c=Qd(e,t,n,a,i,[u,...c],u,d)}}),c}function $d(e){return Array.isArray(e.errors)}function ef(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...$d(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function tf(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function nf(e){return Vi(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function rf(e){return nf(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var af=new Set([]);function of(e){let t=`console`,n=ji(t,e);return Mi(t,sf),n}function sf(){`console`in I&&si.forEach(function(e){e in I.console&&na(I.console,e,function(t){return li[e]=t,function(...t){let n=t[0],r=li[e],i=af.size&&typeof n==`string`&&ka(n,af);i||Ni(`console`,{args:t,level:e}),(!i||F&&L.isEnabled())&&r?.apply(I.console,t)}})})}function cf(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var lf=`Dedupe`,uf=vu((()=>{let e;return{name:lf,processEvent(t){if(t.type)return t;try{if(df(t,e))return F&&L.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function df(e,t){return t?!!(ff(e,t)||pf(e,t)):!1}function ff(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!hf(e,t)||!mf(e,t))}function pf(e,t){let n=gf(t),r=gf(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!hf(e,t)||!mf(e,t))}function mf(e,t){let n=Oi(e),r=Oi(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function hf(e,t){let n=e.fingerprint,r=t.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 gf(e){return e.exception?.values?.[0]}var _f=`ConversationId`,vf=vu((()=>({name:_f,setup(e){e.on(`spanStart`,e=>{let t=V().getScopeData(),n=To().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=W(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(Vo,r)}})}})));function yf(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=Zs()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(Sf(n,e),bf(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=H(),d=!!qs(),f=d||!!u&&Rc(u),p=s&&f?Xc(Ef(o,a,c)):new ic,m=ll(p)&&d?void 0:p;if(s&&!f&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=xf(t,n,Zs()&&f?m:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,p,t)}return p}function bf(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function xf(e,t,n,r){let i=kd({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(ta(e)?e.headers:void 0);if(!c)return{...i};if(wf(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?Cf(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if(Tf(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&Cf(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>Cf(e)):Cf(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0});return r&&s&&!t&&(u.traceparent=s),u}}function Sf(e,t){if(t.response){Uo(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function Cf(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(es))}function wf(e){return typeof Headers<`u`&&ea(e,Headers)}function Tf(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function Ef(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${Ed(e)}`,attributes:Df(e,void 0,t,n)};let r=Sd(e);return{name:`${t} ${r?Cd(r):e}`,attributes:Df(e,r,t,n)}}function Df(e,t,n,r){let i={url:Ed(e),type:`fetch`,"http.method":n,[U]:r,[Mo]:`http.client`};return t&&(xd(t)||(i[`http.url`]=Ed(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function Of(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var kf=I;function Af(){return`history`in kf&&!!kf.history}function jf(){if(!(`fetch`in kf))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Mf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Nf(){if(typeof EdgeRuntime==`string`)return!0;if(!jf())return!1;if(Mf(kf.fetch))return!0;let e=!1,t=kf.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Mf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){F&&L.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function Pf(e,t){let n=`fetch`,r=ji(n,e);return Mi(n,()=>If(void 0,t)),r}function Ff(e){let t=`fetch-body-resolved`,n=ji(t,e);return Mi(t,()=>If(Rf)),n}function If(e,t=!1){t&&!Nf()||na(I,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Vf(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:z()*1e3,virtualError:r,headers:Hf(n)};return e||Ni(`fetch`,{...o}),t.apply(I,n).then(async t=>(e?e(t):Ni(`fetch`,{...o,endTimestamp:z()*1e3,response:t}),t),e=>{Ni(`fetch`,{...o,endTimestamp:z()*1e3,error:e}),Vi(e)&&e.stack===void 0&&(e.stack=r.stack,R(e,`framesToPop`,1));let t=H()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:R(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function Lf(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Rf(e){let t;try{t=e.clone()}catch{return}Lf(t,()=>{Ni(`fetch-body-resolved`,{endTimestamp:z()*1e3,response:e})})}function zf(e,t){return Xi(e)&&!!e[t]}function Bf(e){return typeof e==`string`?e:e?zf(e,`url`)?e.url:e.toString?e.toString():``:``}function Vf(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Bf(t),method:zf(n,`method`)?String(n.method).toUpperCase():ta(t)&&zf(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Bf(t),method:zf(t,`method`)?String(t.method).toUpperCase():`GET`}}function Hf(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(ta(t))return new Headers(t.headers)}catch{}}var Uf=I;function Wf(){try{return Uf.document.location.href}catch{return``}}function Gf(e,t=5){if(!Uf.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var K=I,Kf=0;function qf(){return Kf>0}function Jf(){Kf++,setTimeout(()=>{Kf--})}function Yf(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(ia(e))return e}catch{return e}let r=function(...n){I._sentryWrappedDepth=(I._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Yf(e,t));return e.apply(this,r)}catch(e){throw Jf(),Do(r=>{r.addEventProcessor(e=>(t.mechanism&&(Ia(e,void 0,void 0),La(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Zl(e)}),e}finally{I._sentryWrappedDepth=(I._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}ra(r,e),R(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Xf(){let e=Wf(),{referrer:t}=K.document||{},{userAgent:n}=K.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Zf(e,t){let n=ep(e,t),r={type:ap(t),value:op(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Qf(e,t,n,r){let i=H()?.getOptions().normalizeDepth,a=pp(t),o={__serialized__:ya(t,i)};if(a)return{exception:{values:[Zf(e,a)]},extra:o};let s={exception:{values:[{type:Zi(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:dp(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=ep(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function $f(e,t){return{exception:{values:[Zf(e,t)]}}}function ep(e,t){let n=t.stacktrace||t.stack||``,r=np(t),i=rp(t);try{return e(n,r,i)}catch{}return[]}var tp=/Minified React error #\d+;/i;function np(e){return e&&tp.test(e.message)?1:0}function rp(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function ip(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function ap(e){let t=e?.name;return!t&&ip(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function op(e){let t=e?.message;return ip(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?rf(t.error):rf(e):`No error message`}function sp(e,t,n,r){let i=lp(e,t,n?.syntheticException||void 0,r);return La(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Al(i)}function cp(e,t,n=`info`,r,i){let a=up(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Al(a)}function lp(e,t,n,r,i){let a;if(Ui(t)&&t.error)return $f(e,t.error);if(Wi(t)||Gi(t)){let i=t;if(`stack`in t){a=$f(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=ep(e,n);t.length&&(i.stacktrace={frames:t},La(a,{synthetic:!0}))}}else{let t=i.name||(Wi(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=up(e,o,n,r),Ia(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Vi(t)?$f(e,t):Yi(t)||Zi(t)?(a=Qf(e,t,n,i),La(a,{synthetic:!0}),a):(a=up(e,t,n,r),Ia(a,`${t}`,void 0),La(a,{synthetic:!0}),a)}function up(e,t,n,r){let i={};if(r&&n){let r=ep(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),La(i,{synthetic:!0})}if(qi(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function dp(e,{isUnhandledRejection:t}){let n=sa(e),r=t?`promise rejection`:`exception`;return Ui(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Zi(e)?`Event \`${fp(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function fp(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function pp(e){return Object.values(e).find(e=>e instanceof Error)}var mp=class extends cd{constructor(e){let t=hp(e);Od(t,`browser`,[`browser`],K.SENTRY_SDK_SOURCE||bu()),super(t);let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;K.document&&K.document.addEventListener(`visibilitychange`,()=>{K.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,Dd)}eventFromException(e,t){return sp(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return cp(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function hp(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:K.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var gp=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,q=I,_p=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,vp=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=_p(t.value,n),e(t)))}},yp=(e=!0)=>{let t=q.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},bp=()=>yp()?.activationStart??0;function xp(e,t,n){q.document&&q.addEventListener(e,t,n)}function Sp(e,t,n){q.document&&q.removeEventListener(e,t,n)}var Cp=-1,wp=new Set,Tp=()=>q.document?.visibilityState===`hidden`&&!q.document?.prerendering?0:1/0,Ep=e=>{if(Op(e)&&Cp>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of wp)e();isFinite(Cp)||(Cp=e.type===`visibilitychange`?e.timeStamp:0,Sp(`prerenderingchange`,Ep,!0))}},Dp=()=>{if(q.document&&Cp<0){let e=bp();Cp=(q.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??Tp(),xp(`visibilitychange`,Ep,!0),xp(`pagehide`,Ep,!0),xp(`prerenderingchange`,Ep,!0)}return{get firstHiddenTime(){return Cp},onHidden(e){wp.add(e)}}};function Op(e){return e.type===`pagehide`||q.document?.visibilityState===`hidden`}var kp=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+0xe8d4a51000}`,Ap=(e,t=-1)=>{let n=yp(),r=`navigate`;return n&&(q.document?.prerendering||bp()>0?r=`prerender`:q.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:kp(),navigationType:r}},jp=new WeakMap;function Mp(e,t){try{return jp.get(e)||jp.set(e,new t),jp.get(e)}catch{return new t}}var Np=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},Pp=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Fp=e=>{let t=!1;return()=>{t||=(e(),!0)}},Ip=e=>{q.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},Lp=[1800,3e3],Rp=(e,t={})=>{Ip(()=>{let n=Dp(),r=Ap(`FCP`),i,a=Pp(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-bp(),0),r.entries.push(t),i(!0)))});a&&(i=vp(e,r,Lp,t.reportAllChanges))})},zp=[.1,.25],Bp=(e,t={})=>{Rp(Fp(()=>{let n=Ap(`CLS`,0),r,i=Dp(),a=Mp(t,Np),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=Pp(`layout-shift`,o);s&&(r=vp(e,n,zp,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),q?.setTimeout?.(r))}))},Vp=0,Hp=1/0,Up=0,Wp=e=>{e.forEach(e=>{e.interactionId&&(Hp=Math.min(Hp,e.interactionId),Up=Math.max(Up,e.interactionId),Vp=Up?(Up-Hp)/7+1:0)})},Gp,Kp=()=>Gp?Vp:performance.interactionCount||0,qp=()=>{`interactionCount`in performance||Gp||(Gp=Pp(`event`,Wp,{type:`event`,buffered:!0,durationThreshold:0}))},Jp=10,Yp=0,Xp=()=>Kp()-Yp,Zp=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){Yp=Kp(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(Xp()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Jp||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>Jp){let e=this._longestInteractionList.splice(Jp);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},Qp=e=>{let t=q.requestIdleCallback||q.setTimeout;q.document?.visibilityState===`hidden`?e():(e=Fp(e),xp(`visibilitychange`,e,{once:!0,capture:!0}),xp(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),Sp(`visibilitychange`,e,{capture:!0}),Sp(`pagehide`,e,{capture:!0})}))},$p=[200,500],em=40,tm=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=Dp();Ip(()=>{qp();let r=Ap(`INP`),i,a=Mp(t,Zp),o=e=>{Qp(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=Pp(`event`,o,{durationThreshold:t.durationThreshold??em});i=vp(e,r,$p,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},nm=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},rm=[2500,4e3],im=(e,t={})=>{Ip(()=>{let n=Dp(),r=Ap(`LCP`),i,a=Mp(t,nm),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-bp(),0),r.entries=[t],i())},s=Pp(`largest-contentful-paint`,o);if(s){i=vp(e,r,rm,t.reportAllChanges);let n=Fp(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(Qp(n),Sp(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])xp(e,a,{capture:!0})}})},am=[800,1800],om=e=>{q.document?.prerendering?Ip(()=>om(e)):q.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>om(e),!0)},sm=(e,t={})=>{let n=Ap(`TTFB`),r=vp(e,n,am,t.reportAllChanges);om(()=>{let e=yp();e&&(n.value=Math.max(e.responseStart-bp(),0),n.entries=[e],r(!0))})},cm={},lm={},um,dm,fm,pm;function mm(e,t=!1){return wm(`cls`,e,bm,um,t)}function hm(e,t=!1){return wm(`lcp`,e,xm,dm,t)}function gm(e){return wm(`ttfb`,e,Sm,fm)}function _m(e){return wm(`inp`,e,Cm,pm)}function vm(e,t){return Em(e,t),lm[e]||(Tm(e),lm[e]=!0),Dm(e,t)}function ym(e,t){let n=cm[e];if(n?.length)for(let r of n)try{r(t)}catch(t){gp&&L.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${Di(r)}
Error:`,t)}}function bm(){return Bp(e=>{ym(`cls`,{metric:e}),um=e},{reportAllChanges:!0})}function xm(){return im(e=>{ym(`lcp`,{metric:e}),dm=e},{reportAllChanges:!0})}function Sm(){return sm(e=>{ym(`ttfb`,{metric:e}),fm=e})}function Cm(){return tm(e=>{ym(`inp`,{metric:e}),pm=e})}function wm(e,t,n,r,i=!1){Em(e,t);let a;return lm[e]||(a=n(),lm[e]=!0),r&&t({metric:r}),Dm(e,t,i?a:void 0)}function Tm(e){let t={};e===`event`&&(t.durationThreshold=0),Pp(e,t=>{ym(e,{entries:t})},t)}function Em(e,t){cm[e]=cm[e]||[],cm[e].push(t)}function Dm(e,t,n){return()=>{n&&n();let r=cm[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Om(e){return`duration`in e}var km=80,Am={};try{typeof Node<`u`&&(Am.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(Am.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,Am.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,Am.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,Am.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(Am.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function jm(e,t,n){let r=Am[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function J(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||km;for(;n&&i++<5&&(o=Mm(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=jm(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function Mm(e,t){let n=[],r=jm(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=jm(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>jm(e,`getAttribute`,t)).map(t=>[t,jm(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=jm(e,`id`);t&&n.push(`#${t}`);let r=jm(e,`className`);if(r&&Ki(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=jm(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}var Nm=e=>{let t=t=>{(t.type===`pagehide`||q.document?.visibilityState===`hidden`)&&e(t)};xp(`visibilitychange`,t,{capture:!0,once:!0}),xp(`pagehide`,t,{capture:!0,once:!0})};function Pm(e){return typeof e==`number`&&isFinite(e)}function Fm(e,t,n,{...r}){let i=W(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Qc(e,()=>{let e=Xc({startTime:t,...r});return e&&e.end(n),e})}function Im(e){let t=H();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s}=t.getOptions(),{userInfo:c}=t.getDataCollectionOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=V(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Xc({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":q.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function Lm(){return q.addEventListener&&q.performance}function Y(e){return e/1e3}function Rm(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function zm(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Bm(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}Nm(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function Vm(e){let t=0,n;if(!zm(`layout-shift`))return;let r=mm(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Bm(e,(e,i)=>{Hm(t,n,i,e),r()})}function Hm(e,t,n,r){gp&&L.log(`Sending CLS span (${e})`);let i=t?Y((B()||0)+t.startTime):z(),a=V().getScopeData().transactionName,o=t?J(t.sources[0]?.node):`Layout shift`,s={[U]:`auto.http.browser.cls`,[Mo]:`ui.webvital.cls`,[Ro]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=J(e.node)});let c=Im({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[Po]:``,[Fo]:e}),c.end(i))}function Um(e){return e!=null&&e>0&&e<=6e4}function Wm(e){let t=0,n;if(!zm(`largest-contentful-paint`))return;let r=hm(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!Um(e.value)||(t=e.value,n=r)},!0);Bm(e,(e,i)=>{Gm(t,n,i,e),r()})}function Gm(e,t,n,r){if(!Um(e))return;gp&&L.log(`Sending LCP span (${e})`);let i=Y((B()||0)+(t?.startTime||0)),a=V().getScopeData().transactionName,o=t?J(t.element):`Largest contentful paint`,s={[U]:`auto.http.browser.lcp`,[Mo]:`ui.webvital.lcp`,[Ro]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=J(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=Im({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[Po]:`millisecond`,[Fo]:e}),c.end(i))}function Km(e){return e&&((B()||performance.timeOrigin)+e)/1e3}function qm(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Rm(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return B()||Lm()?.timeOrigin?Jm({...t,"http.request.redirect_start":Km(e.redirectStart),"http.request.redirect_end":Km(e.redirectEnd),"http.request.worker_start":Km(e.workerStart),"http.request.fetch_start":Km(e.fetchStart),"http.request.domain_lookup_start":Km(e.domainLookupStart),"http.request.domain_lookup_end":Km(e.domainLookupEnd),"http.request.connect_start":Km(e.connectStart),"http.request.secure_connection_start":Km(e.secureConnectionStart),"http.request.connection_end":Km(e.connectEnd),"http.request.request_start":Km(e.requestStart),"http.request.response_start":Km(e.responseStart),"http.request.response_end":Km(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function Jm(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Ym=2147483647,Xm=0,Zm={},Qm,$m;function eh({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Lm();if(r&&B()){r.mark&&q.performance.mark(`sentry-tracing-init`);let i=t?Wm(n):t===!1?ah():void 0,a=e?Vm(n):e===!1?ih():void 0,o=oh(),s=sh();return()=>{o(),s(),i?.(),a?.()}}return()=>void 0}function th(){vm(`longtask`,({entries:e})=>{let t=qs();if(!t)return;let{op:n,start_timestamp:r}=W(t);for(let i of e){let e=Y(B()+i.startTime),a=Y(i.duration);n===`navigation`&&r&&e<r||Fm(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[U]:`auto.ui.browser.metrics`}})}})}function nh(){new PerformanceObserver(e=>{let t=qs();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=Y(B()+n.startTime),{start_timestamp:r,op:i}=W(t);if(i===`navigation`&&r&&e<r)continue;let a=Y(n.duration),o={[U]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Fm(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function rh(){vm(`event`,({entries:e})=>{let t=qs();if(t){for(let n of e)if(n.name===`click`){let e=Y(B()+n.startTime),r=Y(n.duration),i={name:J(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[U]:`auto.ui.browser.metrics`}},a=Gf(n.target);a&&(i.attributes[`ui.component_name`]=a),Fm(t,e,e+r,i)}}})}function ih(){return mm(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Zm.cls={value:e.value,unit:``},$m=t)},!0)}function ah(){return hm(({metric:e})=>{let t=e.entries[e.entries.length-1];!t||!Um(e.value)||(Zm.lcp={value:e.value,unit:`millisecond`},Qm=t)},!0)}function oh(){return gm(({metric:e})=>{e.entries[e.entries.length-1]&&(Zm.ttfb={value:e.value,unit:`millisecond`})})}function sh(){return vm(`paint`,({entries:e})=>{let t=Dp();for(let n of e){let e=n.startTime<t.firstHiddenTime;n.name===`first-paint`&&e&&(Zm.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&e&&(Zm.fcp={value:n.startTime,unit:`millisecond`})}})}function ch(e,t){let n=Lm(),r=B();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o}=t,s=Y(r),c=n.getEntries(),{op:l,start_timestamp:u}=W(e);c.slice(Xm).forEach(t=>{let n=Y(t.startTime),r=Y(Math.max(0,t.duration));if(!(l===`navigation`&&u&&s+n<u))switch(t.entryType){case`navigation`:mh(e,t,s);break;case`mark`:case`paint`:case`measure`:fh(e,t,n,r,s,a);break;case`resource`:vh(e,t,t.name,n,r,s,o)}}),Xm=Math.max(c.length-1,0),yh(e,i)}function lh(e,t){let n=B();if(!Lm()?.getEntries||!n){uh();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=Y(n);if(W(e).op===`pageload`){if(Sh(Zm),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),gp&&L.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};[`ttfb`,`fp`,`fcp`].forEach(e=>{Zm[e]&&t(e,Zm[e].value)}),Zm[`ttfb.requestTime`]&&t(`ttfb.requestTime`,Zm[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete Zm.cls,a||delete Zm.lcp,Object.entries(Zm).forEach(([t,n])=>{Fc(t,n.value,n.unit,e)}),bh(e,t);e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,bp())}uh()}function uh(){Qm=void 0,$m=void 0,Zm={}}function dh(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function fh(e,t,n,r,i,a){if(dh(t)||[`mark`,`measure`].includes(t.entryType)&&ka(t.name,a))return;let o=yp(!1),s=Y(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[U]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),ph(d,t),c<=u&&Fm(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function ph(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Ji(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Ji(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function mh(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{hh(e,t,r,n)}),hh(e,t,`secureConnection`,n,`TLS/SSL`),hh(e,t,`fetch`,n,`cache`),hh(e,t,`domainLookup`,n,`DNS`),_h(e,t,n)}function hh(e,t,n,r,i=n){let a=t[gh(n)],o=t[`${n}Start`];!o||!a||Fm(e,r+Y(o),r+Y(a),{op:`browser.${i}`,name:t.name,attributes:{[U]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function gh(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function _h(e,t,n){let r=n+Y(t.requestStart),i=n+Y(t.responseEnd),a=n+Y(t.responseStart);t.responseEnd&&(Fm(e,r,i,{op:`browser.request`,name:t.name,attributes:{[U]:`auto.ui.browser.metrics`}}),Fm(e,a,i,{op:`browser.response`,name:t.name,attributes:{[U]:`auto.ui.browser.metrics`}}))}function vh(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[U]:`auto.resource.browser.metrics`},l=wd(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(q.location.origin),c[zo]=n,xh(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...qm(t)},d=a+r;Fm(e,d,d+i,{name:n.replace(q.location.origin,``),op:s,attributes:u})}function yh(e,t){let n=q.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),Pm(r.rtt)&&(t?e.setAttribute(`network.connection.rtt`,r.rtt):W(e).op===`pageload`&&Fc(`connection.rtt`,r.rtt,`millisecond`))),Pm(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),Pm(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function bh(e,t){Qm&&t.recordLcpOnPageloadSpan&&(Qm.element&&e.setAttribute(`lcp.element`,J(Qm.element)),Qm.id&&e.setAttribute(`lcp.id`,Qm.id),Qm.url&&e.setAttribute(`lcp.url`,Qm.url.trim().slice(0,200)),Qm.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Qm.loadTime),Qm.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Qm.renderTime),e.setAttribute(`lcp.size`,Qm.size)),$m?.sources&&t.recordClsOnPageloadSpan&&$m.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,J(t.node)))}function xh(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Ym||typeof i==`string`)&&(t[r]=i)})}function Sh(e){let t=yp(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var Ch=[],wh=new Map,Th=new Map;function Eh(){if(Lm()&&B()){let e=Oh();return()=>{e()}}return()=>void 0}var Dh={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function Oh(){return _m(kh)}var kh=({metric:e})=>{if(e.value==null)return;let t=Y(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&Dh[t.name]);if(!n)return;let{interactionId:r}=n,i=Dh[n.name],a=Y(B()+n.startTime),o=qs(),s=o?G(o):void 0,c=r==null?void 0:wh.get(r),l=c?.span||s,u=l?W(l).description:V().getScopeData().transactionName,d=Im({name:c?.elementName||J(n.target),transaction:u,attributes:{[U]:`auto.http.browser.inp`,[Mo]:`ui.interaction.${i}`,[Ro]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[Po]:`millisecond`,[Fo]:e.value}),d.end(a+t))};function Ah(e){return e==null?void 0:wh.get(e)}function jh(){let e=Object.keys(Dh);Su()&&e.forEach(e=>{q.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=J(t),r=Math.round(e.timeStamp);if(Th.set(r,n),Th.size>50){let e=Th.keys().next().value;e!==void 0&&Th.delete(e)}}function n(e){let t=Math.round(e.startTime),n=Th.get(t);if(!n)for(let e=-5;e<=5;e++){let r=Th.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=qs(),r=t&&G(t);e.forEach(e=>{if(!Om(e))return;let t=e.interactionId;if(t==null||wh.has(t))return;let i=e.target?J(e.target):n(e);if(Ch.length>10){let e=Ch.shift();wh.delete(e)}Ch.push(t),wh.set(t,{span:r,elementName:i})})};vm(`event`,r),vm(`first-input`,r)}function Mh(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=V().getScopeData().transactionName,f={[U]:r,[Mo]:n,[Ro]:0,[`browser.web_vital.${i}.value`]:a,[sc]:d,[oc]:d,"user_agent.original":q.navigator?.userAgent,...o};s&&Ms(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=Xc({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function Nh(e){let t=0,n;if(!zm(`largest-contentful-paint`))return;let r=hm(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!Um(e.value)||(t=e.value,n=r)},!0);Bm(e,(e,i,a)=>{Ph(t,n,a,e),r()})}function Ph(e,t,n,r){if(!Um(e))return;gp&&L.log(`Sending LCP span (${e})`);let i=B()||0,a=Y(i),o=Y(i+(t?.startTime||0)),s=t?J(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=J(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),Mh({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function Fh(e){let t=0,n;if(!zm(`layout-shift`))return;let r=mm(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Bm(e,(e,i,a)=>{Ih(t,n,a,e),r()})}function Ih(e,t,n,r){gp&&L.log(`Sending CLS span (${e})`);let i=t?Y((B()||0)+t.startTime):z(),a=t?J(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=J(e.node)}),Mh({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function Lh(){!Lm()||!B()||_m(({metric:e})=>{if(e.value==null||Y(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&Dh[t.name]);t&&Rh(e.value,t)})}function Rh(e,t){gp&&L.log(`Sending INP span (${e})`);let n=Y(B()+t.startTime),r=Y(e),i=Dh[t.name],a=Ah(t.interactionId),o=qs(),s=o?G(o):void 0,c=a?.span||s,l=c?Ms(c).name:V().getScopeData().transactionName;Mh({name:a?.elementName||J(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[Ro]:t.duration,[sc]:l,[oc]:l},startTime:n,endTime:n+r,parentSpan:c})}var zh=1e3,Bh,Vh,Hh;function Uh(e){ji(`dom`,e),Mi(`dom`,Wh)}function Wh(){if(!q.document)return;let e=Ni.bind(null,`dom`),t=qh(e,!0);q.document.addEventListener(`click`,t,!1),q.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=q[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(na(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=qh(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),na(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Gh(e){if(e.type!==Vh)return!1;try{if(!e.target||e.target._sentryId!==Hh)return!1}catch{}return!0}function Kh(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function qh(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Jh(n);if(Kh(n.type,r))return;R(n,`_sentryCaptured`,!0),r&&!r._sentryId&&R(r,`_sentryId`,Na());let i=n.type===`keypress`?`input`:n.type;Gh(n)||(e({event:n,name:i,global:t}),Vh=n.type,Hh=r?r._sentryId:void 0),clearTimeout(Bh),Bh=q.setTimeout(()=>{Hh=void 0,Vh=void 0},zh)}}function Jh(e){try{return e.target}catch{return null}}var Yh;function Xh(e){let t=`history`;ji(t,e),Mi(t,Zh)}function Zh(){if(q.addEventListener(`popstate`,()=>{let e=q.location.href,t=Yh;Yh=e,t!==e&&Ni(`history`,{from:t,to:e})}),!Af())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Yh,i=Qh(String(n));if(Yh=i,r===i)return e.apply(this,t);Ni(`history`,{from:r,to:i})}return e.apply(this,t)}}na(q.history,`pushState`,e),na(q.history,`replaceState`,e)}function Qh(e){try{return new URL(e,q.location.origin).toString()}catch{return e}}var $h={};function eg(e){let t=$h[e];if(t)return t;let n=q[e];if(Mf(n))return $h[e]=n.bind(q);let r=q.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){gp&&L.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&($h[e]=n.bind(q))}function tg(e){$h[e]=void 0}var ng=`__sentry_xhr_v3__`;function rg(e){ji(`xhr`,e),Mi(`xhr`,ig)}function ig(){if(!q.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=z()*1e3,a=Ki(n[0])?n[0].toUpperCase():void 0,o=ag(n[1]);if(!a||!o)return e.apply(t,n);t[ng]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[ng];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Ni(`xhr`,{endTimestamp:z()*1e3,startTimestamp:i,xhr:t,virtualError:r}),t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[ng];return a&&Ki(r)&&Ki(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[ng];return r?(n[0]!==void 0&&(r.body=n[0]),Ni(`xhr`,{startTimestamp:z()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function ag(e){if(Ki(e))return e;try{return e.toString()}catch{}}function og(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return gp&&L.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function sg(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var cg=40;function lg(e,t=eg(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw tg(`fetch`),e}finally{n-=a,r--}}return Uu(e,i,Lu(e.bufferSize||cg))}var ug=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,dg=30,fg=50;function pg(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var mg=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gg=/\((\S*)(?::(\d+))(?::(\d+))\)/,_g=/at (.+?) ?\(data:(.+?),/,vg=[dg,e=>{let t=e.match(_g);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=mg.exec(e);if(n){let[,e,t,r]=n;return pg(e,`?`,+t,+r)}let r=hg.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=gg.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Sg(r[1]||`?`,r[2]);return pg(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],yg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xg=Si(vg,[fg,e=>{let t=yg.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=bg.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Sg(n,e),pg(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Sg=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Cg=1024,wg=`Breadcrumbs`,Tg=vu(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:wg,setup(e){t.console&&of(Og(e)),t.dom&&Uh(Dg(e,t.dom)),t.xhr&&rg(kg(e)),t.fetch&&Pf(Ag(e)),t.history&&Xh(jg(e)),t.sentry&&e.on(`beforeSendEvent`,Eg(e))}}}));function Eg(e){return function(t){H()===e&&Nd({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:Fa(t)},{event:t})}}function Dg(e,t){return function(n){if(H()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Cg&&(ug&&L.warn(`\`dom.maxStringLength\` cannot exceed ${Cg}, but a value of ${o} was configured. Sentry will use ${Cg} instead.`),o=Cg),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Mg(e)?e.target:e;r=J(t,{keyAttrs:a,maxStringLength:o}),i=Gf(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Nd(s,{event:n.event,name:n.name,global:n.global})}}function Og(e){return function(t){if(H()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:cf(t.level),message:Da(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${Da(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}Nd(n,{input:t.args,level:t.level})}}function kg(e){return function(t){if(H()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[ng];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Of(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Nd(d,u)}}function Ag(e){return function(t){if(H()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Nd(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Of(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Nd(s,o)}}}}function jg(e){return function(t){if(H()!==e)return;let n=t.from,r=t.to,i=wd(K.location.href),a=n?wd(n):void 0,o=wd(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Nd({category:`navigation`,data:{from:n,to:r}})}}function Mg(e){return!!e&&!!e.target}var Ng=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),Pg=`BrowserApiErrors`,Fg=vu(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Pg,setupOnce(){t.setTimeout&&na(K,`setTimeout`,Ig),t.setInterval&&na(K,`setInterval`,Ig),t.requestAnimationFrame&&na(K,`requestAnimationFrame`,Lg),t.XMLHttpRequest&&`XMLHttpRequest`in K&&na(XMLHttpRequest.prototype,`send`,Rg);let e=t.eventTarget;e&&(Array.isArray(e)?e:Ng).forEach(e=>zg(e,t))}}}));function Ig(e){return function(...t){let n=t[0];return t[0]=Yf(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Di(e)}`}}),e.apply(this,t)}}function Lg(e){return function(t){return e.apply(this,[Yf(t,{mechanism:{data:{handler:Di(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Rg(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&na(n,e,function(t){let n={mechanism:{data:{handler:Di(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=ia(t);return r&&(n.mechanism.data.handler=Di(r)),Yf(t,n)})}),e.apply(this,t)}}function zg(e,t){let n=K[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(na(n,`addEventListener`,function(n){return function(r,i,a){try{Bg(i)&&(i.handleEvent=Yf(i.handleEvent,{mechanism:{data:{handler:Di(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Vg(this,r,i),n.apply(this,[r,Yf(i,{mechanism:{data:{handler:Di(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),na(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function Bg(e){return typeof e.handleEvent==`function`}function Vg(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Hg=vu((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(K.document===void 0){ug&&L.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ru({ignoreDuration:!0});let e=!1;Qp(()=>{e||=(ou(),!0)});let n=To(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&ou())}),t===`route`&&Xh(({from:t,to:n})=>{t!==n&&(ru({ignoreDuration:!0}),ou(),e=!0)})}}}),Ug=`CultureContext`,Wg=vu((()=>({name:Ug,preprocessEvent(e){let t=Gg();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Gg();t&&El(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Gg(){try{let e=K.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Kg=`GlobalHandlers`,qg=vu(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Kg,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Jg(e),$g(`onerror`)),t.onunhandledrejection&&(Yg(e),$g(`onunhandledrejection`))}}}));function Jg(e){Fi(t=>{let{stackParser:n,attachStacktrace:r}=e_();if(H()!==e||qf())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Qg(lp(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,$l(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Yg(e){Ri(t=>{let{stackParser:n,attachStacktrace:r}=e_();if(H()!==e||qf())return;let i=Xg(t),a=Ji(i)?Zg(i):lp(n,i,void 0,r,!0);a.level=`error`,$l(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Xg(e){if(Ji(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Zg(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Qg(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:t_(t)??Wf(),function:`?`,in_app:!0}),e}function $g(e){ug&&L.log(`Global Handler attached: ${e}`)}function e_(){return H()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function t_(e){if(!(!Ki(e)||e.length===0))return e.startsWith(`data:`)?`<${Ed(e,!1)}>`:e}var n_=vu(()=>({name:`HttpContext`,preprocessEvent(e){if(!K.navigator&&!K.location&&!K.document)return;let t=Xf(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[Mo];if(!K.navigator&&!K.location&&!K.document)return;let n=Xf();El(e,{"url.full":t===`http.client`?void 0:n.url,"http.request.header.user_agent":n.headers[`User-Agent`],"http.request.header.referer":n.headers.Referer})}})),r_=`cause`,i_=5,a_=`LinkedErrors`,o_=vu(((e={})=>{let t=e.limit||i_,n=e.key||r_;return{name:a_,preprocessEvent(e,r,i){Zd(Zf,i.getOptions().stackParser,n,t,e,r)}}})),s_=/^HTML(\w*)Element$/;function c_(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(sg(e)){let t=l_(e);if(s_.test(t))return`[HTMLElement: ${J(e)}]`}}function l_(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function u_(){return d_()?(ug&&ui(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function d_(){if(K.window===void 0)return!1;let e=K;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Wf();return!(K===K.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function f_(e){return[Vd(),Ld(),vf(),Fg(),Tg(),qg(),o_(),uf(),n_(),Wg(),Hg()]}function p_(e={}){let t=!e.skipBrowserExtensionCheck&&u_(),n=e.defaultIntegrations==null?f_():e.defaultIntegrations,r={...e,enabled:!t&&e.enabled,stackParser:Ci(e.stackParser||xg),integrations:mu({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||lg};return _a(c_),vd(mp,r)}function m_(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function h_(e){try{return new URL(e,K.location.origin).href}catch{return}}function g_(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function __(e){try{return new Headers(e)}catch{return}}var v_={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function y_(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}={...v_,...t},l=typeof i==`function`?i:e=>!0,u=e=>S_(e,o),d={},f=e.getOptions().propagateTraceparent;n&&Pf(t=>{let n=yf(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c});if(n){let r=h_(t.fetchData.url),i=r?wd(r).host:void 0,o=r?Ed(r):void 0;n.setAttributes({"http.url":o,"url.full":o,"server.address":i}),a&&x_(n,e),s?.(n,{headers:t.headers})}}),r&&rg(t=>{let n=C_(t,l,u,d,f,c);n&&(a&&x_(n,e),s?.(n,{headers:__(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var b_=300;function x_(e,t){let{url:n}=W(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(Rc(t)){let t=e.end.bind(e);e.end=e=>{let n=e??z(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,b_)}}let i=vm(`resource`,({entries:t})=>{t.forEach(t=>{g_(t)&&t.name.endsWith(n)&&(e.setAttributes(qm(t)),r())})})}function S_(e,t){let n=Wf();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?ka(r.toString(),t)||a&&ka(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?ka(e,t):n}}function C_(e,t,n,r,i,a){let o=e.xhr,s=o?.[ng];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=Zs()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(Uo(n,s.status_code),n.end(),a?.(n,{headers:__(og(o)),error:e.error})),delete r[t]);return}let d=h_(c),f=wd(d||c),p=d?Ed(d):void 0,m=Ed(Td(c)),h=H(),g=!!qs(),_=g||!!h&&Rc(h),v=u&&_?Xc({name:`${l} ${m}`,attributes:{url:Ed(c),type:`xhr`,"http.method":l,"http.url":p,"url.full":p,"server.address":f?.host,[U]:`auto.http.browser`,[Mo]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new ic,y=ll(v)&&g?void 0:v;return u&&!_&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=v.spanContext().spanId,r[o.__sentry_xhr_span_id__]=v,n(c)&&w_(o,Zs()&&_?y:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,v,e),v}function w_(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=kd({span:t,propagateTraceparent:n});r&&T_(e,r,i,a)}function T_(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.[`sentry-trace`]||!e.setRequestHeader))try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!m_(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var E_=new WeakMap,D_=new WeakMap,O_=9e4,k_=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],A_=vu(()=>({name:`FetchStreamPerformance`,setup(){Ff(e=>{if(e.response){let t=E_.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=D_.get(e.response);n&&clearTimeout(n)}}}),Pf(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get(`content-type`)||``;if(e.response.headers?.get(`content-length`)||!k_.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||``,r=e.fetchData?.method||`GET`,i=Sd(n),a=Xc({name:`${r} ${n.startsWith(`data:`)?Ed(n):i?Cd(i):n}`,startTime:e.endTimestamp,attributes:{url:Ed(n),"http.method":r,type:`fetch`,[Mo]:`http.client.stream`,[U]:`auto.http.browser.stream`}});E_.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},O_);D_.set(e.response,o)}})}})),j_=`WebVitals`,M_=vu((e={})=>{let t=new Set(e.ignore??[]);return{name:j_,setup(n){let r=Rc(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},o=r||t.has(`cls`)?void 0:i||!1,s=r||t.has(`lcp`)?void 0:a||!1,c=eh({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),l=new WeakSet;n.on(`afterStartPageLoadSpan`,e=>{l.add(e)}),n.on(`spanEnd`,e=>{l.delete(e)&&(c(),lh(e,{recordClsOnPageloadSpan:o===!1,recordLcpOnPageloadSpan:s===!1,spanStreamingEnabled:r}))}),r?(t.has(`lcp`)||Nh(n),t.has(`cls`)||Fh(n),t.has(`inp`)||Lh()):t.has(`inp`)||Eh()},afterAllSetup(){t.has(`inp`)||jh()}}});function N_(){K.document?K.document.addEventListener(`visibilitychange`,()=>{let e=qs();if(!e)return;let t=G(e);if(K.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=W(t);ug&&L.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):ug&&L.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var P_=`sentry_previous_trace`,F_=`sentry.previous_trace`;function I_(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?z_():void 0;e.on(`spanStart`,e=>{if(G(e)!==e)return;let t=V().getPropagationContext();i=L_(i,e,t),r&&R_(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=V(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(B_(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=B_(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[jo]:i.sampleRate}})}function L_(e,t,n){let r=W(t);function i(){try{let e=Number(r.data?.[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(ug&&L.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Bo]:`previous_trace`}}),t.setAttribute(F_,`${o.traceId}-${o.spanId}-${+!!B_(o)}`)),a)}function R_(e){try{K.sessionStorage.setItem(P_,JSON.stringify(e))}catch(e){ug&&L.warn(`Could not store previous trace in sessionStorage`,e)}}function z_(){try{let e=K.sessionStorage?.getItem(P_);return JSON.parse(e)}catch{return}}function B_(e){return e.traceFlags===1}var V_=`BrowserTracing`,H_=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function U_(){let e=K.navigator;return e?.userAgent?H_.test(e.userAgent):!1}var W_={...ul,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...v_},G_=((e={})=>{`enableElementTiming`in e&&ui(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},n=K.document,{enableInp:r,enableLongTask:i,enableLongAnimationFrame:a,_experiments:{enableInteractions:o,enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c},beforeStartSpan:l,idleTimeout:u,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:p,traceFetch:m,traceXHR:h,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:_,enableHTTPTimings:v,ignoreResourceSpans:y,ignorePerformanceApiSpans:b,instrumentPageLoad:x,instrumentNavigation:S,detectRedirects:C,linkPreviousTrace:w,consistentTraceSampling:ee,enableReportPageLoaded:T,onRequestSpanStart:te,onRequestSpanEnd:E}={...W_,...e},ne=U_(),re,D;function ie(e,r,i=!0,a){let o=r.op===`pageload`,s=r.name,c=l?l(r):r,p=Sd(a||Wf()),m={...p?.pathname&&{"url.path":p.pathname},...p&&!xd(p)&&{"url.full":p.href},...c.attributes};if(s!==c.name&&(m[ko]=`custom`),c.attributes=m,!i){let e=Va();Xc({...c,startTime:e}).end(e);return}t.name=c.name,t.source=m[ko];let h=hl(c,{idleTimeout:u,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:o,beforeSpanEnd:t=>{ch(t,{ignoreResourceSpans:y,ignorePerformanceApiSpans:b,spanStreamingEnabled:Rc(e)}),$_(e,void 0);let n=V(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:h.spanContext().traceId,sampled:Ls(h),dsc:pc(t)}),o&&(D=void 0)},trimIdleSpanEndTimestamp:!T});o&&T&&(D=h),$_(e,h);function g(){n&&[`interactive`,`complete`].includes(n.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,h),n.removeEventListener(`readystatechange`,g))}o&&!T&&n&&(n.addEventListener(`readystatechange`,g),g())}return{name:V_,setup(e){if(ne){ug&&L.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(Xs(),a&&I.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?nh():i&&th(),o&&rh(),C&&n){let e=()=>{re=z()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=Q_(e);t&&!W(t).timestamp&&(ug&&L.log(`[Tracing] Finishing current active span with op: ${W(t).op}`),t.setAttribute(No,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(H()!==e)return;if(r?.isRedirect){ug&&L.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),ie(e,{op:`navigation.redirect`,...n},!1,r.url);return}re=void 0,t(),To().setPropagationContext({traceId:Za(),sampleRand:Math.random(),propagationSpanId:Zs()?void 0:Qa()});let i=V();i.setPropagationContext({traceId:Za(),sampleRand:Math.random(),propagationSpanId:Zs()?void 0:Qa()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),ie(e,{op:`navigation`,...n,parentSpan:null,forceTransaction:!0},!0,r?.url)}),e.on(`startPageLoadSpan`,(n,r={})=>{if(H()!==e)return;t();let i=ys(r.sentryTrace||J_(`sentry-trace`)||Y_(`sentry-trace`),r.baggage||J_(`baggage`)||Y_(`baggage`)),a=V();a.setPropagationContext(i),Zs()||(a.getPropagationContext().propagationSpanId=Qa()),a.setSDKProcessingMetadata({normalizedRequest:Xf()}),ie(e,{op:`pageload`,...n})}),e.on(`endPageloadSpan`,()=>{T&&D&&(D.setAttribute(No,`reportPageLoaded`),D.end())})},afterAllSetup(e){if(ne)return;e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)&&e.addIntegration(M_({ignore:r?[]:[`inp`],_experiments:{enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c}}));let n=Wf();if(w!==`off`&&I_(e,{linkPreviousTrace:w,consistentTraceSampling:ee}),K.location){if(x){let t=B();K_(e,{name:K.location.pathname,startTime:t?t/1e3:void 0,attributes:{[ko]:`url`,[U]:`auto.pageload.browser`}})}S&&Xh(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=Sd(t),a=Q_(e),o=a&&C&&tv(a,re);q_(e,{name:i?.pathname||K.location.pathname,attributes:{[ko]:`url`,[U]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}p&&N_(),o&&X_(e,u,d,f,t),y_(e,{traceFetch:m,traceXHR:h,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:v,onRequestSpanStart:te,onRequestSpanEnd:E}),g&&e.addIntegration(A_())}}});function K_(e,t,n){e.emit(`startPageLoadSpan`,t,n),V().setTransactionName(t.name);let r=Q_(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function q_(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i,url:r}),e.emit(`startNavigationSpan`,t,{isRedirect:i,url:r});let a=V();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Xf(),url:r}}),Q_(e)}function J_(e){return(K.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function Y_(e){return(K.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function X_(e,t,n,r,i){let a=K.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=Q_(e);if(s){let e=W(s).op;if([`navigation`,`pageload`].includes(e)){ug&&L.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(No,`interactionInterrupted`),o.end(),void 0),!i.name){ug&&L.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=hl({name:i.name,op:a,attributes:{[ko]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var Z_=`_sentry_idleSpan`;function Q_(e){return e[Z_]}function $_(e,t){R(e,Z_,t)}var ev=1.5;function tv(e,t){let n=W(e),r=Va();return!(r-n.start_timestamp>ev||t&&r-t<=ev)}function nv(e){return Yi(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}var X=t(ze());function rv(e){let t={...e};Od(t,`react`),eu(`react`,{version:X.version});let n=p_(t);return _a(iv),n}function iv(e){return nv(e)?`[SyntheticEvent]`:c_(e)}var av=[/failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/importing a module script failed/i],ov=/https?:\/\/[^\s'")]+/i;function sv(e){return ov.exec(e)?.[0]??null}var cv=`unprobed`,lv=6e4,uv=null;function dv(e){uv={probeClass:e,recordedAtMs:Date.now()}}function fv(){return uv?Date.now()-uv.recordedAtMs>lv?cv:uv.probeClass:cv}var pv=/\/frontend\/meridian\/(?:_assets\/)?([\w-]+)\//;function mv(e){let t=e.exception?.values,n=t?.[t.length-1];return n?.mechanism?.handled===!1?n.type===`AbortError`||n.value?.startsWith(`AbortError`)===!0:!1}function hv(e){return av.some(t=>t.test(e))}function gv(e){let t=e.exception?.values,n=t?.[t.length-1]?.value??``;if(!hv(n))return;let r=pv.exec(n)?.[1]??`unknown-module`,i=fv();e.fingerprint=[`dynamic-import-failure`,r,i];let a=sv(n);e.tags={...e.tags,dynamicImportProbe:i,...a?{dynamicImportUrl:a}:{}}}var _v=`[redacted]`,vv=/[^\s@<>,;]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,yv=/cpsess\d+/gi,bv=/(?:[a-z][a-z0-9+.-]*:)?\/\/[^\s'"<>)\]]+/gi,xv=/\/[^\s'"<>)\]?]*\?[^\s'"<>)\]]+/g,Sv=/\/{2,}/g;function Cv(e){let t=e,n=``,r=t.indexOf(`#`);r!==-1&&(n=t.slice(r),t=t.slice(0,r));let i=t.indexOf(`?`);if(i!==-1&&(t=t.slice(0,i)),t=t.replace(/^(?:[a-z][a-z0-9+.-]*:)?\/\/[^/]*/i,``),n){let e=n.indexOf(`?`);t+=e===-1?n:n.slice(0,e)}return t.replace(Sv,`/`)}function wv(e){return e.replace(bv,e=>Cv(e)).replace(xv,e=>Cv(e)).replace(vv,_v).replace(yv,_v)}function Tv(e){return wv(Cv(e))}var Ev=6;function Dv(e,t=0){if(typeof e==`string`)return wv(e);if(t>=Ev||typeof e!=`object`||!e)return e;if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=Dv(e[n],t+1);return e}let n=e;for(let e of Object.keys(n))n[e]=Dv(n[e],t+1);return e}var Ov=[`url`,`http.url`,`url.full`];function kv(e){for(let t of Ov)typeof e[t]==`string`&&(e[t]=Tv(e[t]));typeof e[`server.address`]==`string`&&(e[`server.address`]=_v),delete e[`http.query`],delete e[`http.fragment`];for(let t of Object.keys(e))e[t]=Dv(e[t])}var Av=new Set([`url`,`from`,`to`]);function jv(e){typeof e.message==`string`&&(e.message=wv(e.message));let t=e.data;if(t)for(let e of Object.keys(t)){let n=t[e];if(typeof n==`string`){t[e]=Av.has(e)?Tv(n):wv(n);continue}t[e]=Dv(n)}}function Mv(e){typeof e.url==`string`&&(e.url=Tv(e.url)),`query_string`in e&&delete e.query_string;let t=e.headers;if(t)for(let e of Object.keys(t)){let n=t[e];typeof n==`string`&&(t[e]=/referer|referrer/i.test(e)?Tv(n):wv(n))}}function Nv(e){typeof e.message==`string`&&(e.message=wv(e.message)),Array.isArray(e.params)&&(e.params=e.params.map(e=>typeof e==`string`?wv(e):e))}function Pv(e){for(let t of e){typeof t.value==`string`&&(t.value=wv(t.value));for(let e of t.stacktrace?.frames??[])typeof e.filename==`string`&&(e.filename=Tv(e.filename)),typeof e.abs_path==`string`&&(e.abs_path=Tv(e.abs_path)),typeof e.module==`string`&&(e.module=wv(e.module))}}function Fv(e){for(let t of e)typeof t.description==`string`&&(t.description=wv(t.description)),t.data&&kv(t.data)}function Iv(e){typeof e.transaction==`string`&&(e.transaction=Tv(e.transaction));let t=e.exception?.values;t&&Pv(t),e.spans&&Fv(e.spans);let n=e.contexts?.trace?.data;n&&kv(n)}function Lv(e){let t=e;for(let e of Object.keys(t))e!==`trace`&&(t[e]=Dv(t[e],1))}function Rv(e){for(let t of Object.keys(e)){let n=e[t];typeof n==`string`&&(e[t]=wv(n))}}var zv=[`email`,`username`];function Bv(e){for(let t of zv)e[t]!==void 0&&e[t]!==null&&(e[t]=_v);`ip_address`in e&&delete e.ip_address,Dv(e,1)}function Vv(e){e.contexts&&Lv(e.contexts),e.extra&&=Dv(e.extra,1),e.tags&&Rv(e.tags),e.user&&Bv(e.user),e.fingerprint&&=e.fingerprint.map(e=>typeof e==`string`?wv(e):e);for(let t of e.debug_meta?.images??[])typeof t.code_file==`string`&&(t.code_file=Tv(t.code_file))}function Hv(e){if(e.request&&Mv(e.request),typeof e.message==`string`&&(e.message=wv(e.message)),e.logentry&&Nv(e.logentry),Iv(e),Vv(e),e.breadcrumbs)for(let t of e.breadcrumbs)jv(t);return e}function Uv(e){try{return Hv(e)}catch{return null}}function Wv(e,t){try{let n=e;`ipAddress`in n&&delete n.ipAddress;let r=n.did;typeof r==`string`&&r.length>0&&r!==t&&(n.did=_v);let i=n.attrs;i&&typeof i==`object`&&`ip_address`in i&&delete i.ip_address}catch{}}function Gv(e){try{return typeof e.description==`string`&&(e.description=wv(e.description)),e.data&&kv(e.data),e}catch{let t=typeof e.description==`string`?wv(e.description):e.description;return{...e,description:t,data:{}}}}var Kv=`https://cf1458e1f0b578ad33cfdf4db2bae8dc@o92102.ingest.us.sentry.io/4511773512761344`,qv=.1;function Jv(){let e=en();return{dsn:Kv,environment:xn()?`production`:`development`,release:`cpanel-meridian@${e??`unknown`}`,integrations:[G_()],tracesSampleRate:qv,tracePropagationTargets:[],sendDefaultPii:!1,ignoreErrors:[`ResizeObserver loop limit exceeded`,`ResizeObserver loop completed with undelivered notifications.`,`Non-Error promise rejection captured`],allowUrls:[/\/frontend\/meridian\//],beforeSend:e=>{try{if(mv(e))return null;gv(e)}catch{}return Uv(e)},beforeSendTransaction:Uv,beforeSendSpan:Gv}}var Yv=!1;function Xv(){if(!Yv&&rt()){Yv=!0;try{let e=rv(Jv()),t=De();t&&tu({id:t}),e?.on(`beforeSendSession`,e=>Wv(e,t??void 0))}catch{}}}function Zv(e){return e instanceof Error?`${e.name}: ${e.message}`:typeof e==`string`?e:String(e)}function Qv(e){try{Ql(`i18n namespace load failed (${e.context})`,{level:`warning`,tags:{i18nContext:e.context},extra:{namespaces:e.namespaces.join(`, `),reason:Zv(e.error)}})}catch{}}function $v(e,t,n){try{Nd({category:`federation.probe`,level:`info`,message:`${e} probe`,data:{url:t,status:n?.status??null,contentType:n?.headers.get(`content-type`)??null}})}catch{}}function ey(e,t,n){try{Zl(e,n?.componentStack?{tags:{hubId:t},contexts:{react:{componentStack:n.componentStack}}}:{tags:{hubId:t}})}catch{}}function ty(e,t){try{Zl(e,{tags:{unexpectedFrom:t}})}catch{}}typeof window<`u`&&Xv();var ny=class e extends Error{constructor(t,n,r){super(t),this.name=`TranslationParserError`,this.position=n,this.translationString=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}},ry={" ":`\xA0`,"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`,"©":`©`,"®":`®`,"™":`™`,"…":`…`,"–":`–`,"—":`—`,"‘":`‘`,"’":`’`,"‚":`‚`,"“":`“`,"”":`”`,"„":`„`,"†":`†`,"‡":`‡`,"•":`•`,"′":`′`,"″":`″`,"‹":`‹`,"›":`›`,"§":`§`,"¶":`¶`,"·":`·`," ":` `," ":` `," ":` `,"€":`€`,"£":`£`,"¥":`¥`,"¢":`¢`,"¤":`¤`,"×":`×`,"÷":`÷`,"−":`−`,"±":`±`,"≠":`≠`,"≤":`≤`,"≥":`≥`,"≈":`≈`,"≡":`≡`,"∞":`∞`,"∫":`∫`,"∑":`∑`,"∏":`∏`,"√":`√`,"∂":`∂`,"‰":`‰`,"°":`°`,"µ":`µ`,"←":`←`,"↑":`↑`,"→":`→`,"↓":`↓`,"↔":`↔`,"↵":`↵`,"⇐":`⇐`,"⇑":`⇑`,"⇒":`⇒`,"⇓":`⇓`,"⇔":`⇔`,"α":`α`,"β":`β`,"γ":`γ`,"δ":`δ`,"ε":`ε`,"ζ":`ζ`,"η":`η`,"θ":`θ`,"ι":`ι`,"κ":`κ`,"λ":`λ`,"μ":`μ`,"ν":`ν`,"ξ":`ξ`,"ο":`ο`,"π":`π`,"ρ":`ρ`,"σ":`σ`,"τ":`τ`,"υ":`υ`,"φ":`φ`,"χ":`χ`,"ψ":`ψ`,"ω":`ω`,"Α":`Α`,"Β":`Β`,"Γ":`Γ`,"Δ":`Δ`,"Ε":`Ε`,"Ζ":`Ζ`,"Η":`Η`,"Θ":`Θ`,"Ι":`Ι`,"Κ":`Κ`,"Λ":`Λ`,"Μ":`Μ`,"Ν":`Ν`,"Ξ":`Ξ`,"Ο":`Ο`,"Π":`Π`,"Ρ":`Ρ`,"Σ":`Σ`,"Τ":`Τ`,"Υ":`Υ`,"Φ":`Φ`,"Χ":`Χ`,"Ψ":`Ψ`,"Ω":`Ω`,"À":`À`,"Á":`Á`,"Â":`Â`,"Ã":`Ã`,"Ä":`Ä`,"Å":`Å`,"Æ":`Æ`,"Ç":`Ç`,"È":`È`,"É":`É`,"Ê":`Ê`,"Ë":`Ë`,"Ì":`Ì`,"Í":`Í`,"Î":`Î`,"Ï":`Ï`,"Ð":`Ð`,"Ñ":`Ñ`,"Ò":`Ò`,"Ó":`Ó`,"Ô":`Ô`,"Õ":`Õ`,"Ö":`Ö`,"Ø":`Ø`,"Ù":`Ù`,"Ú":`Ú`,"Û":`Û`,"Ü":`Ü`,"Ý":`Ý`,"Þ":`Þ`,"ß":`ß`,"à":`à`,"á":`á`,"â":`â`,"ã":`ã`,"ä":`ä`,"å":`å`,"æ":`æ`,"ç":`ç`,"è":`è`,"é":`é`,"ê":`ê`,"ë":`ë`,"ì":`ì`,"í":`í`,"î":`î`,"ï":`ï`,"ð":`ð`,"ñ":`ñ`,"ò":`ò`,"ó":`ó`,"ô":`ô`,"õ":`õ`,"ö":`ö`,"ø":`ø`,"ù":`ù`,"ú":`ú`,"û":`û`,"ü":`ü`,"ý":`ý`,"þ":`þ`,"ÿ":`ÿ`,"¡":`¡`,"¿":`¿`,"ƒ":`ƒ`,"ˆ":`ˆ`,"˜":`˜`,"Œ":`Œ`,"œ":`œ`,"Š":`Š`,"š":`š`,"Ÿ":`Ÿ`,"ª":`ª`,"º":`º`,"¯":`¯`,"´":`´`,"¸":`¸`,"¹":`¹`,"²":`²`,"³":`³`,"¼":`¼`,"½":`½`,"¾":`¾`,"♠":`♠`,"♣":`♣`,"♥":`♥`,"♦":`♦`,"◊":`◊`,"‾":`‾`,"⁄":`⁄`,"℘":`℘`,"ℑ":`ℑ`,"ℜ":`ℜ`,"ℵ":`ℵ`},iy=new RegExp(Object.keys(ry).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),`g`),ay=e=>e.replace(iy,e=>ry[e]).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCharCode(parseInt(t,16))),oy=e=>{let t=[],n=0,r=``,i=()=>{r&&=(t.push({type:`Text`,value:r,position:n-r.length}),``)};for(;n<e.length;){let a=e[n];if(a===`<`){let o=e.slice(n).match(/^<(\d+)>/);if(o)i(),t.push({type:`TagOpen`,value:o[0],position:n,tagNumber:parseInt(o[1],10)}),n+=o[0].length;else{let o=e.slice(n).match(/^<\/(\d+)>/);o?(i(),t.push({type:`TagClose`,value:o[0],position:n,tagNumber:parseInt(o[1],10)}),n+=o[0].length):(r+=a,n+=1)}}else r+=a,n+=1}return i(),t},sy=(e,t,n)=>{let{type:r,props:i={}}=e;if(i.children&&Array.isArray(i.children)&&n){let{children:e,...n}=i;return X.createElement(r,n,...t)}return t.length===0?X.createElement(r,i):t.length===1?X.createElement(r,i,t[0]):X.createElement(r,i,...t)},cy=(e,t=[])=>{if(!e)return[];let n=oy(e),r=[],i=[],a=new Set,o=()=>{if(i.length===0)return t;let e=i[i.length-1];return e.declaration.props?.children&&Array.isArray(e.declaration.props.children)?e.declaration.props.children:e.declarations};if(n.forEach(t=>{switch(t.type){case`Text`:{let e=ay(t.value);(i.length>0?i[i.length-1].children:r).push(e)}break;case`TagOpen`:{let{tagNumber:e}=t,n=o(),s=n[e];if(!s){a.add(e);let t=`<${e}>`;(i.length>0?i[i.length-1].children:r).push(t);break}i.push({tagNumber:e,children:[],position:t.position,declaration:s,declarations:n})}break;case`TagClose`:{let{tagNumber:n}=t;if(a.has(n)){let e=`</${n}>`;(i.length>0?i[i.length-1].children:r).push(e),a.delete(n);break}if(i.length===0)throw new ny(`Unexpected closing tag </${n}> at position ${t.position}`,t.position,e);let o=i.pop();if(o.tagNumber!==n)throw new ny(`Mismatched tags: expected </${o.tagNumber}> but got </${n}> at position ${t.position}`,t.position,e);let s=sy(o.declaration,o.children,o.declarations);(i.length>0?i[i.length-1].children:r).push(s)}}}),i.length>0){let t=i[i.length-1];throw new ny(`Unclosed tag <${t.tagNumber}> at position ${t.position}`,t.position,e)}return r};function ly({i18nKey:e,defaultTranslation:t,content:n,ns:r,values:i={},i18n:a,t:o}){let s=a||_e();if(!s)return l(s,`NO_I18NEXT_INSTANCE`,`IcuTrans: You need to pass in an i18next instance using i18nextReactModule`,{i18nKey:e}),X.createElement(X.Fragment,{},t);let c=o||s.t?.bind(s)||(e=>e),u=r||c.ns||s.options?.defaultNS;u=Ae(u)?[u]:u||[`translation`];let d=i;s.options?.interpolation?.defaultVariables&&(d=i&&Object.keys(i).length>0?{...i,...s.options.interpolation.defaultVariables}:{...s.options.interpolation.defaultVariables});let f=c(e,{defaultValue:t,...d,ns:u});try{let e=cy(f,n);return X.createElement(X.Fragment,{},...e)}catch(t){return Fn(s,`ICU_TRANS_RENDER_ERROR`,`IcuTrans component error for key "${e}": ${t.message}`,{i18nKey:e,error:t}),X.createElement(X.Fragment,{},f)}}ly.displayName=`IcuTransWithoutContext`;function uy({i18nKey:e,defaultTranslation:t,content:n,ns:r,values:i={},i18n:a,t:o}){let{i18n:s,defaultNS:c}=(0,X.useContext)(h)||{},l=a||s||_e(),u=o||l?.t.bind(l);return ly({i18nKey:e,defaultTranslation:t,content:n,ns:r||u?.ns||c||l?.options?.defaultNS,values:i,i18n:l,t:o})}uy.displayName=`IcuTrans`;var dy=(e,t={})=>function(n){function r({forwardedRef:r,...i}){let[a,o,s]=wn(e,{...i,keyPrefix:t.keyPrefix}),c={...i,t:a,i18n:o,tReady:s};return t.withRef&&r?c.ref=r:!t.withRef&&r&&(c.forwardedRef=r),(0,X.createElement)(n,c)}return r.displayName=`withI18nextTranslation(${de(n)})`,r.WrappedComponent=n,t.withRef?(0,X.forwardRef)((e,t)=>(0,X.createElement)(r,Object.assign({},e,{forwardedRef:t}))):r},fy=({ns:e,children:t,...n})=>{let[r,i,a]=wn(e,n);return t(r,{i18n:i,lng:i?.language},a)},py=(e,t,n={})=>{let{i18n:r}=n,{i18n:i}=(0,X.useContext)(h)||{},a=r||i||_e();if(!a){l(a,`NO_I18NEXT_INSTANCE`,`useSSR: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);return}if(!a.options?.isClone){if(e&&!a.initializedStoreOnce){if(!a.services?.resourceStore){l(a,`I18N_NOT_INITIALIZED`,`useSSR: i18n instance was found but not initialized (services.resourceStore is missing). Make sure you call i18next.init() before using useSSR — e.g. at module level, not only in getStaticProps/getServerSideProps.`);return}a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((e,t)=>(Object.keys(t).forEach(t=>{e.indexOf(t)<0&&e.push(t)}),e),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0}t&&!a.initializedLanguageOnce&&(a.changeLanguage(t),a.initializedLanguageOnce=!0)}},my=()=>function(e){function t({initialI18nStore:t,initialLanguage:n,...r}){return py(t,n),(0,X.createElement)(e,{...r})}return t.getInitialProps=be(e),t.displayName=`withI18nextSSR(${de(e)})`,t.WrappedComponent=e,t},hy=e({I18nContext:()=>h,I18nextProvider:()=>f,IcuTrans:()=>uy,IcuTransWithoutContext:()=>ly,Trans:()=>y,TransWithoutContext:()=>Ft,Translation:()=>fy,composeInitialProps:()=>be,date:()=>gy,getDefaults:()=>C,getI18n:()=>_e,getInitialProps:()=>Lt,initReactI18next:()=>o,nodesToString:()=>me,number:()=>vy,plural:()=>by,select:()=>yy,selectOrdinal:()=>xy,setDefaults:()=>D,setI18n:()=>we,time:()=>_y,useSSR:()=>py,useTranslation:()=>wn,withSSR:()=>my,withTranslation:()=>dy}),gy=()=>``,_y=()=>``,vy=()=>``,yy=()=>``,by=()=>``,xy=()=>``;function Sy(e){return e}function Cy(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function wy(e,t,n){let r=()=>{let r=e.promise?.then(t).catch(e=>n(e)?Promise.reject(Error(`redacted`)):Promise.reject(e));return r?.catch(mn),r};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status===`pending`&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function Ty(e){return e.state.isPaused}function Ey(e){return e.state.status===`success`}function Dy(e){return!0}function Oy(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Ty,r=e.getMutationCache().getAll().flatMap(e=>n(e)?[Cy(e)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Ey,a=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??Dy,o=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??Sy;return{mutations:r,queries:e.getQueryCache().getAll().flatMap(e=>i(e)?[wy(e,o,a)]:[])}}function ky(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??Sy,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?ue(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a(f),m=i.get(o),h=m?.state.status===`pending`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&l!==void 0&&l>m.state.dataUpdatedAt;if(r.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;m.setState({...t,data:p,...r.status===`pending`&&p!==void 0&&{status:`success`,dataUpdatedAt:l??Date.now(),...!g&&{fetchStatus:`idle`}}})}}else m=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s,_type:u},{...r,data:p,fetchStatus:`idle`,status:r.status===`pending`&&p!==void 0?`success`:r.status,...r.status===`pending`&&p!==void 0&&{dataUpdatedAt:l??Date.now()}});c&&!d&&!h&&!g&&(l===void 0||l>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(mn)})}var Ay=class extends fe{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,d=i&&c===`forward`,f=o&&c===`backward`,p=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:In(t,n.data),hasPreviousPage:u(t,n.data),isFetchNextPageError:l,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:s&&!l&&!f,isRefetching:a&&!d&&!p}}};function jy({streamFn:e,refetchMode:t=`reset`,reducer:n=(e,t)=>Qe(e,t),initialValue:r=[]}){return async i=>{let a=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),o=!!a&&a.isFetched();o&&t===`reset`&&a.setState({...a.resetState,fetchStatus:`fetching`});let s=r,c=!1,l=await e(se({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>c=!0)),u=o&&t===`replace`;for await(let e of l){if(c)break;u?s=n(s,e):i.client.setQueryData(i.queryKey,t=>n(t===void 0?r:t,e))}return u&&!c&&i.client.setQueryData(i.queryKey,s),i.client.getQueryData(i.queryKey)??r}}var My=Symbol(`dataTagSymbol`),Ny=Symbol(`dataTagErrorSymbol`),Py=Symbol(`unsetMarker`),Z=t(ct(),1);function Fy(e,t){return An({...e,enabled:!0,suspense:!0,throwOnError:p,placeholderData:void 0},fe,t)}function Iy(e,t){return An({...e,enabled:!0,suspense:!0,throwOnError:p},Ay,t)}function Ly(e,t){return Pe({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:p,enabled:!0,placeholderData:void 0}))},t)}function Ry(e,t){let n=s(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function zy(e,t){let n=s(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function By(e){return e}function Vy(e){return e}var Hy=({children:e,options:t={},state:n,queryClient:r})=>{let i=s(r),a=X.useRef(t);X.useEffect(()=>{a.current=t});let o=X.useMemo(()=>{if(n){if(typeof n!=`object`)return;let e=i.getQueryCache(),t=n.queries||[],r=[],o=[];for(let n of t){let t=e.get(n.queryHash);t?(n.state.dataUpdatedAt>t.state.dataUpdatedAt||n.promise&&t.state.status!==`pending`&&t.state.fetchStatus!==`fetching`&&n.dehydratedAt!==void 0&&n.dehydratedAt>t.state.dataUpdatedAt)&&o.push(n):r.push(n)}if(r.length>0&&ky(i,{queries:r},a.current),o.length>0)return o}},[i,n]);return X.useEffect(()=>{o&&ky(i,{queries:o},a.current)},[i,o]),e};function Uy(e,t){let n=s(t),r=n.getQueryCache();return X.useSyncExternalStore(X.useCallback(e=>r.subscribe(T.batchCalls(e)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}function Wy(e,t){let n=s(t);return Ky({filters:{...e,status:`pending`}},n).length}function Gy(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function Ky(e={},t){let n=s(t).getMutationCache(),r=X.useRef(e),i=X.useRef(null);return i.current===null&&(i.current=Gy(n,e)),X.useEffect(()=>{r.current=e}),X.useSyncExternalStore(X.useCallback(e=>n.subscribe(()=>{let t=on(i.current,Gy(n,r.current));i.current!==t&&(i.current=t,T.schedule(e))}),[n]),()=>i.current,()=>i.current)}function qy(e){return e}function Jy(e,t){return An(e,Ay,t)}var Yy=e({CancelledError:()=>Ue,HydrationBoundary:()=>Hy,InfiniteQueryObserver:()=>Ay,IsRestoringProvider:()=>x,Mutation:()=>ie,MutationCache:()=>w,MutationObserver:()=>Te,QueriesObserver:()=>ve,Query:()=>je,QueryCache:()=>he,QueryClient:()=>It,QueryClientContext:()=>Se,QueryClientProvider:()=>zt,QueryErrorResetBoundary:()=>En,QueryObserver:()=>fe,dataTagErrorSymbol:()=>Ny,dataTagSymbol:()=>My,defaultScheduler:()=>Ke,defaultShouldDehydrateMutation:()=>Ty,defaultShouldDehydrateQuery:()=>Ey,dehydrate:()=>Oy,environmentManager:()=>rn,experimental_streamedQuery:()=>jy,focusManager:()=>un,hashKey:()=>Ye,hydrate:()=>ky,infiniteQueryOptions:()=>Vy,isCancelledError:()=>ne,isServer:()=>tt,keepPreviousData:()=>Oe,matchMutation:()=>i,matchQuery:()=>vt,mutationOptions:()=>qy,noop:()=>mn,notifyManager:()=>T,onlineManager:()=>Be,partialMatchKey:()=>qt,queryOptions:()=>By,replaceEqualDeep:()=>on,shouldThrowError:()=>jt,skipToken:()=>at,timeoutManager:()=>Xt,unsetMarker:()=>Py,useInfiniteQuery:()=>Jy,useIsFetching:()=>Uy,useIsMutating:()=>Wy,useIsRestoring:()=>_,useMutation:()=>Nn,useMutationState:()=>Ky,usePrefetchInfiniteQuery:()=>zy,usePrefetchQuery:()=>Ry,useQueries:()=>Pe,useQuery:()=>ut,useQueryClient:()=>s,useQueryErrorResetBoundary:()=>Le,useSuspenseInfiniteQuery:()=>Iy,useSuspenseQueries:()=>Ly,useSuspenseQuery:()=>Fy}),Xy=[`missing_feature`,`prefer_classic`,`bug_or_broken`,`performance`,`other`],Zy=`meridian_switchback_feedback_shown`;function Qy(e){if(!e)return null;let t=e.match(/^\d+\.\d+\.\d+/);return t?t[0]:null}function $y(e){return e.toLowerCase().replace(/\.$/,``)}function eb(e,t){let n=t.map($y),r=new Set;for(let t of e){let e=$y(t),i=null;for(let t of n)(e===t||e.endsWith(`.${t}`))&&(i===null||t.length>i.length)&&(i=t);i!==null&&r.add(i)}return[...r]}var tb=`meridian:open-ssl-wizard`;Object.freeze({domains:[],pendingCsrs:[],autoSslExcludedDomains:[],csrLookupFailed:!1,excludableDomains:[],installedHosts:[]});var nb=t(it(),1),rb=X.useLayoutEffect;function ib(e,t,n={},r){X.useEffect(()=>{if(!e.current||r||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,r,n,e])}function ab(e){let t=X.useRef(null);return X.useImperativeHandle(e,()=>t.current,[]),t}function ob(e){return e[e.length-1]}function sb(e){return typeof e==`function`}function cb(e,t){return sb(e)?e(t):e}var lb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable;function db(e){for(let t in e)if(lb.call(e,t))return!0;return!1}var fb=()=>Object.create(null),pb=(e,t)=>mb(e,t,fb);function mb(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=vb(e)&&vb(i);if(!a&&!(gb(e)&&gb(i)))return i;let o=a?e:hb(e);if(!o)return i;let s=a?i:hb(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:lb.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=mb(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function hb(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!ub.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!ub.call(e,t))return!1;r.push(t)}return r}function gb(e){if(!_b(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!_b(n)||!n.hasOwnProperty(`isPrototypeOf`))}function _b(e){return Object.prototype.toString.call(e)===`[object Object]`}function vb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yb(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!yb(e[r],t[r],n))return!1;return!0}if(gb(e)&&gb(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!yb(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!yb(e[o],t[o],n)))return!1;return i===a}return!1}var bb=/[\x00-\x1f\x7f"<>`{}]/g;function xb(e){return e.replace(bb,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Sb(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return xb(t)}var Cb=[`http:`,`https:`,`mailto:`,`tel:`];function wb(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Tb(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=Sb(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=Sb(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function Eb(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Db(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ob(){throw Error(`Invariant failed`)}function kb(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var Ab=4,jb=5;function Mb(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function Nb(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=Mb(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function Pb(e,t,n,r,i,a,o,s){s?.(n);let c=r;{let r=n.fullPath??n.from,s=n.options,l=r.length,u=s?.caseSensitive??e,d=s?.params?.parse??s?.parseParams;for(;c<l;){let e=Nb(r,c,t),n,s=c,l=e[5];c=l+1,a++;let f=e[0];switch(f){case 0:{let t=r.substring(e[2],e[3]),o=t,s;u?s=i.static??=new Map:(o=t.toLowerCase(),s=i.staticInsensitive??=new Map);let c=s.get(o);if(c)n=c;else{let e=Ib(r);e.parent=i,e.depth=a,n=e,s.set(o,e)}break}case 1:case 3:case 2:{let t=r.substring(s,e[1]),c=r.substring(e[4],l),p=u&&!!(t||c),m=t?p?t:t.toLowerCase():void 0,h=c?p?c:c.toLowerCase():void 0,g=f===1?i.dynamic:f===3?i.optional:i.wildcard,_=f!==2&&!d&&g?.find(e=>!e.parse&&e.caseSensitive===p&&e.prefix===m&&e.suffix===h);if(_)n=_;else{let e=Lb(f,r,p,m,h);n=e,e.parent=i,e.depth=a;let t;t=f===1?i.dynamic??=[]:f===3?i.optional??=[]:i.wildcard??=[],t.push(e),t.length===2&&o?.push(t)}break}}i=n}if(d&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Ib(r);e.kind=jb,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith(`/`)){let e=Ib(r);e.kind=Ab,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=d??null,i.priority=s?.params?.priority??0,f&&!i.route&&(i.route=n,i.fullPath=r)}if(n.children)for(let r of n.children)Pb(e,t,r,c,i,a,o,s)}function Fb(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Ib(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Lb(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Rb(e,t){let n=Ib(`/`),r=new Uint16Array(6),i=[];for(let t of e)Pb(!1,r,t,1,n,0,i);for(let e of i)e.sort(Fb);t.masksTree=n,t.flatCache=kb(1e3)}function zb(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Wb(e,t.masksTree);return t.flatCache.set(e,r),r}function Bb(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Ib(`/`),Pb(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Wb(r,o,n)}function Vb(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Wb(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Kb(a.route)),t.matchCache.set(r,a),a}function Hb(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Ub(e,t=!1,n){let r=Ib(e.fullPath),i=new Uint16Array(6),a=[],o={},s={},c=0;Pb(t,i,e,1,r,0,a,e=>{if(n?.(e,c),e.id in o&&Ob(),o[e.id]=e,c!==0&&e.path){let t=Hb(e.fullPath);(!s[t]||e.fullPath.endsWith(`/`))&&(s[t]=e)}c++});for(let e of a)e.sort(Fb);return{processedTree:{segmentTree:r,singleCache:kb(1e3),matchCache:kb(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:s}}function Wb(e,t,n=!1){let r=e.split(`/`),i=Jb(e,r,t,n);if(!i)return null;let[a]=Gb(e,r,i);return{route:i.node.route,rawParams:a}}function Gb(e,t,n){let r=qb(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===Ab)break;if(u.kind===jb){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Kb(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function qb(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Jb(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!ob(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Qb(l,n))continue;if(i.parse){if(!Zb(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==Ab&&Qb(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===Ab||i.kind===2)&&Qb(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Zb(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Xb(f,o))return n;Qb(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(a){if(_)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Yb(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Yb(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Yb(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Yb(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Yb(e,t){return 2**(e-t-1)}function Xb(e,t){return e===2**(t-1)-1}function Zb(e,t,n){let r,i;try{[r,i]=Gb(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Qb(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ab)>(e.node.kind===Ab)||t.node.kind===Ab==(e.node.kind===Ab)&&t.node.depth>e.node.depth)))}function $b(e){return ex(e.filter(e=>e!==void 0).join(`/`))}function ex(e){return e.replace(/\/{2,}/g,`/`)}function tx(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function nx(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function rx(e){return nx(tx(e))}function ix(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function ax(e,t,n){return ix(e,n)===ix(t,n)}function ox({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&ob(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(ob(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=ex(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function sx(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function cx(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>ux(e,n)).join(`/`):ux(r,n):r}function lx({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=Nb(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=cx(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=cx(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=cx(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function ux(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function dx(e){return e?.isNotFound===!0}function fx(){try{return sessionStorage}catch{return}}var px=`tsr-scroll-restoration-v1_3`,mx=fx();function hx(){try{return JSON.parse(mx?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function gx(){try{mx?.setItem(px,JSON.stringify(_x))}catch{}}var _x=hx(),vx=`data-scroll-restoration-id`,yx=e=>e.state.__TSR_key||e.href;function bx(e){let t=e.getAttribute(vx);if(t)return`[${vx}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var xx=!1,Sx=`window`;function Cx(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function wx(e){let t=new Set;for(let n of e){if(n===Sx)continue;let e=Cx(n);e&&t.add(e)}return t}function Tx(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||yx,a=new Set,o=e=>{let t=_x[e]||={};for(let e of a)e===document?t[Sx]={scrollX,scrollY}:e.isConnected&&(t[bx(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,xx=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{xx||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),gx()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=_x[d];if(e){let t=_x[u];for(let n in e){if(n===Sx){if(s)continue}else{let e=Cx(n);if(!e||s&&o&&(l??=wx(o),l.has(e)))continue}t||=_x[u]={},t[n]??=e[n]}}}xx=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=wx(o));let t=e&&i&&c,s=r.restoring?_x[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Sx){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Cx(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{xx=!1}}))}function Ex(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Dx(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Ox(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Dx(r):Array.isArray(t)?t.push(Dx(r)):n[e]=[t,Dx(r)]}return n}var kx=jx(JSON.parse),Ax=Mx(JSON.stringify,JSON.parse);function jx(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ox(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Mx(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Ex(e,r);return t?`?${t}`:``}}var Nx=`__root__`;function Px(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Fx(e){return e instanceof Response&&!!e.options}function Ix(e){return{input:({url:t})=>{for(let n of e)t=Rx(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=zx(e[n],t);return t}}}function Lx(e){let t=rx(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=$b([`/`,t,e.pathname]),e)}}function Rx(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function zx(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Bx(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{Db(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var Vx=`__TSR_index`,Hx=`popstate`,Ux=`beforeunload`;function Wx(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Yx(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Vx];i=Gx(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Vx];i=Gx(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Vx]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Gx(e,t){t||={};let n=Xx();return{...t,key:n,__TSR_key:n,[Vx]:e}}function Kx(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Yx(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Xx();t.history.replaceState({[Vx]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(e,t,n)=>{let r=s(t),i=!!g;i||(u=l),l=Yx(t,n),g=[r,n,g?.[2]||e],i||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Vx]-l.state[Vx],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Wx({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ux,x,{capture:!0}),t.removeEventListener(Hx,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ux,x,{capture:!0}),t.addEventListener(Hx,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function qx(e){let t=e?.window??(typeof document<`u`?window:void 0);return Kx({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return Yx(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function Jx(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Yx(e,t){let n=Jx(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Xx();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Vx]:0,key:a,__TSR_key:a}}}function Xx(){return(Math.random()+1).toString(36).substring(7)}function Zx(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Qx(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function $x({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function eS(e,t,n,r){for(let i of t){if(r?.()===!1)return;n.some(e=>e.routeId===i.routeId)||e.routesById[i.routeId].options.onLeave?.(i)}for(let i of n){if(r?.()===!1)return;e.routesById[i.routeId].options[t.some(e=>e.routeId===i.routeId)?`onStay`:`onEnter`]?.(i)}}var tS=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=sx(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Kx()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=kb(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Bx(this.latestLocation,e),Tx(this)}let a=this.options.basepath??`/`,o=this.options.rewrite;if(r||n!==a||i!==o){this.basepath=a;let e=[],t=rx(a);t&&t!==`/`&&e.push(Lx({basepath:a})),o&&e.push(o),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Ix(e),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Ub(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&Rb(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Tb(e).path,external:!1,searchStr:o,search:pb(t?.search,i),hash:Tb(r.slice(1)).path,state:mb(t?.state,a)}}let o=new URL(i,this.origin),s=Rx(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:Tb(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:pb(t?.search,c),hash:Tb(s.hash.slice(1)).path,state:mb(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ox({base:e,to:t.includes(`//`)?ex(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Vb(nx(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this._pendingLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r[1],a=t.to?`${t.to}`:void 0,o=r[2],s=Object.assign(Object.create(null),r[3]),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=sS(t.params,s),d=this.routesByPath[nx(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let[e,t,n]=this.getMatchedRoutes(l);f=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&db(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:Tb(lx({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,iS(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=aS(m,t,f,e._includeValidateSearch),m=pb(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?cb(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?cb(t.state,n.state):{};v=mb(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=zx(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=Eb(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=zb(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=sS(s,n);r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=nx(this.latestLocation.href)===nx(n.href)&&yb($x(n.state),$x(this.latestLocation.state)),a=this._commitPromise,o,s=new Promise(e=>{o=e});if(s.resolve=()=>{o(),a?.resolve()},this._commitPromise=s,i)this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:r}})}return this._scroll.next=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,_redirects:a,href:o,...s}={})=>{if(o){let t=this.history.location.state.__TSR_index,n=Yx(o,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);s.to=Rx(this.rewrite,r).pathname,s.search=this.options.parseSearch(n.search),s.hash=n.hash.slice(1)}let c=this.buildLocation({...s,_includeValidateSearch:!0});a&&(c._redirects=a),this._pendingLocation=c;let l=this.commitLocation({...c,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===c&&(this._pendingLocation=void 0)}),l},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(wb(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.hash=e.action.type===`PUSH`||e.action.type===`REPLACE`),await $S(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Qx(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set([...t,...this._cache.values(),...[...r?.values()??[]].flat(),...this._tx?.[3]??[]].filter(e=>!n||n(e)).map(e=>e.id)),a=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),a.push(e));let o=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&Zx(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(o);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i)this._flights?.delete(e);for(let e of a)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=(e.options._builtLocation??this.buildLocation(e.options)).publicHref||`/`;e.options.href=t,e.headers.set(`Location`,t)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&wb(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=dS,this.preloadRoute=e=>eC(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Bb(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!yb(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?yb(a.search,r.search,{partial:!0})?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Ax,parseSearch:e.parseSearch??kx,protocolAllowlist:e.protocolAllowlist??Cb}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Kb(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:nx(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?oS(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=iS(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof nS||(r=new nS(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let{interpolatedPath:g,usedParams:_}=lx({path:i.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),v=i.id+g+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(_,d);let x;if(!b)try{cS(i,d)}catch(e){if(x=dx(e)||Fx(e)?e:new rS(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:pb(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=Zx(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:g,updatedAt:Date.now(),search:y?pb(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:S,loaderDeps:y?mb(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?pb(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=ob(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=ob(a),c={...e.search};for(let e of a)try{Object.assign(c,iS(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=Object.assign(Object.create(null),o);for(let t of a)try{cS(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}},nS=class extends Error{},rS=class extends Error{};function iS(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new nS(`Async validation not supported`);if(n.issues)throw new nS(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function aS(e,t,n,r){let i=[];for(let e of n){let t=e.options;`search`in t?t.search?.middlewares&&i.push(...t.search.middlewares):(t.preSearchFilters||t.postSearchFilters)&&i.push(({search:e,next:n})=>{let r=n(t.preSearchFilters?t.preSearchFilters.reduce((e,t)=>t(e),e):e);return t.postSearchFilters?t.postSearchFilters.reduce((e,t)=>t(e),r):r});let n=t.validateSearch;n&&i.push(({search:e,next:t,meta:i})=>{let a=t(e);if(r)try{let e=iS(n,a);if(i&&e)for(let t in e)t in a||(i.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let a=(e,n,r)=>{if(e>=i.length){if(!t.search)return{};if(t.search===!0)return n;let e=cb(t.search,n);return r&&(r.explicit=e),e}return i[e]({search:n,next:(t,n)=>{if(n){let n=r||{};return{search:a(e+1,t,n),meta:n}}return a(e+1,t,r)},meta:r})};return a(0,e)}function oS(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Nx}function sS(e,t){return e===!1||e===null?Object.create(null):(e??!0)===!0?t:Object.assign(t,cb(e,t))}function cS(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function lS(e,t){return e.options[t]?.preload?.()}function uS(e,t){let n=lS(e,`component`),r=lS(e,`pendingComponent`),i=t&&r?r.then(t):r;return t&&!r&&t(),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function dS(e,t,n){let r=()=>t===!1?void 0:t?lS(e,t):uS(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function fS(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}var pS=0,mS=1,hS=2,gS=3,_S=4;function vS(e){return typeof e[0]==`number`}function yS(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).finally(()=>t.removeEventListener(`abort`,i))})}function bS(e,t){return e.routesById[t.routeId]}function xS(e,t,n){return Fx(e)?[gS,e]:dx(e)?(e.routeId||=n,[hS,e]):(t&&typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),t?[mS,e]:[pS,e])}function SS(e,t){let n=xS(t,!0,e.id);if(n[0]!==mS)return n;try{e.options.onError?.(n[1])}catch(t){n=xS(t,!0,e.id)}return n}function CS(e,t,n){return n[0].signal.aborted||!n[2]()?(n[0].abort(),[_S]):SS(e,t)}function wS(e,t){return n=>e.navigate({...n,_fromLocation:t})}async function TS(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[4];for(let t=n[7]??0;t<r;t++){let r=s[t],i=bS(e,r);r.abortController=n[0];let u=s[t-1]?.context??e.options.context??{},d={params:r.params,location:o,navigate:wS(e,o),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:i.id},f=u;try{let e=r._ctx;!e&&i.options.context&&(e=r._ctx=i.options.context({...d,deps:r.loaderDeps,context:u})||{}),f={...u,...e},r.context=f}catch(a){return DS(e,r),[t,CS(i,a,n)]}if(c.aborted||!n[2]())return n[0].abort(),[t,[_S]];let p=r.paramsError??r.searchError;if(p!==void 0)return DS(e,r),[t,CS(i,p,n)];let m=i.options.beforeLoad;if(!m)continue;let h={...d,search:r.search,context:f,...e.options.additionalContext},g=r.status;g===`success`&&t>=a&&(r.status=`pending`),n[8]?.();try{AS(e,r,`beforeLoad`,n[0]);let a=await yS(m(h),c);if(!n[2]())return n[0].abort(),[t,[_S]];let o=xS(a,!1,i.id);if(o[0]!==pS)return DS(e,r),[t,o];r.context={...f,...a}}catch(a){return DS(e,r),[t,CS(i,a,n)]}finally{g===`success`&&r.status===`pending`&&(r.status=`success`),AS(e,r,!1,n[0])}}i()}function ES(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function DS(e,t){let n=t._flight;t._flight=void 0,ES(e,t,n)?.abort()}function OS(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=ES(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function kS(e){for(let t of e){let e=t._flight;e&&e[2]++}}function AS(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function jS(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:wS(e,s),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function MS(e,t,n,r,i,a,o,s){let c=s.signal;if(c.aborted)return[_S];if(!i)return[pS,void 0];let l=n._flight;AS(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(jS(e,t,n,r,s,a,o))).then(e=>xS(e,!1,r.id),e=>xS(e,!0,r.id)).then(t=>(t[0]!==pS&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===mS&&l[2]?SS(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],await yS(l[0],c)}catch(t){if(t!==c)throw t;return DS(e,n),[_S]}finally{AS(e,n,!1,s)}}function NS(e,t,n){t[0]===pS?(e.loaderData=t[1],e.error=void 0,e.status=`success`,e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):t[0]!==gS&&(e.status=`success`,e.error=void 0,e.invalid=!0)}function PS(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&DS(e,r)}function FS(e,t){return t[0]===mS||t[0]===hS?{...e,status:t[0]===mS?`error`:`notFound`,error:t[1],_flight:void 0}:e}function IS(e,t,n,r,i,a,o){let s=t[1][n],c=bS(e,s),l=!!a[4],u=l?e._cache.get(s.id):void 0,d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(jS(e,t,s,c,a[0],i,l))),a[2]()||(a[0].abort(),p=[_S])),!p){if(s.status!==`success`)f=!0;else{let t=a[4]||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[6]||s.cause===`enter`||a[3].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(t){s.invalid=!0,DS(e,s),p=CS(c,t,a)}let m=c.options.loader,h=typeof m==`function`?m:m?.handler,g=(!l||c.options.preload!==!1)&&m?e._flights?.get(s.id):void 0;g===s._flight||p?g=void 0:g&&!f&&!l&&d===void 0?f=!0:f||(g=void 0);let _=!!(m&&f&&s.status===`success`&&!l&&!a[5]&&((typeof m==`function`?void 0:m?.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),v=f&&(!l||c.options.preload!==!1),y=v&&!_&&(s.status!==`success`||!!m),b=c.lazyFn&&c._lazy!==!0?a[8]:void 0;if(v&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),g&&g[2]++,y){let t=s._flight;s._flight=g,ES(e,s,t)?.abort(),s.status===`success`&&n>=o&&(s.status=`pending`),a[8]?.()}v||(s.isFetching=!1);let x=(p?Promise.resolve(p):y?MS(e,t,s,c,h,i,l,a[0]):Promise.resolve([pS,s.loaderData])).then(t=>(y&&(NS(s,t,l),t[0]===pS&&(l&&m&&!a[0].signal.aborted&&PS(e,s,u),s.status=`pending`)),t)),S=yS(Promise.resolve().then(()=>dS(c,void 0,b)),a[0].signal).then(()=>void 0,e=>[n,CS(c,e,a)]).then(e=>x.then(t=>(y&&!e&&t[0]===pS&&s.status===`pending`&&a[2]()&&(s.status=`success`,a[8]?.()),e)));if(r.push([n,x,S]),!_)return x.then(e=>FS(s,e));let C={...s,status:`pending`,preload:!1,_flight:g};s.invalid=!1,s.isFetching=`loader`;let w=MS(e,t,C,c,h,i,!1,a[0]).then(e=>(s.isFetching=!1,NS(C,e,!1),e));return(t[2]??=[]).push([n,w,S,C]),w.then(e=>FS(C,e))}async function LS(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=bS(e,t[n]),a=dS(i,!1);if(a)try{await yS(a,r)}catch(e){if(e===r)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function RS(e,t){t[2]&&=(OS(e,t[2].map(e=>e[3])),void 0)}async function zS(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=gS)throw[a,t];!i&&t[0]!==pS&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===gS)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}async function BS(e,t,n,r,i,a,o){let s=t[1],c=await a,l=!1,u=s.findIndex(e=>e._notFound),d=t=>t[1][0]===hS?LS(e,s,t,r.signal):t[0],f=u<0?s.length:u;if((c?.[1][0]??0)>=gS)f=0;else if(c){f=c[2]??=await d(c);for(let e of n){if(e[0]>=f)break;let t=await e[1];if(t[0]!==pS&&t[0]<gS&&!(`loaderData`in s[e[0]])){c=[e[0],t],f=c[2]=await d(c);break}}}for(let e of n){if(e[0]>=f)break;let t=await e[2];if(t){c=t;break}}if((c?.[1][0]??0)>=gS){let n=c[1];if(n[0]!==gS||n[1].options.reloadDocument||i<20)return RS(e,t),n;l=!0,c=[0,[mS,Error(`Too many redirects`)]]}let p=c?c[2]??await d(c):u;if(p>=0){let i=c?.[1],a=i?.[0],u=s[p],d=i?.[1],f=()=>{i&&(u._notFound=void 0,a===mS?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};f();let m=bS(e,u);try{await yS(i?Promise.resolve().then(()=>dS(m,a===mS?`errorComponent`:`notFoundComponent`)):Promise.all([dS(m),dS(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal)return RS(e,t),[_S]}i?l&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),RS(e,t),OS(e,s),f()):(u.status=`success`,o?.())}return t}async function VS(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=bS(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await yS(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function HS(e,t,n,r){let i=[t,n],a=e.stores.matches.get(),o=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&o>=0){let t=await LS(e,i[1],void 0,r[0].signal,o);t!==o&&(n[o]._notFound=void 0,n[t]._notFound=!0),o=t}let s=o<0?n.length:o+1,c=0;for(;c<s&&c!==o;){let e=n[c],t=r[3][c],i=a[c];if(t?.id!==e.id||t.status!==`success`||t._notFound||e.preload||i?.id!==e.id||i.status!==`success`||i._notFound)break;c++}let l=[],u=r[7]??0,d=u?Promise.resolve(i[1][u-1]):void 0,f=()=>{for(let t=u;t<s&&!r[0].signal.aborted;t++)d=IS(e,i,t,l,d,r,c)},p=await TS(e,i,r,s,f,c);if(p&&(r[5]=!0,s=p[0],p[1][0]===hS?(p[2]=await LS(e,i[1],p,r[0].signal),s=Math.min(s,p[2]+1)):p[1][0]>=gS&&(s=0),f()),r[2]()&&!r[4]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let m;try{let t=BS(e,i,l,r[0],r[1],zS(l,p,i[2]),r[8]);i[2]?.length&&(i[3]=zS(i[2],void 0,void 0,t.then(e=>vS(e)?0:fS(e[1]).length,()=>0))),m=await t}catch(t){throw RS(e,i),t}return vS(m)?m:VS(e,m,r[0].signal,r[7]===m[1].length?r[7]:0)}function US(e,t){if(e._tx!==t)return;let n=e._pending,r=!1,i=n?.[0][3][n[1]]?.id;n?.[0]!==t&&(n&&t[3][n[1]]?.id===i?(n[0]=t,r=!0):(clearTimeout(n?.[3]),e._pending=n=void 0));let a=t[3],o=e.stores.matches.get(),s=-1,c,l,u,d=!1;for(let t=0;t<a.length;t++){let n=a[t],r=n.status===`success`;if(d=o[t]?.id===n.id&&o[t]?.status===`pending`,r&&!d)continue;let i=bS(e,n);if(c=r&&d||n.invalid?0:i.options.pendingMs??e.options.defaultPendingMs,u=i.options.pendingComponent??e.options.defaultPendingComponent,!u||typeof c!=`number`||c===1/0)return;s=t,l=i.options.pendingMinMs??e.options.defaultPendingMinMs??0;break}if(s<0)return;let f=a[s].id;if((!n||n[1]!==s||i!==f)&&(clearTimeout(n?.[3]),e._pending=n=[t,s,d?Date.now()+l:t[4]+c,void 0,d?Promise.resolve(!0):void 0,u]),n[4]&&!r&&n[5]===u)return;if(n[5]=u,!n[4]){clearTimeout(n[3]);let r=n[2]-Date.now();if(r>0){n[3]=setTimeout(()=>US(e,t),r);return}n[2]=0}let p=a.map(e=>({...e,_flight:void 0}));p[s].status=`pending`;let m=e.startTransition(()=>e.stores.setMatches(p),p).then(t=>(t&&e._pending===n&&n[4]===m&&!n[2]&&(n[2]=Date.now()+l),t));n[4]=m}function WS(e,t){let n=e._pending;n?.[0]===t&&(clearTimeout(n[3]),e._pending=void 0)}function GS(e,t){e._committed=t,e.stores.setMatches(t)}function KS(e,t){OS(e,t[1]),RS(e,t)}function qS(e,t,n,r){let i=e._committed,a=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let o=fS(n).length,s=new Map,c=Date.now();for(let t of[...i,...a.values()]){if(t.status!==`success`||n.some((e,n)=>e.id===t.id&&(n<o||e.status===`success`)))continue;let r=bS(e,t);!r.options.loader||c-t.updatedAt>=(t.preload?r.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:r.options.gcTime??e.options.defaultGcTime??3e5)||s.set(t.id,a.get(t.id)===t?t:{...t,_flight:void 0,isFetching:!1,context:{}})}t[3]=[],e._cache=s,GS(e,n),OS(e,[...a.values(),...i],[...n,...s.values()]),eS(e,i,n,()=>e._tx===t)}async function JS(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}async function YS(e,t,n){await e.navigate({...n.options,replace:!0,ignoreBlocker:!0,_redirects:t[1]+1})}function XS(e,t){WS(e,t),t[0].abort(),OS(e,t[3]),t[3]=[],e._tx===t&&(e.batch(()=>{e.stores.status.set(`idle`),e.stores.setMatches(e._committed)}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0))}async function ZS(e,t,n,r,i){let a=n.map(e=>({...e}));kS(a);for(let t of r)DS(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await BS(e,o,r,t[0],t[1],i)}catch(t){throw OS(e,a),t}if(vS(s)){OS(e,a),s[0]===gS&&e._tx===t&&e._committed===n&&await YS(e,t,s[1]);return}let c=await VS(e,s,t[0].signal);if(e._tx!==t||e._committed!==n){OS(e,c[1]);return}for(let t of c[1]){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),DS(e,n))}GS(e,c[1]),OS(e,n,c[1])}async function QS(e,t,n,r,i,a){let o=[t[0],t[1],()=>e._tx===t&&!!t[3].length,e._committed,void 0,i,n,a,r],s=await HS(e,t[2],t[3],o);if(vS(s)){s[0]===gS&&e._tx===t?(WS(e,t),OS(e,t[3]),t[3]=[],e._tx===t&&await YS(e,t,s[1])):XS(e,t);return}let c=e._pending;if(c?.[0]===t&&(clearTimeout(c[3]),c[4])){let n=t[0].signal,r=!1;try{r=await yS(c[4],n)}catch(e){if(e!==n)throw e}if(r&&e._pending===c&&c[0]===t){let e=c[2]-Date.now();if(e>0){try{await yS(new Promise(t=>{c[3]=setTimeout(t,e)}),n)}catch{}clearTimeout(c[3])}}}if(e._tx!==t){WS(e,t),KS(e,s);return}let l=t[2],u=Qx(l,e.stores.resolvedLocation.get()),d=s[2];await e.startViewTransition(async()=>{if(e._tx!==t){KS(e,s);return}let n=await e.startTransition(()=>{WS(e,t),qS(e,t,s[1],a),e._tx===t&&(e.emit({type:`onLoad`,...u}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...u}))},s[1]);if(e._tx!==t){RS(e,s);return}d?.length&&ZS(e,t,s[1],d,s[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(l),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...u}),n&&e._tx===t&&e.emit({type:`onRendered`,...u})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function $S(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),u.signal.aborted){await JS(e,n);return}let f=Qx(a,r);if(e.emit({type:`onBeforeNavigate`,...f}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...f}),u.signal.aborted){await JS(e,n);return}let p=i.href===a.href,m,h=u;try{m=e.matchRoutes(a,{_controller:u}),kS(m)}catch(t){if(u.abort(),!Fx(t)){await JS(e),e._commitPromise?.resolve(),e._commitPromise=void 0;return}await e.navigate({...t.options,replace:!0,ignoreBlocker:!0}),await JS(e,n);return}let g=l?c[1](m):void 0;if(g?h=l:l?.abort(),u.signal.aborted){OS(e,m),await JS(e,n);return}e._preflight=void 0;let _=[h,s,a,m,Date.now(),Promise.resolve().then(()=>QS(e,_,p,()=>US(e,_),t?.sync,g)).catch(()=>{e._tx===_&&XS(e,_)})];if(e._tx=_,n){for(let t of e.stores.matches.get()){if(e._tx!==_)break;t.isFetching&&AS(e,t,!1)}n[0].abort(),OS(e,n[3],_[3],!0)}if(e._tx!==_){OS(e,_[3]),_[3]=[],await JS(e,_);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),!r&&!m.some(e=>e._notFound)&&US(e,_);try{await _[5]}finally{await JS(e,_)}}async function eC(e,t,n=0){if(n>20)return;let r=t._builtLocation??e.buildLocation(t),i=e._committed,a=new AbortController,o;try{o=e.matchRoutes(r,{_controller:a}),kS(o)}catch(e){a.abort(),dx(e)||console.error(e);return}(e._preloads??=new Map).set(a,o);let s;try{let t;try{t=await HS(e,r,o,[a,n,()=>!0,i,!0])}finally{s=e._preloads.delete(a),OS(e,o),a.abort()}if(!vS(t))return t[1];if(s&&t[0]===gS&&!t[1].options.reloadDocument)return eC(e,{...t[1].options,_fromLocation:r},n+1)}catch(e){dx(e)||console.error(e)}}var tC=`Error preloading route! ☝️`,nC=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Nx:this.parentRoute||Ob();let r=n?Nx:t?.path;r&&r!==`/`&&(r=tx(r));let i=t?.id||r,a=n?Nx:$b([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=$b([`/`,a]));let o=a===`__root__`?`/`:$b([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=nx(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Px({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},rC=class extends nC{constructor(e){super(e)}};function iC(e){return(0,Z.jsx)(aC,{...e})}var aC=class extends X.Component{constructor(...e){super(...e),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?X.createElement(this.props.errorComponent??oC,{error:e,reset:this.reset}):this.props.children}};function oC({error:e}){let[t,n]=X.useState(!1);return(0,Z.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Z.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Z.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Z.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Z.jsx)(`div`,{children:(0,Z.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Z.jsx)(`code`,{children:e.message}):null})}):null]})}function sC({children:e,fallback:t=null}){return(0,Z.jsx)(X.Fragment,{children:cC()?e:t})}function cC(){return X.useSyncExternalStore(lC,()=>!0,()=>!1)}function lC(){return()=>{}}var uC=X.createContext(null);function dC(e){return X.useContext(uC)}var fC=X.createContext(void 0),pC=X.createContext(void 0),Q=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Q||{});function mC({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function hC(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var gC=[],_C=0,{link:vC,unlink:yC,propagate:bC,checkDirty:xC,shallowPropagate:SC}=mC({update(e){return e._update()},notify(e){gC[wC++]=e,e.flags&=~Q.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Q.Mutable|Q.Dirty,OC(e))}}),CC=0,wC=0,TC,EC=0;function DC(e){try{++EC,e()}finally{--EC||kC()}}function OC(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=yC(n,e)}function kC(){if(!(EC>0)){for(;CC<wC;){let e=gC[CC];gC[CC++]=void 0,e.notify()}CC=0,wC=0}}function AC(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Q.None:Q.Mutable,get(){return TC!==void 0&&vC(i,TC,_C),i._snapshot},subscribe(e){let t=hC(e),n={current:!1},r=jC(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=TC,o=t?.compare??Object.is;if(n)TC=i,++_C,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Q.Mutable|Q.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{TC=a,n&&(i.flags&=~Q.RecursedCheck),OC(i)}}};return n?(i.flags=Q.Mutable|Q.Dirty,i.get=function(){let e=i.flags;if(e&Q.Dirty||e&Q.Pending&&xC(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&SC(e)}}else e&Q.Pending&&(i.flags=e&~Q.Pending);return TC!==void 0&&vC(i,TC,_C),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(bC(e),SC(e),kC())}},i}function jC(e){let t=()=>{let t=TC;TC=n,++_C,n.depsTail=void 0,n.flags=Q.Watching|Q.RecursedCheck;try{return e()}finally{TC=t,n.flags&=~Q.RecursedCheck,OC(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Q.Watching|Q.RecursedCheck,notify(){let e=this.flags;e&Q.Dirty||e&Q.Pending&&xC(this.deps,this)?t():this.flags=Q.Watching},stop(){this.flags=Q.None,this.depsTail=void 0,OC(this)}};return t(),n}var MC=Qn();function NC(e,t){return e===t}function PC(e,t,n=NC){let r=(0,X.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,X.useCallback)(()=>e?.get(),[e]);return(0,MC.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var FC={};function IC(e,t){let n=X.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=mb(n.current,i):i}}function LC(e){let t=dC(),n=X.useContext(e.from?pC:fC),r=e.from??n,i=t.stores.getMatchStore(r),a=IC(e,t),o=PC(i,e=>e?a(e):FC);if(o!==FC)return o;(e.shouldThrow??!0)&&Ob()}function RC(e){return LC({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function zC(e){let{select:t,...n}=e;return LC({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function BC(e){return LC({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function VC(e){return LC({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function HC(e){let t=dC();return X.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function UC(e){return LC({...e,select:t=>e.select?e.select(t.context):t.context})}var WC=t(Sn(),1);function GC(e){let t=X.useRef(e);return yb(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function KC(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function qC(e,t,n){if(e?.external)return wb(e.href,n)?void 0:e.href;if(!aw(t)&&typeof t==`string`&&t.indexOf(`:`)!==-1)try{return new URL(t),wb(t,n)?void 0:t}catch{}}function JC(e,t,n,r,i,a){if(a)return!1;if(n?.exact){if(!ax(e.pathname,t.pathname,r))return!1}else{let n=ix(e.pathname,r),i=ix(t.pathname,r);if(!(n.startsWith(i)&&(n.length===i.length||n[i.length]===`/`)))return!1}return(n?.includeSearch??!0)&&!yb(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:!n?.includeHash||i&&e.hash===t.hash}function YC(e,t){let n=dC(),r=ab(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:ee,onTouchStart:T,ignoreBlocker:te,params:E,search:ne,hash:re,state:D,mask:ie,reloadDocument:ae,unsafeRelative:oe,from:se,_fromLocation:ce,...le}=e,ue=cC(),de=GC(e.search),fe=GC(e.params),pe=GC(o),me=X.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,de,fe,e.state,e.mask,e.unsafeRelative]),he=X.useCallback(e=>{let t=n.buildLocation({_fromLocation:e,...me}),r=iw(t.maskedLocation?t.maskedLocation.publicHref:t.publicHref,t.maskedLocation?t.maskedLocation.external:t.external,n.history,v),i=qC(r,s,n.protocolAllowlist);return[r?.href,i,JC(e,t,pe,n.basepath,ue,i!==void 0)]},[pe,v,ue,me,n,s]),[ge,_e,ve]=PC(n.stores.location,he,KC),ye=ve?cb(i,{})??ZC:XC,be=ve?XC:cb(a,{})??XC,xe=[b,ye.className,be.className].filter(Boolean).join(` `),Se=(y||ye.style||be.style)&&{...y,...ye.style,...be.style},[Ce,we]=X.useState(!1),Te=X.useRef(!1),Ee=e.reloadDocument||_e?!1:c??n.options.defaultPreload,De=l??n.options.defaultPreloadDelay??0,Oe=X.useCallback(()=>{n.preloadRoute(me).catch(e=>{console.warn(e),console.warn(tC)})},[n,me]);ib(r,X.useCallback(e=>{e?.isIntersecting&&Oe()},[Oe]),nw,!!v||Ee!==`viewport`),X.useEffect(()=>{Te.current||!v&&Ee===`render`&&(Oe(),Te.current=!0)},[v,Oe,Ee]);let ke=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!sw(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,WC.flushSync)(()=>{we(!0)});let t=n.subscribe(`onResolved`,()=>{t(),we(!1)});n.navigate({...me,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:te})}};if(_e)return{...le,ref:r,href:_e,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...ee&&{onMouseLeave:ee},...T&&{onTouchStart:T}};let Ae=e=>{if(v||Ee!==`intent`)return;if(!De){Oe();return}let t=e.currentTarget;if(tw.has(t))return;let n=setTimeout(()=>{tw.delete(t),Oe()},De);tw.set(t,n)},je=e=>{v||Ee!==`intent`||Oe()},Me=e=>{if(v||!Ee||!De)return;let t=e.currentTarget,n=tw.get(t);n&&(clearTimeout(n),tw.delete(t))};return{...le,...ye,...be,href:ge,ref:r,onClick:rw([x,ke]),onBlur:rw([S,Me]),onFocus:rw([C,Ae]),onMouseEnter:rw([w,Ae]),onMouseLeave:rw([ee,Me]),onTouchStart:rw([T,je]),disabled:!!v,target:_,...Se&&{style:Se},...xe&&{className:xe},...v&&QC,...ve&&$C,...ue&&Ce&&ew}}var XC={},ZC={className:`active`},QC={role:`link`,"aria-disabled":!0},$C={"data-status":`active`,"aria-current":`page`},ew={"data-transitioning":`transitioning`},tw=new WeakMap,nw={rootMargin:`100px`},rw=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function iw(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function aw(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var ow=X.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=YC(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return X.createElement(`a`,t,o)}return X.createElement(n,a,o)});function sw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var cw=class extends nC{constructor(e){super(e),this.useMatch=e=>LC({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>UC({...e,from:this.id}),this.useSearch=e=>VC({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>BC({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>zC({...e,from:this.id}),this.useLoaderData=e=>RC({...e,from:this.id}),this.useNavigate=()=>HC({from:this.fullPath}),this.Link=X.forwardRef((e,t)=>(0,Z.jsx)(ow,{ref:t,from:this.fullPath,...e}))}};function lw(e){return new cw(e)}var uw=class extends rC{constructor(e){super(e),this.useMatch=e=>LC({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>UC({...e,from:this.id}),this.useSearch=e=>VC({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>BC({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>zC({...e,from:this.id}),this.useLoaderData=e=>RC({...e,from:this.id}),this.useNavigate=()=>HC({from:this.fullPath}),this.Link=X.forwardRef((e,t)=>(0,Z.jsx)(ow,{ref:t,from:this.fullPath,...e}))}};function dw(e){return new uw(e)}function fw(e){let t=dC(),n=`not-found-${PC(t.stores.location,e=>e.pathname)}-${PC(t.stores.status,e=>e)}`;return(0,Z.jsx)(iC,{getResetKey:()=>n,onCatch:(t,n)=>{if(dx(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(dx(t))return e.fallback?.(t);throw t},children:e.children})}function pw(){return(0,Z.jsx)(`p`,{children:`Not Found`})}function mw(e){return(0,Z.jsx)(Z.Fragment,{children:e.children})}function hw(e,t,n){return t.options.notFoundComponent?(0,Z.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Z.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Z.jsx)(pw,{})}function gw(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,Z.jsx)(n,{}):null}var _w=(e,t)=>e[0]===t[0]&&e[1]===t[1],vw=X.memo(function({routeId:e}){let t=dC();return(0,Z.jsx)(yw,{router:t,match:PC(t.stores.getMatchStore(e),e=>e)})});function yw({router:e,match:t}){let n=e.routesById[t.routeId],r=gw(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)?X.Suspense:mw,l=i?iC:mw,u=o?fw:mw;return(0,Z.jsxs)(n.isRoot?n.options.shellComponent??mw:mw,{children:[(0,Z.jsx)(fC.Provider,{value:t.routeId,children:(0,Z.jsx)(c,{fallback:r,children:(0,Z.jsx)(l,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(dx(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:(0,Z.jsx)(u,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return X.createElement(o,e)},children:s?(0,Z.jsx)(sC,{fallback:r,children:(0,Z.jsx)(bw,{match:t})}):(0,Z.jsx)(bw,{match:t})})})})}),null]})}var bw=X.memo(function({match:e}){let t=dC(),n=e.routeId,r=t.routesById[n],i=X.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=X.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,Z.jsx)(e,{},i):(0,Z.jsx)(xw,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t._tx)throw t._tx[5];return gw(t,r)}if(e.status===`notFound`)return hw(t,r,e.error);if(e.status===`error`)throw e.error;return a}),xw=X.memo(function(){let e=dC(),t=X.useContext(fC),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=PC(a,e=>[!!e._notFound,e.error],_w),i=PC(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return hw(e,e.routesById[t],r);if(!i)return null;let a=(0,Z.jsx)(vw,{routeId:i});return t===`__root__`?(0,Z.jsx)(X.Suspense,{fallback:gw(e),children:a}):a});function Sw(e,t){let n=e[1];e.length=0,n?.(t)}function Cw({t:e}){let t=dC(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise((a,o)=>{Sw(n,!1),n.push(i,a),e(t),X.startTransition(()=>{try{r()}catch(e){n[1]===a&&(n.length=0),o(e)}})}),rb(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(nx(r.publicHref)!==nx(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...Qx(a,a)})}):t._tx||t.load().catch(console.error),e},[t,t.history]),null}function ww(){let e=dC(),t=e.routesById[Nx],n=gw(e,t),r=e.ssr?mw:X.Suspense,i=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Cw,{t:X.useState()[1]}),(0,Z.jsx)(r,{fallback:n,children:(0,Z.jsx)(Tw,{})})]});return e.options.InnerWrap?(0,Z.jsx)(e.options.InnerWrap,{children:i}):i}function Tw(){let e=dC(),t=e._rendered,n=PC(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;rb(()=>{t[0]===n&&Sw(t,!0)},[t,n]);let a=i?(0,Z.jsx)(vw,{routeId:i}):null;return(0,Z.jsx)(fC.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,Z.jsx)(iC,{getResetKey:()=>r,onCatch:void 0,children:a})})}var Ew=e=>({createMutableStore:AC,createReadonlyStore:AC,batch:DC}),Dw=e=>new Ow(e),Ow=class extends tS{constructor(e){super(e,Ew)}};function kw({router:e,children:t,...n}){db(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,Z.jsx)(uC.Provider,{value:e,children:t});return e.options.Wrap?(0,Z.jsx)(e.options.Wrap,{children:r}):r}function Aw({router:e,...t}){return(0,Z.jsx)(kw,{router:e,...t,children:(0,Z.jsx)(ww,{})})}function jw(e){let t=dC();return PC(t.stores.location,IC(e,t))}function Mw(e){return re(`AIAssistant`,`status`,void 0,{enabled:e,cacheTtl:nn.Volatile.staleTime})}function Nw(e){let{data:t,loading:n,error:r}=Mw(e);return!e||n||r?null:gn(t?.enabled)&&gn(t?.authorized)}function Pw(e){let t=Nw(e),n=(0,X.useRef)(!1);return e?t!==null&&(n.current=t):n.current=!1,n.current}function Fw(e){let{loading:t,error:n}=Mw(e);return e&&!t&&!!n}function Iw(e){return`category`in e&&!(`kind`in e)}var Lw={Pages:`page`,Actions:`action`,Email:`tool`,Files:`tool`,Databases:`tool`,Security:`tool`,Domains:`tool`,Monitor:`tool`};function Rw(e,t){return Iw(e)?{kind:Lw[e.category]??`page`,label:e.label,keywords:e.keywords,href:`#/${t}`}:e}var zw=`1.0.0`;function Bw(e){let[t]=e.split(`.`),[n]=zw.split(`.`);return t===n}function Vw(e){return typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.slug==`string`&&typeof e.displayName==`string`&&typeof e.version==`string`&&typeof e.entrypoints==`object`}function Hw(){let e,t=window.__MERIDIAN_REGISTRY__;if(Array.isArray(t)&&t.length>0)e=t;else return[];return e.filter(e=>Vw(e)?e.contractVersion&&!Bw(e.contractVersion)?(console.warn(`[Registry] Skipping ${e.slug}: contractVersion ${e.contractVersion} incompatible with ${zw}`),!1):!0:!1)}var Uw=Hw(),Ww=Uw.map(e=>{let t=(e.entrypoints.mf??`remoteEntry.js`).replace(/^\.\//,``),n=`/frontend/meridian/${e.slug}/${t}`;return{hubId:e.slug,remoteName:`meridian_${e.slug.replace(/-/g,`_`)}`,entry:n,loadPriority:e.loadPriority??`lazy`}});function Gw(e){return Uw.find(t=>t.slug===e)}function Kw(e,t){let n=e.dependencies?.optional?.features??[];return n.length===0||n.some(e=>t[e]===!0)}function qw(e,t){let n=Uw.find(t=>t.slug===e.hubId),r=n?.dependencies?.required??[];return Gt(r,t)?!n?.hideWhenNoOptionalFeatures||Kw(n,t):!1}function Jw(){let e=ht();return Ww.filter(t=>qw(t,e))}var Yw=``+new URL(`ai-assistant-D_-DFt7T.jpg`,import.meta.url).href,Xw=``+new URL(`mcp-Sc_sqNmK.jpg`,import.meta.url).href,Zw=``+new URL(`nodejs-CqPNCU3o.jpg`,import.meta.url).href,Qw=``+new URL(`nova-AxUVs7B3.jpg`,import.meta.url).href,$w=``+new URL(`nova-wordpress-B1V5HOgr.jpg`,import.meta.url).href,eT=``+new URL(`sitejet-CFC5b3yI.jpg`,import.meta.url).href,tT=[{id:`nova`,release:1,imageUrl:Qw,headingKey:`shell.whatsNew.nova.heading`,taglineKey:`shell.whatsNew.nova.tagline`,bodyKey:`shell.whatsNew.nova.body`,badges:[{labelKey:`shell.whatsNew.badge.nowInMeridian`,style:`solid`}]},{id:`nova-wordpress`,release:1,imageUrl:$w,headingKey:`shell.whatsNew.novaWordPress.heading`,taglineKey:`shell.whatsNew.novaWordPress.tagline`,bodyKey:`shell.whatsNew.novaWordPress.body`,badges:[{labelKey:`shell.whatsNew.badge.newInMeridian`,style:`solid`}]},{id:`ai-assistant`,release:1,imageUrl:Yw,headingKey:`shell.whatsNew.aiAssistant.heading`,taglineKey:`shell.whatsNew.aiAssistant.tagline`,bodyKey:`shell.whatsNew.aiAssistant.body`,badges:[{labelKey:`shell.whatsNew.badge.new`,style:`solid`},{labelKey:`shell.whatsNew.badge.meridianOnly`,style:`outline`}]},{id:`mcp`,release:1,imageUrl:Xw,headingKey:`shell.whatsNew.mcp.heading`,taglineKey:`shell.whatsNew.mcp.tagline`,bodyKey:`shell.whatsNew.mcp.body`,badges:[{labelKey:`shell.whatsNew.badge.new`,style:`solid`}]},{id:`webapp`,release:1,imageUrl:Zw,headingKey:`shell.whatsNew.webapp.heading`,taglineKey:`shell.whatsNew.webapp.tagline`,bodyKey:`shell.whatsNew.webapp.body`,badges:[{labelKey:`shell.whatsNew.badge.new`,style:`solid`},{labelKey:`shell.whatsNew.badge.meridianOnly`,style:`outline`}]},{id:`sitejet`,release:1,imageUrl:eT,headingKey:`shell.whatsNew.sitejet.heading`,taglineKey:`shell.whatsNew.sitejet.tagline`,bodyKey:`shell.whatsNew.sitejet.body`,badges:[]}],nT={nova:`nova`,"nova-wordpress":`nova-wordpress`,webapp:`webapp`,sitejet:`sitejet`};function rT(e,t){let n=nT[e.id];return n?!t.hasFeatureData||Qt(Ht(n),t.features,t.capabilities,t.packageExtensions):e.id===`ai-assistant`?t.hasAiAssistantHub&&t.aiAssistantAvailable===!0:e.id!==`mcp`||!t.hasFeatureData||tn(_n.mcpConnection,t.features)}function iT(e){return tT.filter(t=>rT(t,e))}function aT(e,t){return e.filter(e=>e.release>t)}function oT(e){return e.reduce((e,t)=>Math.max(e,t.release),0)}var sT=!1;function cT(){if(sT)return;sT=!0;let e=Wt();e&&a.seedCache(e)}var lT=[Rt.WHATS_NEW_RELEASE,Rt.WHATS_NEW_SHOWN],uT=/^\d+$/;function dT(e){let t=e?.trim()??``;if(!uT.test(t))return null;let n=Number(t);return Number.isSafeInteger(n)?n:null}function fT(e,t){let n=dT(e);return n===null?+(typeof t==`string`&&t!==``):n}function pT({hasAiAssistantHub:e,aiAssistantAvailable:t,aiAssistantError:n=!1}){cT();let[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(!1),[s,c]=(0,X.useState)([]),[l,u]=(0,X.useState)(null),d=(0,X.useRef)(0),f=Mn(),p=(0,X.useMemo)(()=>iT({features:ht(),capabilities:$t(),packageExtensions:ft(),hasFeatureData:xt(),hasAiAssistantHub:e,aiAssistantAvailable:t}),[e,t]);(0,X.useEffect)(()=>{if(f)return;let e=!1;return ge(lT).catch(()=>({})).then(t=>{e||u(fT(t[Rt.WHATS_NEW_RELEASE]??null,t[Rt.WHATS_NEW_SHOWN]??null))}),()=>{e=!0}},[f]);let m=(0,X.useMemo)(()=>l===null?[]:aT(p,l),[p,l]),h=e&&t===null&&!n,g=f||l!==null,_=(0,X.useCallback)(()=>o(!0),[]),v=(0,X.useCallback)(()=>{i(!1),o(!1),c([])},[]);(0,X.useEffect)(()=>{if(!a||r||!g||h)return;let e=m.length>0?m:p;if(e.length===0){o(!1);return}c(e),i(!0)},[a,r,g,h,m,p]);let y=(0,X.useCallback)(()=>{if(i(!1),o(!1),s.length===0||f)return;let e=l??0,t=Math.max(e,oT(s));d.current+=1;let n=d.current;u(t),Ce({[Rt.WHATS_NEW_RELEASE]:String(t),[Rt.WHATS_NEW_SHOWN]:new Date().toISOString()}).catch(()=>!1).then(t=>{t||n===d.current&&u(e)})},[s,f,l]);return{isOpen:r,rows:r?s:p,hasRows:p.length>0,hasUnacknowledgedRows:m.length>0,open:_,dismiss:y,cancel:v}}var mT=(0,X.createContext)(null);function hT({children:e}){let t=Jw().some(e=>e.hubId===`ai-assistant`),n=pT({hasAiAssistantHub:t,aiAssistantAvailable:Nw(t),aiAssistantError:Fw(t)});return(0,Z.jsx)(mT.Provider,{value:n,children:e})}function gT(){return(0,X.useContext)(mT)}var _T=`modulepreload`,vT=function(e,t){return new URL(e,t).href},yT={},bT=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=vT(t,n),t=s(t),t in yT)return;yT[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:_T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};async function xT(){return(await bT(()=>import(`./WhatsNewDialog.js`),__vite__mapDeps([0,1,2,3]),import.meta.url)).WhatsNewDialog}function ST(){let e=gT(),{t}=wn(),[n,r]=(0,X.useState)(null),i=e?.isOpen??!1,a=e?.cancel;return(0,X.useEffect)(()=>{if(!i||n)return;let e=!1;return xT().then(t=>{e||r(()=>t)},n=>{e||(console.error(`[whats-new] dialog chunk failed to load`,n),j({title:t(`shell.whatsNew.loadFailedTitle`),intent:`error`}),a?.())}),()=>{e=!0}},[i,n,a,t]),!i||!e||!n?null:(0,Z.jsx)(n,{open:!0,rows:e.rows,onDismiss:e.dismiss})}var CT=[`onboarding`,`sitejet-publish`,`password-reset`];function wT(){return!(!Tt()||Mn()||Zt()!=null||Jt()===!0)}function TT(){if(typeof window>`u`)return!1;let e=window.location.hash.match(/^#\/([^/?]+)/);return e?CT.includes(e[1]):!1}function ET(){let e=window.location.hash.replace(/^#/,``);return!e||e===`/`||e===`/onboarding`||e.startsWith(`/onboarding`)?null:e}var DT=`/password-reset`,OT=`password-reset`;function kT(){return dn()!==null}function AT(){return dn()}var jT=!1;function MT({enabled:e=!0}={}){(0,X.useEffect)(()=>{e&&(jT||(Zt()??(Ot()||Jt()===!0&&(jT=!0,a.set(Rt.ONBOARDING_STATUS,`not_applicable`).catch(()=>{}),lt(`not_applicable`)))))},[e])}var NT=/^\//;function PT(){let e=Tn(g.MCP_LINK_RETURN);return e===null?null:(Ie(g.MCP_LINK_RETURN),NT.test(e)?e:null)}var FT=`WebProsMCP`,IT=512,LT=/^\/[A-Za-z0-9./_-]*$/,RT=/[\u0000-\u001f\u007f]/;function zT(e){return typeof e!=`string`||e.length===0||e.length>IT||RT.test(e)||!e.startsWith(`/`)||e.startsWith(`//`)?!1:LT.test(e.split(`?`)[0]??``)}async function BT(){try{let e=(await Ve().call(FT,`consume_link_return`,void 0,{httpVerb:`POST`})).result.data?.route;return zT(e)?e:null}catch{return null}}function VT(e=window.location.search){return new URLSearchParams(e).get(`login`)===`1`}async function HT({search:e,alreadyRestored:t,navigate:n}){if(VT(e)&&!Mn())try{let e=await BT();e&&!t&&n(e)}catch{}}var UT=class{events=[];scopedEvents=[];superProperties={};groups={};profileProperties={};identifiedAs=null;clearIdentityCount=0;ready=!0;readyResolvers=[];track(e,t={}){this.events.push({event:e,properties:t})}trackScoped(e,t={}){this.scopedEvents.push({event:e,properties:t})}register(e){Object.assign(this.superProperties,e)}identify(e){this.identifiedAs=e}setGroup(e,t){this.groups[e]=t}setProfileProperties(e){Object.assign(this.profileProperties,e)}isReady(){return this.ready}clearIdentity(){this.clearIdentityCount+=1,this.identifiedAs=null}whenReady(){return this.ready?Promise.resolve(!0):new Promise(e=>{this.readyResolvers.push(e)})}setReady(e){if(this.ready=e,e){for(let e of this.readyResolvers)e(!0);this.readyResolvers=[]}}reset(){this.events.length=0,this.scopedEvents.length=0,this.identifiedAs=null;for(let e of Object.keys(this.superProperties))delete this.superProperties[e];for(let e of Object.keys(this.groups))delete this.groups[e];for(let e of Object.keys(this.profileProperties))delete this.profileProperties[e]}},WT=class{mixpanel=null;scoped=null;loadPromise=null;track(e,t={}){this.mixpanel?.track(e,t)}trackScoped(e,t={}){this.scoped?.track(e,t)}register(e){this.mixpanel?.register(e)}identify(e){this.mixpanel?.identify(e)}setGroup(e,t){this.mixpanel?.set_group(e,t)}setProfileProperties(e){this.mixpanel?.people.set(e)}isReady(){return this.mixpanel!==null}clearIdentity(){this.mixpanel?.reset(),this.scoped?.reset()}whenReady(){if(this.mixpanel)return Promise.resolve(!0);if(this.loadPromise)return this.loadPromise;let e=ot(),t=Mt();return!e||!t?Promise.resolve(!1):(this.loadPromise=bT(()=>import(`./mixpanel.module.js`).then(n=>{let r=n.default,i={api_host:t,persistence:`localStorage`,ip:!1,ignore_dnt:!0,autotrack:!1,track_pageview:!1,debug:!1,api_transport:`sendBeacon`,property_blacklist:[`$current_url`,`$initial_referrer`,`$initial_referring_domain`,`$referrer`,`$referring_domain`,`url`]};r.init(e,i);let a={...i,disable_persistence:!0,store_google:!1,save_referrer:!1,track_marketing:!1,property_blacklist:[...i.property_blacklist??[],`$device_id`,`$user_id`,`$had_persisted_distinct_id`,`$browser`,`$browser_version`,`$os`,`$device`,`$screen_height`,`$screen_width`,`$viewport_height`,`$viewport_width`,`$search_engine`,`mp_keyword`,`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`]};return this.scoped=r.init(e,a,`cp_scoped`),this.mixpanel=r,!0}),[],import.meta.url).catch(e=>(this.loadPromise=null,!1)),this.loadPromise)}},GT=/\b(pass(word|wd)?|secret|tokens?|session|cpsess\d*|auth|api ?keys?|bearer|credentials?|private ?keys?)\b/,KT=/\b(pass(word|wd)?|secret|tokens?|session|cpsess\d*|api ?keys?|bearer|credentials?|private ?keys?)\b/,qT=RegExp(`[^ \\t\\r\\n\\f\\x0B@]+(?:@|%40)[^ \\t\\r\\n\\f\\x0B@]+`),JT=RegExp(`cpsess[0-9]+`,`i`),YT=`[redacted]`,XT=`[circular]`;function ZT(e){return e.replace(/[_\-\d]+/g,` `).toLowerCase()}function QT(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[_\-\d]+/g,` `).toLowerCase()}function $T(e){return GT.test(e.toLowerCase())||GT.test(ZT(e))||KT.test(QT(e))}function eE(e,t){if(typeof e==`string`)return qT.test(e)||JT.test(e)?YT:e;if(Array.isArray(e)){if(t.has(e))return XT;t.add(e);let n=e.map(e=>eE(e,t));return t.delete(e),n}return typeof e==`object`&&e?tE(e,t):e}function tE(e,t){if(t.has(e))return{[XT]:XT};t.add(e);let n={};for(let[r,i]of Object.entries(e))n[r]=$T(r)?YT:eE(i,t);return t.delete(e),n}function nE(e){return tE(e,new WeakSet)}var $=null,rE=!1;function iE(){return rE}var aE=null,oE={},sE={},cE={},lE=[],uE=50;function dE(e){return e.startsWith(`CP_AI_`)}var fE=[];function pE(e){fE.includes(e)||fE.push(e)}function mE(e,t){return fE.length>0&&fE.every(n=>n(e,t))}var hE=[];function gE(e){hE.includes(e)||hE.push(e)}function _E(e,t){return hE.reduce((t,n)=>n(e,t),t)}function vE(e){return yE(e)}async function yE({trackingAllowed:e,transport:t,deferTransportUntil:n}){rE=e,t&&($=t),e&&(n&&(await n().catch(()=>{}),!rE)||await CE())}async function bE(e){rE!==e&&(rE=e,e?await CE():(lE=[],$?.clearIdentity()))}var xE=null,SE=!1;function CE(){return xE||(xE=wE().finally(()=>{xE=null}),xE)}async function wE(){$||=new WT;let e=await $.whenReady();if(!rE){$.clearIdentity(),lE=[];return}if(e){aE&&$.identify(aE),Object.keys(oE).length>0&&$.register(oE);for(let[e,t]of Object.entries(sE))$.setGroup(e,t);Object.keys(cE).length>0&&$.setProfileProperties(cE),SE=!1,TE()}else lE=[],SE=!0}function TE(){if(lE.length===0)return;let e=lE;lE=[];for(let{event:t,properties:n,scoped:r}of e)try{EE(t,n,r)}catch{}}function EE(e,t,n){return n?$?.trackScoped?($.trackScoped(e,t),!0):!1:$?($.track(e,t),!0):!1}function DE(e){try{e()}catch{}}function OE(e){DE(()=>{e&&(aE=e,rE&&$?.isReady()&&$.identify(e))})}function kE(e){DE(()=>{let t=nE(e);Object.assign(oE,t),rE&&$?.isReady()&&$.register(t)})}function AE(e,t){DE(()=>{!e||t===``||t==null||(sE[e]=t,rE&&$?.isReady()&&$.setGroup(e,t))})}function jE(e){DE(()=>{let t=nE(e),n={};for(let[e,r]of Object.entries(t))r!==void 0&&(n[e]=r);Object.assign(cE,n),rE&&$?.isReady()&&$.setProfileProperties(n)})}var ME={track(e,t={}){if(!rE)return`dropped`;let n=`dropped`;return DE(()=>{let r=nE(t),i=dE(e),a=i?_E(e,r):r;if(!(i&&!mE(e,a))){if(!$?.isReady()){!SE&&lE.length<uE&&(lE.push({event:e,properties:a,scoped:i}),n=`buffered`);return}EE(e,a,i)&&(n=`sent`)}}),n}};function NE(){$=null,rE=!1,xE=null,aE=null,oE={},sE={},cE={},lE=[],fE.length=0,hE.length=0,SE=!1}function PE(){return ME}function FE(e,t){return{...t,web_app_type:e,origin:`gui`}}var IE=e({RecordingTransport:()=>UT,WEB_APP_EVENT_ORIGIN:()=>`gui`,analytics:()=>ME,getTrackingAllowed:()=>iE,initAnalytics:()=>vE,registerAnalyticsContext:()=>kE,registerSchemaGovernedNormalizer:()=>gE,registerSchemaGovernedValidator:()=>pE,resetAnalytics:()=>NE,setAnalyticsGroup:()=>AE,setAnalyticsIdentity:()=>OE,setAnalyticsProfile:()=>jE,setTrackingAllowed:()=>bE,useAnalytics:()=>PE,webAppEventProperties:()=>FE}),LE={PAGE_VIEWED:`CP_USR:HUB-SHOWN`,COMMAND_PALETTE_OPENED:`CP_USR:COMMAND_PALETTE-SHOWN`,COMMAND_PALETTE_ACTION_EXECUTED:`CP_USR:COMMAND_PALETTE-ACTION-CLICKED`,COMMAND_PALETTE_DISMISSED:`CP_USR:COMMAND_PALETTE-CLOSED`,THEME_TOGGLED:`CP_USR:GLO-COLOR_MODE-CHANGED`,SIDEBAR_COLLAPSED:`CP_USR:SIDEBAR-TOGGLED`,CLASSIC_THEME_SWITCH_CLICKED:`CP_USR:CLASSIC_THEME_SWITCH-CLICKED`,SWITCHBACK_FEEDBACK_SHOWN:`CP_USR:SWITCHBACK_FEEDBACK-SHOWN`,SWITCHBACK_FEEDBACK_SUBMITTED:`CP_USR:SWITCHBACK_FEEDBACK-SUBMITTED`,SWITCHBACK_FEEDBACK_SKIPPED:`CP_USR:SWITCHBACK_FEEDBACK-SKIPPED`},RE={SHOWN:`CP_USR:SWITCHBACK_FEEDBACK-SHOWN`,SUBMITTED:`CP_USR:SWITCHBACK_FEEDBACK-SUBMITTED`,SKIPPED:`CP_USR:SWITCHBACK_FEEDBACK-SKIPPED`};function zE({returnTheme:e}){let{t}=wn(),{track:n}=PE(),r=(0,X.useMemo)(()=>Ve(),[]),{submitResponse:i}=an(),[a,o]=(0,X.useState)(!1),[s,c]=(0,X.useState)(!1),[l,u]=(0,X.useState)(null),d=(0,X.useRef)(e),f=(0,X.useRef)(!1),p=(0,X.useCallback)(async e=>{c(!0),u(null);try{await r.call(`Themes`,`update`,{theme:e},{httpVerb:`POST`});let n=$e(),i=St();if(!i){u(t(`shell.switchback.switchError`)),c(!1),f.current=!1;return}window.location.href=`/${n}/xfercpanel/${i}?theme=${e}`}catch{u(t(`shell.switchback.switchError`)),c(!1),f.current=!1}},[r,t]);return{requestSwitchBack:(0,X.useCallback)(async r=>{if(f.current)return;f.current=!0;let i=r??e;d.current=i;let a=Qy(await S(`cpanel-meridian-plugin`))??`unknown`;try{if(await pe(`meridian_switchback_feedback_shown`)===a){n(RE.SHOWN,{shown:!1,return_theme:i}),await p(i);return}await Ce({[Zy]:a}),n(RE.SHOWN,{shown:!0,return_theme:i}),o(!0),f.current=!1}catch{u(t(`shell.switchback.switchError`)),f.current=!1}},[e,p,n,t]),feedbackOpen:a,submitFeedback:(0,X.useCallback)(async(e,t)=>{if(f.current)return;f.current=!0;let r=d.current;n(RE.SUBMITTED,{reason:e,return_theme:r});try{await i({reason:e,...t?{comment:t}:{}})}catch{}o(!1),await p(r)},[i,p,n]),skipFeedback:(0,X.useCallback)(async()=>{if(f.current)return;f.current=!0;let e=d.current;n(RE.SKIPPED,{return_theme:e}),o(!1),await p(e)},[p,n]),switching:s,error:l}}var BE=500;function VE({open:e,onSubmit:t,onSkip:n,onClose:r}){let{t:i}=wn(),a=(0,X.useId)(),o=(0,X.useId)(),s=(0,X.useId)(),[c,l]=(0,X.useState)(``),[u,d]=(0,X.useState)(``),[f,p]=(0,X.useState)(!1);return(0,Z.jsxs)(Or,{open:e,onClose:r,title:i(`shell.switchback.heading`),description:i(`shell.switchback.subtext`),size:`md`,"data-testid":`switchback-feedback-modal`,disableOutsideClickClose:!0,children:[(0,Z.jsx)(Rn,{children:(0,Z.jsxs)(k,{gap:`lg`,children:[(0,Z.jsxs)(k,{gap:`sm`,children:[(0,Z.jsx)(N,{as:`div`,size:`md`,weight:`medium`,id:a,children:i(`shell.switchback.reasonQuestion`)}),(0,Z.jsx)(Xn,{value:c,onValueChange:e=>{l(e),p(!1)},"aria-labelledby":a,"aria-describedby":f?o:void 0,children:(0,Z.jsx)(k,{gap:`sm`,children:Xy.map(e=>{let t=`${a}-${e}`;return(0,Z.jsxs)(P,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(Gr,{value:e,id:t}),(0,Z.jsx)(Er,{htmlFor:t,children:i(`shell.switchback.reason.${e}`)})]},e)})})}),f&&(0,Z.jsx)(N,{as:`div`,size:`md`,intent:`error`,id:o,role:`alert`,children:i(`shell.switchback.reasonRequired`)})]}),(0,Z.jsxs)(k,{gap:`sm`,children:[(0,Z.jsx)(Er,{htmlFor:s,children:i(`shell.switchback.commentQuestion`)}),(0,Z.jsx)(lr,{id:s,value:u,onChange:e=>d(e.target.value),maxLength:BE}),(0,Z.jsxs)(N,{as:`div`,size:`sm`,tone:`subtle`,"data-testid":`switchback-char-count`,children:[u.length,`/`,BE]})]})]})}),(0,Z.jsxs)(Dr,{children:[(0,Z.jsx)(A,{variant:`outline`,onClick:n,"data-testid":`switchback-skip`,children:i(`shell.switchback.skip`)}),(0,Z.jsx)(A,{onClick:()=>{if(c===``){p(!0);return}p(!1),t(c,u.trim()?u:void 0)},"data-testid":`switchback-submit`,children:i(`shell.switchback.submit`)})]})]})}VE.displayName=`SwitchbackFeedbackModal`;function HE(e,t){return e?`inherit`:t?`error`:`secondary`}function UE(e){return e?void 0:`touch`}function WE({returnTheme:e}){let{t}=wn(),{track:n}=PE(),{requestSwitchBack:r,feedbackOpen:i,submitFeedback:a,skipFeedback:o,switching:s,error:c}=zE({returnTheme:e}),l=(0,X.useCallback)(()=>{s||(n(LE.CLASSIC_THEME_SWITCH_CLICKED,{return_theme:e}),r())},[s,e,n,r]),u=Yn(`(min-width: 1024px)`),d=HE(u,c!==null),f=t(s?`shell.backSwitch.switching`:`shell.backSwitch.cta`),p=c??t(`shell.backSwitch.tooltip`);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(P,{"data-testid":`classic-theme-switch`,align:`center`,children:[(0,Z.jsx)(ir,{delayDuration:150,children:(0,Z.jsxs)(zn,{children:[(0,Z.jsx)(Un,{asChild:!0,children:(0,Z.jsxs)(A,{variant:u?`outline`:`ghost`,size:u?`sm`:`icon`,minHeight:UE(u),intent:c?`error`:void 0,onClick:l,disabled:s,"aria-label":t(`shell.backSwitch.ariaLabel`),"data-testid":`classic-theme-switch-button`,children:[s?(0,Z.jsx)(Vn,{size:`sm`}):(0,Z.jsx)(O,{name:c?`error-warning-line`:`arrow-go-back-line`,size:`sm`,tone:d}),u?f:null]})}),(0,Z.jsx)(Zr,{side:`bottom`,sideOffset:6,children:p})]})}),c?(0,Z.jsx)(`span`,{role:`alert`,className:`sr-only`,children:c}):null]}),(0,Z.jsx)(VE,{open:i,onSubmit:a,onSkip:o,onClose:o})]})}function GE(e){let t=(0,X.useMemo)(()=>pt(),[]),n=(0,X.useMemo)(()=>ht(),[]),r=(0,X.useMemo)(()=>sn(),[]),i=kt({currentTheme:e,features:n,initialTheme:r}),{data:a,loading:o,error:s}=re(`Themes`,`list`,void 0,{enabled:i,cacheTtl:36e5});return(0,X.useMemo)(()=>{if(_t({currentTheme:e,features:n,initialTheme:r,returnTheme:t,installedThemes:o||s?null:a}))return(0,Z.jsx)(WE,{returnTheme:t})},[e,n,r,t,a,o,s])}var KE=2e3,qE=45e3,JE=!1,YE=new Set;function XE(){if(JE)return;JE=!0;let e=[...YE];YE.clear();for(let t of e)t()}function ZE(){return new Promise(e=>{let t=null,n=()=>{},r=()=>{},i=()=>{t!==null&&clearTimeout(t),clearTimeout(a),n(),r(),YE.delete(o),e()},a=setTimeout(i,qE),o=()=>{!JE||Et.isFetching()>0||Et.isMutating()>0?t!==null&&(clearTimeout(t),t=null):t===null&&(t=setTimeout(i,KE))};n=Et.getQueryCache().subscribe(o),r=Et.getMutationCache().subscribe(o),JE||YE.add(o),o()})}function QE(){return typeof window>`u`?null:window.PAGE?.shell??null}var $E=!1;function eD(){if($E)return;$E=!0;let e=Vt();e&&a.seedCache(e)}function tD(e,t,n){return n(e===`Websites`&&t?`nav.websitesAndApps`:`nav.${e.toLowerCase()}`)}var nD=[`Dashboard`,`Websites`,`Email`,`Files`,`Databases`,`Security`,`Performance`];function rD(e,{homeUrl:t,availableHubSlugs:n}={}){let r=ht().webapp===!0,i=nD.map(n=>({id:n.toLowerCase(),title:tD(n,r,e),href:t?`${t}#/${n.toLowerCase()}`:`#/${n.toLowerCase()}`}));return n==null?i:i.filter(e=>n.includes(e.id))}function iD(e){return e.includes(`_`)?e.toLowerCase().replace(/_([a-z0-9])/g,(e,t)=>t.toUpperCase()):e}function aD(e){let t={};for(let[n,r]of Object.entries(e))t[iD(n)]=r;return t}function oD(e){let t=De();t&&OE(t);let n=Je();if(kE({theme:`meridian`,meridianVersion:e.version,products:[`cPanel`],...aD(n)}),Object.keys(n).length===0)return;let r=n.company_id;(typeof r==`string`||typeof r==`number`)&&AE(`company_id`,r),jE({"CP_USR:productLocale":n.product_locale,"CP_USR:productVersion":n.product_version,"CP_USR:productTrialStatus":n.product_trial_status,"CP_USR:serverCurrentLicenseKind":n.server_current_license_kind,"CP_USR:serverMainIp":n.server_main_ip,"CP_USR:serverOperatingSystem":n.server_operating_system,"CP_USR:serverIsNat":n.is_nat,"CP_USR:accountTransferredOrRestored":n.TRANSFERRED_OR_RESTORED,...n.is_team_user?{"CP_USR:teamUserRoles":n.team_user_roles}:{}})}function sD(e,t,n){return e.variant===`whm`?`/${t}/scripts/command?PFILE=main`:`/${t}/frontend/${n}/index.html`}function cD(e){let t=e?.data;return typeof t==`number`?t:Number(t)||0}function lD(e,t){Ir.getState().setUser({username:e.username||``,email:``,domain:e.domain||``,locale:`en`,isReseller:!1,features:{},plan:{maxEmailAccounts:-1,maxDatabases:-1,maxDomains:-1,maxFtpAccounts:-1,diskQuotaMB:-1,bandwidthMB:-1}}),(t===`dark`||t===`light`)&&Ar.getState().setTheme(t)}function uD(e){if(e.action!==`update`||e.newState?.type!==`main`)return;let t=e.newState.domain;Ir.getState().setDomain(t),kn(t)}function dD(e){if(e&&e!==`meridian`)return e;if(typeof window<`u`){let e=/\/frontend\/([^/]+)\//.exec(window.location.pathname);if(e)return e[1]}return e||`meridian`}function fD(e){let t=e.match(/#\/([^&/?]+)/);return t?t[1].toLowerCase():(e.match(/^\/([^/?#]+)/)?.[1]??``).toLowerCase()}function pD(e,t,n){let r=fD(e);if(r&&r!==`index.html`)return r;if(t?.appKey)return hD(t.appKey,n)}function mD(e){return{accountMenu:e(`shell.header.accountMenu`),colorMode:{system:e(`shell.header.colorMode.system`),light:e(`shell.header.colorMode.light`),dark:e(`shell.header.colorMode.dark`),group:e(`shell.header.colorMode.group`)}}}function hD(e,t){let n=e.replace(/-/g,`_`);return t.find(t=>t.id===e||t.id===n)?.id}function gD({appName:e,onSparkleClick:t,sparkleActive:n,onNavigate:r,activePath:i,children:a,availableHubSlugs:o,aiPaneOpen:s,aiPane:c,aiPaneWidth:l,aiPaneResizing:u,aiPaneNoTransition:d}){eD();let f=QE(),{track:p}=PE(),{t:m}=wn(),h=f?$e():``,g=f?ln():``,_=dD(g),v=f?sD(f,h,_):``,y=(0,X.useMemo)(()=>f?rD(m,{homeUrl:v,availableHubSlugs:o}):[],[f,v,o,m]);(0,X.useEffect)(()=>{f&&lD(f,g)},[g,f?.username,f?.domain,f]),(0,X.useEffect)(()=>{Hr()},[]);let b=(0,X.useCallback)(()=>typeof window>`u`?``:window.location.hash||window.location.pathname,[]),[x,S]=(0,X.useState)(b);(0,X.useEffect)(()=>{let e=()=>S(b());return window.addEventListener(`hashchange`,e),window.addEventListener(`popstate`,e),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`popstate`,e)}},[b]);let C=i??x,w=(0,X.useMemo)(()=>pD(C,f,y),[f,y,C]),ee=(0,X.useRef)(!1);(0,X.useEffect)(()=>{!f||ee.current||(ee.current=!0,oD(f),vE({trackingAllowed:yt(),deferTransportUntil:ZE}))},[f]);let{data:T}=re(`Notifications`,`get_notifications_count`,void 0,{cacheTtl:nn.Volatile.staleTime,enabled:!!f}),te=cD(T),E=Ct(ht()),ne=(0,X.useMemo)(()=>[{id:`account-preferences`,href:`#/preferences`,title:m(`shell.profile`)},...E?[{id:`connections`,href:`#/preferences?section=connections`,title:m(`shell.connections`)}]:[],{id:`logout`,href:`/${h}/logout/?locale=en`,title:m(`shell.logout`),onClick:le}],[h,E,m]),D=f?.helpLink||`https://go.cpanel.net/meridian`,ie=Ar(e=>e.theme),ae=(0,X.useCallback)(e=>{p(LE.THEME_TOGGLED,{toTheme:e}),Ar.getState().setTheme(e)},[p]),oe=(0,X.useCallback)(e=>{p(LE.SIDEBAR_COLLAPSED,{collapsed:e})},[p]),se=GE(g);return f?(0,Z.jsx)(cn,{children:(0,Z.jsx)(Tr,{variant:f.variant,username:f.username,version:f.version,navSections:y,activeNavItemId:w,homeUrl:v,headerMenuItems:ne,hasNotifications:te>0,notificationCount:te,helpHref:D,onSparkleClick:t,sparkleActive:n,onNavigate:r,theme:ie,onThemeChange:ae,onSidebarCollapsedChange:oe,themeSwitchAction:se,headerLabels:mD(m),navLabels:{collapse:m(`nav.collapse`),collapseAria:m(`nav.collapseSidebar`),expandAria:m(`nav.expandSidebar`)},aiPaneOpen:s,aiPane:c,aiPaneWidth:l,aiPaneResizing:u,aiPaneNoTransition:d,children:(0,Z.jsx)(Qr,{children:a})})}):(0,Z.jsx)(cn,{children:a})}var _D=`/login/`,vD=/^#\//;function yD(){if(typeof window>`u`)return;let e=vD.test(window.location.hash)?window.location.hash:``;window.location.assign(_D+e)}var bD=!1,xD=new Set;function SD(){xD.forEach(e=>e())}var CD={getState:()=>({expired:bD}),markExpired:()=>{bD||(bD=!0,SD())},reset:()=>{bD&&(bD=!1,SD())},subscribe:e=>(xD.add(e),()=>{xD.delete(e)})};function wD(){return(0,X.useSyncExternalStore)(CD.subscribe,()=>bD,()=>bD)}function TD(){let e=wD(),t=(0,X.useRef)(null);return e?(0,Z.jsx)(Rr,{open:!0,children:(0,Z.jsx)(wr,{terminal:!0,"data-testid":`session-expired-overlay`,onEscapeKeyDown:e=>e.preventDefault(),onOpenAutoFocus:e=>{e.preventDefault(),t.current?.focus()},children:(0,Z.jsxs)(k,{gap:`md`,align:`center`,children:[(0,Z.jsx)(O,{name:`lock-line`,size:`lg`,"aria-hidden":`true`}),(0,Z.jsx)(Yr,{asChild:!0,children:(0,Z.jsx)(N,{size:`lg`,weight:`semibold`,align:`center`,children:E.t(`shell.sessionExpired.title`)})}),(0,Z.jsx)(Sr,{asChild:!0,children:(0,Z.jsx)(N,{tone:`muted`,align:`center`,children:E.t(`shell.sessionExpired.description`)})}),(0,Z.jsx)(Nr,{ref:t,intent:`brand`,onClick:yD,"data-testid":`session-expired-login-btn`,children:E.t(`shell.sessionExpired.loginButton`)})]})})}):null}var ED=!1,DD=new Set;function OD(){DD.forEach(e=>e())}var kD={getState:()=>({challenged:ED}),markChallenged:()=>!ED&&(ED=!0,OD(),!0),clear:()=>{ED&&(ED=!1,OD())},reset:()=>{ED&&(ED=!1,OD())},subscribe:e=>(DD.add(e),()=>{DD.delete(e)})};function AD(){return(0,X.useSyncExternalStore)(kD.subscribe,()=>ED,()=>ED)}function jD(){let e=Re(()=>{kD.markChallenged()&&(cr(!0),Et.cancelQueries().catch(e=>{console.error(`[two-factor] could not cancel in-flight queries`,e)}))});return()=>{cr(!1),kD.reset(),e()}}function MD(){kD.clear(),!CD.getState().expired&&(cr(!1),Pn(Et))}var ND=6,PD=3,FD=[`failed to fetch`,`networkerror when attempting to fetch resource`,`load failed`,`fetch failed`,`network request failed`,`network error`,`terminated`];function ID(e){if(LD(e))return!0;let t=e?.name;return t===`AbortError`||t===`TimeoutError`}function LD(e){if(!(e instanceof TypeError))return!1;let t=e.message.toLowerCase();return FD.some(e=>t.includes(e))}function RD(){return AD()?(0,Z.jsx)(zD,{}):null}function zD(){let e=(0,X.useRef)(null),t=(0,X.useRef)(null),[n,r]=(0,X.useState)(``),[i,a]=(0,X.useState)(null),[o,s]=(0,X.useState)(!1),[c,l]=(0,X.useState)(0),[u,d]=(0,X.useState)(0),f=c>=PD;(0,X.useEffect)(()=>{u!==0&&(f?t.current?.focus():e.current?.focus())},[u,f]);let p=(0,X.useCallback)(async()=>{s(!0),a(null);try{let e=await We(n);if(e.verified||e.reason===`not-challenged`){MD();return}if(e.reason===`session-expired`){ae(),MD();return}if(e.reason===`no-session`){a(E.t(`shell.twoFactorChallenge.unavailable`));return}a(e.error??E.t(`shell.twoFactorChallenge.invalidCode`)),r(``),l(e=>e+1)}catch(e){console.error(`[two-factor] challenge submit failed`,e),ID(e)||ty(e,`two-factor-challenge-submit`),a(E.t(`shell.twoFactorChallenge.unavailable`))}finally{s(!1),d(e=>e+1)}},[n]);return(0,Z.jsx)(Rr,{open:!0,children:(0,Z.jsxs)(wr,{terminal:!0,"data-testid":`two-factor-challenge-dialog`,onEscapeKeyDown:e=>e.preventDefault(),onOpenAutoFocus:t=>{t.preventDefault(),e.current?.focus()},children:[(0,Z.jsxs)(k,{gap:`md`,children:[(0,Z.jsx)(Yr,{asChild:!0,children:(0,Z.jsx)(N,{size:`lg`,weight:`semibold`,children:E.t(`shell.twoFactorChallenge.title`)})}),(0,Z.jsx)(Sr,{asChild:!0,children:(0,Z.jsx)(N,{tone:`muted`,children:E.t(f?`shell.twoFactorChallenge.tooManyAttempts`:`shell.twoFactorChallenge.description`)})}),!f&&(0,Z.jsxs)(k,{gap:`xs`,children:[(0,Z.jsx)(Er,{htmlFor:`two-factor-challenge-code`,children:E.t(`shell.twoFactorChallenge.codeLabel`)}),(0,Z.jsx)(pr,{ref:e,id:`two-factor-challenge-code`,type:`text`,inputMode:`numeric`,pattern:`[0-9]*`,maxLength:ND,autoComplete:`one-time-code`,value:n,intent:i?`error`:void 0,"aria-describedby":i?`two-factor-challenge-error`:void 0,disabled:o,onChange:e=>{r(e.target.value.replace(/\D/g,``)),i&&a(null)},onKeyDown:e=>{e.key===`Enter`&&n.length===ND&&!o&&p()},"data-testid":`two-factor-challenge-input`})]}),i&&!f&&(0,Z.jsx)(N,{id:`two-factor-challenge-error`,intent:`error`,role:`alert`,"data-testid":`two-factor-challenge-error`,children:i})]}),(0,Z.jsx)(dr,{children:f?(0,Z.jsx)(A,{ref:t,intent:`brand`,onClick:yD,"data-testid":`two-factor-challenge-login-btn`,children:E.t(`shell.twoFactorChallenge.loginButton`)}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(A,{variant:`ghost`,onClick:yD,"data-testid":`two-factor-challenge-login-secondary-btn`,children:E.t(`shell.twoFactorChallenge.loginButton`)}),(0,Z.jsx)(A,{intent:`brand`,loading:o,disabled:n.length!==ND,onClick:()=>void p(),"data-testid":`two-factor-challenge-verify-btn`,children:E.t(o?`shell.twoFactorChallenge.verifying`:`shell.twoFactorChallenge.verifyButton`)})]})})]})})}var BD=1e4,VD=class{confirmMs;probationTimer=null;reported=!1;constructor(e=BD){this.confirmMs=e}noteError(){return this.cancelProbation(),!this.reported&&(this.reported=!0,!0)}beginProbation(e){this.probationTimer||=setTimeout(()=>{this.probationTimer=null,this.reported=!1,e()},this.confirmMs)}reset(){this.cancelProbation(),this.reported=!1}cancelProbation(){this.probationTimer&&=(clearTimeout(this.probationTimer),null)}},HD=3,UD=2e3,WD=class extends X.Component{state={hasError:!1,retryCount:0,error:null};retryTimer=null;mounted=!1;failureCycle=new VD;componentDidMount(){this.mounted=!0}componentDidUpdate(e,t){t.hasError&&!this.state.hasError&&this.state.retryCount>0&&this.failureCycle.beginProbation(()=>{!this.mounted||this.state.hasError||this.setState({retryCount:0})})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.failureCycle.noteError()&&ey(e,this.props.hubId,{componentStack:t.componentStack??void 0});let n=this.props.maxRetries??HD;this.state.retryCount>=n||(this.retryTimer&&clearTimeout(this.retryTimer),this.retryTimer=setTimeout(()=>{this.mounted&&(this.setState(e=>({hasError:!1,retryCount:e.retryCount+1,error:null})),this.props.onRetry?.())},this.props.retryDelay??UD))}componentWillUnmount(){this.mounted=!1,this.retryTimer&&=(clearTimeout(this.retryTimer),null),this.failureCycle.reset()}handleReload=()=>{window.location.reload()};handleRetry=()=>{this.retryTimer&&=(clearTimeout(this.retryTimer),null),this.failureCycle.reset(),this.setState({hasError:!1,retryCount:0,error:null}),this.props.onRetry?.()};render(){if(!this.state.hasError)return this.props.children;let e=this.props.maxRetries??HD;if(this.state.retryCount<e)return(0,Z.jsx)(M,{padding:`xl`,"data-testid":`federated-error-retrying`,children:(0,Z.jsx)(N,{tone:`muted`,children:E.t(`shell.federatedError.retrying`,{current:this.state.retryCount+1,max:e})})});let{error:t}=this.state,{hubId:n}=this.props,r=hv(t?.message??``);return(0,Z.jsx)(M,{padding:`xl`,"data-testid":`federated-error-fallback`,children:(0,Z.jsxs)(k,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(O,{name:`error-warning-line`,"aria-hidden":`true`}),(0,Z.jsx)(N,{size:`lg`,weight:`semibold`,children:E.t(`shell.federatedError.title`,{hubId:n})}),(0,Z.jsx)(N,{tone:`muted`,children:r?E.t(`shell.federatedError.reloadDescription`):E.t(`shell.federatedError.description`,{attempts:e})}),(0,Z.jsx)(P,{gap:`sm`,justify:`center`,children:r?(0,Z.jsx)(A,{type:`button`,variant:`secondary`,onClick:this.handleReload,"data-testid":`federated-error-reload-btn`,children:E.t(`shell.federatedError.reloadAction`)}):(0,Z.jsx)(A,{type:`button`,variant:`secondary`,onClick:this.handleRetry,"data-testid":`federated-error-retry-btn`,children:E.t(`shell.error.retry`)})}),!1]})})}};function GD(){try{return typeof HashChangeEvent==`function`?new HashChangeEvent(`hashchange`):new Event(`hashchange`)}catch{return new Event(`hashchange`)}}function KD(e,t){Promise.resolve(e({to:t})).then(()=>{window.dispatchEvent(GD())})}var qD=(0,X.createContext)(null);function JD(){return yn(qD,{hook:`useModuleContext`,provider:`ModuleContextProvider`})}function YD(e){let{username:t,email:n,isReseller:i,plan:a,domain:o,locale:s,resolvedTheme:c}=e;return{securityToken:vn(),features:ht(),capabilities:$t(),flags:Bt(),theme:c,user:{username:t||St()||`dev`,email:n,isReseller:i,plan:a},domain:o||gt()||`localhost`,locale:s||`en`,basePath:r()??`/frontend/meridian`,trackingAllowed:et(),reportError:(e,t)=>ey(e,t?.hubId??`unknown`,{componentStack:t?.componentStack})}}function XD({children:e,onNavigate:t}){let n=Ir(e=>e.username),r=Ir(e=>e.email),i=Ir(e=>e.isReseller),a=Ir(e=>e.plan),o=Ir(e=>e.domain),s=Ir(e=>e.locale),c=Ar(e=>e.resolvedTheme),l=HC(),u=(0,X.useCallback)(e=>{if(t){t(e);return}KD(l,e)},[t,l]),d=(0,X.useMemo)(()=>({...YD({username:n,email:r,isReseller:i,plan:a,domain:o,locale:s,resolvedTheme:c}),navigate:u}),[n,r,i,a,o,s,c,u]);return(0,Z.jsx)(qD.Provider,{value:d,children:e})}var ZD={name:`@tanstack/react-query`,version:`5.101.4`,description:`Hooks for managing, caching and syncing asynchronous and remote data in React`,author:`tannerlinsley`,license:`MIT`,repository:{type:`git`,url:`git+https://github.com/TanStack/query.git`,directory:`packages/react-query`},homepage:`https://tanstack.com/query`,funding:{type:`github`,url:`https://github.com/sponsors/tannerlinsley`},type:`module`,types:`build/legacy/index.d.ts`,main:`build/legacy/index.cjs`,module:`build/legacy/index.js`,"react-native":`src/index.ts`,exports:{".":{"@tanstack/custom-condition":`./src/index.ts`,import:{types:`./build/modern/index.d.ts`,default:`./build/modern/index.js`},require:{types:`./build/modern/index.d.cts`,default:`./build/modern/index.cjs`}},"./package.json":`./package.json`},sideEffects:!1,files:[`build`,`src`,`!src/__tests__`,`!build/codemods/node_modules`,`!build/codemods/vite.config.ts`,`!build/codemods/**/__testfixtures__`,`!build/codemods/**/__tests__`],dependencies:{"@tanstack/query-core":`5.101.4`},devDependencies:{"@testing-library/react":`^16.1.0`,"@testing-library/react-render-stream":`^2.0.2`,"@types/react":`^19.2.7`,"@types/react-dom":`^19.2.3`,"@vitejs/plugin-react":`^4.3.4`,"cpy-cli":`^5.0.0`,"npm-run-all2":`^5.0.0`,react:`^19.2.1`,"react-dom":`^19.2.1`,"react-error-boundary":`^4.1.2`,"@tanstack/query-persist-client-core":`5.101.4`,"@tanstack/query-test-utils":`0.0.0`},peerDependencies:{react:`^18 || ^19`},scripts:{clean:`premove ./build ./coverage ./dist-ts`,compile:`tsc --build`,"test:eslint":`eslint --concurrency=auto ./src`,"test:types":`npm-run-all --serial test:types:*`,"test:types:ts54":`node ../../node_modules/typescript54/lib/tsc.js --build tsconfig.legacy.json`,"test:types:ts55":`node ../../node_modules/typescript55/lib/tsc.js --build tsconfig.legacy.json`,"test:types:ts56":`node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json`,"test:types:ts57":`node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json`,"test:types:ts58":`node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json`,"test:types:ts59":`node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json`,"test:types:tscurrent":`tsc --build`,"test:types:ts60":`node ../../node_modules/typescript60/lib/tsc.js --build`,"test:lib":`vitest`,"test:lib:dev":`pnpm run test:lib --watch`,"test:build":`publint --strict && attw --pack`,build:`pnpm build:tsup && pnpm build:codemods`,"build:tsup":`tsup --tsconfig tsconfig.prod.json`,"build:codemods":`cpy ../query-codemods/* ./build/codemods`}},QD={name:`i18next`,version:`26.3.0`,description:`i18next internationalization framework`,main:`./dist/cjs/i18next.js`,module:`./dist/esm/i18next.js`,types:`./index.d.ts`,exports:{"./package.json":`./package.json`,".":{import:{types:`./index.d.mts`,default:`./dist/esm/i18next.js`},require:{types:`./index.d.ts`,default:`./dist/cjs/i18next.js`}}},keywords:[`i18next`,`internationalization`,`i18n`,`translation`,`localization`,`l10n`,`globalization`,`gettext`],homepage:`https://www.i18next.com`,bugs:`https://github.com/i18next/i18next/issues`,repository:{type:`git`,url:`https://github.com/i18next/i18next.git`},funding:[{type:`individual`,url:`https://www.locize.com/i18next`},{type:`individual`,url:`https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project`},{type:`individual`,url:`https://www.locize.com`}],peerDependencies:{typescript:`^5 || ^6`},peerDependenciesMeta:{typescript:{optional:!0}},devDependencies:{"@arktype/attest":`^0.56.0`,"@babel/core":`^7.29.0`,"@babel/plugin-transform-async-generator-functions":`^7.29.0`,"@babel/plugin-transform-modules-commonjs":`^7.28.6`,"@babel/preset-env":`^7.29.2`,"@babel/preset-react":`^7.28.5`,"@babel/register":`^7.28.6`,"@rollup/plugin-babel":`^7.0.0`,"@rollup/plugin-commonjs":`^29.0.2`,"@rollup/plugin-node-resolve":`^16.0.3`,"@rollup/plugin-terser":`^1.0.0`,"@types/node":`^25.6.0`,"@typescript-eslint/eslint-plugin":`^8.57.2`,"@typescript-eslint/parser":`^8.58.2`,"@vitest/coverage-v8":`4.1.4`,babelify:`^10.0.0`,coveralls:`^3.1.1`,"cpy-cli":`^7.0.0`,eslint:`9.39.4`,"gh-release":`^7.0.2`,husky:`^9.1.7`,"i18next-browser-languagedetector":`^8.2.1`,"i18next-fs-backend":`^2.6.3`,"i18next-http-backend":`^3.0.4`,"i18next-localstorage-cache":`^1.1.1`,"i18next-sprintf-postprocessor":`^0.2.2`,"lint-staged":`^16.4.0`,neostandard:`^0.13.0`,prettier:`^3.8.3`,rimraf:`^6.1.3`,rollup:`^4.60.2`,sinon:`^19.0.5`,typescript:`^6.0.3`,"typescript-eslint":`^8.58.2`,vitest:`4.1.4`},scripts:{lint:`eslint src typescript test "./*.{ts,mts,mjs}"`,format:`prettier "{,**/}*.{ts,tsx,mts,js,mjs,json,md}" --check`,"format:fix":`prettier "{,**/}*.{ts,tsx,mts,js,mjs,json,md}" --write`,test:`vitest --run`,"test:coverage":`vitest --coverage --run`,"test:runtime":`vitest --project runtime`,"test:compatibility":`vitest --project compatibility`,"test:typescript":`vitest --config vitest.workspace.typescript.mts`,"test:local":`vitest --config vitest.workspace.local.mts`,build:`rimraf dist && rollup -c && echo '{"type":"module"}' > dist/esm/package.json && cpy "./dist/umd/*.js" ./`,fix_dist_package:'node -e \'console.log(`{"type":"module","version":"${process.env.npm_package_version}"}`)\' > dist/esm/package.json',preversion:`npm run test && npm run build && git push`,postversion:`npm run fix_dist_package && git push && git push --tags && npm run release`,prepare:`husky`,release:`gh-release`},author:`Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)`,license:`MIT`,"lint-staged":{"*":`prettier --write --ignore-unknown`}},$D={name:`react-i18next`,version:`17.0.8`,description:`Internationalization for react done right. Using the i18next i18n ecosystem.`,main:`dist/commonjs/index.js`,types:`./index.d.mts`,"jsnext:main":`dist/es/index.js`,module:`dist/es/index.js`,keywords:[`i18next`,`internationalization`,`i18n`,`translation`,`localization`,`l10n`,`globalization`,`react`,`reactjs`],exports:{"./package.json":`./package.json`,".":{types:{require:`./index.d.ts`,import:`./index.d.mts`},module:`./dist/es/index.js`,import:`./dist/es/index.js`,require:`./dist/commonjs/index.js`,default:`./dist/es/index.js`},"./TransWithoutContext":{types:{require:`./TransWithoutContext.d.ts`,import:`./TransWithoutContext.d.mts`},module:`./dist/es/TransWithoutContext.js`,import:`./dist/es/TransWithoutContext.js`,require:`./dist/commonjs/TransWithoutContext.js`,default:`./dist/es/TransWithoutContext.js`},"./initReactI18next":{types:{require:`./initReactI18next.d.ts`,import:`./initReactI18next.d.mts`},module:`./dist/es/initReactI18next.js`,import:`./dist/es/initReactI18next.js`,require:`./dist/commonjs/initReactI18next.js`,default:`./dist/es/initReactI18next.js`},"./icu.macro":{types:{require:`./icu.macro.d.ts`,import:`./icu.macro.d.mts`},module:`./icu.macro.js`,import:`./icu.macro.js`,require:`./icu.macro.js`,default:`./icu.macro.js`}},homepage:`https://github.com/i18next/react-i18next`,bugs:`https://github.com/i18next/react-i18next/issues`,repository:{type:`git`,url:`https://github.com/i18next/react-i18next.git`},dependencies:{"@babel/runtime":`^7.29.2`,"html-parse-stringify":`^3.0.1`,"use-sync-external-store":`^1.6.0`},peerDependencies:{i18next:`>= 26.2.0`,react:`>= 16.8.0`,typescript:`^5 || ^6`},peerDependenciesMeta:{"react-dom":{optional:!0},"react-native":{optional:!0},typescript:{optional:!0}},devDependencies:{"@babel/cli":`^7.28.6`,"@babel/core":`^7.29.0`,"@babel/eslint-parser":`^7.28.6`,"@babel/plugin-proposal-async-generator-functions":`^7.20.7`,"@babel/plugin-proposal-object-rest-spread":`^7.20.7`,"@babel/plugin-transform-modules-commonjs":`^7.28.6`,"@babel/plugin-transform-runtime":`^7.29.0`,"@babel/polyfill":`^7.12.1`,"@babel/preset-env":`^7.29.2`,"@babel/preset-react":`^7.28.5`,"@babel/register":`^7.28.6`,"@rollup/plugin-babel":`^7.0.0`,"@rollup/plugin-commonjs":`^29.0.2`,"@rollup/plugin-node-resolve":`^16.0.3`,"@rollup/plugin-replace":`^6.0.3`,"@rollup/plugin-terser":`1.0.0`,"@testing-library/dom":`^10.4.1`,"@testing-library/jest-dom":`^6.9.1`,"@testing-library/react":`^16.3.2`,"@types/jest":`^30.0.0`,"@types/react":`^19.2.14`,"@vitest/coverage-v8":`^4.1.2`,"all-contributors-cli":`^6.26.1`,"babel-core":`^7.0.0-bridge.0`,"babel-plugin-macros":`^3.1.0`,"babel-plugin-tester":`^11.0.4`,coveralls:`^3.1.1`,"cpy-cli":`^7.0.0`,"cross-env":`^10.1.0`,eslint:`^8.57.0`,"eslint-config-airbnb":`19.0.4`,"eslint-config-prettier":`^9.1.0`,"eslint-plugin-import":`^2.32.0`,"eslint-plugin-jest-dom":`^5.5.0`,"eslint-plugin-jsx-a11y":`^6.10.2`,"eslint-plugin-react":`^7.37.5`,"eslint-plugin-testing-library":`^6.5.0`,"happy-dom":`^20.8.9`,husky:`^9.1.7`,i18next:`^26.2.0`,"lint-staged":`^16.4.0`,mkdirp:`^3.0.1`,prettier:`^3.8.1`,react:`^19.2.4`,"react-dom":`^19.2.4`,"react-test-renderer":`^19.2.4`,rimraf:`^6.1.3`,rollup:`^4.60.0`,typescript:`~6.0.2`,vitest:`^4.1.2`,yargs:`^18.0.0`},scripts:{clean:`rimraf dist && mkdirp dist`,lint:`eslint --cache .`,"lint:fix":`eslint --cache --fix .`,format:`prettier . --check`,"format:fix":`prettier . --write --list-different`,copy:`cpy ./dist/umd/react-i18next.min.js ./dist/umd/react-i18next.js . --flat && echo '{"type":"module"}' > dist/es/package.json`,"build:es":`cross-env BABEL_ENV=ESNext babel src --out-dir dist/es`,"build:cjs":`babel src --out-dir dist/commonjs`,"build:umd":`rollup -c rollup.config.mjs --format umd && rollup -c rollup.config.mjs --format umd --uglify`,"build:amd":`rollup -c rollup.config.mjs --format amd && rollup -c rollup.config.mjs --format amd --uglify`,"build:iife":`rollup -c rollup.config.mjs --format iife && rollup -c rollup.config.mjs --format iife --uglify`,build:`npm run clean && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:amd && npm run copy`,fix_dist_package:'node -e \'console.log(`{"type":"module","version":"${process.env.npm_package_version}"}`)\' > dist/es/package.json',preversion:`npm run build && git push`,postversion:`npm run fix_dist_package && git push && git push --tags`,test:`vitest`,"test:coverage":`npm run test -- --coverage --run`,"test:typescript":`npm run test:typescript:issue-1899 && vitest --config vitest.workspace.typescript.mts`,"test:typescript:issue-1899":`bash test/typescript/issue-1899/check-types.sh`,"contributors:add":`all-contributors add`,"contributors:generate":`all-contributors generate`,prepare:`husky`},author:`Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)`,license:`MIT`,lock:!1,sideEffects:!1,packageManager:`yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e`},eO=!1,tO=new Map;function nO(){let e=vn()||window.CPANEL?.token;return e?e.startsWith(`/`)?e:`/${e}`:``}async function rO(){let e=await bT(()=>import(`./dist.js`),[],import.meta.url);if(!eO){eO=!0;let t=nO(),n=Ww.map(e=>{let n=Uw.find(t=>t.slug===e.hubId)?.entryMtime,r=n?`/cPanel_magic_revision_${n}`:``,i=`${t}${r}${e.entry}`;return tO.set(e.remoteName,i),{name:e.remoteName,entry:i,type:`module`}}),r={react:{version:`19.3.0`,lib:()=>X,shareConfig:{singleton:!0,requiredVersion:`^19`}},"react/jsx-runtime":{version:`19.3.0`,lib:()=>Z,shareConfig:{singleton:!0,requiredVersion:`^19`}},"react-dom":{version:`19.3.0`,lib:()=>WC,shareConfig:{singleton:!0,requiredVersion:`^19`}},"@cpanel/analytics":{version:`1.0.0`,lib:()=>IE,shareConfig:{singleton:!0,requiredVersion:`*`}},"@cpanel/module-contracts":{version:`1.0.0`,lib:()=>Nt,shareConfig:{singleton:!0,requiredVersion:`*`}},"@cpanel/api-client":{version:`0.1.0`,lib:()=>pn,shareConfig:{singleton:!0,requiredVersion:`*`}},"@cpanel/i18n":{version:`0.1.0`,lib:()=>Yt,shareConfig:{singleton:!0,requiredVersion:`*`}},"@cpanel/stores":{version:`0.1.0`,lib:()=>fr,shareConfig:{singleton:!0,requiredVersion:`*`}},"@cpanel/react-ui-v2":{version:`0.1.0`,lib:()=>Wr,shareConfig:{singleton:!0,requiredVersion:`*`}},"@tanstack/react-query":{version:ZD.version,lib:()=>Yy,shareConfig:{singleton:!0,requiredVersion:`^5`}},i18next:{version:QD.version,lib:()=>He,shareConfig:{singleton:!0,requiredVersion:`^26`}},"react-i18next":{version:$D.version,lib:()=>hy,shareConfig:{singleton:!0,requiredVersion:`^17`}}};e.init({name:`meridian_shell`,remotes:n,shared:r})}return e}function iO(e){if(e.status===401)return!0;if(e.ok){let t=e.headers.get(`content-type`)??``;return!/javascript|ecmascript/i.test(t)}return!1}async function aO(e){try{return await fetch(e,{credentials:`same-origin`,cache:`no-store`})}catch{return null}}function oO(e,t){try{let n=window.location.href;return new URL(e,n).href===new URL(t,n).href}catch{return!1}}async function sO(e,t){let n=sv(t instanceof Error?t.message:``);if(!n||oO(n,e))return!1;let r=await aO(n);return $v(`chunk`,n,r),r?.status===404}async function cO(e,t){let n=e.split(`/`)[0],r=tO.get(n);if(!r)return;let i=await sO(r,t),a=await aO(r);if($v(`entry`,r,a),a===null){dv(i?`stale-chunk-404`:`probe-unreachable`);return}if(iO(a)){dv(`auth-html`),ae();return}let o=a.ok?`entry-healthy`:`entry-error`;dv(i?`stale-chunk-404`:o)}async function lO(e){let t=await rO(),n;try{n=await t.loadRemote(e)}catch(t){throw await cO(e,t),t}if(n==null)throw await cO(e),Error(`[Federation] loadRemote("${e}") returned null — the remote may not be deployed or the entry URL may be incorrect.`);return n}async function uO(e){return Yc({name:`hub.load`,op:`resource.hub`,attributes:{hubId:e}},async t=>{let n=Ww.find(t=>t.hubId===e);if(!n)throw Error(`No registry entry for hub: ${e}. Registered: ${Ww.map(e=>e.hubId).join(`, `)}`);let r=`${n.remoteName}/module`;return t.setAttribute(`hub.mode`,`module-federation`),t.setAttribute(`hub.federationId`,r),lO(r)})}var dO=(0,X.forwardRef)(function({value:e,error:t,onChange:n,onBlur:r,t:i},a){return(0,Z.jsxs)(k,{gap:`xs`,children:[(0,Z.jsx)(Er,{htmlFor:`current-password`,required:!0,children:i(`changePassword.currentPasswordLabel`)}),(0,Z.jsx)(tr,{ref:a,id:`current-password`,value:e,onChange:e=>n(e.target.value),onBlur:r,hideStrength:!0,hideGenerate:!0,autoComplete:`current-password`,"aria-required":`true`,"aria-invalid":t?!0:void 0,"aria-describedby":t?`current-password-error`:void 0,intent:t?`error`:`neutral`}),t&&(0,Z.jsx)(N,{as:`span`,size:`sm`,intent:`error`,id:`current-password-error`,role:`alert`,children:t})]})});function fO(e,t,n){return[e?`new-password-error`:``,t>0?`new-password-strength`:``,n?``:`new-password-hint`].filter(Boolean).join(` `)||void 0}function pO({value:e,error:t,meetsRequirement:n,strengthLevel:r,onChange:i,onBlur:a,onGenerate:o,t:s}){let c=fO(t,e.length,n);return(0,Z.jsxs)(k,{gap:`xs`,children:[(0,Z.jsx)(Er,{htmlFor:`new-password`,required:!0,children:s(`changePassword.newPasswordLabel`)}),(0,Z.jsx)(tr,{id:`new-password`,value:e,onChange:e=>i(e.target.value),onBlur:a,onGenerate:o,generateLabel:s(`changePassword.generateLabel`),generateAriaLabel:s(`changePassword.generateAriaLabel`),hideStrength:!0,autoComplete:`new-password`,"aria-required":`true`,"aria-invalid":t?!0:void 0,"aria-describedby":c,intent:t?`error`:`neutral`}),t&&(0,Z.jsx)(N,{as:`span`,size:`sm`,intent:`error`,id:`new-password-error`,role:`alert`,children:t}),e.length>0&&(0,Z.jsx)(`div`,{id:`new-password-strength`,"data-testid":`new-password-strength`,children:(0,Z.jsx)(Vr,{strength:r})}),!n&&e.length>0&&(0,Z.jsx)(N,{as:`span`,size:`sm`,id:`new-password-hint`,children:s(`changePassword.strengthHint`)})]})}function mO({error:e,passwordsMatch:t,passwordsMismatch:n,t:r}){return e?(0,Z.jsx)(N,{as:`span`,size:`sm`,intent:`error`,id:`confirm-password-error`,role:`alert`,children:e}):n?(0,Z.jsx)(N,{as:`span`,size:`sm`,intent:`error`,role:`alert`,children:r(`changePassword.passwordsMismatch`)}):t?(0,Z.jsxs)(P,{gap:`xs`,align:`center`,children:[(0,Z.jsx)(O,{name:`check-line`}),(0,Z.jsx)(N,{as:`span`,size:`sm`,intent:`success`,children:r(`changePassword.passwordsMatch`)})]}):null}function hO({value:e,error:t,passwordsMatch:n,passwordsMismatch:r,onChange:i,onBlur:a,onGenerate:o,t:s}){let c=r||!!t;return(0,Z.jsxs)(k,{gap:`xs`,children:[(0,Z.jsx)(Er,{htmlFor:`confirm-password`,required:!0,children:s(`changePassword.confirmPasswordLabel`)}),(0,Z.jsx)(tr,{id:`confirm-password`,value:e,onChange:e=>i(e.target.value),onBlur:a,onGenerate:o,generateLabel:s(`changePassword.generateLabel`),generateAriaLabel:s(`changePassword.generateAriaLabel`),hideGenerate:!o,hideStrength:!0,autoComplete:`new-password`,"aria-required":`true`,"aria-invalid":c||void 0,"aria-describedby":t?`confirm-password-error`:void 0,intent:c?`error`:`neutral`}),(0,Z.jsx)(mO,{error:t,passwordsMatch:n,passwordsMismatch:r,t:s})]})}function gO({hasDigest:e,enableDigest:t,onCheckedChange:n,t:r}){return e===null?(0,Z.jsx)(Ln,{width:`60%`,height:24,"aria-label":r(`changePassword.loadingDigestLabel`)}):e?(0,Z.jsxs)(P,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(jr,{id:`enable-digest`,checked:t,onCheckedChange:e=>n(e===!0)}),(0,Z.jsx)(Er,{htmlFor:`enable-digest`,children:r(`changePassword.enableDigestLabel`)})]}):null}var _O=5e3;function vO(e,t,n){let r=e.join(` `).toLowerCase();return r.includes(`incorrect`)?t(`changePassword.error.incorrectPassword`):r.includes(`cannot reuse`)?t(`changePassword.error.cannotReuse`):n||t(`changePassword.error.changeFailed`)}async function yO({client:e,currentPassword:t,newPassword:n,enableDigest:r,locale:i,showError:a,showSuccess:o,t:s}){try{await e.call(`Users`,`change_password`,{oldpass:t,newpass:n,enabledigest:+!!r},{httpVerb:`POST`})}catch(e){if(e instanceof ee&&e.kind===`application`)return a(vO(e.errors??[],s,e.message)),!1;throw e}o(s(`changePassword.success`));let c=$e(),l=encodeURIComponent(i),u=c?`/${c}/logout/?locale=${l}`:`/logout/?locale=${l}`;return setTimeout(()=>{window.location.href=u},_O),!0}var bO={currentPassword:!1,newPassword:!1,confirmPassword:!1};function xO(e,t){return e[t]?e:{...e,[t]:!0}}function SO(){let[e,t]=(0,X.useState)(bO),[n,r]=(0,X.useState)(bO),[i,a]=(0,X.useState)(!1),o=(0,X.useCallback)(e=>t(t=>xO(t,e)),[]),s=(0,X.useCallback)(e=>r(t=>xO(t,e)),[]),c=(0,X.useCallback)(()=>a(!0),[]),l=(0,X.useCallback)(t=>i||e[t]&&n[t],[i,e,n]);return(0,X.useMemo)(()=>({markDirty:o,markTouched:s,markSubmitted:c,isRevealed:l}),[o,s,c,l])}async function CO({signal:e}){let t=(await Ve().call(`Tokens`,`list`,void 0,{timeoutMs:15e3,signal:e}))?.result?.data;if(!Array.isArray(t))throw new ce({endpoint:n.apiTokensList,expected:`array`,got:t,messageKey:`apiError.generic`});return t}function wO(e){return e.length>0}function TO({enabled:e=!0}={}){let t=e&&tn(_n.apiTokens,ht()),r=ut({queryKey:Ee(n.apiTokensList),queryFn:CO,select:wO,...nn.UserDriven,retry:!1,retryOnMount:!1,enabled:t});return t&&r.data===!0}async function EO(){let e=await qe(`WebDisk`,`hasdigest`),t=Array.isArray(e)?e[0]?.hasdigest:0;return t===1||t===`1`}function DO({enabled:e=!0}={}){let t=ut({queryKey:[`api2`,`WebDisk`,`hasdigest`],queryFn:EO,...nn.Catalog,retry:!1,enabled:e});return e?t.isPending?null:t.data??!1:!1}function OO(e,t){return e.length>0&&t.length>0&&e===t}function kO(e,t){return e.length>0&&t.length>0&&e!==t}function AO(e,t){return e.length>0&&t.length>0&&e===t}function jO(e){let{currentPassword:t,newPassword:n,confirmPassword:r}=e,i={};return t.length===0&&(i.currentPassword=`currentRequired`),n.length===0?i.newPassword=`newRequired`:OO(t,n)&&(i.newPassword=`sameAsCurrent`),r.length===0&&(i.confirmPassword=`confirmRequired`),i}function MO(e){let t=jO(e);return!t.currentPassword&&!t.newPassword&&!t.confirmPassword&&!kO(e.newPassword,e.confirmPassword)}var NO=(0,X.forwardRef)(function({t:e,locale:t,showConfirmGenerate:n=!1,headingLevel:r=4,requiredStrength:i=null,hasDigest:a,hasApiTokens:o,onSubmit:s},c){let l=(0,X.useMemo)(()=>Ve(),[]),[u,d]=(0,X.useState)(``),[f,p]=(0,X.useState)(``),[m,h]=(0,X.useState)(``),[g,_]=(0,X.useState)(!1),[v,y]=(0,X.useState)(!1),b=SO(),x=At(`passwd`,{requiredStrength:i}),S=DO({enabled:a===void 0}),C=a??S,w=TO({enabled:o===void 0}),ee=o??w,T=AO(f,m),te=kO(f,m),E=jO({currentPassword:u,newPassword:f,confirmPassword:m});function ne(t){let n=E[t];return n&&(n===`sameAsCurrent`?b.isRevealed(`newPassword`)&&b.isRevealed(`currentPassword`):b.isRevealed(t))?e(`changePassword.error.${n}`):``}let re=ne(`currentPassword`),D=ne(`newPassword`),ie=ne(`confirmPassword`);(0,X.useEffect)(()=>{x.checkStrength(f)},[f,x.checkStrength]);async function ae(n){if(n.preventDefault(),b.markSubmitted(),MO({currentPassword:u,newPassword:f,confirmPassword:m})){y(!0);try{s?await s({currentPassword:u,newPassword:f,enableDigest:g}):await yO({client:l,currentPassword:u,newPassword:f,enableDigest:g,locale:t,showError:e=>j({title:e,intent:`error`}),showSuccess:e=>j({title:e,intent:`success`}),t:e})}catch(t){j({title:bt(t,e,e(`changePassword.error.unexpected`)),intent:`error`})}finally{y(!1)}}}return(0,Z.jsx)(qr,{role:`region`,"aria-labelledby":`change-password-heading`,padding:`lg`,border:`subtle`,bg:`surface`,rounded:!0,children:(0,Z.jsxs)(k,{gap:`lg`,children:[(0,Z.jsxs)(P,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(Ur,{name:`lock-password-line`,intent:`neutral`,size:`md`}),(0,Z.jsx)(_r,{level:r,visualLevel:4,weight:`semibold`,id:`change-password-heading`,children:e(`changePassword.heading`)})]}),ee&&(0,Z.jsx)(ti,{intent:`warning`,icon:(0,Z.jsx)(O,{name:`error-warning-line`}),"data-testid":`change-password-api-tokens-warning`,children:(0,Z.jsx)(hr,{children:e(`changePassword.apiTokensWarning`)})}),(0,Z.jsx)(`form`,{onSubmit:ae,noValidate:!0,children:(0,Z.jsxs)(k,{gap:`md`,children:[(0,Z.jsx)(dO,{ref:c,value:u,error:re,onChange:e=>{d(e),b.markDirty(`currentPassword`)},onBlur:()=>b.markTouched(`currentPassword`),t:e}),(0,Z.jsxs)(k,{gap:`md`,children:[(0,Z.jsx)(pO,{value:f,error:D,meetsRequirement:x.meetsRequirement,strengthLevel:x.strengthLevel,onChange:e=>{p(e),b.markDirty(`newPassword`)},onBlur:()=>b.markTouched(`newPassword`),onGenerate:e=>{h(e),b.markDirty(`newPassword`),b.markDirty(`confirmPassword`)},t:e}),(0,Z.jsx)(hO,{value:m,error:ie,passwordsMatch:T,passwordsMismatch:te,onChange:e=>{h(e),b.markDirty(`confirmPassword`)},onBlur:()=>b.markTouched(`confirmPassword`),onGenerate:n?e=>{p(e),b.markDirty(`newPassword`),b.markDirty(`confirmPassword`)}:void 0,t:e})]}),(0,Z.jsx)(gO,{hasDigest:C,enableDigest:g,onCheckedChange:_,t:e}),(0,Z.jsx)(P,{gap:`sm`,justify:`end`,children:(0,Z.jsxs)(A,{type:`submit`,disabled:v,"data-testid":`change-password-btn`,children:[v&&(0,Z.jsx)(Vn,{size:`sm`}),e(v?`changePassword.submitting`:`changePassword.submitButton`)]})})]})})]})})}),PO=`flex items-center justify-center w-10 h-10 rounded-md shrink-0`,FO=`mt-0.5`,IO={running:`running`,draft:`draft`,notDeployed:`notDeployed`};function LO(e,t){return e?IO.running:t?IO.draft:IO.notDeployed}var RO={running:`text-success`,draft:`text-warning`,notDeployed:`text-text-secondary`},zO={running:`bg-success-bg`,draft:`bg-warning-bg`,notDeployed:`bg-muted`},BO={running:{labelKey:`overview.nodejsRunning`,intent:`success`},stopped:{labelKey:`overview.nodejsStopped`,intent:`neutral`},deploying:{labelKey:`overview.nodejsDeploying`,intent:`info`},errored:{labelKey:`overview.nodejsFailed`,intent:`error`},created:{labelKey:`overview.nodejsNotDeployed`,intent:`neutral`}};function VO(e){return(e.phase?BO[e.phase]:void 0)||(e.isLive?BO.running:e.hasDraft?{labelKey:`overview.nodejsDraft`,intent:`neutral`}:{labelKey:`overview.nodejsNotDeployed`,intent:`neutral`})}function HO({status:e,t}){let n=LO(e.isLive,e.hasDraft),r=VO(e);return(0,Z.jsxs)(P,{gap:`sm`,align:`start`,children:[(0,Z.jsx)(M,{className:kr(PO,RO[n],zO[n]),children:(0,Z.jsx)($n,{variant:`mono`,size:`sm`})}),(0,Z.jsxs)(M,{minWidth:`0`,children:[(0,Z.jsxs)(P,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(N,{as:`div`,size:`sm`,weight:`medium`,children:t(`overview.nodejs`)}),(0,Z.jsx)(br,{intent:r.intent,"data-testid":`overview-nodejs-status`,children:t(r.labelKey)})]}),(0,Z.jsx)(N,{as:`div`,size:`sm`,tone:`subtle`,className:FO,children:t(`overview.nodejsManageDescription`)})]})]})}var UO=`mt-0.5`,WO=`sm:flex-nowrap sm:items-center`;function GO({builderId:e,domain:t,onSetUpWebsite:n,t:r}){return(0,Z.jsxs)(P,{gap:`sm`,align:`start`,justify:`between`,wrap:!0,className:WO,children:[(0,Z.jsxs)(P,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(Ur,{intent:`brand`,shape:`rounded`,size:`lg`,"aria-hidden":`true`,children:(0,Z.jsx)(O,{name:`wordpress-line`,tone:`brand`})}),(0,Z.jsxs)(M,{minWidth:`0`,children:[(0,Z.jsx)(N,{as:`div`,size:`sm`,weight:`medium`,children:r(`overview.wordPress`)}),(0,Z.jsx)(N,{as:`div`,size:`sm`,tone:`subtle`,className:UO,children:r(`overview.wordPressDescription`)})]})]}),(0,Z.jsxs)(A,{variant:`secondary`,onClick:()=>n?.(t,e),"data-testid":`overview-wp-setup-btn`,width:`mobile-full`,children:[(0,Z.jsx)(O,{name:`wordpress-line`,"aria-hidden":`true`}),` `,r(`overview.buildWithWordPress`)]})]})}var KO={wordpress:{Mark:Xr,overviewCard:GO,overviewTileIcon:`wordpress-line`,load:()=>bT(()=>import(`./module5.js`).then(e=>e.wordpressRuntime),__vite__mapDeps([4,1,2,3]),import.meta.url)},sitejet:{Mark:rr,Wordmark:Hn,load:()=>bT(()=>import(`./module3.js`).then(e=>e.sitejetRuntime),__vite__mapDeps([5,2,1]),import.meta.url)},nova:{Mark:Bn,load:()=>bT(()=>import(`./module2.js`).then(e=>e.novaRuntime),__vite__mapDeps([6,2,1]),import.meta.url)},"nova-wordpress":{Mark:Bn,load:()=>bT(()=>import(`./module.js`).then(e=>e.novaWordpressRuntime),__vite__mapDeps([7,2,1]),import.meta.url)},webapp:{Mark:$n,overviewCard:HO,load:()=>bT(()=>import(`./module4.js`).then(e=>e.webAppRuntime),__vite__mapDeps([8,2,1]),import.meta.url)}},qO=[`domain-type`,`domain-config`,`builder`,`email-choice`,`email-form`,`review`,`success`,`welcome`];[...mt()];var JO=st(fn,qO),YO={"add-website":[`domain-type`,`domain-config`,`builder`,`review`,`success`],"build-on-domain":[`builder`,`review`,`success`]};function XO(e,t=JO){return[...YO[e],...t.allStepIds]}XO(`add-website`),XO(`build-on-domain`);function ZO(e){return`#/files?tab=filemanager${e?`&path=${encodeURIComponent(e)}`:``}`}function QO(e){window.location.hash=ZO(e)}var $O=fn.filter(e=>e.classifiesSites);new Set($O.map(e=>e.id));function ek({existingInstallations:e,onBack:t,backLabel:n,onSkipToDashboard:r,t:i}){let a=e.map(e=>e.path).filter(Boolean);return(0,Z.jsx)(ti,{intent:`warning`,role:`status`,"aria-live":`polite`,"data-testid":`wp-install-collision`,children:(0,Z.jsxs)(M,{"data-testid":`wp-install-collision-orphan`,children:[(0,Z.jsx)($r,{as:`h3`,children:i(`wpInstall.orphan.title`)}),(0,Z.jsx)(hr,{children:(0,Z.jsxs)(k,{gap:`md`,children:[a.length>0&&(0,Z.jsxs)(k,{gap:`xs`,children:[(0,Z.jsx)(N,{size:`sm`,tone:`muted`,children:i(`wpInstall.orphan.pathsLabel`)}),(0,Z.jsx)(k,{as:`ul`,gap:`xs`,children:e.map(e=>(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(P,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(M,{shrink:`0`,children:(0,Z.jsx)(O,{name:`folder-line`,size:`md`,"aria-hidden":`true`})}),(0,Z.jsx)(N,{size:`sm`,as:`span`,family:`mono`,breakWords:!0,children:e.path})]})},e.id))})]}),(0,Z.jsx)(N,{tone:`muted`,children:i(`wpInstall.orphan.body`)}),(0,Z.jsxs)(k,{gap:`sm`,children:[(0,Z.jsxs)(A,{type:`button`,onClick:()=>QO(a[0]),"data-testid":`wp-install-collision-open-files`,width:`full`,children:[(0,Z.jsx)(O,{name:`folder-line`,"aria-hidden":`true`}),i(`wpInstall.orphan.openFiles`)]}),t&&(0,Z.jsx)(A,{type:`button`,onClick:t,"data-testid":`wp-install-collision-cancel`,variant:`secondary`,width:`full`,children:n??i(`wpInstall.chooseDifferent`)}),r&&(0,Z.jsxs)(A,{type:`button`,onClick:r,"data-testid":`wp-install-collision-skip`,variant:`ghost`,width:`full`,children:[(0,Z.jsx)(O,{name:`skip-forward-line`,"aria-hidden":`true`}),i(`wpInstall.skipToDashboard`)]})]})]})})]})})}function tk(e){return e.length>0&&e.every(e=>e.synthetic===!0)}function nk({existingInstallations:e,onReplace:t,onBack:n,backLabel:r,onSkipToDashboard:i,t:a}){if(tk(e))return(0,Z.jsx)(ek,{existingInstallations:e,onBack:n,backLabel:r,onSkipToDashboard:i,t:a});let o=e.find(e=>e.synthetic===!0);return(0,Z.jsx)(ti,{intent:`warning`,role:`status`,"aria-live":`polite`,"data-testid":`wp-install-collision`,children:(0,Z.jsxs)(k,{gap:`md`,children:[(0,Z.jsx)(k,{as:`ul`,gap:`xs`,children:e.map(e=>(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(P,{gap:`sm`,align:`center`,children:[(0,Z.jsx)(M,{shrink:`0`,children:(0,Z.jsx)(O,{name:e.synthetic?`folder-line`:`global-line`,size:`md`,"aria-hidden":`true`})}),(0,Z.jsx)(N,{size:`sm`,as:`span`,family:`mono`,breakWords:!0,children:e.synthetic?e.path:e.url})]})},e.id))}),(0,Z.jsx)(N,{tone:`muted`,children:a(`wpInstall.collisionWarning`,{count:e.length})}),(0,Z.jsxs)(k,{gap:`sm`,children:[(0,Z.jsx)(A,{type:`button`,onClick:t,"data-testid":`wp-install-collision-replace`,intent:`error`,width:`full`,children:a(`wpInstall.replace`,{count:e.length})}),n&&(0,Z.jsx)(A,{type:`button`,onClick:n,"data-testid":`wp-install-collision-cancel`,variant:`secondary`,width:`full`,children:r??a(`wpInstall.chooseDifferent`)}),o&&(0,Z.jsxs)(A,{type:`button`,onClick:()=>QO(o.path),"data-testid":`wp-install-collision-open-files`,variant:`secondary`,width:`full`,children:[(0,Z.jsx)(O,{name:`folder-line`,"aria-hidden":`true`}),a(`wpInstall.orphan.openFiles`)]}),i&&(0,Z.jsxs)(A,{type:`button`,onClick:i,"data-testid":`wp-install-collision-skip`,variant:`ghost`,width:`full`,children:[(0,Z.jsx)(O,{name:`skip-forward-line`,"aria-hidden":`true`}),a(`wpInstall.skipToDashboard`)]})]})]})})}var rk=`wpInstall.errorGeneric`,ik=`wpInstall.friendlyError.service`,ak=200,ok=[{test:/socket|mysql/i,key:`wpInstall.friendlyError.database`},{test:/permission|denied/i,key:`wpInstall.friendlyError.permission`},{test:/disk|quota/i,key:`wpInstall.friendlyError.disk`},{test:/network|connection.{0,5}time/i,key:`wpInstall.friendlyError.network`}],sk=/Command:\s*uapi\s+\S+\s+(\w+)\s+\w+/,ck={Mysql:`wpInstall.friendlyError.database`,Postgresql:`wpInstall.friendlyError.database`,Quota:`wpInstall.friendlyError.disk`},lk=[/\/(?:opt|usr|var|home|etc|root|tmp)\//,/\bat\s+[\w$]+\s*\(/,/\b[\w.]+\.(?:pm|pl|py|rb|sh):\d+\b/];function uk(e){let t=e.match(sk);if(t){let e=t[1],n=ck[e];return n?{kind:`key`,key:n}:{kind:`service`,module:e}}let n=ok.find(t=>t.test.test(e));if(n)return{kind:`key`,key:n.key};if(lk.some(t=>t.test(e)))return{kind:`key`,key:rk};let r=e.split(`
`)[0].trim();return r.length>0&&r.length<=ak?{kind:`text`,text:r}:{kind:`key`,key:rk}}function dk(e,t){switch(e.kind){case`key`:return t(e.key);case`service`:return t(ik,{service:e.module});case`text`:return e.text}}var fk=`wpInstallError/v1:`;function pk(e){if(!e||typeof e!=`object`)return null;let t=e;return t.kind===`key`&&typeof t.key==`string`?{kind:`key`,key:t.key}:t.kind===`service`&&typeof t.module==`string`?{kind:`service`,module:t.module}:t.kind===`text`&&typeof t.text==`string`?{kind:`text`,text:t.text}:null}function mk(e){if(!e.startsWith(fk))return null;try{return pk(JSON.parse(e.slice(18)))??{kind:`key`,key:rk}}catch{return{kind:`key`,key:rk}}}function hk(e,t){return dk(mk(e)??uk(e),t)}function gk({error:e,onRetry:t,onBack:n,backLabel:r,t:i}){return(0,Z.jsxs)(k,{gap:`md`,"data-testid":`wp-install-error`,children:[(0,Z.jsx)(ti,{intent:`error`,children:(0,Z.jsx)(hr,{children:hk(e,i)})}),(0,Z.jsxs)(P,{gap:`sm`,justify:n?`between`:`end`,children:[n&&(0,Z.jsx)(A,{type:`button`,onClick:n,variant:`secondary`,minHeight:`touch`,"data-testid":`wp-install-back`,children:r??i(`wpInstall.goBack`)}),(0,Z.jsx)(A,{type:`button`,onClick:t,"data-testid":`wp-install-retry`,minHeight:`touch`,children:i(`wpInstall.tryAgain`)})]})]})}function _k({done:e,active:t,error:n}){return n?(0,Z.jsx)(Ur,{name:`alert-line`,intent:`error`,size:`xs`}):e?(0,Z.jsx)(Ur,{name:`check-line`,intent:`success`,size:`xs`}):t?(0,Z.jsx)(Vn,{size:`sm`}):(0,Z.jsx)(Ur,{name:`checkbox-blank-circle-fill`,intent:`neutral`,size:`xs`})}function vk({index:e,active:t,done:n,error:r,title:i,testId:a,messageTestId:o}){return(0,Z.jsx)(M,{as:`li`,paddingX:`s3`,paddingY:`s3`,rounded:`rounded`,bg:t?`brand-subtle`:`none`,"data-wp-stage":``,"data-wp-stage-index":e,"data-testid":a,children:(0,Z.jsxs)(P,{align:`center`,gap:`s3`,children:[(0,Z.jsx)(_k,{done:n,active:t,error:r}),(0,Z.jsx)(N,{as:`span`,size:`sm`,weight:t?`medium`:void 0,tone:t?`default`:n||r?`muted`:`subtle`,"data-testid":o,children:i})]})})}function yk({steps:e,showPlaceholder:t,rotatingMessage:n}){let r=e.find(e=>e.status===`started`||e.status===`running`)?.title?.trim();return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`sr-only`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:r||n}),(0,Z.jsx)(k,{gap:`xs`,role:`list`,"data-testid":`wp-install-stages`,children:t?(0,Z.jsx)(vk,{active:!0,done:!1,error:!1,title:n,testId:`wp-install-stage-preparing`,messageTestId:`wp-install-rotating-message`}):e.map((e,t)=>{let n=e.status===`done`,r=e.status===`error`,i=e.status===`started`||e.status===`running`;return(0,Z.jsx)(vk,{index:t,active:i,done:n,error:r,title:e.title,testId:`wp-install-stage-${t}`},e.code)})})]})}function bk({percent:e,hasError:t,t:n}){let r=e>=100,i=t?`error`:r?`success`:`brand`;return(0,Z.jsxs)(k,{width:`full`,gap:`s3`,children:[(0,Z.jsx)(Fr,{value:e,size:`sm`,"aria-label":n(`wpInstall.ariaLabel`),animate:t||r?`none`:`shimmer`,intent:i,indicatorStyle:t||r?void 0:{backgroundColor:`var(--wp-brand)`},"data-testid":`wp-install-progress-bar`}),(0,Z.jsxs)(P,{justify:`between`,children:[(0,Z.jsxs)(N,{as:`span`,size:`sm`,tone:`muted`,"data-testid":`wp-install-percent`,children:[e,`%`]}),(0,Z.jsx)(N,{as:`span`,size:`sm`,weight:`medium`,intent:r?`success`:void 0,children:n(r?`wpInstall.statusComplete`:`wpInstall.statusInstalling`)})]})]})}var xk=12e4,Sk=95,Ck=10;function wk(e){if(e===void 0||!Number.isFinite(e))return 0;let t=Math.max(0,Date.now()-e);return Math.min(Sk,t/xk*Sk)}function Tk({domain:e,onComplete:t,autoAdvanceDelayMs:n=0,t:r,phases:i}){let{state:a,retry:o,replaceExisting:s}=Kt({domain:e,onComplete:t,autoAdvanceDelayMs:n,t:r}),{displayProgress:c,rotatingMessage:l}=Ek({state:a,phases:i});return{state:a,displayProgress:c,rotatingMessage:l,retry:o,replaceExisting:s}}function Ek({state:e,phases:t,startedAtMs:n}){let{steps:r,status:i,isRemoving:a,message:o,progress:s}=e,c=i===`done`,[l]=(0,X.useState)(()=>wk(n)),u=sr({target:c?100:s,running:i===`installing`||a,estimatedDurationMs:xk,initialProgress:l,maxLead:Ck}),d=(0,X.useMemo)(()=>o||(r.find(e=>e.status===`started`||e.status===`running`)?.title??null),[o,r]);return{displayProgress:u,rotatingMessage:Gn({progress:u,override:d,phases:t})}}function Dk(e,t){return(0,X.useSyncExternalStore)(e.subscribe,()=>e.getJob(t),()=>void 0)}function Ok({value:e,label:t,"data-testid":n=`wp-credential-copy`}){let[r,i]=(0,X.useState)(!1),a=(0,X.useRef)(null);(0,X.useEffect)(()=>()=>{a.current!==null&&clearTimeout(a.current)},[]);let o=async()=>{try{await navigator.clipboard.writeText(e),i(!0),a.current!==null&&clearTimeout(a.current),a.current=setTimeout(()=>i(!1),2e3)}catch{}};return(0,Z.jsx)(A,{type:`button`,variant:`ghost`,size:`icon`,onClick:()=>void o(),"aria-label":t,"data-testid":n,children:(0,Z.jsx)(O,{name:r?`check-line`:`file-copy-line`,"aria-hidden":`true`})})}function kk(e,t,n){let r=`https://${e}/wp-admin/`,i=(n?``:t)||r;return Dn(i)?i:r}function Ak({adminUrl:e,domain:t,wpInstallationId:n,onOpenWordPress:r,autoNavArmed:i}){let[a,o]=(0,X.useState)(!1),[s,c]=(0,X.useState)(!1),l=(0,X.useRef)(!1),u=(0,X.useRef)(0),d=(0,X.useCallback)(async({signal:i,fallbackOnFailure:a})=>{c(!1);let s=kk(t,e,l.current),d=++u.current,f=()=>{u.current===d&&(o(!1),i?.aborted||c(!0))};if(!r||n==null){window.location.href=s,l.current=!0;return}o(!0);try{if((await r(n,a?s:void 0,t,i))?.ok){l.current=!0;return}f()}catch{f()}},[r,n,e,t]),f=(0,X.useRef)(d);(0,X.useEffect)(()=>{f.current=d},[d]),(0,X.useEffect)(()=>{if(!i)return;let e=new AbortController;return f.current({signal:e.signal,fallbackOnFailure:!1}),()=>e.abort()},[i]);let p=(0,X.useRef)(null);return(0,X.useEffect)(()=>()=>p.current?.abort(),[]),{isOpening:a,openFailed:s,openAdminTab:(0,X.useCallback)(()=>{let e=new AbortController;p.current=e,d({signal:e.signal,fallbackOnFailure:!0})},[d])}}function jk({label:e,value:t,copyLabel:n,copyTestId:r,rowTestId:i,valueTestId:a}){return(0,Z.jsx)(qr,{padding:`sm`,border:`subtle`,"data-testid":i,children:(0,Z.jsxs)(P,{align:`center`,justify:`between`,gap:`s3`,children:[(0,Z.jsxs)(M,{minWidth:`0`,children:[(0,Z.jsx)(N,{size:`sm`,tone:`muted`,children:e}),(0,Z.jsx)(N,{size:`sm`,family:`mono`,weight:`medium`,truncate:!0,"data-testid":a,children:t})]}),(0,Z.jsx)(Ok,{value:t,label:n,"data-testid":r})]})})}function Mk({password:e,passwordVisible:t,onToggleVisible:n,t:r}){return(0,Z.jsx)(qr,{padding:`sm`,border:`subtle`,"data-testid":`wp-credential-password-row`,children:(0,Z.jsxs)(P,{align:`center`,justify:`between`,gap:`s3`,children:[(0,Z.jsxs)(M,{minWidth:`0`,children:[(0,Z.jsx)(N,{size:`sm`,tone:`muted`,children:r(`wpInstall.credentialPassword`)}),(0,Z.jsxs)(P,{align:`center`,gap:`xs`,"data-testid":`wp-credential-password`,children:[(0,Z.jsx)(N,{size:`sm`,family:`mono`,weight:`medium`,"data-testid":`revealable-secret-value`,children:t?e:`••••••••`}),(0,Z.jsx)(A,{type:`button`,variant:`ghost`,size:`icon`,onClick:n,"aria-label":r(t?`wpInstall.hidePassword`:`wpInstall.showPassword`),"data-testid":`revealable-secret-toggle`,children:(0,Z.jsx)(O,{name:t?`eye-off-line`:`eye-line`,"aria-hidden":`true`})})]})]}),(0,Z.jsx)(Ok,{value:e,label:r(`wpInstall.copyPassword`),"data-testid":`wp-credential-password-copy`})]})})}function Nk({username:e,password:t,t:n}){let[r,i]=(0,X.useState)(!1);return!e&&!t?null:(0,Z.jsxs)(k,{gap:`s3`,"data-testid":`wp-credentials-block`,children:[(0,Z.jsx)(ti,{intent:`warning`,"data-testid":`wp-credentials-warning`,children:n(`wpInstall.credentialsWarning`)}),e&&(0,Z.jsx)(jk,{label:n(`wpInstall.credentialUsername`),value:e,copyLabel:n(`wpInstall.copyUsername`),copyTestId:`wp-credential-username-copy`,rowTestId:`wp-credential-username-row`,valueTestId:`wp-credential-username`}),t&&(0,Z.jsx)(Mk,{password:t,passwordVisible:r,onToggleVisible:()=>i(e=>!e),t:n})]})}function Pk(e){return{username:e?.login??e?.username??``,password:e?.password??``}}function Fk({domain:e,adminUrl:t,wpInstallationId:n,wpCredentials:r,credentialsStatus:i,onOpenWordPress:a,onClose:o,dnsStatus:s,t:c}){let{username:l,password:u}=Pk(r),{isOpening:d,openFailed:f,openAdminTab:p}=Ak({adminUrl:t,domain:e,wpInstallationId:n,onOpenWordPress:a,autoNavArmed:i===void 0?!(l||u):i===`none`});return(0,Z.jsxs)(k,{gap:`md`,align:`center`,textAlign:`center`,"data-testid":`wp-success-step`,children:[(0,Z.jsx)(Ur,{intent:`brand`,shape:`circle`,size:`3xl`,"aria-hidden":`true`,children:(0,Z.jsx)(Xr,{})}),(0,Z.jsxs)(k,{gap:`xs`,textAlign:`center`,children:[(0,Z.jsx)(N,{as:`span`,size:`lg`,weight:`bold`,"data-testid":`step-heading`,children:c(`wpInstall.successHeading`)}),(0,Z.jsx)(N,{size:`sm`,tone:`muted`,children:c(`wpInstall.successDescription`,{domain:e})})]}),(n!=null||t)&&(0,Z.jsxs)(k,{gap:`xs`,align:`center`,children:[(0,Z.jsxs)(A,{type:`button`,onClick:()=>void p(),disabled:d,"data-testid":`wp-sso-button`,children:[(0,Z.jsx)(Xr,{}),c(d?`wpInstall.opening`:`wpInstall.openAdmin`)]}),f&&(0,Z.jsx)(N,{size:`sm`,intent:`warning`,role:`alert`,"data-testid":`wp-open-error`,children:c(`wpInstall.openAdminError`)}),i===`unavailable`&&(0,Z.jsx)(N,{size:`sm`,tone:`muted`,"data-testid":`wp-credentials-unavailable`,children:c(`wpInstall.credentialsUnavailable`)})]}),(0,Z.jsx)(Nk,{username:l,password:u,t:c}),(0,Z.jsx)(A,{type:`button`,variant:`ghost`,onClick:o,"data-testid":`wp-success-close`,children:c(`wpInstall.close`)}),s]})}function Ik({done:e,status:t,successSvgRef:n,successPathRef:r}){return e?(0,Z.jsx)(Ur,{intent:`success`,size:`3xl`,children:(0,Z.jsx)(`svg`,{ref:n,viewBox:`0 0 24 24`,width:40,height:40,fill:`none`,stroke:`currentColor`,"aria-hidden":`true`,children:(0,Z.jsx)(`path`,{ref:r,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2.5,strokeDasharray:24,d:`M5 13l4 4L19 7`})})}):t===`error`?(0,Z.jsx)(Ur,{intent:`error`,size:`3xl`,children:(0,Z.jsx)(O,{name:`error-warning-line`,size:`3xl`})}):t===`collision`?(0,Z.jsx)(Ur,{intent:`warning`,size:`3xl`,shape:`rounded`,children:(0,Z.jsx)(Xr,{})}):(0,Z.jsx)(Xr,{})}function Lk(e,t){return e?`wpInstall.titleDone`:t===`error`?`wpInstall.titleError`:t===`collision`?`wpInstall.titleCollision`:`wpInstall.titleInstalling`}function Rk({done:e,status:t,error:n,domain:r,existingInstallations:i,t:a,successSvgRef:o,successPathRef:s}){return(0,Z.jsxs)(k,{align:`center`,gap:`s5`,children:[(0,Z.jsx)(Ik,{done:e,status:t,successSvgRef:o,successPathRef:s}),(0,Z.jsxs)(k,{gap:`xs`,textAlign:`center`,children:[(0,Z.jsx)(_r,{level:2,children:a(Lk(e,t))}),e&&(0,Z.jsx)(N,{size:`sm`,tone:`muted`,children:a(`wpInstall.doneMessage`,{domain:r})}),t===`installing`&&!n&&(0,Z.jsx)(N,{size:`sm`,tone:`muted`,children:r}),t===`collision`&&(0,Z.jsx)(N,{size:`sm`,tone:`muted`,children:a(`wpInstall.collision`,{domain:r,count:i.length})})]})]})}function zk({status:e,error:t,displayProgress:n,retry:r,onBack:i,backLabel:a,existingInstallations:o,onReplace:s,onSkipToDashboard:c,steps:l,showPlaceholder:u,rotatingMessage:d,done:f,redirectTextRef:p,t:m,doneSlot:h,hideDefaultDoneState:g}){return(0,Z.jsxs)(Z.Fragment,{children:[e!==`error`&&e!==`collision`&&(0,Z.jsx)(bk,{percent:n,hasError:!1,t:m}),t&&(0,Z.jsx)(gk,{error:t,onRetry:r,onBack:i,backLabel:a,t:m}),e===`collision`&&(0,Z.jsx)(nk,{existingInstallations:o,onReplace:s,onBack:i,backLabel:a,onSkipToDashboard:c,t:m}),e===`installing`&&(0,Z.jsx)(yk,{steps:l,showPlaceholder:u,rotatingMessage:d}),f&&!g&&(h??(0,Z.jsxs)(k,{ref:p,responsiveDirection:{base:`row`},align:`center`,justify:`center`,gap:`xs`,children:[(0,Z.jsx)(Vn,{size:`sm`,tone:`muted`}),(0,Z.jsx)(N,{as:`p`,size:`sm`,weight:`medium`,align:`center`,intent:`success`,children:m(`wpInstall.redirectingMessage`)})]}))]})}function Bk({domain:e,state:t,displayProgress:n,rotatingMessage:r,onRetry:i,onReplace:a,onBack:o,backLabel:s,onSkipToDashboard:c,t:l,doneSlot:u,hideDefaultDoneState:d}){let{error:f,existingInstallations:p,status:m,steps:h}=t,g=m===`done`,_=m===`installing`&&!f&&h.length===0;return(0,Z.jsx)(k,{"data-testid":`step-wp-install`,align:`center`,justify:`center`,height:`full`,paddingY:`xl`,"data-wp-install-animated":``,children:(0,Z.jsxs)(k,{gap:`lg`,width:`full`,maxWidth:`md`,children:[(0,Z.jsx)(Rk,{done:g,status:m,error:f,domain:e,existingInstallations:p,t:l,successSvgRef:e=>{e&&(e.style.animation=Kn)},successPathRef:e=>{e&&(e.style.animation=or)}}),(0,Z.jsx)(zk,{status:m,error:f,displayProgress:n,retry:i,onBack:o,backLabel:s,existingInstallations:p,onReplace:a,onSkipToDashboard:c,steps:h,showPlaceholder:_,rotatingMessage:r,done:g,redirectTextRef:e=>{e&&(e.style.animation=ar)},t:l,doneSlot:u,hideDefaultDoneState:d})]})})}function Vk({domain:e,onComplete:t,onBack:n,onSkipToDashboard:r,autoAdvanceDelayMs:i=2e3,t:a,tCommon:o,phases:s,doneSlot:c,hideDefaultDoneState:l}){let{state:u,displayProgress:d,rotatingMessage:f,retry:p,replaceExisting:m}=Tk({domain:e,onComplete:t,autoAdvanceDelayMs:i,t:o,phases:s});return(0,Z.jsx)(Bk,{domain:e,state:u,displayProgress:d,rotatingMessage:f,onRetry:p,onReplace:()=>void m(),onBack:n,onSkipToDashboard:r,t:a,doneSlot:c,hideDefaultDoneState:l})}var Hk=(e,t)=>{let n=e.toLowerCase(),r=t.toLowerCase();if(!n.length)return 0;if(r.includes(n))return 100+n.length/r.length*50;let i=0,a=0,o=-1;for(let e=0;e<r.length&&i<n.length;e++)r[e]===n[i]&&(a+=e===o+1?15:5,(e===0||r[e-1]===` `)&&(a+=10),o=e,i++);return i===n.length?a:0};function Uk(e,t){let n=e.toLowerCase(),r=t.toLowerCase();if(!n.length)return[];let i=[],a=0;for(let e=0;e<r.length&&a<n.length;e++)r[e]===n[a]&&(i.push(e),a++);return a===n.length?i:[]}function Wk(e,t){let n=Hk(e,t.label)*3,r=t.sub?Hk(e,t.sub)*1:0,i=(t.keywords??[]).reduce((t,n)=>t+Hk(e,n)*2,0);return n+r+i}var Gk={now:()=>Date.now()};function Kk(e){let t=new Set,n=0;for(let r of e.sources)r.onChange&&r.onChange(()=>{n++,t.forEach(e=>e())});return{allCommands(){let t=[];for(let n of e.sources)t.push(...n.commands(Gk));return t},search(e){let t=this.allCommands();if(!e.trim())return[];let n=[];for(let r of t){let t=Wk(e,r);t>0&&n.push({command:r,score:t,matches:{label:Uk(e,r.label),sub:r.sub?Uk(e,r.sub):void 0}})}return n.sort((e,t)=>t.score-e.score).slice(0,12)},subscribe(e){return t.add(e),()=>{t.delete(e)}},version(){return n}}}var qk=(0,X.createContext)(null);function Jk({registry:e,children:t}){return(0,Z.jsx)(qk.Provider,{value:e,children:t})}function Yk(){return yn(qk,{hook:`useCommandRegistry`,provider:`<RegistryProvider>`})}function Xk(){let e=Yk();return(0,X.useSyncExternalStore)(t=>e.subscribe(t),()=>e.version(),()=>e.version())}function Zk(){let e=Yk(),t=Xk();return(0,X.useMemo)(()=>e.allCommands(),[e,t])}function Qk(e){let t=Yk(),n=Xk();return{results:(0,X.useMemo)(()=>t.search(e),[t,e,n])}}function $k(e,t,n){return!(e.features&&e.features.length>0&&t&&!e.features.every(e=>tn(e,t))||e.services&&e.services.length>0&&!e.services.every(e=>n?.[e]===!0))}function eA(e,t,n){let r=iA(e,t.slug,n);return{id:e.id??`${t.id}.${rA(e.label)}`,kind:e.kind,hub:t.slug,label:r.label,sub:r.sub,keywords:r.keywords,href:e.href,icon:e.icon?.replace(/^ri-/,``)}}function tA({manifests:e,availableHubs:t,features:n,services:r,t:i}){let a=[];for(let o of e)if(!(!t.includes(o.slug)&&!t.includes(o.id)))for(let e of o.searchIndex??[]){let t=Rw(e,o.slug);$k(t,n,r)&&a.push(eA(t,o,i))}return a}function nA(e,t,n){return{id:`manifest`,kind:`reactive`,commands(n){let r=E.t.bind(E),{availableHubs:i,features:a,services:o}=t();return tA({manifests:e(),availableHubs:i,features:a,services:o,t:r})},onChange(e){E.on(`languageChanged`,e),E.on(`loaded`,e);let t=n?.(e);return()=>{E.off(`languageChanged`,e),E.off(`loaded`,e),t?.()}}}}function rA(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``)}function iA(e,t,n){if(!e.id)return{label:e.label,sub:e.sub,keywords:e.keywords};let r=`${t}.commands:${e.id}`;return{label:n(`${r}.label`,{defaultValue:e.label,keySeparator:!1}),sub:e.sub?n(`${r}.sub`,{defaultValue:e.sub,keySeparator:!1}):void 0,keywords:e.keywords?n(`${r}.keywords`,{defaultValue:e.keywords,keySeparator:!1,returnObjects:!0}):void 0}}function aA(e){return{id:`shell`,kind:`reactive`,commands(t){let n=E.t.bind(E);return e.map(e=>{let t=n(e.labelKey),r=e.subKey?n(e.subKey):void 0,{labelKey:i,subKey:a,...o}=e;return{...o,label:t,sub:r}})},onChange(e){return E.on(`languageChanged`,e),E.on(`loaded`,e),()=>{E.off(`languageChanged`,e),E.off(`loaded`,e)}}}}function oA(){let[e,t]=(0,X.useState)(()=>{if(typeof window>`u`)return`/`;let e=window.location.hash;return e?e.replace(/^#/,``):`/`});return(0,X.useEffect)(()=>{let e=()=>{let e=window.location.hash;t(e?e.replace(/^#/,``):`/`)};return window.addEventListener(`hashchange`,e),window.addEventListener(`popstate`,e),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`popstate`,e)}},[]),e}function sA({appName:e,onSparkleClick:t,sparkleActive:n,onNavigate:r,activePath:i,children:a,availableHubSlugs:o,aiPaneOpen:s,aiPane:c,aiPaneWidth:l,aiPaneResizing:u,aiPaneNoTransition:d}){let f=oA();return(0,Z.jsx)(gD,{appName:e,onSparkleClick:t,sparkleActive:n,onNavigate:r,activePath:i??f,availableHubSlugs:o,aiPaneOpen:s,aiPane:c,aiPaneWidth:l,aiPaneResizing:u,aiPaneNoTransition:d,children:a})}var cA=Rt.AI_PANE_OPEN,lA=Rt.AI_PANE_SEEN,uA=Rt.AI_PANE_WIDTH,dA=!1;function fA(){if(dA)return;dA=!0;let e=oe();e&&a.seedCache(e)}var pA={min:360};function mA(e){let t=typeof window>`u`?1/0:Math.max(pA.min,window.innerWidth);return Math.min(t,Math.max(pA.min,Math.round(e)))}function hA(e){if(e===null)return null;let t=Number(e);return Number.isFinite(t)?mA(t):null}function gA({enabled:e,currentHub:t}){fA();let[n,r]=(0,X.useState)(()=>e?Pt(cA,e=>r(e===`true`))===`true`:!1),[i,a]=(0,X.useState)(()=>hA(Pt(uA,e=>a(hA(e))))),o=(0,X.useCallback)(t=>{t&&!e||Ce({[cA]:String(t)})},[e]);(0,X.useEffect)(()=>{e||r(!1)},[e]);let s=(0,X.useCallback)(t=>{t&&!e||(r(t),o(t))},[e,o]),c=(0,X.useCallback)(()=>{e&&r(e=>{let t=!e;return o(t),t})},[e,o]),l=(0,X.useCallback)(()=>{Ce({[lA]:`true`})},[]);return{open:n,toggle:c,openPane:(0,X.useCallback)(()=>{s(!0),l()},[s,l]),closePane:(0,X.useCallback)(()=>s(!1),[s]),showNudge:!1,dismissNudge:l,width:i,setWidth:(0,X.useCallback)(e=>{let t=mA(e);a(t),Ce({[uA]:String(t)})},[])}}var _A=3e4,vA=48e4;function yA(e){return e?.name===`AbortError`}function bA(e){return e instanceof Error?e.message:typeof e==`string`?e:``}function xA(e={}){let t=e.emit??((e,t)=>m.emit(e,t)),n=e.invalidateEntities??(e=>ke(Et,...e)),r=e.getContext??(()=>({features:ht()})),i=e.now??(()=>Date.now()),a=new Map,o=new Map,s=new Set;function c(e,t){for(let n of s)try{n(e,t)}catch(t){console.error(`[JobManager] status listener error for "${e}":`,t)}}function l(e){return!e.isEligible||e.isEligible(r())}function u(e){Ie(xe(e))}function d(e){let t={intervalId:null,abort:new AbortController,startedAtMs:i()};return o.set(e,t),t}async function f(e,r,i,a){if(o.get(e)===i){i.intervalId!==null&&clearInterval(i.intervalId),o.delete(e),u(e),t(Me.SETTLED,{type:e,timedOut:a}),c(e,`idle`);try{await r.onSettled?.({timedOut:a,signal:i.abort.signal})}catch(t){console.error(`[JobManager] onSettled error for "${e}":`,t)}r.invalidates?.length&&n(r.invalidates)}}async function p(e,t,n,r){if(o.get(e)===n){if(i()-n.startedAtMs>=r){f(e,t,n,!0);return}try{let r=await t.isRunning?.(n.abort.signal);if(o.get(e)!==n)return;r===!1&&f(e,t,n,!1)}catch{}}}function h(e,t,n){if(!t.isRunning){f(e,t,n,!1);return}let r=t.pollIntervalMs??_A,i=t.timeoutMs??vA;n.intervalId=setInterval(()=>{p(e,t,n,i)},r)}function g(e,n){b(xe(e),`1`),t(Me.STARTED,{type:e}),c(e,`running`)}function _(e,t,n){g(e,n);try{t.onStarted?.()}catch(t){console.error(`[JobManager] onStarted error for "${e}":`,t)}}function v(e,t,n,r){o.delete(e),n&&(u(e),c(e,`idle`)),yA(r)||t.onStartError?.(bA(r))}async function y(e,t,n,r){let i=!!t.start&&!t.isRunning;if(i&&_(e,t,r),t.start)try{await t.start(n,r.abort.signal)}catch(n){v(e,t,i,n);return}r.abort.signal.aborted||o.get(e)!==r||(i||_(e,t,r),h(e,t,r))}function x(e,n,r){b(xe(e),`1`),t(Me.STARTED,{type:e}),c(e,`running`),h(e,n,r)}async function S(e,{trustObservedOnProbeFailure:t=!1}={}){let n=e.type;if(!e.isRunning){u(n);return}let r=d(n),i;try{i=await e.isRunning(r.abort.signal)}catch{if(t){x(n,e,r);return}o.delete(n);return}o.get(n)===r&&(i?x(n,e,r):f(n,e,r,!1))}return{register(e){a.set(e.type,e)},start(e,t){let n=a.get(e);n&&(o.has(e)||l(n)&&y(e,n,t,d(e)))},watch(e){let t=a.get(e);t&&(o.has(e)||l(t)&&S(t,{trustObservedOnProbeFailure:!0}))},getStatus(e){return o.has(e)?`running`:`idle`},subscribe(e){return s.add(e),()=>{s.delete(e)}},abortAll(){for(let[e,t]of o)t.intervalId!==null&&clearInterval(t.intervalId),t.abort.abort(),u(e),c(e,`idle`);o.clear()},recoverFromHints(){for(let e of a.values())if(!o.has(e.type)&&Tn(xe(e.type))===`1`){if(!l(e)){u(e.type);continue}S(e)}}}}var SA=`autossl`,CA=`jobs`;function wA(){return E.getFixedT(E.language||`en`,CA)}async function TA(){try{return(await Cn.domainsData()).map(e=>e.domain)}catch{return null}}function EA(e){return[...new Set(e.map(e=>e.domain))]}var DA={type:SA,start:(e,t)=>dt.startAutoSslCheck(t),isRunning:e=>dt.isAutoSslInProgress(e),invalidates:[`sslCertificates`,`autoSslPolling`],isEligible:e=>tn(_n.autoSsl,e.features),pollIntervalMs:3e4,timeoutMs:48e4,onStarted:()=>{j({title:wA()(`autossl.started`),intent:`info`})},onStartError:e=>{j({title:wA()(`autossl.startFailed`),description:e||void 0,intent:`error`})},onSettled:async({timedOut:e,signal:t})=>{await E.loadNamespaces(CA);let n=wA();if(e){j({title:n(`autossl.timedOut`),intent:`warning`});return}let r;try{r=await dt.getAutoSslProblems(t)}catch{j({title:n(`autossl.doneUnknown`),intent:`info`});return}if(r.length===0){j({title:n(`autossl.done`),intent:`success`});return}let i=await TA();if(i===null){j({title:n(`autossl.doneWithProblems`),intent:`warning`});return}let a=eb(EA(r),i);if(a.length===0){j({title:n(`autossl.done`),intent:`success`});return}let o=a.length<=2?n(`autossl.doneNamed`,{count:a.length,domains:new Intl.ListFormat(Ne(),{style:`long`,type:`conjunction`}).format(a)}):n(`autossl.doneCount`,{count:a.length});j({title:o,intent:`warning`})}},OA=`backupExtract`,kA=`jobs`;function AA(){return E.getFixedT(E.language||`en`,kA)}var jA=``,MA={type:OA,start:(e,t)=>{let{backupFullpath:n,destAbsolutePath:r}=e;return jA=r,ye.startExtract({backupFullpath:n,destAbsolutePath:r},t)},invalidates:[`fileListing`],onStarted:()=>{j({title:AA()(`backupExtract.started`),intent:`info`})},onStartError:e=>{j({title:AA()(`backupExtract.failed`),description:e||void 0,intent:`error`})},onSettled:async()=>{await E.loadNamespaces(kA),j({title:AA()(`backupExtract.done`,{path:jA}),intent:`success`})}},NA=`fullBackup`,PA=`jobs`;function FA(){return E.getFixedT(E.language||`en`,PA)}var IA={type:NA,isRunning:e=>ye.isFullBackupInProgress(e),invalidates:[`backups`],pollIntervalMs:1e4,timeoutMs:72e5,onStarted:()=>{j({title:FA()(`fullBackup.started`),intent:`info`})},onSettled:async({timedOut:e,signal:t})=>{await E.loadNamespaces(PA);let n=FA();if(e){j({title:n(`fullBackup.timedOut`),intent:`warning`});return}let r=await ye.getFullBackupProgressState(t).catch(()=>null);await ye.resetFullBackupMarker(t),j(r===`complete`?{title:n(`fullBackup.done`),intent:`success`}:r===`timeout`?{title:n(`fullBackup.didNotFinish`),intent:`warning`}:{title:n(`fullBackup.doneUnknown`),intent:`info`})}},LA=xA(),RA=!1;function zA(){RA||(RA=!0,LA.register(DA),LA.register(IA),LA.register(MA),m.on(Me.START,({type:e,params:t})=>{LA.start(e,t)}),m.on(Me.OBSERVED,({type:e})=>{LA.watch(e)}),Xe(()=>{LA.abortAll()}),LA.recoverFromHints())}var BA=`ai-assistant`,VA=(0,X.lazy)(async()=>{let[e]=await Promise.all([uO(BA),bn().then(()=>E.loadNamespaces(`ai-assistant`))]),t=e.AiAssistantHub;return{default:typeof t==`function`?t:Object.entries(e).find(([e,t])=>e.endsWith(`Hub`)&&typeof t==`function`)?.[1]}});function HA({open:e,onClose:t,currentHub:n,availableHubSlugs:r,initialQuery:i,width:a,onWidthChange:o,onResizingChange:s,onAvailabilityChange:c}){let l=JD(),{t:u}=wn(),[d,f]=(0,X.useState)(e);(0,X.useEffect)(()=>{e&&f(!0)},[e]);let p=(0,X.useRef)(null),[m,h]=(0,X.useState)(!1),g=(0,X.useCallback)(e=>{p.current=e,h(e!==null)},[]),_=(0,X.useRef)(null),[v,y]=(0,X.useState)(!1),b=(0,X.useCallback)(e=>{_.current=e,y(e!==null)},[]),x=m||v?(0,Z.jsxs)(Z.Fragment,{children:[v?(0,Z.jsx)(A,{variant:`ghost`,size:`sm`,onClick:()=>_.current?.(),children:u(`shell.aiAssistant.viewActivity`)}):null,m?(0,Z.jsx)(A,{variant:`ghost`,size:`sm`,onClick:()=>p.current?.(),children:u(`shell.aiAssistant.clear`)}):null]}):void 0;return(0,Z.jsx)(Br,{open:e,onClose:t,title:u(`shell.aiAssistant.title`),closeLabel:u(`shell.aiAssistant.closeLabel`),headerActions:x,width:a,onWidthChange:o,onResizingChange:s,resizeLabel:u(`shell.aiAssistant.resizeLabel`),children:d&&(0,Z.jsx)(WD,{hubId:BA,children:(0,Z.jsx)(VA,{context:l,open:e,currentHub:n,availableHubSlugs:r,initialQuery:i,onClearState:g,onActivityState:b,onAvailabilityChange:c})})})}function UA(e){let t=[];return e.mysql===!0&&t.push(`mysql`),e.postgres===!0&&t.push(`postgresql`),t}var WA=384,GA=44;function KA({open:e,title:t,description:n,searchAriaLabel:r,searchPlaceholder:i,items:a,loading:o=!1,loadingLabel:s,error:c=!1,errorTitle:l,errorDescription:u,matchesQuery:d,getKey:f,renderRow:p,rowAriaLabel:m,rowTestId:h,emptyIcon:g,emptyTitle:_,noItemsDescription:v,noItemsAction:y,noMatchDescription:b,onClose:x,onSelect:S,testIdPrefix:C}){let[w,ee]=(0,X.useState)(``),T=(0,X.useRef)(null);(0,X.useEffect)(()=>{e&&ee(``)},[e]),(0,X.useEffect)(()=>{if(!e)return;let t=requestAnimationFrame(()=>T.current?.focus());return()=>cancelAnimationFrame(t)},[e]);let te=(0,X.useMemo)(()=>{let e=w.trim().toLowerCase();return e?a.filter(t=>d(t,e)):a},[a,w,d]);return(0,Z.jsx)(Or,{open:e,onClose:x,title:t,description:n,size:`md`,"data-testid":`${C}-dialog`,children:(0,Z.jsx)(Rn,{children:(0,Z.jsxs)(k,{gap:`md`,children:[(0,Z.jsx)(qn,{ref:T,"aria-label":r,placeholder:i,value:w,onValueChange:ee,onClear:()=>ee(``),"data-testid":`${C}-search`}),o?(0,Z.jsxs)(P,{justify:`center`,align:`center`,gap:`sm`,"data-testid":`${C}-loading`,children:[(0,Z.jsx)(Vn,{}),(0,Z.jsx)(N,{size:`md`,as:`span`,intent:`neutral`,children:s})]}):c?(0,Z.jsx)(Zn,{icon:`error-warning-line`,title:l,description:u,"data-testid":`${C}-error`}):te.length===0?(0,Z.jsx)(Zn,{icon:g,title:_,description:a.length===0?v:b,action:a.length===0?y:void 0}):(0,Z.jsx)(M,{border:`subtle`,rounded:`rounded`,overflow:`hidden`,children:(0,Z.jsx)(zr,{items:te,getKey:f,estimateRowHeightPx:GA,maxHeightPx:WA,renderItem:(e,t)=>(0,Z.jsx)(ni,{as:`button`,interactive:!0,separator:t===0?`none`:`top`,onClick:()=>S(e),"aria-label":m(e),"data-testid":h(e),children:p(e)})})})]})})})}KA.displayName=`PickerDialog`;var qA={mysql:`MySQL`,postgresql:`PostgreSQL`},JA={mysql:`phpMyAdmin`,postgresql:`phpPgAdmin`};function YA(e,t){return e.name.toLowerCase().includes(t)?!0:(e.engine===`postgresql`?[`postgresql`,`postgres`,`phppgadmin`]:[`mysql`,`mariadb`,`phpmyadmin`]).some(e=>e.startsWith(t))}function XA({open:e,options:t,loading:n=!1,error:r=!1,onClose:i,onSelect:a}){let{t:o}=wn(),s=(0,X.useMemo)(()=>Jr(t),[t]);return(0,Z.jsx)(KA,{open:e,title:o(`shell.dbAdminPicker.title`),description:o(`shell.dbAdminPicker.description`),searchAriaLabel:o(`shell.dbAdminPicker.searchAriaLabel`),searchPlaceholder:o(`shell.dbAdminPicker.searchPlaceholder`),items:t,loading:n,loadingLabel:o(`shell.dbAdminPicker.loadingLabel`),error:r,errorTitle:o(`shell.dbAdminPicker.errorTitle`),errorDescription:o(`shell.dbAdminPicker.errorDescription`),matchesQuery:YA,getKey:e=>`${e.engine}:${e.name}`,rowAriaLabel:e=>o(`shell.dbAdminPicker.rowAction`,{name:e.name,tool:JA[e.engine]}),rowTestId:e=>`db-admin-picker-row-${e.name}`,emptyIcon:`database-2-line`,emptyTitle:o(`shell.dbAdminPicker.emptyTitle`),noItemsDescription:o(`shell.dbAdminPicker.noItemsDescription`),noMatchDescription:o(`shell.dbAdminPicker.noMatchDescription`),onClose:i,onSelect:a,testIdPrefix:`db-admin-picker`,renderRow:e=>(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(O,{name:`database-2-line`,size:`sm`,"aria-hidden":`true`}),(0,Z.jsx)(M,{flex:`1`,minWidth:`0`,children:(0,Z.jsx)(N,{size:`md`,weight:`medium`,as:`span`,truncate:!0,children:e.name})}),s&&(0,Z.jsx)(br,{children:qA[e.engine]}),(0,Z.jsx)(N,{size:`sm`,as:`span`,intent:`neutral`,children:JA[e.engine]}),(0,Z.jsx)(O,{name:`arrow-right-s-line`,size:`sm`,"aria-hidden":`true`})]})})}XA.displayName=`DatabaseAdminPickerDialog`;var ZA={mysql:`MySQL`,postgresql:`PostgreSQL`};function QA(e,t){return e.name.toLowerCase().includes(t)?!0:(e.engine===`postgresql`?[`postgresql`,`postgres`]:[`mysql`,`mariadb`]).some(e=>e.startsWith(t))}function $A({open:e,options:t,loading:n=!1,error:r=!1,onClose:i,onSelect:a}){let{t:o}=wn(),s=(0,X.useMemo)(()=>Jr(t),[t]);return(0,Z.jsx)(KA,{open:e,title:o(`shell.dbUsersPicker.title`),description:o(`shell.dbUsersPicker.description`),searchAriaLabel:o(`shell.dbUsersPicker.searchAriaLabel`),searchPlaceholder:o(`shell.dbUsersPicker.searchPlaceholder`),items:t,loading:n,loadingLabel:o(`shell.dbUsersPicker.loadingLabel`),error:r,errorTitle:o(`shell.dbUsersPicker.errorTitle`),errorDescription:o(`shell.dbUsersPicker.errorDescription`),matchesQuery:QA,getKey:e=>`${e.engine}:${e.name}`,rowAriaLabel:e=>o(`shell.dbUsersPicker.rowAction`,{name:e.name}),rowTestId:e=>`db-users-picker-row-${e.name}`,emptyIcon:`database-2-line`,emptyTitle:o(`shell.dbUsersPicker.emptyTitle`),noItemsDescription:o(`shell.dbUsersPicker.noItemsDescription`),noMatchDescription:o(`shell.dbUsersPicker.noMatchDescription`),onClose:i,onSelect:a,testIdPrefix:`db-users-picker`,renderRow:e=>(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(O,{name:`database-2-line`,size:`sm`,"aria-hidden":`true`}),(0,Z.jsx)(M,{flex:`1`,minWidth:`0`,children:(0,Z.jsx)(N,{size:`md`,weight:`medium`,as:`span`,truncate:!0,children:e.name})}),s&&(0,Z.jsx)(br,{children:ZA[e.engine]}),(0,Z.jsx)(N,{size:`sm`,as:`span`,intent:`neutral`,children:o(`shell.dbUsersPicker.userCount`,{count:e.userCount})}),(0,Z.jsx)(O,{name:`arrow-right-s-line`,size:`sm`,"aria-hidden":`true`})]})})}$A.displayName=`DatabaseUsersPickerDialog`;function ej(e){let t=Cr(e);return t?{keyPrefix:`shell.domainPicker.builder-edit`,rowIcon:`edit-line`,params:{builder:Ht(t).strings.badgeLabel}}:e===`redirects`?{keyPrefix:`shell.domainPicker.redirects`,rowIcon:`links-line`,params:{}}:{keyPrefix:`shell.domainPicker.dns`,rowIcon:`global-line`,params:{}}}function tj(e,t){return e.domain.toLowerCase().includes(t)}function nj({intent:e,options:t,loading:n=!1,error:r=!1,onClose:i,onSelect:a}){let{t:o}=wn();if(!e)return null;let s=ej(e);return(0,Z.jsx)(KA,{open:!0,title:o(`${s.keyPrefix}.title`,s.params),description:o(`${s.keyPrefix}.description`,s.params),searchAriaLabel:o(`shell.domainPicker.searchAriaLabel`),searchPlaceholder:o(`shell.domainPicker.searchPlaceholder`),items:t,loading:n,loadingLabel:o(`shell.domainPicker.loadingLabel`),error:r,errorTitle:o(`shell.domainPicker.errorTitle`),errorDescription:o(`shell.domainPicker.errorDescription`),matchesQuery:tj,getKey:e=>e.domain,rowAriaLabel:e=>o(`${s.keyPrefix}.rowAction`,{domain:e.domain,...s.params}),rowTestId:e=>`domain-picker-row-${e.domain}`,emptyIcon:`global-line`,emptyTitle:o(`shell.domainPicker.emptyTitle`),noItemsDescription:o(`shell.domainPicker.noItemsDescription`),noMatchDescription:o(`shell.domainPicker.noMatchDescription`),onClose:i,onSelect:a,testIdPrefix:`domain-picker`,renderRow:e=>(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(O,{name:s.rowIcon,size:`sm`,"aria-hidden":`true`}),(0,Z.jsx)(M,{flex:`1`,minWidth:`0`,children:(0,Z.jsx)(N,{size:`md`,weight:`medium`,as:`span`,truncate:!0,children:e.domain})}),(0,Z.jsx)(O,{name:`arrow-right-s-line`,size:`sm`,"aria-hidden":`true`})]})})}nj.displayName=`DomainPickerDialog`;var rj=`browse-query-database`;function ij(e){return`#/databases?db=${encodeURIComponent(e.name)}&engine=${e.engine}&tab=advanced`}var aj=`database-users`;function oj(e){return`#/databases?db=${encodeURIComponent(e.name)}&engine=${e.engine}&tab=users`}var sj={"dns-zone-editor":`dns`,redirects:`redirects`,...Object.fromEntries(fn.filter(e=>e.domainPickerEdit===!0).map(e=>[`edit-site-${e.id}`,Mr(e.id)]))};function cj(e){return e===`dns`?{tab:`dns`}:e===`redirects`?{tab:`settings`,section:`redirects`}:{tab:`overview`}}function lj(e,t){let{tab:n,section:r}=cj(t),i=`#/websites?domain=${encodeURIComponent(e)}&tab=${n}`;return r?`${i}§ion=${r}`:i}function uj(e,t){if(t===`redirects`)return e.filter(e=>e.type!==`parked`&&e.type!==`alias`);let n=Cr(t);return n?e.filter(e=>e.siteBuilders?.includes(n)===!0):e}var dj={"check-webmail":`webmail`,"email-forwarders":`forwarders`,autoresponders:`autoresponder`,"email-filters":`filters`,"connect-email-to-device":`connect`},fj={webmail:`overview`,forwarders:`forwarders`,autoresponder:`autoresponder`,filters:`filters`,connect:`connect`},pj={webmail:!1,forwarders:!0,autoresponder:!0,filters:!0,connect:!1},mj=new Set([`webmail`,`connect`,`filters`]);function hj(e,t){return e.filter(e=>!e.isMain||mj.has(t))}function gj(e,t){let n=`#/email?account=${encodeURIComponent(e)}&tab=${fj[t]}`;return pj[t]?`${n}&create=1`:n}var _j={webmail:{keyPrefix:`shell.mailboxPicker.webmail`,rowIcon:`mail-open-line`},forwarders:{keyPrefix:`shell.mailboxPicker.forwarders`,rowIcon:`share-forward-line`},autoresponder:{keyPrefix:`shell.mailboxPicker.autoresponder`,rowIcon:`reply-all-line`},filters:{keyPrefix:`shell.mailboxPicker.filters`,rowIcon:`filter-3-line`},connect:{keyPrefix:`shell.mailboxPicker.connect`,rowIcon:`smartphone-line`}};function vj(e,t){return e.email.toLowerCase().includes(t)}function yj({intent:e,options:t,loading:n=!1,error:r=!1,onClose:i,onSelect:a,onCreateAccount:o}){let{t:s}=wn();if(!e)return null;let c=_j[e],l=hj(t,e);return(0,Z.jsx)(KA,{open:!0,title:s(`${c.keyPrefix}.title`),description:s(`${c.keyPrefix}.description`),searchAriaLabel:s(`shell.mailboxPicker.searchAriaLabel`),searchPlaceholder:s(`shell.mailboxPicker.searchPlaceholder`),items:l,loading:n,loadingLabel:s(`shell.mailboxPicker.loadingLabel`),error:r,errorTitle:s(`shell.mailboxPicker.errorTitle`),errorDescription:s(`shell.mailboxPicker.errorDescription`),matchesQuery:vj,getKey:e=>e.email,rowAriaLabel:e=>s(`${c.keyPrefix}.rowAction`,{email:e.email}),rowTestId:e=>`mailbox-picker-row-${e.email}`,emptyIcon:`mail-line`,emptyTitle:s(`shell.mailboxPicker.emptyTitle`),noItemsDescription:s(`shell.mailboxPicker.noItemsDescription`),noItemsAction:o&&(0,Z.jsx)(A,{onClick:o,"data-testid":`mailbox-picker-create-account`,children:s(`shell.mailboxPicker.createAccountCta`)}),noMatchDescription:s(`shell.mailboxPicker.noMatchDescription`),onClose:i,onSelect:a,testIdPrefix:`mailbox-picker`,renderRow:t=>(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(O,{name:c.rowIcon,size:`sm`,"aria-hidden":`true`}),(0,Z.jsx)(M,{flex:`1`,minWidth:`0`,children:(0,Z.jsx)(N,{size:`md`,weight:`medium`,as:`span`,truncate:!0,children:t.email})}),t.isMain&&(0,Z.jsx)(br,{intent:`neutral`,size:`sm`,variant:`outline`,children:s(`shell.mailboxPicker.systemBadge`)}),e===`webmail`&&t.suspended&&(0,Z.jsx)(br,{intent:`warning`,children:s(`shell.mailboxPicker.suspended`)}),(0,Z.jsx)(O,{name:`arrow-right-s-line`,size:`sm`,"aria-hidden":`true`})]})})}yj.displayName=`MailboxPickerDialog`;var bj={[aj]:`users`,[rj]:`admin`};function xj(e){return e.split(`:`)[0].split(`?`)[0]}function Sj(e){if(!e)return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e instanceof HTMLElement&&e.isContentEditable}function Cj(e){return e.key!==`/`||e.metaKey||e.ctrlKey||e.altKey?!1:!Sj(document.activeElement)}var wj=`data-scroll-locked`;function Tj(){let e=document.body.getAttribute(wj);if(e===null)return 0;let t=Number.parseInt(e,10);return Number.isInteger(t)&&t>0?t:1}var Ej=`[role="dialog"],[role="alertdialog"]`;function Dj(){let e=document.querySelectorAll(Ej);return Array.from(e).filter(e=>!e.closest(er)&&e.getAttribute(`data-state`)!==`closed`)}function Oj(){let e=Dj();if(e.length===0)return!1;if(e.some(e=>e.getAttribute(`aria-modal`)===`true`))return!0;let t=+!!document.querySelector(er);return Tj()>t}function kj({onNavigate:e}={}){let[t,n]=(0,X.useState)(!1),[r,i]=(0,X.useState)(``),a=Yk(),{results:o}=Qk(r),s=vr(e=>e.recents),c=vr(e=>e.pushRecent),l=vr(e=>e.clearRecents),u=Ar(e=>e.resolvedTheme),{track:d}=PE(),{t:f}=wn(),p=(0,X.useRef)(t);p.current=t;let m=(0,X.useRef)(null),h=(0,X.useRef)(!1),g=(0,X.useCallback)(e=>{p.current||(d(LE.COMMAND_PALETTE_OPENED,{trigger:e}),wt(Ut,`command palette open`),m.current=null,h.current=!1,n(!0))},[d]),_=(0,X.useCallback)(e=>{p.current&&(e===`dismiss`&&(d(LE.COMMAND_PALETTE_DISMISSED),m.current=null),h.current=!0,n(!1),i(``))},[d]),v=(0,X.useCallback)(e=>{if(p.current){if(m.current)return;m.current=e,_(`select`);return}h.current||e()},[_]),y=(0,X.useCallback)(()=>{h.current=!1;let e=m.current;m.current=null,e?.()},[]),b=(0,X.useCallback)(e=>{p.current?_(`dismiss`):g(e)},[g,_]),x=mr(e=>e.active),S=mr(e=>e.status),C=mr(e=>e.options),w=Lr(e=>e.active),ee=Lr(e=>e.status),T=Lr(e=>e.options),te=ur(e=>e.active),E=ur(e=>e.status),ne=ur(e=>e.options),re=(0,X.useMemo)(()=>te?uj(ne,te):ne,[ne,te]);(0,X.useEffect)(()=>{let e=e=>{let t=(e.metaKey||e.ctrlKey)&&e.key===`k`;if(!(!t&&!Cj(e))){if(!p.current&&Oj()){t&&e.preventDefault();return}e.preventDefault(),b(`keyboard`)}};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[b]),(0,X.useEffect)(()=>{let e=()=>{!p.current&&Oj()||b(`click`)};return window.addEventListener(`meridian:command-palette-toggle`,e),()=>window.removeEventListener(`meridian:command-palette-toggle`,e)},[b]);let D=(t,n=!1)=>{if(!n&&t.startsWith(`#/`)&&e){e(t.slice(1));return}window.location.assign(t)},ie=e=>{mr.getState().deactivate(),D(oj(e))},ae=e=>{mr.getState().deactivate(),D(ij(e))},oe=e=>{let t=Lr.getState().active;t&&(Lr.getState().deactivate(),D(gj(e.email,t)))},se=()=>{Lr.getState().deactivate(),D(`#/email?create=1`)},ce=e=>{let t=ur.getState().active;t&&(ur.getState().deactivate(),D(lj(e.domain,t)))},le=e=>{let t=bj[e.id],n=dj[e.id],r=sj[e.id],i=t===void 0?n===void 0?r===void 0?null:()=>{let e=ur.getState();e.activate(r),e.ensureLoaded()}:()=>{let e=Lr.getState();e.activate(n),e.ensureLoaded()}:()=>{let e=mr.getState();e.activate(t),e.ensureLoaded()};return i?(c({id:e.id,label:e.label,href:e.href??`#`}),v(i),!0):!1},ue=e=>{let t=e.kind===`recent`?a.allCommands().find(t=>t.id===e.id)??e:e;if(d(LE.COMMAND_PALETTE_ACTION_EXECUTED,{actionName:xj(t.id),actionCategory:t.kind}),le(t))return;if(c({id:t.id,label:t.label,href:t.href??`#`}),mr.getState().deactivate(),Lr.getState().deactivate(),ur.getState().deactivate(),t.id===`shell.toggle-theme`){let e=u===`dark`?`light`:`dark`;d(LE.THEME_TOGGLED,{toTheme:e}),Ar.getState().setTheme(e),_(`select`);return}let{run:n,href:r}=t;if(n){v(()=>{Promise.resolve().then(()=>n({now:()=>Date.now()})).catch(e=>{console.error(`[command-palette] action "${t.id}" failed`,e),j({title:f(`shell.commandPalette.actionFailedTitle`),intent:`error`})})});return}r&&v(()=>D(r,t.kind===`external`))};(0,X.useEffect)(()=>{if(!(x&&S===`loaded`&&C.length===1))return;let[e]=C,t=x===`admin`?ij(e):oj(e);mr.getState().deactivate(),v(()=>D(t))},[x,S,C]),(0,X.useEffect)(()=>{if(!(w&&ee===`loaded`))return;let e=hj(T,w);if(e.length!==1)return;let[t]=e;Lr.getState().deactivate(),v(()=>D(gj(t.email,w)))},[w,ee,T]),(0,X.useEffect)(()=>{if(!(te&&E===`loaded`&&re.length===1))return;let[e]=re;ur.getState().deactivate(),v(()=>D(lj(e.domain,te)))},[te,E,re]);let de=Zk(),fe=(0,X.useMemo)(()=>de.filter(e=>e.kind!==`recent`),[de]),pe=(0,X.useMemo)(()=>new Map(fe.map(e=>[e.id,e])),[fe]),me=(0,X.useMemo)(()=>fe.map(e=>({command:e,score:0})),[fe]),he=s.map(e=>({recent:e,live:pe.get(e.id)})).filter(e=>!!e.live).map(({recent:e,live:t})=>({command:{id:e.id,kind:`recent`,hub:`shell`,label:t.label,href:e.href},score:0})),ge=(0,X.useMemo)(()=>({dialogAria:f(`shell.commandPalette.dialogAria`),dialogDescription:f(`shell.commandPalette.dialogDescription`),searchPlaceholder:f(`shell.commandPalette.searchPlaceholder`),searchAria:f(`shell.commandPalette.searchAria`),editorialEmptyTitle:f(`shell.commandPalette.editorialEmptyTitle`),editorialEmptyHint:f(`shell.commandPalette.editorialEmptyHint`),noResultsPrefix:f(`shell.commandPalette.noResultsPrefix`),clearRecentsAria:f(`shell.commandPalette.clearRecentsAria`),loadingAria:f(`shell.commandPalette.loadingAria`),closeBackdrop:f(`shell.commandPalette.closeBackdrop`)}),[f]);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Wn,{open:t,onClose:()=>{mr.getState().deactivate(),Lr.getState().deactivate(),ur.getState().deactivate(),_(`dismiss`)},query:r,onQueryChange:i,results:o,onSelect:ue,empty:{recents:he,all:me},onClearRecents:l,labels:ge,onExitComplete:y}),(0,Z.jsx)($A,{open:x===`users`,options:C,loading:S===`loading`,error:S===`error`,onClose:()=>mr.getState().deactivate(),onSelect:ie}),(0,Z.jsx)(XA,{open:x===`admin`,options:C,loading:S===`loading`,error:S===`error`,onClose:()=>mr.getState().deactivate(),onSelect:ae}),(0,Z.jsx)(yj,{intent:w,options:T,loading:ee===`loading`,error:ee===`error`,onClose:()=>Lr.getState().deactivate(),onSelect:oe,onCreateAccount:se}),(0,Z.jsx)(nj,{intent:te,options:re,loading:E===`loading`,error:E===`error`,onClose:()=>ur.getState().deactivate(),onSelect:ce})]})}var Aj=`meridian:open-ai-assistant`;Kr(Pt,Ce),ei(async e=>{let t=UA(ht());if(t.length===0)return[];let n=await Promise.allSettled(t.map(t=>Fe.listDatabases(t,e)));if(n.every(e=>e.status===`rejected`))throw AggregateError(n.map(e=>e.reason),`All database engine listings failed`);let r=e=>({name:e.name,engine:e.engine,userCount:e.users.length});return n.flatMap(e=>e.status===`fulfilled`?e.value.map(r):[])}),yr(async e=>(await d.listPops(e)).map(e=>({email:e.email,domain:e.domain,suspended:e.suspended,isMain:e.isMain})));var jj=fn.filter(e=>e.domainPickerEdit===!0);async function Mj(e){let t=ht(),n=$t(),r=ft(),i=new Map;return await Promise.all(jj.filter(e=>Qt(e,t,n,r)).map(async t=>{try{let n=await(await KO[t.id].load()).fetchDomainRecords(e);for(let e of n){if(!(e.isLive||t.classifiesOnDraft===!0&&e.hasDraft))continue;let n=i.get(e.domain)??[];n.push(t.id),i.set(e.domain,n)}}catch{}})),i}xr(async e=>{let[t,n]=await Promise.all([Cn.domainsData(e),Mj(e)]);return t.map(e=>({domain:e.domain,type:e.type,siteBuilders:n.get(e.domain)}))}),c(e=>{e===`databases`?mr.getState().invalidate():e===`emailAccounts`?Lr.getState().invalidate():e===`domains`&&ur.getState().invalidate()}),zA();var Nj=Jw().map(e=>e.hubId),Pj=Kk({sources:[aA([{id:`shell.toggle-theme`,kind:`action`,hub:`shell`,labelKey:`shell.commands.toggleTheme.label`,subKey:`shell.commands.toggleTheme.sub`,icon:`contrast-2-line`},{id:`shell.sign-out`,kind:`action`,hub:`shell`,labelKey:`shell.commands.signOut.label`,href:`/${$e()}/logout/?locale=en`,icon:`logout-box-r-line`},...Nj.includes(`ai-assistant`)?[{id:`shell.open-ai-assistant`,kind:`action`,hub:`shell`,labelKey:`shell.commands.aiAssistant.label`,subKey:`shell.commands.aiAssistant.sub`,icon:`robot-2-line`,run:()=>{window.dispatchEvent(new CustomEvent(Aj))}}]:[]]),nA(()=>Uw,()=>{let e=ht(),t=$t(),n=ft(),r=Object.fromEntries(fn.filter(e=>(e.gate.capabilities?.length??0)+(e.gate.roles?.length??0)+(e.gate.services?.length??0)+(e.gate.extensions?.length??0)>0).map(r=>[r.id,Qt(r,e,t,n)])),i={ftp:t.services?.ftp===!0,twoFactorAuthPolicy:t.twoFactorAuthPolicy!==!1,analyticsConsentRequired:Ze(),meridianTranslationsAvailable:On()};return{availableHubs:Jw().map(e=>e.hubId),features:e,services:{...i,...r}}})]});function Fj(){return(0,Z.jsx)(M,{padding:`xl`,children:(0,Z.jsxs)(k,{gap:`md`,children:[(0,Z.jsx)(Ln,{width:`33%`,height:32}),(0,Z.jsx)(Ln,{width:`66%`,height:16}),(0,Z.jsx)(Ln,{width:`50%`,height:16})]})})}function Ij(e){let t=e.split(/[/?#]/)[0]?.toLowerCase()??``;return t===`index.html`?``:t}function Lj(e,t){return Ij(e.replace(/^\/+/,``))||Ij((t??(typeof window>`u`?``:window.location.hash)).replace(/^#\/?/,``))||`dashboard`}function Rj(e,t,n){return e&&t&&n}function zj(e,t,n){return e&&t&&!n}function Bj(){let e=HC(),t=jw(),{track:n}=PE(),{t:r}=wn(),i=`#${t.pathname}`,a=Lj(t.pathname),o=(0,X.useRef)(null);(0,X.useEffect)(()=>{let e=o.current;e!==a&&(o.current=a,n(LE.PAGE_VIEWED,{hub:a,fromHub:e}))},[a,n]),(0,X.useEffect)(()=>{let e=r(`nav.${a}`,{defaultValue:``});document.title=e?r(`shell.documentTitle.section`,{section:e}):r(`shell.documentTitle.default`)},[a,r]);let s=Nj.includes(`ai-assistant`),c=gA({enabled:s,currentHub:a}),l=Nw(s),u=Pw(s),d=Rj(s,c.open,u),[f,p]=(0,X.useState)(void 0),[m,h]=(0,X.useState)(!1),[g,_]=(0,X.useState)(!0);(0,X.useEffect)(()=>{let e=window.setTimeout(()=>_(!1),500);return()=>window.clearTimeout(e)},[]);let[v,y]=(0,X.useState)(!1);(0,X.useEffect)(()=>{c.open&&y(!0)},[c.open]),(0,X.useEffect)(()=>{let e=e=>{!s||!u||(p(e.detail?.query),c.openPane())};return window.addEventListener(Aj,e),()=>window.removeEventListener(Aj,e)},[s,u,c.openPane]);let b=(0,X.useCallback)(t=>{KD(e,t)},[e]);return(0,Z.jsxs)(Jk,{registry:Pj,children:[(0,Z.jsx)(kj,{onNavigate:b}),(0,Z.jsx)(XD,{onNavigate:b,children:(0,Z.jsxs)(sA,{appName:`meridian-shell`,availableHubSlugs:Nj,onNavigate:b,activePath:i,aiPaneOpen:d,aiPaneWidth:c.width,aiPaneResizing:m,aiPaneNoTransition:g,aiPane:s&&u?(0,Z.jsx)(HA,{open:d,onClose:c.closePane,currentHub:a,availableHubSlugs:Nj,initialQuery:f,width:c.width,onWidthChange:c.setWidth,onResizingChange:h}):void 0,children:[(0,Z.jsx)(X.Suspense,{fallback:(0,Z.jsx)(Fj,{}),children:(0,Z.jsx)(xw,{})}),zj(s,u,c.open)&&(0,WC.createPortal)((0,Z.jsx)(Pr,{onOpen:c.openPane,onDismissNudge:c.dismissNudge,showNudge:c.showNudge,autoFocus:v,available:l,labels:{ask:r(`shell.aiAssistant.launcher.ask`),dismiss:r(`shell.aiAssistant.launcher.dismiss`),nudgeTitle:r(`shell.aiAssistant.launcher.nudgeTitle`),nudgeOnline:r(`shell.aiAssistant.launcher.nudgeOnline`),nudgeBody:r(`shell.aiAssistant.launcher.nudgeBody`),nudgeAsk:r(`shell.aiAssistant.launcher.nudgeAsk`),openAriaLabel:r(`shell.aiAssistant.launcher.openAriaLabel`),nudgeAriaLabel:r(`shell.aiAssistant.launcher.nudgeAriaLabel`)}}),document.body)]})})]})}function Vj(){return(0,X.useEffect)(()=>{XE()},[]),null}function Hj(e){return typeof e==`object`&&!!e&&`mount`in e&&typeof e.mount==`function`&&`unmount`in e&&typeof e.unmount==`function`}function Uj(e){return function({context:t}){let n=(0,X.useRef)(null),r=(0,X.useRef)(!1),i=(0,X.useRef)(t);return i.current=t,(0,X.useEffect)(()=>{let t=n.current;if(!(!t||r.current))return r.current=!0,e.mount(t,i.current),()=>{t&&r.current&&(e.unmount(t),r.current=!1)}},[]),(0,X.useEffect)(()=>{r.current&&e.update({securityToken:t.securityToken,features:t.features})},[t.securityToken,t.features]),(0,Z.jsx)(M,{ref:n,width:`full`,height:`full`})}}function Wj(e){let t=async()=>{let t=Dt[e.slug]??e.slug;bn().then(()=>E.loadNamespaces(t)).catch(()=>{});let n=await uO(e.slug),r=Object.entries(n).find(([e,t])=>e!=="default"&&typeof t==`function`&&e.endsWith(`Hub`))??Object.entries(n).find(([e,t])=>e!=="default"&&typeof t==`function`);if(r){let e=n.default;if(Hj(e)){let t=e.metadata.i18nNamespace;typeof t==`string`&&await bn().then(()=>E.loadNamespaces(t))}return{default:r[1]}}if(typeof n.default==`function`)return{default:n.default};if(Hj(n.default))return{default:Uj(n.default)};throw Error(`No hub component found in module for "${e.slug}"`)},n=(0,X.lazy)(t);return function(){let r=JD(),[,i]=(0,X.useState)(0),a=()=>{n=(0,X.lazy)(t),i(e=>e+1)},o=CT.includes(e.slug)?null:(0,Z.jsx)(nr,{hasSubtitle:!0,hasActions:!0,hasWidgets:!0});return(0,Z.jsx)(WD,{hubId:e.slug,onRetry:a,children:(0,Z.jsxs)(X.Suspense,{fallback:o,children:[(0,Z.jsx)(n,{context:r}),(0,Z.jsx)(Vj,{})]})})}}function Gj(){return(0,Z.jsx)(xw,{})}var Kj=dw({component:Gj}),qj=lw({getParentRoute:()=>Kj,id:`shell`,component:Bj,beforeLoad:()=>{if(kT())throw Px({to:DT});if(wT())throw Px({to:`/onboarding`})}}),Jj=(0,X.lazy)(()=>bT(()=>import(`./ForcedPasswordResetPage.js`).then(e=>({default:e.ForcedPasswordResetPage})),__vite__mapDeps([9,1,2,3]),import.meta.url)),Yj=lw({getParentRoute:()=>Kj,path:OT,component:()=>(0,Z.jsx)(X.Suspense,{fallback:null,children:(0,Z.jsx)(Jj,{})})}),Xj=[],Zj=[],Qj=new Set(CT);for(let e of Uw){let t=e.slug,n=e.nav;if(Qj.has(t)){let n=Wj(e);Zj.push(lw({getParentRoute:()=>Kj,path:t,component:()=>(0,Z.jsx)(XD,{children:(0,Z.jsx)(n,{})})}));continue}if(!n?.path)continue;let r=n.path.replace(/^\//,``);if(t===`dashboard`){let t=Wj(e);Xj.push(lw({getParentRoute:()=>qj,path:`/`,component:t})),Xj.push(lw({getParentRoute:()=>qj,path:`dashboard`,component:t}));continue}let i=Wj(e);Xj.push(lw({getParentRoute:()=>qj,path:`${r}/$`,component:i}))}var $j=Kj.addChildren([...Zj,Yj,qj.addChildren(Xj)]),eM=!1,tM=qx(),nM=kT();if(nM)tM.replace(DT);else if(wT()&&!TT()){let e=ET(),t=e?`/onboarding?returnTo=${encodeURIComponent(e)}`:`/onboarding`;tM.replace(t)}else if(!nM&&!TT()){let e=PT();e&&(tM.replace(e),eM=!0)}var rM=Dw({routeTree:$j,history:tM,defaultPreload:`intent`,scrollRestoration:()=>!1});function iM(){return(0,X.useEffect)(()=>m.on(v.domainChanged,uD),[]),MT({enabled:!nM}),(0,X.useEffect)(()=>{HT({alreadyRestored:eM,navigate:e=>tM.replace(e)})},[]),(0,Z.jsxs)(zt,{client:Et,children:[(0,Z.jsxs)(hT,{children:[(0,Z.jsx)(Aw,{router:rM}),(0,Z.jsx)(ST,{})]}),(0,Z.jsx)(Jn,{}),(0,Z.jsx)(RD,{}),(0,Z.jsx)(TD,{})]})}var aM=`assets/index.css`,oM=`assets/index.rtl.css`;function sM(e,t){let n=t===`rtl`?oM:aM,r=t===`rtl`?aM:oM;return e.includes(n)||!e.includes(r)?null:e.replace(r,n)}function cM(e,t=document){let n=Array.from(t.querySelectorAll(`link[rel="stylesheet"]`));for(let r of n){let n=r.getAttribute(`href`),i=n&&sM(n,e);if(!i)continue;let a=t.createElement(`link`);return a.rel=`stylesheet`,a.setAttribute(`href`,i),a.addEventListener(`load`,()=>r.remove(),{once:!0}),a.addEventListener(`error`,()=>a.remove(),{once:!0}),r.after(a),!0}return!1}function lM(){return jn(e=>{cM(e)})}var uM=4e3,dM=new Set,fM=!1;function pM(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e(),{timeout:uM}):setTimeout(e,uM)}function mM(e){let t=document.createElement(`link`);t.rel=`modulepreload`,t.setAttribute(`fetchpriority`,`low`),t.href=e,document.head.appendChild(t)}function hM(e){if(dM.has(e.hubId))return;dM.add(e.hubId);let t=Gw(e.hubId),n=t?.entryMtime,r=n?`/cPanel_magic_revision_${n}`:``,i=`${nO()}${r}`;mM(`${i}${e.entry}`);let a=e.entry.replace(/[^/]+$/,``);for(let e of t?.preloadAssets??[])mM(`${i}${a}${e}`);let o=Dt[e.hubId]??e.hubId;bn().then(()=>E.loadNamespaces(o)).catch(()=>{})}function gM(e){let t=e.shift();t&&(hM(t),e.length>0&&pM(()=>gM(e)))}function _M(){if(typeof window>`u`||typeof document>`u`||fM)return;fM=!0;let e=()=>void ZE().then(()=>pM(()=>{bn().then(()=>wt(Ut,`idle command-palette warm-up`)).catch(e=>{console.error(`[prefetch] i18n init failed; skipping command-palette warm-up`,e)}),gM(Jw().filter(e=>e.loadPriority===`idle`&&e.entry.startsWith(`/frontend/meridian/`)))})).catch(e=>{console.error(`[prefetch] network-quiet gate failed; idle prefetch skipped`,e)});document.readyState===`complete`?e():window.addEventListener(`load`,e,{once:!0})}var vM=8e3;function yM(){let e=!1,t=null,n=Xe(()=>{e||(e=!0,cr(!0),Et.cancelQueries(),CD.markExpired(),t=setTimeout(yD,vM))});return()=>{e=!1,t&&clearTimeout(t),cr(!1),CD.reset(),n()}}function bM(){return te(e=>{xM(e)&&setTimeout(()=>{j({title:E.t(`shell.uapiWarnings.title`),description:e.scrubbed.join(` `),intent:`warning`})},0)})}function xM(e){return e.kind===`mutation`&&e.presentation==="default"}if(typeof window<`u`){nt(Qv),yM(),bM(),jD(),window.thisTheme||(window.thisTheme=`meridian`),window.PAGE?.shell,window.PAGE?.shell&&!window.PAGE.shell.theme&&(window.PAGE.shell.theme=`meridian`);let e=hn(),t=e===`dark`?`dark`:e===`light`?`light`:gr()?`dark`:`light`;document.documentElement.dataset.theme=t,document.documentElement.classList.remove(`dark`)}lM(),typeof window<`u`&&window.addEventListener(tb,e=>{let t=e.detail;if(!t?.domain||!t.path)return;let n=new URLSearchParams;n.set(`domain`,t.domain),n.set(`wizard`,t.path),t.csrId&&n.set(`csrId`,t.csrId),window.location.hash=`#/security?${n.toString()}`}),Ge();var SM=document.getElementById(`root`);if(!SM)throw Error(`Root element #root not found`);nb.createRoot(SM).render((0,Z.jsx)(X.StrictMode,{children:(0,Z.jsx)(iM,{})})),kT()||_M();export{Ek as a,AT as c,Dk as i,bT as l,Vk as n,NO as o,Fk as r,vO as s,Bk as t};
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c1e73115-b869-4285-826d-619a21159171",e._sentryDebugIdIdentifier="sentry-dbid-c1e73115-b869-4285-826d-619a21159171")}catch(e){}}();
//# debugId=c1e73115-b869-4285-826d-619a21159171
Back to Directory