const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-B06Dl9Fo.js","assets/ConfirmDialog-qgn6Iec_.js","assets/ErrorModal-DN9nzxbR.js","assets/StatusBadge-BeQnJOkN.js","assets/ActionMenu-8YQ2WUlm.js","assets/RefreshButton-AH988Mgd.js","assets/CopyButton-CwvIhVJc.js","assets/JsonViewer-ZiJrmL2N.js","assets/Fleets-Dkg15nwj.js","assets/Pagination-CllwASFw.js","assets/duplicates-DJVvItkr.js","assets/Vessels-BKHk23w7.js","assets/Captains-CPBZGqd-.js","assets/CaptainToolViewer-BOztiqSg.js","assets/captains-CkuCBD-q.js","assets/Missions-D9VHS-cD.js","assets/LogViewer-D1RaKdGq.js","assets/Voyages-B2iJkppj.js","assets/Events-CpJ98WFI.js","assets/MergeQueue-iNX3xjwu.js","assets/Docks-QsArYPO6.js","assets/Doctor-zH2-rPLv.js","assets/Tenants-DoHm3t_2.js","assets/useProxySessionContext-DItm_pYd.js","assets/Users-C6pjubR9.js","assets/Credentials--F90SPi1.js","assets/Dispatch-Dd-Xhbaw.js","assets/PlaybookSelector-CsxZ1QXj.js","assets/ReadinessPanel-s2U4zk7t.js","assets/Planning-CofGI07_.js","assets/Objectives-DwkzTZzX.js","assets/backlogUtils-QDjNXryu.js","assets/ObjectiveDetail-siBDpc33.js","assets/Signals-Db_tcnpD.js","assets/Server-CK7q01_a.js","assets/FleetDetail-Bw0sZWi1.js","assets/VesselDetail-CP_-eRLA.js","assets/VesselOnboarding-eZtKz9yI.js","assets/CaptainDetail--gbU345v.js","assets/MissionDetail-Dtc7i1jH.js","assets/VoyageDetail-CfgXpLcJ.js","assets/VoyageCreate-Dprbfk3f.js","assets/SignalDetail--vIXsURt.js","assets/EventDetail-llo8nBZO.js","assets/DockDetail-Cvje2baO.js","assets/MergeQueueDetail-D_NZOB-J.js","assets/Personas-DTm7i3Mx.js","assets/PersonaDetail-BaNoGDkA.js","assets/Pipelines-BSuudGIz.js","assets/PipelineDetail-Br5YJT0p.js","assets/PromptTemplates-D8N8KlTl.js","assets/PromptTemplateDetail-CocoTw8F.js","assets/Playbooks-BOAR1CNi.js","assets/PlaybookDetail-DRSckTVh.js","assets/WorkflowProfiles-Bg7CNM1f.js","assets/WorkflowProfileDetail-Bdy5fj4w.js","assets/WorkflowCommandPreview-CYVJpAHP.js","assets/CheckRuns-D8WEAXsI.js","assets/checkRunComparison-CTTr62AI.js","assets/CheckRunDetail-DIhvljqF.js","assets/Environments-DCdRZ4FS.js","assets/EnvironmentDetail-DjjFW9T2.js","assets/Deployments-CamaQUQa.js","assets/DeploymentDetail-ChjXHTni.js","assets/Releases-LxfvRJgk.js","assets/ReleaseDetail-DzkpO70E.js","assets/Incidents-CA-Hv6Da.js","assets/IncidentDetail-BN7DNyeJ.js","assets/Runbooks-CV3FdQNC.js","assets/RunbookDetail-D59uJ7tK.js","assets/Workspace-Bvo-qn3X.js","assets/RequestHistory-DR1Tkuao.js","assets/History-CwxTRzSE.js"])))=>i.map(i=>d[i]);
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&u(v)}).observe(document,{childList:!0,subtree:!0});function f(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function u(d){if(d.ep)return;d.ep=!0;const m=f(d);fetch(d.href,m)}})();var Ac={exports:{}},_i={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wh;function wy(){if(Wh)return _i;Wh=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(u,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var x in d)x!=="key"&&(m[x]=d[x])}else m=d;return d=m.ref,{$$typeof:l,type:u,key:v,ref:d!==void 0?d:null,props:m}}return _i.Fragment=s,_i.jsx=f,_i.jsxs=f,_i}var Fh;function My(){return Fh||(Fh=1,Ac.exports=wy()),Ac.exports}var c=My(),wc={exports:{}},fe={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ph;function Ny(){if(Ph)return fe;Ph=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),D=Symbol.iterator;function Y(E){return E===null||typeof E!="object"?null:(E=D&&E[D]||E["@@iterator"],typeof E=="function"?E:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,B={};function q(E,C,V){this.props=E,this.context=C,this.refs=B,this.updater=V||U}q.prototype.isReactComponent={},q.prototype.setState=function(E,C){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,C,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function H(){}H.prototype=q.prototype;function X(E,C,V){this.props=E,this.context=C,this.refs=B,this.updater=V||U}var ee=X.prototype=new H;ee.constructor=X,Q(ee,q.prototype),ee.isPureReactComponent=!0;var ue=Array.isArray;function se(){}var te={H:null,A:null,T:null,S:null},Ee=Object.prototype.hasOwnProperty;function Ce(E,C,V){var G=V.ref;return{$$typeof:l,type:E,key:C,ref:G!==void 0?G:null,props:V}}function We(E,C){return Ce(E.type,C,E.props)}function Qe(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function Re(E){var C={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(V){return C[V]})}var Ve=/\/+/g;function $e(E,C){return typeof E=="object"&&E!==null&&E.key!=null?Re(""+E.key):C.toString(36)}function ne(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(se,se):(E.status="pending",E.then(function(C){E.status==="pending"&&(E.status="fulfilled",E.value=C)},function(C){E.status==="pending"&&(E.status="rejected",E.reason=C)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function T(E,C,V,G,oe){var re=typeof E;(re==="undefined"||re==="boolean")&&(E=null);var Se=!1;if(E===null)Se=!0;else switch(re){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(E.$$typeof){case l:case s:Se=!0;break;case R:return Se=E._init,T(Se(E._payload),C,V,G,oe)}}if(Se)return oe=oe(E),Se=G===""?"."+$e(E,0):G,ue(oe)?(V="",Se!=null&&(V=Se.replace(Ve,"$&/")+"/"),T(oe,C,V,"",function(Mn){return Mn})):oe!=null&&(Qe(oe)&&(oe=We(oe,V+(oe.key==null||E&&E.key===oe.key?"":(""+oe.key).replace(Ve,"$&/")+"/")+Se)),C.push(oe)),1;Se=0;var we=G===""?".":G+":";if(ue(E))for(var Be=0;Be<E.length;Be++)G=E[Be],re=we+$e(G,Be),Se+=T(G,C,V,re,oe);else if(Be=Y(E),typeof Be=="function")for(E=Be.call(E),Be=0;!(G=E.next()).done;)G=G.value,re=we+$e(G,Be++),Se+=T(G,C,V,re,oe);else if(re==="object"){if(typeof E.then=="function")return T(ne(E),C,V,G,oe);throw C=String(E),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return Se}function $(E,C,V){if(E==null)return E;var G=[],oe=0;return T(E,G,"","",function(re){return C.call(V,re,oe++)}),G}function K(E){if(E._status===-1){var C=E._result;C=C(),C.then(function(V){(E._status===0||E._status===-1)&&(E._status=1,E._result=V)},function(V){(E._status===0||E._status===-1)&&(E._status=2,E._result=V)}),E._status===-1&&(E._status=0,E._result=C)}if(E._status===1)return E._result.default;throw E._result}var ve=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},de={map:$,forEach:function(E,C,V){$(E,function(){C.apply(this,arguments)},V)},count:function(E){var C=0;return $(E,function(){C++}),C},toArray:function(E){return $(E,function(C){return C})||[]},only:function(E){if(!Qe(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return fe.Activity=S,fe.Children=de,fe.Component=q,fe.Fragment=f,fe.Profiler=d,fe.PureComponent=X,fe.StrictMode=u,fe.Suspense=g,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,fe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return te.H.useMemoCache(E)}},fe.cache=function(E){return function(){return E.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(E,C,V){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var G=Q({},E.props),oe=E.key;if(C!=null)for(re in C.key!==void 0&&(oe=""+C.key),C)!Ee.call(C,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&C.ref===void 0||(G[re]=C[re]);var re=arguments.length-2;if(re===1)G.children=V;else if(1<re){for(var Se=Array(re),we=0;we<re;we++)Se[we]=arguments[we+2];G.children=Se}return Ce(E.type,oe,G)},fe.createContext=function(E){return E={$$typeof:v,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:m,_context:E},E},fe.createElement=function(E,C,V){var G,oe={},re=null;if(C!=null)for(G in C.key!==void 0&&(re=""+C.key),C)Ee.call(C,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(oe[G]=C[G]);var Se=arguments.length-2;if(Se===1)oe.children=V;else if(1<Se){for(var we=Array(Se),Be=0;Be<Se;Be++)we[Be]=arguments[Be+2];oe.children=we}if(E&&E.defaultProps)for(G in Se=E.defaultProps,Se)oe[G]===void 0&&(oe[G]=Se[G]);return Ce(E,re,oe)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(E){return{$$typeof:x,render:E}},fe.isValidElement=Qe,fe.lazy=function(E){return{$$typeof:R,_payload:{_status:-1,_result:E},_init:K}},fe.memo=function(E,C){return{$$typeof:y,type:E,compare:C===void 0?null:C}},fe.startTransition=function(E){var C=te.T,V={};te.T=V;try{var G=E(),oe=te.S;oe!==null&&oe(V,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(se,ve)}catch(re){ve(re)}finally{C!==null&&V.types!==null&&(C.types=V.types),te.T=C}},fe.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},fe.use=function(E){return te.H.use(E)},fe.useActionState=function(E,C,V){return te.H.useActionState(E,C,V)},fe.useCallback=function(E,C){return te.H.useCallback(E,C)},fe.useContext=function(E){return te.H.useContext(E)},fe.useDebugValue=function(){},fe.useDeferredValue=function(E,C){return te.H.useDeferredValue(E,C)},fe.useEffect=function(E,C){return te.H.useEffect(E,C)},fe.useEffectEvent=function(E){return te.H.useEffectEvent(E)},fe.useId=function(){return te.H.useId()},fe.useImperativeHandle=function(E,C,V){return te.H.useImperativeHandle(E,C,V)},fe.useInsertionEffect=function(E,C){return te.H.useInsertionEffect(E,C)},fe.useLayoutEffect=function(E,C){return te.H.useLayoutEffect(E,C)},fe.useMemo=function(E,C){return te.H.useMemo(E,C)},fe.useOptimistic=function(E,C){return te.H.useOptimistic(E,C)},fe.useReducer=function(E,C,V){return te.H.useReducer(E,C,V)},fe.useRef=function(E){return te.H.useRef(E)},fe.useState=function(E){return te.H.useState(E)},fe.useSyncExternalStore=function(E,C,V){return te.H.useSyncExternalStore(E,C,V)},fe.useTransition=function(){return te.H.useTransition()},fe.version="19.2.4",fe}var em;function Jc(){return em||(em=1,wc.exports=Ny()),wc.exports}var p=Jc(),Mc={exports:{}},Ri={},Nc={exports:{}},Dc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tm;function Dy(){return tm||(tm=1,(function(l){function s(T,$){var K=T.length;T.push($);e:for(;0<K;){var ve=K-1>>>1,de=T[ve];if(0<d(de,$))T[ve]=$,T[K]=de,K=ve;else break e}}function f(T){return T.length===0?null:T[0]}function u(T){if(T.length===0)return null;var $=T[0],K=T.pop();if(K!==$){T[0]=K;e:for(var ve=0,de=T.length,E=de>>>1;ve<E;){var C=2*(ve+1)-1,V=T[C],G=C+1,oe=T[G];if(0>d(V,K))G<de&&0>d(oe,V)?(T[ve]=oe,T[G]=K,ve=G):(T[ve]=V,T[C]=K,ve=C);else if(G<de&&0>d(oe,K))T[ve]=oe,T[G]=K,ve=G;else break e}}return $}function d(T,$){var K=T.sortIndex-$.sortIndex;return K!==0?K:T.id-$.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var v=Date,x=v.now();l.unstable_now=function(){return v.now()-x}}var g=[],y=[],R=1,S=null,D=3,Y=!1,U=!1,Q=!1,B=!1,q=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ee(T){for(var $=f(y);$!==null;){if($.callback===null)u(y);else if($.startTime<=T)u(y),$.sortIndex=$.expirationTime,s(g,$);else break;$=f(y)}}function ue(T){if(Q=!1,ee(T),!U)if(f(g)!==null)U=!0,se||(se=!0,Re());else{var $=f(y);$!==null&&ne(ue,$.startTime-T)}}var se=!1,te=-1,Ee=5,Ce=-1;function We(){return B?!0:!(l.unstable_now()-Ce<Ee)}function Qe(){if(B=!1,se){var T=l.unstable_now();Ce=T;var $=!0;try{e:{U=!1,Q&&(Q=!1,H(te),te=-1),Y=!0;var K=D;try{t:{for(ee(T),S=f(g);S!==null&&!(S.expirationTime>T&&We());){var ve=S.callback;if(typeof ve=="function"){S.callback=null,D=S.priorityLevel;var de=ve(S.expirationTime<=T);if(T=l.unstable_now(),typeof de=="function"){S.callback=de,ee(T),$=!0;break t}S===f(g)&&u(g),ee(T)}else u(g);S=f(g)}if(S!==null)$=!0;else{var E=f(y);E!==null&&ne(ue,E.startTime-T),$=!1}}break e}finally{S=null,D=K,Y=!1}$=void 0}}finally{$?Re():se=!1}}}var Re;if(typeof X=="function")Re=function(){X(Qe)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,$e=Ve.port2;Ve.port1.onmessage=Qe,Re=function(){$e.postMessage(null)}}else Re=function(){q(Qe,0)};function ne(T,$){te=q(function(){T(l.unstable_now())},$)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(T){T.callback=null},l.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<T?Math.floor(1e3/T):5},l.unstable_getCurrentPriorityLevel=function(){return D},l.unstable_next=function(T){switch(D){case 1:case 2:case 3:var $=3;break;default:$=D}var K=D;D=$;try{return T()}finally{D=K}},l.unstable_requestPaint=function(){B=!0},l.unstable_runWithPriority=function(T,$){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var K=D;D=T;try{return $()}finally{D=K}},l.unstable_scheduleCallback=function(T,$,K){var ve=l.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ve+K:ve):K=ve,T){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=K+de,T={id:R++,callback:$,priorityLevel:T,startTime:K,expirationTime:de,sortIndex:-1},K>ve?(T.sortIndex=K,s(y,T),f(g)===null&&T===f(y)&&(Q?(H(te),te=-1):Q=!0,ne(ue,K-ve))):(T.sortIndex=de,s(g,T),U||Y||(U=!0,se||(se=!0,Re()))),T},l.unstable_shouldYield=We,l.unstable_wrapCallback=function(T){var $=D;return function(){var K=D;D=$;try{return T.apply(this,arguments)}finally{D=K}}}})(Dc)),Dc}var nm;function Oy(){return nm||(nm=1,Nc.exports=Dy()),Nc.exports}var Oc={exports:{}},gt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var am;function Uy(){if(am)return gt;am=1;var l=Jc();function s(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)y+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var u={d:{f,r:function(){throw Error(s(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(g,y,R){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:""+S,children:g,containerInfo:y,implementation:R}}var v=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,gt.createPortal=function(g,y){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(s(299));return m(g,y,null,R)},gt.flushSync=function(g){var y=v.T,R=u.p;try{if(v.T=null,u.p=2,g)return g()}finally{v.T=y,u.p=R,u.d.f()}},gt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(g,y))},gt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},gt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var R=y.as,S=x(R,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,Y=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;R==="style"?u.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:D,fetchPriority:Y}):R==="script"&&u.d.X(g,{crossOrigin:S,integrity:D,fetchPriority:Y,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},gt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var R=x(y.as,y.crossOrigin);u.d.M(g,{crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(g)},gt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var R=y.as,S=x(R,y.crossOrigin);u.d.L(g,R,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},gt.preloadModule=function(g,y){if(typeof g=="string")if(y){var R=x(y.as,y.crossOrigin);u.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(g)},gt.requestFormReset=function(g){u.d.r(g)},gt.unstable_batchedUpdates=function(g,y){return g(y)},gt.useFormState=function(g,y,R){return v.H.useFormState(g,y,R)},gt.useFormStatus=function(){return v.H.useHostTransitionStatus()},gt.version="19.2.4",gt}var lm;function ky(){if(lm)return Oc.exports;lm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Oc.exports=Uy(),Oc.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var im;function Ly(){if(im)return Ri;im=1;var l=Oy(),s=Jc(),f=ky();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(m(e)!==e)throw Error(u(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return g(i),e;if(o===a)return g(i),t;o=o.sibling}throw Error(u(188))}if(n.return!==a.return)n=i,a=o;else{for(var r=!1,h=i.child;h;){if(h===n){r=!0,n=i,a=o;break}if(h===a){r=!0,a=i,n=o;break}h=h.sibling}if(!r){for(h=o.child;h;){if(h===n){r=!0,n=o,a=i;break}if(h===a){r=!0,a=o,n=i;break}h=h.sibling}if(!r)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function R(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=R(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,D=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),Ce=Symbol.for("react.activity"),We=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function Re(e){return e===null||typeof e!="object"?null:(e=Qe&&e[Qe]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Symbol.for("react.client.reference");function $e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Q:return"Fragment";case q:return"Profiler";case B:return"StrictMode";case ue:return"Suspense";case se:return"SuspenseList";case Ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case X:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:$e(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return $e(e(t))}catch{}}return null}var ne=Array.isArray,T=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ve=[],de=-1;function E(e){return{current:e}}function C(e){0>de||(e.current=ve[de],ve[de]=null,de--)}function V(e,t){de++,ve[de]=e.current,e.current=t}var G=E(null),oe=E(null),re=E(null),Se=E(null);function we(e,t){switch(V(re,t),V(oe,e),V(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xh(t),e=Sh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(G),V(G,e)}function Be(){C(G),C(oe),C(re)}function Mn(e){e.memoizedState!==null&&V(Se,e);var t=G.current,n=Sh(t,e.type);t!==n&&(V(oe,e),V(G,n))}function oa(e){oe.current===e&&(C(G),C(oe)),Se.current===e&&(C(Se),ji._currentValue=K)}var Rt,Nl;function on(e){if(Rt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Rt=t&&t[1]||"",Nl=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Rt+e+Nl}var Na=!1;function Dl(e,t){if(!e||Na)return"";Na=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(M){var w=M}Reflect.construct(e,[],k)}else{try{k.call()}catch(M){w=M}e.call(k.prototype)}}else{try{throw Error()}catch(M){w=M}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(M){if(M&&w&&typeof M.stack=="string")return[M.stack,w.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),r=o[0],h=o[1];if(r&&h){var b=r.split(`
`),A=h.split(`
`);for(i=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;if(a===b.length||i===A.length)for(a=b.length-1,i=A.length-1;1<=a&&0<=i&&b[a]!==A[i];)i--;for(;1<=a&&0<=i;a--,i--)if(b[a]!==A[i]){if(a!==1||i!==1)do if(a--,i--,0>i||b[a]!==A[i]){var N=`
`+b[a].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=a&&0<=i);break}}}finally{Na=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?on(n):""}function ki(e,t){switch(e.tag){case 26:case 27:case 5:return on(e.type);case 16:return on("Lazy");case 13:return e.child!==t&&t!==null?on("Suspense Fallback"):on("Suspense");case 19:return on("SuspenseList");case 0:case 15:return Dl(e.type,!1);case 11:return Dl(e.type.render,!1);case 1:return Dl(e.type,!0);case 31:return on("Activity");default:return""}}function ca(e){try{var t="",n=null;do t+=ki(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Da=Object.prototype.hasOwnProperty,It=l.unstable_scheduleCallback,Ae=l.unstable_cancelCallback,Nn=l.unstable_shouldYield,Dn=l.unstable_requestPaint,ct=l.unstable_now,ra=l.unstable_getCurrentPriorityLevel,Oa=l.unstable_ImmediatePriority,Ua=l.unstable_UserBlockingPriority,On=l.unstable_NormalPriority,Ol=l.unstable_LowPriority,Un=l.unstable_IdlePriority,ms=l.log,Li=l.unstable_setDisableYieldValue,kn=null,rt=null;function ft(e){if(typeof ms=="function"&&Li(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(kn,e)}catch{}}var Xe=Math.clz32?Math.clz32:ys,ps=Math.log,vs=Math.LN2;function ys(e){return e>>>=0,e===0?32:31-(ps(e)/vs|0)|0}var ka=256,La=262144,Ba=4194304;function cn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ha(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,o=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~o,a!==0?i=cn(a):(r&=h,r!==0?i=cn(r):n||(n=h&~e,n!==0&&(i=cn(n))))):(h=a&~o,h!==0?i=cn(h):r!==0?i=cn(r):n||(n=a&~e,n!==0&&(i=cn(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function fa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bi(){var e=Ba;return Ba<<=1,(Ba&62914560)===0&&(Ba=4194304),e}function Ul(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function L(e,t,n,a,i,o){var r=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var h=e.entanglements,b=e.expirationTimes,A=e.hiddenUpdates;for(n=r&~n;0<n;){var N=31-Xe(n),k=1<<N;h[N]=0,b[N]=-1;var w=A[N];if(w!==null)for(A[N]=null,N=0;N<w.length;N++){var M=w[N];M!==null&&(M.lane&=-536870913)}n&=~k}a!==0&&ce(e,a,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(r&~t))}function ce(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Xe(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Xe(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function rn(e,t){var n=t&-t;return n=(n&42)!==0?1:zt(n),(n&(e.suspendedLanes|t))!==0?0:n}function zt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function kl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ln(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Gh(e.type))}function ir(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Bn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Bn,xt="__reactProps$"+Bn,qa="__reactContainer$"+Bn,bs="__reactEvents$"+Bn,bp="__reactListeners$"+Bn,xp="__reactHandles$"+Bn,ur="__reactResources$"+Bn,Ll="__reactMarker$"+Bn;function xs(e){delete e[dt],delete e[xt],delete e[bs],delete e[bp],delete e[xp]}function Va(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qa]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zh(e);e!==null;){if(n=e[dt])return n;e=zh(e)}return t}e=n,n=e.parentNode}return null}function $a(e){if(e=e[dt]||e[qa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ya(e){var t=e[ur];return t||(t=e[ur]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ll]=!0}var sr=new Set,or={};function ha(e,t){Ga(e,t),Ga(e+"Capture",t)}function Ga(e,t){for(or[e]=t,e=0;e<t.length;e++)sr.add(t[e])}var Sp=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),cr={},rr={};function jp(e){return Da.call(rr,e)?!0:Da.call(cr,e)?!1:Sp.test(e)?rr[e]=!0:(cr[e]=!0,!1)}function Hi(e,t,n){if(jp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function qi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ep(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(r){n=""+r,o.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(r){n=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ss(e){if(!e._valueTracker){var t=fr(e)?"checked":"value";e._valueTracker=Ep(e,t,""+e[t])}}function dr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=fr(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Cp=/[\n"\\]/g;function Ht(e){return e.replace(Cp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function js(e,t,n,a,i,o,r,h){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Es(e,r,Bt(t)):n!=null?Es(e,r,Bt(n)):a!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Bt(h):e.removeAttribute("name")}function hr(e,t,n,a,i,o,r,h){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ss(e);return}n=n!=null?""+Bt(n):"",t=t!=null?""+Bt(t):n,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Ss(e)}function Es(e,t,n){t==="number"&&Vi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Qa(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function mr(e,t,n){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bt(n):""}function pr(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(ne(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Bt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ss(e)}function Xa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vr(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Tp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yr(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&vr(e,i,a)}else for(var o in t)t.hasOwnProperty(o)&&vr(e,o,t[o])}function Cs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _p=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $i(e){return Rp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dn(){}var Ts=null;function _s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Ka=null;function gr(e){var t=$a(e);if(t&&(e=t.stateNode)){var n=e[xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(js(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[xt]||null;if(!i)throw Error(u(90));js(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&dr(a)}break e;case"textarea":mr(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Qa(e,!!n.multiple,t,!1)}}}var Rs=!1;function br(e,t,n){if(Rs)return e(t,n);Rs=!0;try{var a=e(t);return a}finally{if(Rs=!1,(Za!==null||Ka!==null)&&(Au(),Za&&(t=Za,e=Ka,Ka=Za=null,gr(t),e)))for(t=0;t<e.length;t++)gr(e[t])}}function Hl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[xt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zs=!1;if(hn)try{var ql={};Object.defineProperty(ql,"passive",{get:function(){zs=!0}}),window.addEventListener("test",ql,ql),window.removeEventListener("test",ql,ql)}catch{zs=!1}var Hn=null,As=null,Yi=null;function xr(){if(Yi)return Yi;var e,t=As,n=t.length,a,i="value"in Hn?Hn.value:Hn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var r=n-e;for(a=1;a<=r&&t[n-a]===i[o-a];a++);return Yi=i.slice(e,1<a?1-a:void 0)}function Gi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qi(){return!0}function Sr(){return!1}function St(e){function t(n,a,i,o,r){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=r,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(o):o[h]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Qi:Sr,this.isPropagationStopped=Sr,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qi)},persist:function(){},isPersistent:Qi}),t}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xi=St(ma),Vl=S({},ma,{view:0,detail:0}),zp=St(Vl),ws,Ms,$l,Zi=S({},Vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ds,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$l&&($l&&e.type==="mousemove"?(ws=e.screenX-$l.screenX,Ms=e.screenY-$l.screenY):Ms=ws=0,$l=e),ws)},movementY:function(e){return"movementY"in e?e.movementY:Ms}}),jr=St(Zi),Ap=S({},Zi,{dataTransfer:0}),wp=St(Ap),Mp=S({},Vl,{relatedTarget:0}),Ns=St(Mp),Np=S({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),Dp=St(Np),Op=S({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Up=St(Op),kp=S({},ma,{data:0}),Er=St(kp),Lp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Hp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hp[e])?!!t[e]:!1}function Ds(){return qp}var Vp=S({},Vl,{key:function(e){if(e.key){var t=Lp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ds,charCode:function(e){return e.type==="keypress"?Gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$p=St(Vp),Yp=S({},Zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cr=St(Yp),Gp=S({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ds}),Qp=St(Gp),Xp=S({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zp=St(Xp),Kp=S({},Zi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Jp=St(Kp),Ip=S({},ma,{newState:0,oldState:0}),Wp=St(Ip),Fp=[9,13,27,32],Os=hn&&"CompositionEvent"in window,Yl=null;hn&&"documentMode"in document&&(Yl=document.documentMode);var Pp=hn&&"TextEvent"in window&&!Yl,Tr=hn&&(!Os||Yl&&8<Yl&&11>=Yl),_r=" ",Rr=!1;function zr(e,t){switch(e){case"keyup":return Fp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ar(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function ev(e,t){switch(e){case"compositionend":return Ar(t);case"keypress":return t.which!==32?null:(Rr=!0,_r);case"textInput":return e=t.data,e===_r&&Rr?null:e;default:return null}}function tv(e,t){if(Ja)return e==="compositionend"||!Os&&zr(e,t)?(e=xr(),Yi=As=Hn=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tr&&t.locale!=="ko"?null:t.data;default:return null}}var nv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nv[e.type]:t==="textarea"}function Mr(e,t,n,a){Za?Ka?Ka.push(a):Ka=[a]:Za=a,t=ku(t,"onChange"),0<t.length&&(n=new Xi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Gl=null,Ql=null;function av(e){mh(e,0)}function Ki(e){var t=Bl(e);if(dr(t))return e}function Nr(e,t){if(e==="change")return t}var Dr=!1;if(hn){var Us;if(hn){var ks="oninput"in document;if(!ks){var Or=document.createElement("div");Or.setAttribute("oninput","return;"),ks=typeof Or.oninput=="function"}Us=ks}else Us=!1;Dr=Us&&(!document.documentMode||9<document.documentMode)}function Ur(){Gl&&(Gl.detachEvent("onpropertychange",kr),Ql=Gl=null)}function kr(e){if(e.propertyName==="value"&&Ki(Ql)){var t=[];Mr(t,Ql,e,_s(e)),br(av,t)}}function lv(e,t,n){e==="focusin"?(Ur(),Gl=t,Ql=n,Gl.attachEvent("onpropertychange",kr)):e==="focusout"&&Ur()}function iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ki(Ql)}function uv(e,t){if(e==="click")return Ki(t)}function sv(e,t){if(e==="input"||e==="change")return Ki(t)}function ov(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:ov;function Xl(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!Da.call(t,i)||!At(e[i],t[i]))return!1}return!0}function Lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Br(e,t){var n=Lr(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Lr(n)}}function Hr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vi(e.document)}return t}function Ls(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var cv=hn&&"documentMode"in document&&11>=document.documentMode,Ia=null,Bs=null,Zl=null,Hs=!1;function Vr(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hs||Ia==null||Ia!==Vi(a)||(a=Ia,"selectionStart"in a&&Ls(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Zl&&Xl(Zl,a)||(Zl=a,a=ku(Bs,"onSelect"),0<a.length&&(t=new Xi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ia)))}function pa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wa={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},qs={},$r={};hn&&($r=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function va(e){if(qs[e])return qs[e];if(!Wa[e])return e;var t=Wa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $r)return qs[e]=t[n];return e}var Yr=va("animationend"),Gr=va("animationiteration"),Qr=va("animationstart"),rv=va("transitionrun"),fv=va("transitionstart"),dv=va("transitioncancel"),Xr=va("transitionend"),Zr=new Map,Vs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vs.push("scrollEnd");function Wt(e,t){Zr.set(e,t),ha(t,[e])}var Ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],Fa=0,$s=0;function Ii(){for(var e=Fa,t=$s=Fa=0;t<e;){var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var i=qt[t];qt[t++]=null;var o=qt[t];if(qt[t++]=null,a!==null&&i!==null){var r=a.pending;r===null?i.next=i:(i.next=r.next,r.next=i),a.pending=i}o!==0&&Kr(n,i,o)}}function Wi(e,t,n,a){qt[Fa++]=e,qt[Fa++]=t,qt[Fa++]=n,qt[Fa++]=a,$s|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ys(e,t,n,a){return Wi(e,t,n,a),Fi(e)}function ya(e,t){return Wi(e,null,null,t),Fi(e)}function Kr(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Xe(n),e=o.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),o):null}function Fi(e){if(50<pi)throw pi=0,Po=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pa={};function hv(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,n,a){return new hv(e,t,n,a)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,t){var n=e.alternate;return n===null?(n=wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Jr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pi(e,t,n,a,i,o){var r=0;if(a=e,typeof e=="function")Gs(e)&&(r=1);else if(typeof e=="string")r=gy(e,n,G.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ce:return e=wt(31,n,t,i),e.elementType=Ce,e.lanes=o,e;case Q:return ga(n.children,i,o,t);case B:r=8,i|=24;break;case q:return e=wt(12,n,t,i|2),e.elementType=q,e.lanes=o,e;case ue:return e=wt(13,n,t,i),e.elementType=ue,e.lanes=o,e;case se:return e=wt(19,n,t,i),e.elementType=se,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:r=10;break e;case H:r=9;break e;case ee:r=11;break e;case te:r=14;break e;case Ee:r=16,a=null;break e}r=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=wt(r,n,t,i),t.elementType=e,t.type=a,t.lanes=o,t}function ga(e,t,n,a){return e=wt(7,e,a,t),e.lanes=n,e}function Qs(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Ir(e){var t=wt(18,null,null,0);return t.stateNode=e,t}function Xs(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wr=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var n=Wr.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ca(t)},Wr.set(e,t),t)}return{value:e,source:t,stack:ca(t)}}var el=[],tl=0,eu=null,Kl=0,$t=[],Yt=0,qn=null,tn=1,nn="";function pn(e,t){el[tl++]=Kl,el[tl++]=eu,eu=e,Kl=t}function Fr(e,t,n){$t[Yt++]=tn,$t[Yt++]=nn,$t[Yt++]=qn,qn=e;var a=tn;e=nn;var i=32-Xe(a)-1;a&=~(1<<i),n+=1;var o=32-Xe(t)+i;if(30<o){var r=i-i%5;o=(a&(1<<r)-1).toString(32),a>>=r,i-=r,tn=1<<32-Xe(t)+i|n<<i|a,nn=o+e}else tn=1<<o|n<<i|a,nn=e}function Zs(e){e.return!==null&&(pn(e,1),Fr(e,1,0))}function Ks(e){for(;e===eu;)eu=el[--tl],el[tl]=null,Kl=el[--tl],el[tl]=null;for(;e===qn;)qn=$t[--Yt],$t[Yt]=null,nn=$t[--Yt],$t[Yt]=null,tn=$t[--Yt],$t[Yt]=null}function Pr(e,t){$t[Yt++]=tn,$t[Yt++]=nn,$t[Yt++]=qn,tn=t.id,nn=t.overflow,qn=e}var ht=null,He=null,je=!1,Vn=null,Gt=!1,Js=Error(u(519));function $n(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(Vt(t,e)),Js}function ef(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[dt]=e,t[xt]=a,n){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(n=0;n<yi.length;n++)ge(yi[n],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),hr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),pr(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||gh(t.textContent,n)?(a.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),a.onScroll!=null&&ge("scroll",t),a.onScrollEnd!=null&&ge("scrollend",t),a.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||$n(e,!0)}function tf(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:ht=ht.return}}function nl(e){if(e!==ht)return!1;if(!je)return tf(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||mc(e.type,e.memoizedProps)),n=!n),n&&He&&$n(e),tf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));He=Rh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));He=Rh(e)}else t===27?(t=He,na(e.type)?(e=bc,bc=null,He=e):He=t):He=ht?Xt(e.stateNode.nextSibling):null;return!0}function ba(){He=ht=null,je=!1}function Is(){var e=Vn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Vn=null),e}function Jl(e){Vn===null?Vn=[e]:Vn.push(e)}var Ws=E(null),xa=null,vn=null;function Yn(e,t,n){V(Ws,t._currentValue),t._currentValue=n}function yn(e){e._currentValue=Ws.current,C(Ws)}function Fs(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Ps(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var r=i.child;o=o.firstContext;e:for(;o!==null;){var h=o;o=i;for(var b=0;b<t.length;b++)if(h.context===t[b]){o.lanes|=n,h=o.alternate,h!==null&&(h.lanes|=n),Fs(o.return,n,e),a||(r=null);break e}o=h.next}}else if(i.tag===18){if(r=i.return,r===null)throw Error(u(341));r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),Fs(r,n,e),r=null}else r=i.child;if(r!==null)r.return=i;else for(r=i;r!==null;){if(r===e){r=null;break}if(i=r.sibling,i!==null){i.return=r.return,r=i;break}r=r.return}i=r}}function al(e,t,n,a){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var r=i.alternate;if(r===null)throw Error(u(387));if(r=r.memoizedProps,r!==null){var h=i.type;At(i.pendingProps.value,r.value)||(e!==null?e.push(h):e=[h])}}else if(i===Se.current){if(r=i.alternate,r===null)throw Error(u(387));r.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ji):e=[ji])}i=i.return}e!==null&&Ps(t,e,n,a),t.flags|=262144}function tu(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){xa=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return nf(xa,e)}function nu(e,t){return xa===null&&Sa(e),nf(e,t)}function nf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},vn===null){if(e===null)throw Error(u(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return n}var mv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},pv=l.unstable_scheduleCallback,vv=l.unstable_NormalPriority,et={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eo(){return{controller:new mv,data:new Map,refCount:0}}function Il(e){e.refCount--,e.refCount===0&&pv(vv,function(){e.controller.abort()})}var Wl=null,to=0,ll=0,il=null;function yv(e,t){if(Wl===null){var n=Wl=[];to=0,ll=ic(),il={status:"pending",value:void 0,then:function(a){n.push(a)}}}return to++,t.then(af,af),t}function af(){if(--to===0&&Wl!==null){il!==null&&(il.status="fulfilled");var e=Wl;Wl=null,ll=0,il=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var lf=T.S;T.S=function(e,t){$d=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yv(e,t),lf!==null&&lf(e,t)};var ja=E(null);function no(){var e=ja.current;return e!==null?e:ke.pooledCache}function au(e,t){t===null?V(ja,ja.current):V(ja,t.pool)}function uf(){var e=no();return e===null?null:{parent:et._currentValue,pool:e}}var ul=Error(u(460)),ao=Error(u(474)),lu=Error(u(542)),iu={then:function(){}};function sf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function of(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rf(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rf(e),e}throw Ca=t,ul}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ca=n,ul):n}}var Ca=null;function cf(){if(Ca===null)throw Error(u(459));var e=Ca;return Ca=null,e}function rf(e){if(e===ul||e===lu)throw Error(u(483))}var sl=null,Fl=0;function uu(e){var t=Fl;return Fl+=1,sl===null&&(sl=[]),of(sl,e,t)}function Pl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function su(e,t){throw t.$$typeof===D?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ff(e){function t(_,j){if(e){var z=_.deletions;z===null?(_.deletions=[j],_.flags|=16):z.push(j)}}function n(_,j){if(!e)return null;for(;j!==null;)t(_,j),j=j.sibling;return null}function a(_){for(var j=new Map;_!==null;)_.key!==null?j.set(_.key,_):j.set(_.index,_),_=_.sibling;return j}function i(_,j){return _=mn(_,j),_.index=0,_.sibling=null,_}function o(_,j,z){return _.index=z,e?(z=_.alternate,z!==null?(z=z.index,z<j?(_.flags|=67108866,j):z):(_.flags|=67108866,j)):(_.flags|=1048576,j)}function r(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function h(_,j,z,O){return j===null||j.tag!==6?(j=Qs(z,_.mode,O),j.return=_,j):(j=i(j,z),j.return=_,j)}function b(_,j,z,O){var le=z.type;return le===Q?N(_,j,z.props.children,O,z.key):j!==null&&(j.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Ee&&Ea(le)===j.type)?(j=i(j,z.props),Pl(j,z),j.return=_,j):(j=Pi(z.type,z.key,z.props,null,_.mode,O),Pl(j,z),j.return=_,j)}function A(_,j,z,O){return j===null||j.tag!==4||j.stateNode.containerInfo!==z.containerInfo||j.stateNode.implementation!==z.implementation?(j=Xs(z,_.mode,O),j.return=_,j):(j=i(j,z.children||[]),j.return=_,j)}function N(_,j,z,O,le){return j===null||j.tag!==7?(j=ga(z,_.mode,O,le),j.return=_,j):(j=i(j,z),j.return=_,j)}function k(_,j,z){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Qs(""+j,_.mode,z),j.return=_,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Y:return z=Pi(j.type,j.key,j.props,null,_.mode,z),Pl(z,j),z.return=_,z;case U:return j=Xs(j,_.mode,z),j.return=_,j;case Ee:return j=Ea(j),k(_,j,z)}if(ne(j)||Re(j))return j=ga(j,_.mode,z,null),j.return=_,j;if(typeof j.then=="function")return k(_,uu(j),z);if(j.$$typeof===X)return k(_,nu(_,j),z);su(_,j)}return null}function w(_,j,z,O){var le=j!==null?j.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return le!==null?null:h(_,j,""+z,O);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case Y:return z.key===le?b(_,j,z,O):null;case U:return z.key===le?A(_,j,z,O):null;case Ee:return z=Ea(z),w(_,j,z,O)}if(ne(z)||Re(z))return le!==null?null:N(_,j,z,O,null);if(typeof z.then=="function")return w(_,j,uu(z),O);if(z.$$typeof===X)return w(_,j,nu(_,z),O);su(_,z)}return null}function M(_,j,z,O,le){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return _=_.get(z)||null,h(j,_,""+O,le);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Y:return _=_.get(O.key===null?z:O.key)||null,b(j,_,O,le);case U:return _=_.get(O.key===null?z:O.key)||null,A(j,_,O,le);case Ee:return O=Ea(O),M(_,j,z,O,le)}if(ne(O)||Re(O))return _=_.get(z)||null,N(j,_,O,le,null);if(typeof O.then=="function")return M(_,j,z,uu(O),le);if(O.$$typeof===X)return M(_,j,z,nu(j,O),le);su(j,O)}return null}function F(_,j,z,O){for(var le=null,Te=null,P=j,pe=j=0,xe=null;P!==null&&pe<z.length;pe++){P.index>pe?(xe=P,P=null):xe=P.sibling;var _e=w(_,P,z[pe],O);if(_e===null){P===null&&(P=xe);break}e&&P&&_e.alternate===null&&t(_,P),j=o(_e,j,pe),Te===null?le=_e:Te.sibling=_e,Te=_e,P=xe}if(pe===z.length)return n(_,P),je&&pn(_,pe),le;if(P===null){for(;pe<z.length;pe++)P=k(_,z[pe],O),P!==null&&(j=o(P,j,pe),Te===null?le=P:Te.sibling=P,Te=P);return je&&pn(_,pe),le}for(P=a(P);pe<z.length;pe++)xe=M(P,_,pe,z[pe],O),xe!==null&&(e&&xe.alternate!==null&&P.delete(xe.key===null?pe:xe.key),j=o(xe,j,pe),Te===null?le=xe:Te.sibling=xe,Te=xe);return e&&P.forEach(function(sa){return t(_,sa)}),je&&pn(_,pe),le}function ie(_,j,z,O){if(z==null)throw Error(u(151));for(var le=null,Te=null,P=j,pe=j=0,xe=null,_e=z.next();P!==null&&!_e.done;pe++,_e=z.next()){P.index>pe?(xe=P,P=null):xe=P.sibling;var sa=w(_,P,_e.value,O);if(sa===null){P===null&&(P=xe);break}e&&P&&sa.alternate===null&&t(_,P),j=o(sa,j,pe),Te===null?le=sa:Te.sibling=sa,Te=sa,P=xe}if(_e.done)return n(_,P),je&&pn(_,pe),le;if(P===null){for(;!_e.done;pe++,_e=z.next())_e=k(_,_e.value,O),_e!==null&&(j=o(_e,j,pe),Te===null?le=_e:Te.sibling=_e,Te=_e);return je&&pn(_,pe),le}for(P=a(P);!_e.done;pe++,_e=z.next())_e=M(P,_,pe,_e.value,O),_e!==null&&(e&&_e.alternate!==null&&P.delete(_e.key===null?pe:_e.key),j=o(_e,j,pe),Te===null?le=_e:Te.sibling=_e,Te=_e);return e&&P.forEach(function(Ay){return t(_,Ay)}),je&&pn(_,pe),le}function Ue(_,j,z,O){if(typeof z=="object"&&z!==null&&z.type===Q&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case Y:e:{for(var le=z.key;j!==null;){if(j.key===le){if(le=z.type,le===Q){if(j.tag===7){n(_,j.sibling),O=i(j,z.props.children),O.return=_,_=O;break e}}else if(j.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Ee&&Ea(le)===j.type){n(_,j.sibling),O=i(j,z.props),Pl(O,z),O.return=_,_=O;break e}n(_,j);break}else t(_,j);j=j.sibling}z.type===Q?(O=ga(z.props.children,_.mode,O,z.key),O.return=_,_=O):(O=Pi(z.type,z.key,z.props,null,_.mode,O),Pl(O,z),O.return=_,_=O)}return r(_);case U:e:{for(le=z.key;j!==null;){if(j.key===le)if(j.tag===4&&j.stateNode.containerInfo===z.containerInfo&&j.stateNode.implementation===z.implementation){n(_,j.sibling),O=i(j,z.children||[]),O.return=_,_=O;break e}else{n(_,j);break}else t(_,j);j=j.sibling}O=Xs(z,_.mode,O),O.return=_,_=O}return r(_);case Ee:return z=Ea(z),Ue(_,j,z,O)}if(ne(z))return F(_,j,z,O);if(Re(z)){if(le=Re(z),typeof le!="function")throw Error(u(150));return z=le.call(z),ie(_,j,z,O)}if(typeof z.then=="function")return Ue(_,j,uu(z),O);if(z.$$typeof===X)return Ue(_,j,nu(_,z),O);su(_,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,j!==null&&j.tag===6?(n(_,j.sibling),O=i(j,z),O.return=_,_=O):(n(_,j),O=Qs(z,_.mode,O),O.return=_,_=O),r(_)):n(_,j)}return function(_,j,z,O){try{Fl=0;var le=Ue(_,j,z,O);return sl=null,le}catch(P){if(P===ul||P===lu)throw P;var Te=wt(29,P,null,_.mode);return Te.lanes=O,Te.return=_,Te}finally{}}}var Ta=ff(!0),df=ff(!1),Gn=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ze&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Fi(e),Kr(e,null,n),t}return Wi(e,a,t,n),Fi(e)}function ei(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ze(e,n)}}function uo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=r:o=o.next=r,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var so=!1;function ti(){if(so){var e=il;if(e!==null)throw e}}function ni(e,t,n,a){so=!1;var i=e.updateQueue;Gn=!1;var o=i.firstBaseUpdate,r=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var b=h,A=b.next;b.next=null,r===null?o=A:r.next=A,r=b;var N=e.alternate;N!==null&&(N=N.updateQueue,h=N.lastBaseUpdate,h!==r&&(h===null?N.firstBaseUpdate=A:h.next=A,N.lastBaseUpdate=b))}if(o!==null){var k=i.baseState;r=0,N=A=b=null,h=o;do{var w=h.lane&-536870913,M=w!==h.lane;if(M?(be&w)===w:(a&w)===w){w!==0&&w===ll&&(so=!0),N!==null&&(N=N.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var F=e,ie=h;w=t;var Ue=n;switch(ie.tag){case 1:if(F=ie.payload,typeof F=="function"){k=F.call(Ue,k,w);break e}k=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ie.payload,w=typeof F=="function"?F.call(Ue,k,w):F,w==null)break e;k=S({},k,w);break e;case 2:Gn=!0}}w=h.callback,w!==null&&(e.flags|=64,M&&(e.flags|=8192),M=i.callbacks,M===null?i.callbacks=[w]:M.push(w))}else M={lane:w,tag:h.tag,payload:h.payload,callback:h.callback,next:null},N===null?(A=N=M,b=k):N=N.next=M,r|=w;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;M=h,h=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);N===null&&(b=k),i.baseState=b,i.firstBaseUpdate=A,i.lastBaseUpdate=N,o===null&&(i.shared.lanes=0),Wn|=r,e.lanes=r,e.memoizedState=k}}function hf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function mf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)hf(n[e],t)}var ol=E(null),ou=E(0);function pf(e,t){e=_n,V(ou,e),V(ol,t),_n=e|t.baseLanes}function oo(){V(ou,_n),V(ol,ol.current)}function co(){_n=ou.current,C(ol),C(ou)}var Mt=E(null),Qt=null;function Zn(e){var t=e.alternate;V(Fe,Fe.current&1),V(Mt,e),Qt===null&&(t===null||ol.current!==null||t.memoizedState!==null)&&(Qt=e)}function ro(e){V(Fe,Fe.current),V(Mt,e),Qt===null&&(Qt=e)}function vf(e){e.tag===22?(V(Fe,Fe.current),V(Mt,e),Qt===null&&(Qt=e)):Kn()}function Kn(){V(Fe,Fe.current),V(Mt,Mt.current)}function Nt(e){C(Mt),Qt===e&&(Qt=null),C(Fe)}var Fe=E(0);function cu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||yc(n)||gc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gn=0,he=null,De=null,tt=null,ru=!1,cl=!1,_a=!1,fu=0,ai=0,rl=null,bv=0;function Je(){throw Error(u(321))}function fo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!At(e[n],t[n]))return!1;return!0}function ho(e,t,n,a,i,o){return gn=o,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Pf:zo,_a=!1,o=n(a,i),_a=!1,cl&&(o=gf(t,n,a,i)),yf(e),o}function yf(e){T.H=ui;var t=De!==null&&De.next!==null;if(gn=0,tt=De=he=null,ru=!1,ai=0,rl=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&tu(e)&&(nt=!0))}function gf(e,t,n,a){he=e;var i=0;do{if(cl&&(rl=null),ai=0,cl=!1,25<=i)throw Error(u(301));if(i+=1,tt=De=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}T.H=ed,o=t(n,a)}while(cl);return o}function xv(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?li(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(he.flags|=1024),t}function mo(){var e=fu!==0;return fu=0,e}function po(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vo(e){if(ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ru=!1}gn=0,tt=De=he=null,cl=!1,ai=fu=0,rl=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?he.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(De===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=tt===null?he.memoizedState:tt.next;if(t!==null)tt=t,De=e;else{if(e===null)throw he.alternate===null?Error(u(467)):Error(u(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},tt===null?he.memoizedState=tt=e:tt=tt.next=e}return tt}function du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function li(e){var t=ai;return ai+=1,rl===null&&(rl=[]),e=of(rl,e,t),t=he,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Pf:zo),e}function hu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return li(e);if(e.$$typeof===X)return mt(e)}throw Error(u(438,String(e)))}function yo(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=du(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=We;return t.index++,n}function bn(e,t){return typeof t=="function"?t(e):t}function mu(e){var t=Pe();return go(t,De,e)}function go(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(o!==null){if(i!==null){var r=i.next;i.next=o.next,o.next=r}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var h=r=null,b=null,A=t,N=!1;do{var k=A.lane&-536870913;if(k!==A.lane?(be&k)===k:(gn&k)===k){var w=A.revertLane;if(w===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),k===ll&&(N=!0);else if((gn&w)===w){A=A.next,w===ll&&(N=!0);continue}else k={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(h=b=k,r=o):b=b.next=k,he.lanes|=w,Wn|=w;k=A.action,_a&&n(o,k),o=A.hasEagerState?A.eagerState:n(o,k)}else w={lane:k,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(h=b=w,r=o):b=b.next=w,he.lanes|=k,Wn|=k;A=A.next}while(A!==null&&A!==t);if(b===null?r=o:b.next=h,!At(o,e.memoizedState)&&(nt=!0,N&&(n=il,n!==null)))throw n;e.memoizedState=o,e.baseState=r,e.baseQueue=b,a.lastRenderedState=o}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function bo(e){var t=Pe(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var r=i=i.next;do o=e(o,r.action),r=r.next;while(r!==i);At(o,t.memoizedState)||(nt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function bf(e,t,n){var a=he,i=Pe(),o=je;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var r=!At((De||i).memoizedState,n);if(r&&(i.memoizedState=n,nt=!0),i=i.queue,jo(jf.bind(null,a,i,e),[e]),i.getSnapshot!==t||r||tt!==null&&tt.memoizedState.tag&1){if(a.flags|=2048,fl(9,{destroy:void 0},Sf.bind(null,a,i,n,t),null),ke===null)throw Error(u(349));o||(gn&127)!==0||xf(a,t,n)}return n}function xf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=du(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sf(e,t,n,a){t.value=n,t.getSnapshot=a,Ef(t)&&Cf(e)}function jf(e,t,n){return n(function(){Ef(t)&&Cf(e)})}function Ef(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!At(e,n)}catch{return!0}}function Cf(e){var t=ya(e,2);t!==null&&_t(t,e,2)}function xo(e){var t=bt();if(typeof e=="function"){var n=e;if(e=n(),_a){ft(!0);try{n()}finally{ft(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},t}function Tf(e,t,n,a){return e.baseState=n,go(e,De,typeof a=="function"?a:bn)}function Sv(e,t,n,a,i){if(yu(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){o.listeners.push(r)}};T.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,_f(t,o)):(o.next=n.next,t.pending=n.next=o)}}function _f(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=T.T,r={};T.T=r;try{var h=n(i,a),b=T.S;b!==null&&b(r,h),Rf(e,t,h)}catch(A){So(e,t,A)}finally{o!==null&&r.types!==null&&(o.types=r.types),T.T=o}}else try{o=n(i,a),Rf(e,t,o)}catch(A){So(e,t,A)}}function Rf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){zf(e,t,a)},function(a){return So(e,t,a)}):zf(e,t,n)}function zf(e,t,n){t.status="fulfilled",t.value=n,Af(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_f(e,n)))}function So(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Af(t),t=t.next;while(t!==a)}e.action=null}function Af(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wf(e,t){return t}function Mf(e,t){if(je){var n=ke.formState;if(n!==null){e:{var a=he;if(je){if(He){t:{for(var i=He,o=Gt;i.nodeType!==8;){if(!o){i=null;break t}if(i=Xt(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){He=Xt(i.nextSibling),a=i.data==="F!";break e}}$n(a)}a=!1}a&&(t=n[0])}}return n=bt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wf,lastRenderedState:t},n.queue=a,n=If.bind(null,he,a),a.dispatch=n,a=xo(!1),o=Ro.bind(null,he,!1,a.queue),a=bt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=Sv.bind(null,he,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function Nf(e){var t=Pe();return Df(t,De,e)}function Df(e,t,n){if(t=go(e,t,wf)[0],e=mu(bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=li(t)}catch(r){throw r===ul?lu:r}else a=t;t=Pe();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(he.flags|=2048,fl(9,{destroy:void 0},jv.bind(null,i,n),null)),[a,o,e]}function jv(e,t){e.action=t}function Of(e){var t=Pe(),n=De;if(n!==null)return Df(t,n,e);Pe(),t=t.memoizedState,n=Pe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function fl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=du(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Uf(){return Pe().memoizedState}function pu(e,t,n,a){var i=bt();he.flags|=e,i.memoizedState=fl(1|t,{destroy:void 0},n,a===void 0?null:a)}function vu(e,t,n,a){var i=Pe();a=a===void 0?null:a;var o=i.memoizedState.inst;De!==null&&a!==null&&fo(a,De.memoizedState.deps)?i.memoizedState=fl(t,o,n,a):(he.flags|=e,i.memoizedState=fl(1|t,o,n,a))}function kf(e,t){pu(8390656,8,e,t)}function jo(e,t){vu(2048,8,e,t)}function Ev(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=du(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Lf(e){var t=Pe().memoizedState;return Ev({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Bf(e,t){return vu(4,2,e,t)}function Hf(e,t){return vu(4,4,e,t)}function qf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vf(e,t,n){n=n!=null?n.concat([e]):null,vu(4,4,qf.bind(null,t,e),n)}function Eo(){}function $f(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&fo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Yf(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&fo(t,a[1]))return a[0];if(a=e(),_a){ft(!0);try{e()}finally{ft(!1)}}return n.memoizedState=[a,t],a}function Co(e,t,n){return n===void 0||(gn&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Gd(),he.lanes|=e,Wn|=e,n)}function Gf(e,t,n,a){return At(n,t)?n:ol.current!==null?(e=Co(e,n,a),At(e,t)||(nt=!0),e):(gn&42)===0||(gn&1073741824)!==0&&(be&261930)===0?(nt=!0,e.memoizedState=n):(e=Gd(),he.lanes|=e,Wn|=e,t)}function Qf(e,t,n,a,i){var o=$.p;$.p=o!==0&&8>o?o:8;var r=T.T,h={};T.T=h,Ro(e,!1,t,n);try{var b=i(),A=T.S;if(A!==null&&A(h,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var N=gv(b,a);ii(e,t,N,Ut(e))}else ii(e,t,a,Ut(e))}catch(k){ii(e,t,{then:function(){},status:"rejected",reason:k},Ut())}finally{$.p=o,r!==null&&h.types!==null&&(r.types=h.types),T.T=r}}function Cv(){}function To(e,t,n,a){if(e.tag!==5)throw Error(u(476));var i=Xf(e).queue;Qf(e,i,t,K,n===null?Cv:function(){return Zf(e),n(a)})}function Xf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:K},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zf(e){var t=Xf(e);t.next===null&&(t=e.alternate.memoizedState),ii(e,t.next.queue,{},Ut())}function _o(){return mt(ji)}function Kf(){return Pe().memoizedState}function Jf(){return Pe().memoizedState}function Tv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ut();e=Qn(n);var a=Xn(t,e,n);a!==null&&(_t(a,t,n),ei(a,t,n)),t={cache:eo()},e.payload=t;return}t=t.return}}function _v(e,t,n){var a=Ut();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},yu(e)?Wf(t,n):(n=Ys(e,t,n,a),n!==null&&(_t(n,e,a),Ff(n,t,a)))}function If(e,t,n){var a=Ut();ii(e,t,n,a)}function ii(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(yu(e))Wf(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var r=t.lastRenderedState,h=o(r,n);if(i.hasEagerState=!0,i.eagerState=h,At(h,r))return Wi(e,t,i,0),ke===null&&Ii(),!1}catch{}finally{}if(n=Ys(e,t,i,a),n!==null)return _t(n,e,a),Ff(n,t,a),!0}return!1}function Ro(e,t,n,a){if(a={lane:2,revertLane:ic(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},yu(e)){if(t)throw Error(u(479))}else t=Ys(e,n,a,2),t!==null&&_t(t,e,2)}function yu(e){var t=e.alternate;return e===he||t!==null&&t===he}function Wf(e,t){cl=ru=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ff(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ze(e,n)}}var ui={readContext:mt,use:hu,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};ui.useEffectEvent=Je;var Pf={readContext:mt,use:hu,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:kf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,pu(4194308,4,qf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pu(4194308,4,e,t)},useInsertionEffect:function(e,t){pu(4,2,e,t)},useMemo:function(e,t){var n=bt();t=t===void 0?null:t;var a=e();if(_a){ft(!0);try{e()}finally{ft(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=bt();if(n!==void 0){var i=n(t);if(_a){ft(!0);try{n(t)}finally{ft(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=_v.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=xo(e);var t=e.queue,n=If.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Eo,useDeferredValue:function(e,t){var n=bt();return Co(n,e,t)},useTransition:function(){var e=xo(!1);return e=Qf.bind(null,he,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,i=bt();if(je){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),ke===null)throw Error(u(349));(be&127)!==0||xf(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,kf(jf.bind(null,a,o,e),[e]),a.flags|=2048,fl(9,{destroy:void 0},Sf.bind(null,a,o,n,t),null),n},useId:function(){var e=bt(),t=ke.identifierPrefix;if(je){var n=nn,a=tn;n=(a&~(1<<32-Xe(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=fu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=bv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_o,useFormState:Mf,useActionState:Mf,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ro.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:yo,useCacheRefresh:function(){return bt().memoizedState=Tv.bind(null,he)},useEffectEvent:function(e){var t=bt(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},zo={readContext:mt,use:hu,useCallback:$f,useContext:mt,useEffect:jo,useImperativeHandle:Vf,useInsertionEffect:Bf,useLayoutEffect:Hf,useMemo:Yf,useReducer:mu,useRef:Uf,useState:function(){return mu(bn)},useDebugValue:Eo,useDeferredValue:function(e,t){var n=Pe();return Gf(n,De.memoizedState,e,t)},useTransition:function(){var e=mu(bn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:li(e),t]},useSyncExternalStore:bf,useId:Kf,useHostTransitionStatus:_o,useFormState:Nf,useActionState:Nf,useOptimistic:function(e,t){var n=Pe();return Tf(n,De,e,t)},useMemoCache:yo,useCacheRefresh:Jf};zo.useEffectEvent=Lf;var ed={readContext:mt,use:hu,useCallback:$f,useContext:mt,useEffect:jo,useImperativeHandle:Vf,useInsertionEffect:Bf,useLayoutEffect:Hf,useMemo:Yf,useReducer:bo,useRef:Uf,useState:function(){return bo(bn)},useDebugValue:Eo,useDeferredValue:function(e,t){var n=Pe();return De===null?Co(n,e,t):Gf(n,De.memoizedState,e,t)},useTransition:function(){var e=bo(bn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:li(e),t]},useSyncExternalStore:bf,useId:Kf,useHostTransitionStatus:_o,useFormState:Of,useActionState:Of,useOptimistic:function(e,t){var n=Pe();return De!==null?Tf(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:yo,useCacheRefresh:Jf};ed.useEffectEvent=Lf;function Ao(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Ut(),i=Qn(a);i.payload=t,n!=null&&(i.callback=n),t=Xn(e,i,a),t!==null&&(_t(t,e,a),ei(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Ut(),i=Qn(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Xn(e,i,a),t!==null&&(_t(t,e,a),ei(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ut(),a=Qn(n);a.tag=2,t!=null&&(a.callback=t),t=Xn(e,a,n),t!==null&&(_t(t,e,n),ei(t,e,n))}};function td(e,t,n,a,i,o,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,r):t.prototype&&t.prototype.isPureReactComponent?!Xl(n,a)||!Xl(i,o):!0}function nd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&wo.enqueueReplaceState(t,t.state,null)}function Ra(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function ad(e){Ji(e)}function ld(e){console.error(e)}function id(e){Ji(e)}function gu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ud(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Mo(e,t,n){return n=Qn(n),n.tag=3,n.payload={element:null},n.callback=function(){gu(e,t)},n}function sd(e){return e=Qn(e),e.tag=3,e}function od(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){ud(t,n,a)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){ud(t,n,a),typeof i!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function Rv(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&al(t,n,i,!0),n=Mt.current,n!==null){switch(n.tag){case 31:case 13:return Qt===null?wu():n.alternate===null&&Ie===0&&(Ie=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===iu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),nc(e,a,i)),!1;case 22:return n.flags|=65536,a===iu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),nc(e,a,i)),!1}throw Error(u(435,n.tag))}return nc(e,a,i),wu(),!1}if(je)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Js&&(e=Error(u(422),{cause:a}),Jl(Vt(e,n)))):(a!==Js&&(t=Error(u(423),{cause:a}),Jl(Vt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Vt(a,n),i=Mo(e.stateNode,a,i),uo(e,i),Ie!==4&&(Ie=2)),!1;var o=Error(u(520),{cause:a});if(o=Vt(o,n),mi===null?mi=[o]:mi.push(o),Ie!==4&&(Ie=2),t===null)return!0;a=Vt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Mo(n.stateNode,a,e),uo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Fn===null||!Fn.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=sd(i),od(i,e,n,a),uo(n,i),!1}n=n.return}while(n!==null);return!1}var No=Error(u(461)),nt=!1;function pt(e,t,n,a){t.child=e===null?df(t,null,n,a):Ta(t,e.child,n,a)}function cd(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var r={};for(var h in a)h!=="ref"&&(r[h]=a[h])}else r=a;return Sa(t),a=ho(e,t,n,r,o,i),h=mo(),e!==null&&!nt?(po(e,t,i),xn(e,t,i)):(je&&h&&Zs(t),t.flags|=1,pt(e,t,a,i),t.child)}function rd(e,t,n,a,i){if(e===null){var o=n.type;return typeof o=="function"&&!Gs(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,fd(e,t,o,a,i)):(e=Pi(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!qo(e,i)){var r=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xl,n(r,a)&&e.ref===t.ref)return xn(e,t,i)}return t.flags|=1,e=mn(o,a),e.ref=t.ref,e.return=t,t.child=e}function fd(e,t,n,a,i){if(e!==null){var o=e.memoizedProps;if(Xl(o,a)&&e.ref===t.ref)if(nt=!1,t.pendingProps=a=o,qo(e,i))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,xn(e,t,i)}return Do(e,t,n,a,i)}function dd(e,t,n,a){var i=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return hd(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&au(t,o!==null?o.cachePool:null),o!==null?pf(t,o):oo(),vf(t);else return a=t.lanes=536870912,hd(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(au(t,o.cachePool),pf(t,o),Kn(),t.memoizedState=null):(e!==null&&au(t,null),oo(),Kn());return pt(e,t,i,n),t.child}function si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hd(e,t,n,a,i){var o=no();return o=o===null?null:{parent:et._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&au(t,null),oo(),vf(t),e!==null&&al(e,t,a,!0),t.childLanes=i,null}function bu(e,t){return t=Su({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function md(e,t,n){return Ta(t,e.child,null,n),e=bu(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function zv(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(a.mode==="hidden")return e=bu(t,a),t.lanes=536870912,si(null,e);if(ro(t),(e=He)?(e=_h(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=Ir(e),n.return=t,t.child=n,ht=t,He=null)):e=null,e===null)throw $n(t);return t.lanes=536870912,null}return bu(t,a)}var o=e.memoizedState;if(o!==null){var r=o.dehydrated;if(ro(t),i)if(t.flags&256)t.flags&=-257,t=md(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||al(e,t,n,!1),i=(n&e.childLanes)!==0,nt||i){if(a=ke,a!==null&&(r=rn(a,n),r!==0&&r!==o.retryLane))throw o.retryLane=r,ya(e,r),_t(a,e,r),No;wu(),t=md(e,t,n)}else e=o.treeContext,He=Xt(r.nextSibling),ht=t,je=!0,Vn=null,Gt=!1,e!==null&&Pr(t,e),t=bu(t,a),t.flags|=4096;return t}return e=mn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Do(e,t,n,a,i){return Sa(t),n=ho(e,t,n,a,void 0,i),a=mo(),e!==null&&!nt?(po(e,t,i),xn(e,t,i)):(je&&a&&Zs(t),t.flags|=1,pt(e,t,n,i),t.child)}function pd(e,t,n,a,i,o){return Sa(t),t.updateQueue=null,n=gf(t,a,n,i),yf(e),a=mo(),e!==null&&!nt?(po(e,t,o),xn(e,t,o)):(je&&a&&Zs(t),t.flags|=1,pt(e,t,n,o),t.child)}function vd(e,t,n,a,i){if(Sa(t),t.stateNode===null){var o=Pa,r=n.contextType;typeof r=="object"&&r!==null&&(o=mt(r)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=wo,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},lo(t),r=n.contextType,o.context=typeof r=="object"&&r!==null?mt(r):Pa,o.state=t.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(Ao(t,n,r,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(r=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),r!==o.state&&wo.enqueueReplaceState(o,o.state,null),ni(t,a,o,i),ti(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var h=t.memoizedProps,b=Ra(n,h);o.props=b;var A=o.context,N=n.contextType;r=Pa,typeof N=="object"&&N!==null&&(r=mt(N));var k=n.getDerivedStateFromProps;N=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,N||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h||A!==r)&&nd(t,o,a,r),Gn=!1;var w=t.memoizedState;o.state=w,ni(t,a,o,i),ti(),A=t.memoizedState,h||w!==A||Gn?(typeof k=="function"&&(Ao(t,n,k,a),A=t.memoizedState),(b=Gn||td(t,n,b,a,w,A,r))?(N||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),o.props=a,o.state=A,o.context=r,a=b):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,io(e,t),r=t.memoizedProps,N=Ra(n,r),o.props=N,k=t.pendingProps,w=o.context,A=n.contextType,b=Pa,typeof A=="object"&&A!==null&&(b=mt(A)),h=n.getDerivedStateFromProps,(A=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r!==k||w!==b)&&nd(t,o,a,b),Gn=!1,w=t.memoizedState,o.state=w,ni(t,a,o,i),ti();var M=t.memoizedState;r!==k||w!==M||Gn||e!==null&&e.dependencies!==null&&tu(e.dependencies)?(typeof h=="function"&&(Ao(t,n,h,a),M=t.memoizedState),(N=Gn||td(t,n,N,a,w,M,b)||e!==null&&e.dependencies!==null&&tu(e.dependencies))?(A||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,M,b),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,M,b)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||r===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),o.props=a,o.state=M,o.context=b,a=N):(typeof o.componentDidUpdate!="function"||r===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,xu(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=Ta(t,e.child,null,i),t.child=Ta(t,null,n,i)):pt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=xn(e,t,i),e}function yd(e,t,n,a){return ba(),t.flags|=256,pt(e,t,n,a),t.child}var Oo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uo(e){return{baseLanes:e,cachePool:uf()}}function ko(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ot),e}function gd(e,t,n){var a=t.pendingProps,i=!1,o=(t.flags&128)!==0,r;if((r=o)||(r=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),r&&(i=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(i?Zn(t):Kn(),(e=He)?(e=_h(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=Ir(e),n.return=t,t.child=n,ht=t,He=null)):e=null,e===null)throw $n(t);return gc(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,i?(Kn(),i=t.mode,h=Su({mode:"hidden",children:h},i),a=ga(a,i,n,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=Uo(n),a.childLanes=ko(e,r,n),t.memoizedState=Oo,si(null,a)):(Zn(t),Lo(t,h))}var b=e.memoizedState;if(b!==null&&(h=b.dehydrated,h!==null)){if(o)t.flags&256?(Zn(t),t.flags&=-257,t=Bo(e,t,n)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),h=a.fallback,i=t.mode,a=Su({mode:"visible",children:a.children},i),h=ga(h,i,n,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Ta(t,e.child,null,n),a=t.child,a.memoizedState=Uo(n),a.childLanes=ko(e,r,n),t.memoizedState=Oo,t=si(null,a));else if(Zn(t),gc(h)){if(r=h.nextSibling&&h.nextSibling.dataset,r)var A=r.dgst;r=A,a=Error(u(419)),a.stack="",a.digest=r,Jl({value:a,source:null,stack:null}),t=Bo(e,t,n)}else if(nt||al(e,t,n,!1),r=(n&e.childLanes)!==0,nt||r){if(r=ke,r!==null&&(a=rn(r,n),a!==0&&a!==b.retryLane))throw b.retryLane=a,ya(e,a),_t(r,e,a),No;yc(h)||wu(),t=Bo(e,t,n)}else yc(h)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,He=Xt(h.nextSibling),ht=t,je=!0,Vn=null,Gt=!1,e!==null&&Pr(t,e),t=Lo(t,a.children),t.flags|=4096);return t}return i?(Kn(),h=a.fallback,i=t.mode,b=e.child,A=b.sibling,a=mn(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,A!==null?h=mn(A,h):(h=ga(h,i,n,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,si(null,a),a=t.child,h=e.child.memoizedState,h===null?h=Uo(n):(i=h.cachePool,i!==null?(b=et._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=uf(),h={baseLanes:h.baseLanes|n,cachePool:i}),a.memoizedState=h,a.childLanes=ko(e,r,n),t.memoizedState=Oo,si(e.child,a)):(Zn(t),n=e.child,e=n.sibling,n=mn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Lo(e,t){return t=Su({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Su(e,t){return e=wt(22,e,null,t),e.lanes=0,e}function Bo(e,t,n){return Ta(t,e.child,null,n),e=Lo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Fs(e.return,t,n)}function Ho(e,t,n,a,i,o){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=i,r.treeForkCount=o)}function xd(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var r=Fe.current,h=(r&2)!==0;if(h?(r=r&1|2,t.flags|=128):r&=1,V(Fe,r),pt(e,t,a,n),a=je?Kl:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,n,t);else if(e.tag===19)bd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&cu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ho(t,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&cu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ho(t,!0,n,null,o,a);break;case"together":Ho(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(al(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&tu(e)))}function Av(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),Yn(t,et,e.memoizedState.cache),ba();break;case 27:case 5:Mn(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:Yn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ro(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Zn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?gd(e,t,n):(Zn(t),e=xn(e,t,n),e!==null?e.sibling:null);Zn(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(al(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return xd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(Fe,Fe.current),a)break;return null;case 22:return t.lanes=0,dd(e,t,n,t.pendingProps);case 24:Yn(t,et,e.memoizedState.cache)}return xn(e,t,n)}function Sd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!qo(e,n)&&(t.flags&128)===0)return nt=!1,Av(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,je&&(t.flags&1048576)!==0&&Fr(t,Kl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e=="function")Gs(e)?(a=Ra(e,a),t.tag=1,t=vd(null,t,e,a,n)):(t.tag=0,t=Do(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===ee){t.tag=11,t=cd(null,t,e,a,n);break e}else if(i===te){t.tag=14,t=rd(null,t,e,a,n);break e}}throw t=$e(e)||e,Error(u(306,t,""))}}return t;case 0:return Do(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=Ra(a,t.pendingProps),vd(e,t,a,i,n);case 3:e:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,io(e,t),ni(t,a,null,n);var r=t.memoizedState;if(a=r.cache,Yn(t,et,a),a!==o.cache&&Ps(t,[et],n,!0),ti(),a=r.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yd(e,t,a,n);break e}else if(a!==i){i=Vt(Error(u(424)),t),Jl(i),t=yd(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Xt(e.firstChild),ht=t,je=!0,Vn=null,Gt=!0,n=df(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ba(),a===i){t=xn(e,t,n);break e}pt(e,t,a,n)}t=t.child}return t;case 26:return xu(e,t),e===null?(n=Nh(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,a=Lu(re.current).createElement(n),a[dt]=t,a[xt]=e,vt(a,n,e),ut(a),t.stateNode=a):t.memoizedState=Nh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Mn(t),e===null&&je&&(a=t.stateNode=Ah(t.type,t.pendingProps,re.current),ht=t,Gt=!0,i=He,na(t.type)?(bc=i,He=Xt(a.firstChild)):He=i),pt(e,t,t.pendingProps.children,n),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((i=a=He)&&(a=iy(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,ht=t,He=Xt(a.firstChild),Gt=!1,i=!0):i=!1),i||$n(t)),Mn(t),i=t.type,o=t.pendingProps,r=e!==null?e.memoizedProps:null,a=o.children,mc(i,o)?a=null:r!==null&&mc(i,r)&&(t.flags|=32),t.memoizedState!==null&&(i=ho(e,t,xv,null,null,n),ji._currentValue=i),xu(e,t),pt(e,t,a,n),t.child;case 6:return e===null&&je&&((e=n=He)&&(n=uy(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,ht=t,He=null,e=!0):e=!1),e||$n(t)),null;case 13:return gd(e,t,n);case 4:return we(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ta(t,null,a,n):pt(e,t,a,n),t.child;case 11:return cd(e,t,t.type,t.pendingProps,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Yn(t,t.type,a.value),pt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Sa(t),i=mt(i),a=a(i),t.flags|=1,pt(e,t,a,n),t.child;case 14:return rd(e,t,t.type,t.pendingProps,n);case 15:return fd(e,t,t.type,t.pendingProps,n);case 19:return xd(e,t,n);case 31:return zv(e,t,n);case 22:return dd(e,t,n,t.pendingProps);case 24:return Sa(t),a=mt(et),e===null?(i=no(),i===null&&(i=ke,o=eo(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},lo(t),Yn(t,et,i)):((e.lanes&n)!==0&&(io(e,t),ni(t,null,null,n),ti()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Yn(t,et,a)):(a=o.cache,Yn(t,et,a),a!==i.cache&&Ps(t,[et],n,!0))),pt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Sn(e){e.flags|=4}function Vo(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Kd())e.flags|=8192;else throw Ca=iu,ao}else e.flags&=-16777217}function jd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lh(t))if(Kd())e.flags|=8192;else throw Ca=iu,ao}function ju(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bi():536870912,e.lanes|=t,pl|=t)}function oi(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function wv(e,t,n){var a=t.pendingProps;switch(Ks(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),yn(et),Be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(nl(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Is())),qe(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Sn(t),o!==null?(qe(t),jd(t,o)):(qe(t),Vo(t,i,null,a,n))):o?o!==e.memoizedState?(Sn(t),qe(t),jd(t,o)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Sn(t),qe(t),Vo(t,i,e,a,n)),null;case 27:if(oa(t),n=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return qe(t),null}e=G.current,nl(t)?ef(t):(e=Ah(i,a,n),t.stateNode=e,Sn(t))}return qe(t),null;case 5:if(oa(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return qe(t),null}if(o=G.current,nl(t))ef(t);else{var r=Lu(re.current);switch(o){case 1:o=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=r.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?r.createElement(i,{is:a.is}):r.createElement(i)}}o[dt]=t,o[xt]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)o.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=o;e:switch(vt(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Sn(t)}}return qe(t),Vo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Sn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=re.current,nl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=ht,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||gh(e.nodeValue,n)),e||$n(t,!0)}else e=Lu(e).createTextNode(a),e[dt]=t,t.stateNode=e}return qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=nl(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[dt]=t}else ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else n=Is(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[dt]=t}else ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=Is(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ju(t,t.updateQueue),qe(t),null);case 4:return Be(),e===null&&cc(t.stateNode.containerInfo),qe(t),null;case 10:return yn(t.type),qe(t),null;case 19:if(C(Fe),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)oi(a,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=cu(e),o!==null){for(t.flags|=128,oi(a,!1),e=o.updateQueue,t.updateQueue=e,ju(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jr(n,e),n=n.sibling;return V(Fe,Fe.current&1|2),je&&pn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ct()>Ru&&(t.flags|=128,i=!0,oi(a,!1),t.lanes=4194304)}else{if(!i)if(e=cu(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ju(t,e),oi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!je)return qe(t),null}else 2*ct()-a.renderingStartTime>Ru&&n!==536870912&&(t.flags|=128,i=!0,oi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ct(),e.sibling=null,n=Fe.current,V(Fe,i?n&1|2:n&1),je&&pn(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Nt(t),co(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),n=t.updateQueue,n!==null&&ju(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&C(ja),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),yn(et),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Mv(e,t){switch(Ks(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(et),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oa(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(u(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return C(Fe),null;case 4:return Be(),null;case 10:return yn(t.type),null;case 22:case 23:return Nt(t),co(),e!==null&&C(ja),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return yn(et),null;case 25:return null;default:return null}}function Ed(e,t){switch(Ks(t),t.tag){case 3:yn(et),Be();break;case 26:case 27:case 5:oa(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:C(Fe);break;case 10:yn(t.type);break;case 22:case 23:Nt(t),co(),e!==null&&C(ja);break;case 24:yn(et)}}function ci(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,r=n.inst;a=o(),r.destroy=a}n=n.next}while(n!==i)}}catch(h){Ne(t,t.return,h)}}function Jn(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){var r=a.inst,h=r.destroy;if(h!==void 0){r.destroy=void 0,i=t;var b=n,A=h;try{A()}catch(N){Ne(i,b,N)}}}a=a.next}while(a!==o)}}catch(N){Ne(t,t.return,N)}}function Cd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mf(t,n)}catch(a){Ne(e,e.return,a)}}}function Td(e,t,n){n.props=Ra(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function ri(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){Ne(e,t,i)}}function an(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Ne(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ne(e,t,i)}else n.current=null}function _d(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Ne(e,e.return,i)}}function $o(e,t,n){try{var a=e.stateNode;Pv(a,e.type,n,t),a[xt]=t}catch(i){Ne(e,e.return,i)}}function Rd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Yo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&na(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Go(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn));else if(a!==4&&(a===27&&na(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Go(e,t,n),e=e.sibling;e!==null;)Go(e,t,n),e=e.sibling}function Eu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&na(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}function zd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);vt(t,a,n),t[dt]=e,t[xt]=n}catch(o){Ne(e,e.return,o)}}var jn=!1,at=!1,Qo=!1,Ad=typeof WeakSet=="function"?WeakSet:Set,st=null;function Nv(e,t){if(e=e.containerInfo,dc=Gu,e=qr(e),Ls(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var r=0,h=-1,b=-1,A=0,N=0,k=e,w=null;t:for(;;){for(var M;k!==n||i!==0&&k.nodeType!==3||(h=r+i),k!==o||a!==0&&k.nodeType!==3||(b=r+a),k.nodeType===3&&(r+=k.nodeValue.length),(M=k.firstChild)!==null;)w=k,k=M;for(;;){if(k===e)break t;if(w===n&&++A===i&&(h=r),w===o&&++N===a&&(b=r),(M=k.nextSibling)!==null)break;k=w,w=k.parentNode}k=M}n=h===-1||b===-1?null:{start:h,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(hc={focusedElem:e,selectionRange:n},Gu=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var F=Ra(n.type,i);e=a.getSnapshotBeforeUpdate(F,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ne(n,n.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)vc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function wd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(e,n),a&4&&ci(5,n);break;case 1:if(Cn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(r){Ne(n,n.return,r)}else{var i=Ra(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){Ne(n,n.return,r)}}a&64&&Cd(n),a&512&&ri(n,n.return);break;case 3:if(Cn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{mf(e,t)}catch(r){Ne(n,n.return,r)}}break;case 27:t===null&&a&4&&zd(n);case 26:case 5:Cn(e,n),t===null&&a&4&&_d(n),a&512&&ri(n,n.return);break;case 12:Cn(e,n);break;case 31:Cn(e,n),a&4&&Dd(e,n);break;case 13:Cn(e,n),a&4&&Od(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Vv.bind(null,n),sy(e,n))));break;case 22:if(a=n.memoizedState!==null||jn,!a){t=t!==null&&t.memoizedState!==null||at,i=jn;var o=at;jn=a,(at=t)&&!o?Tn(e,n,(n.subtreeFlags&8772)!==0):Cn(e,n),jn=i,at=o}break;case 30:break;default:Cn(e,n)}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,jt=!1;function En(e,t,n){for(n=n.child;n!==null;)Nd(e,t,n),n=n.sibling}function Nd(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(kn,n)}catch{}switch(n.tag){case 26:at||an(n,t),En(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||an(n,t);var a=Ye,i=jt;na(n.type)&&(Ye=n.stateNode,jt=!1),En(e,t,n),bi(n.stateNode),Ye=a,jt=i;break;case 5:at||an(n,t);case 6:if(a=Ye,i=jt,Ye=null,En(e,t,n),Ye=a,jt=i,Ye!==null)if(jt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(n.stateNode)}catch(o){Ne(n,t,o)}else try{Ye.removeChild(n.stateNode)}catch(o){Ne(n,t,o)}break;case 18:Ye!==null&&(jt?(e=Ye,Ch(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),El(e)):Ch(Ye,n.stateNode));break;case 4:a=Ye,i=jt,Ye=n.stateNode.containerInfo,jt=!0,En(e,t,n),Ye=a,jt=i;break;case 0:case 11:case 14:case 15:Jn(2,n,t),at||Jn(4,n,t),En(e,t,n);break;case 1:at||(an(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Td(n,t,a)),En(e,t,n);break;case 21:En(e,t,n);break;case 22:at=(a=at)||n.memoizedState!==null,En(e,t,n),at=a;break;default:En(e,t,n)}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{El(e)}catch(n){Ne(t,t.return,n)}}}function Od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{El(e)}catch(n){Ne(t,t.return,n)}}function Dv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ad),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ad),t;default:throw Error(u(435,e.tag))}}function Cu(e,t){var n=Dv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=$v.bind(null,e,a);a.then(i,i)}})}function Et(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=e,r=t,h=r;e:for(;h!==null;){switch(h.tag){case 27:if(na(h.type)){Ye=h.stateNode,jt=!1;break e}break;case 5:Ye=h.stateNode,jt=!1;break e;case 3:case 4:Ye=h.stateNode.containerInfo,jt=!0;break e}h=h.return}if(Ye===null)throw Error(u(160));Nd(o,r,i),Ye=null,jt=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}var Ft=null;function Ud(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Ct(e),a&4&&(Jn(3,e,e.return),ci(3,e),Jn(5,e,e.return));break;case 1:Et(t,e),Ct(e),a&512&&(at||n===null||an(n,n.return)),a&64&&jn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Ft;if(Et(t,e),Ct(e),a&512&&(at||n===null||an(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Ll]||o[dt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),vt(o,a,n),o[dt]=e,ut(o),a=o;break e;case"link":var r=Uh("link","href",i).get(a+(n.href||""));if(r){for(var h=0;h<r.length;h++)if(o=r[h],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(h,1);break t}}o=i.createElement(a),vt(o,a,n),i.head.appendChild(o);break;case"meta":if(r=Uh("meta","content",i).get(a+(n.content||""))){for(h=0;h<r.length;h++)if(o=r[h],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(h,1);break t}}o=i.createElement(a),vt(o,a,n),i.head.appendChild(o);break;default:throw Error(u(468,a))}o[dt]=e,ut(o),a=o}e.stateNode=a}else kh(i,e.type,e.stateNode);else e.stateNode=Oh(i,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?kh(i,e.type,e.stateNode):Oh(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&$o(e,e.memoizedProps,n.memoizedProps)}break;case 27:Et(t,e),Ct(e),a&512&&(at||n===null||an(n,n.return)),n!==null&&a&4&&$o(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Et(t,e),Ct(e),a&512&&(at||n===null||an(n,n.return)),e.flags&32){i=e.stateNode;try{Xa(i,"")}catch(F){Ne(e,e.return,F)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,$o(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Qo=!0);break;case 6:if(Et(t,e),Ct(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(F){Ne(e,e.return,F)}}break;case 3:if(qu=null,i=Ft,Ft=Bu(t.containerInfo),Et(t,e),Ft=i,Ct(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{El(t.containerInfo)}catch(F){Ne(e,e.return,F)}Qo&&(Qo=!1,kd(e));break;case 4:a=Ft,Ft=Bu(e.stateNode.containerInfo),Et(t,e),Ct(e),Ft=a;break;case 12:Et(t,e),Ct(e);break;case 31:Et(t,e),Ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cu(e,a)));break;case 13:Et(t,e),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_u=ct()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cu(e,a)));break;case 22:i=e.memoizedState!==null;var b=n!==null&&n.memoizedState!==null,A=jn,N=at;if(jn=A||i,at=N||b,Et(t,e),at=N,jn=A,Ct(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||b||jn||at||za(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){b=n=t;try{if(o=b.stateNode,i)r=o.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{h=b.stateNode;var k=b.memoizedProps.style,w=k!=null&&k.hasOwnProperty("display")?k.display:null;h.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(F){Ne(b,b.return,F)}}}else if(t.tag===6){if(n===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(F){Ne(b,b.return,F)}}}else if(t.tag===18){if(n===null){b=t;try{var M=b.stateNode;i?Th(M,!0):Th(b.stateNode,!1)}catch(F){Ne(b,b.return,F)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Cu(e,n))));break;case 19:Et(t,e),Ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cu(e,a)));break;case 30:break;case 21:break;default:Et(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Rd(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var i=n.stateNode,o=Yo(e);Eu(e,o,i);break;case 5:var r=n.stateNode;n.flags&32&&(Xa(r,""),n.flags&=-33);var h=Yo(e);Eu(e,h,r);break;case 3:case 4:var b=n.stateNode.containerInfo,A=Yo(e);Go(e,A,b);break;default:throw Error(u(161))}}catch(N){Ne(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wd(e,t.alternate,t),t=t.sibling}function za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jn(4,t,t.return),za(t);break;case 1:an(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Td(t,t.return,n),za(t);break;case 27:bi(t.stateNode);case 26:case 5:an(t,t.return),za(t);break;case 22:t.memoizedState===null&&za(t);break;case 30:za(t);break;default:za(t)}e=e.sibling}}function Tn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,o=t,r=o.flags;switch(o.tag){case 0:case 11:case 15:Tn(i,o,n),ci(4,o);break;case 1:if(Tn(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(A){Ne(a,a.return,A)}if(a=o,i=a.updateQueue,i!==null){var h=a.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)hf(b[i],h)}catch(A){Ne(a,a.return,A)}}n&&r&64&&Cd(o),ri(o,o.return);break;case 27:zd(o);case 26:case 5:Tn(i,o,n),n&&a===null&&r&4&&_d(o),ri(o,o.return);break;case 12:Tn(i,o,n);break;case 31:Tn(i,o,n),n&&r&4&&Dd(i,o);break;case 13:Tn(i,o,n),n&&r&4&&Od(i,o);break;case 22:o.memoizedState===null&&Tn(i,o,n),ri(o,o.return);break;case 30:break;default:Tn(i,o,n)}t=t.sibling}}function Xo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Il(n))}function Zo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Il(e))}function Pt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ld(e,t,n,a),t=t.sibling}function Ld(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,n,a),i&2048&&ci(9,t);break;case 1:Pt(e,t,n,a);break;case 3:Pt(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Il(e)));break;case 12:if(i&2048){Pt(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,r=o.id,h=o.onPostCommit;typeof h=="function"&&h(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ne(t,t.return,b)}}else Pt(e,t,n,a);break;case 31:Pt(e,t,n,a);break;case 13:Pt(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,t.memoizedState!==null?o._visibility&2?Pt(e,t,n,a):fi(e,t):o._visibility&2?Pt(e,t,n,a):(o._visibility|=2,dl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Xo(r,t);break;case 24:Pt(e,t,n,a),i&2048&&Zo(t.alternate,t);break;default:Pt(e,t,n,a)}}function dl(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,r=t,h=n,b=a,A=r.flags;switch(r.tag){case 0:case 11:case 15:dl(o,r,h,b,i),ci(8,r);break;case 23:break;case 22:var N=r.stateNode;r.memoizedState!==null?N._visibility&2?dl(o,r,h,b,i):fi(o,r):(N._visibility|=2,dl(o,r,h,b,i)),i&&A&2048&&Xo(r.alternate,r);break;case 24:dl(o,r,h,b,i),i&&A&2048&&Zo(r.alternate,r);break;default:dl(o,r,h,b,i)}t=t.sibling}}function fi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:fi(n,a),i&2048&&Xo(a.alternate,a);break;case 24:fi(n,a),i&2048&&Zo(a.alternate,a);break;default:fi(n,a)}t=t.sibling}}var di=8192;function hl(e,t,n){if(e.subtreeFlags&di)for(e=e.child;e!==null;)Bd(e,t,n),e=e.sibling}function Bd(e,t,n){switch(e.tag){case 26:hl(e,t,n),e.flags&di&&e.memoizedState!==null&&by(n,Ft,e.memoizedState,e.memoizedProps);break;case 5:hl(e,t,n);break;case 3:case 4:var a=Ft;Ft=Bu(e.stateNode.containerInfo),hl(e,t,n),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=di,di=16777216,hl(e,t,n),di=a):hl(e,t,n));break;default:hl(e,t,n)}}function Hd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];st=a,Vd(a,e)}Hd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qd(e),e=e.sibling}function qd(e){switch(e.tag){case 0:case 11:case 15:hi(e),e.flags&2048&&Jn(9,e,e.return);break;case 3:hi(e);break;case 12:hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Tu(e)):hi(e);break;default:hi(e)}}function Tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];st=a,Vd(a,e)}Hd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jn(8,t,t.return),Tu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Tu(t));break;default:Tu(t)}e=e.sibling}}function Vd(e,t){for(;st!==null;){var n=st;switch(n.tag){case 0:case 11:case 15:Jn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Il(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,st=a;else e:for(n=e;st!==null;){a=st;var i=a.sibling,o=a.return;if(Md(a),a===n){st=null;break e}if(i!==null){i.return=o,st=i;break e}st=o}}}var Ov={getCacheForType:function(e){var t=mt(et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(et).controller.signal}},Uv=typeof WeakMap=="function"?WeakMap:Map,ze=0,ke=null,ye=null,be=0,Me=0,Dt=null,In=!1,ml=!1,Ko=!1,_n=0,Ie=0,Wn=0,Aa=0,Jo=0,Ot=0,pl=0,mi=null,Tt=null,Io=!1,_u=0,$d=0,Ru=1/0,zu=null,Fn=null,it=0,Pn=null,vl=null,Rn=0,Wo=0,Fo=null,Yd=null,pi=0,Po=null;function Ut(){return(ze&2)!==0&&be!==0?be&-be:T.T!==null?ic():Ln()}function Gd(){if(Ot===0)if((be&536870912)===0||je){var e=La;La<<=1,(La&3932160)===0&&(La=262144),Ot=e}else Ot=536870912;return e=Mt.current,e!==null&&(e.flags|=32),Ot}function _t(e,t,n){(e===ke&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(yl(e,0),ea(e,be,Ot,!1)),da(e,n),((ze&2)===0||e!==ke)&&(e===ke&&((ze&2)===0&&(Aa|=n),Ie===4&&ea(e,be,Ot,!1)),ln(e))}function Qd(e,t,n){if((ze&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||fa(e,t),i=a?Bv(e,t):tc(e,t,!0),o=a;do{if(i===0){ml&&!a&&ea(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!kv(n)){i=tc(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var h=e;i=mi;var b=h.current.memoizedState.isDehydrated;if(b&&(yl(h,r).flags|=256),r=tc(h,r,!1),r!==2){if(Ko&&!b){h.errorRecoveryDisabledLanes|=o,Aa|=o,i=4;break e}o=Tt,Tt=i,o!==null&&(Tt===null?Tt=o:Tt.push.apply(Tt,o))}i=r}if(o=!1,i!==2)continue}}if(i===1){yl(e,0),ea(e,t,0,!0);break}e:{switch(a=e,o=i,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:ea(a,t,Ot,!In);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(i=_u+300-ct(),10<i)){if(ea(a,t,Ot,!In),Ha(a,0,!0)!==0)break e;Rn=t,a.timeoutHandle=jh(Xd.bind(null,a,n,Tt,zu,Io,t,Ot,Aa,pl,In,o,"Throttled",-0,0),i);break e}Xd(a,n,Tt,zu,Io,t,Ot,Aa,pl,In,o,null,-0,0)}}break}while(!0);ln(e)}function Xd(e,t,n,a,i,o,r,h,b,A,N,k,w,M){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},Bd(t,o,k);var F=(o&62914560)===o?_u-ct():(o&4194048)===o?$d-ct():0;if(F=xy(k,F),F!==null){Rn=o,e.cancelPendingCommit=F(eh.bind(null,e,t,o,n,a,i,r,h,b,N,k,null,w,M)),ea(e,o,r,!A);return}}eh(e,t,o,n,a,i,r,h,b)}function kv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!At(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ea(e,t,n,a){t&=~Jo,t&=~Aa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-Xe(i),r=1<<o;a[o]=-1,i&=~r}n!==0&&ce(e,n,t)}function Au(){return(ze&6)===0?(vi(0),!1):!0}function ec(){if(ye!==null){if(Me===0)var e=ye.return;else e=ye,vn=xa=null,vo(e),sl=null,Fl=0,e=ye;for(;e!==null;)Ed(e.alternate,e),e=e.return;ye=null}}function yl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ny(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Rn=0,ec(),ke=e,ye=n=mn(e.current,null),be=t,Me=0,Dt=null,In=!1,ml=fa(e,t),Ko=!1,pl=Ot=Jo=Aa=Wn=Ie=0,Tt=mi=null,Io=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Xe(a),o=1<<i;t|=e[i],a&=~o}return _n=t,Ii(),n}function Zd(e,t){he=null,T.H=ui,t===ul||t===lu?(t=cf(),Me=3):t===ao?(t=cf(),Me=4):Me=t===No?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,ye===null&&(Ie=1,gu(e,Vt(t,e.current)))}function Kd(){var e=Mt.current;return e===null?!0:(be&4194048)===be?Qt===null:(be&62914560)===be||(be&536870912)!==0?e===Qt:!1}function Jd(){var e=T.H;return T.H=ui,e===null?ui:e}function Id(){var e=T.A;return T.A=Ov,e}function wu(){Ie=4,In||(be&4194048)!==be&&Mt.current!==null||(ml=!0),(Wn&134217727)===0&&(Aa&134217727)===0||ke===null||ea(ke,be,Ot,!1)}function tc(e,t,n){var a=ze;ze|=2;var i=Jd(),o=Id();(ke!==e||be!==t)&&(zu=null,yl(e,t)),t=!1;var r=Ie;e:do try{if(Me!==0&&ye!==null){var h=ye,b=Dt;switch(Me){case 8:ec(),r=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var A=Me;if(Me=0,Dt=null,gl(e,h,b,A),n&&ml){r=0;break e}break;default:A=Me,Me=0,Dt=null,gl(e,h,b,A)}}Lv(),r=Ie;break}catch(N){Zd(e,N)}while(!0);return t&&e.shellSuspendCounter++,vn=xa=null,ze=a,T.H=i,T.A=o,ye===null&&(ke=null,be=0,Ii()),r}function Lv(){for(;ye!==null;)Wd(ye)}function Bv(e,t){var n=ze;ze|=2;var a=Jd(),i=Id();ke!==e||be!==t?(zu=null,Ru=ct()+500,yl(e,t)):ml=fa(e,t);e:do try{if(Me!==0&&ye!==null){t=ye;var o=Dt;t:switch(Me){case 1:Me=0,Dt=null,gl(e,t,o,1);break;case 2:case 9:if(sf(o)){Me=0,Dt=null,Fd(t);break}t=function(){Me!==2&&Me!==9||ke!==e||(Me=7),ln(e)},o.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:sf(o)?(Me=0,Dt=null,Fd(t)):(Me=0,Dt=null,gl(e,t,o,7));break;case 5:var r=null;switch(ye.tag){case 26:r=ye.memoizedState;case 5:case 27:var h=ye;if(r?Lh(r):h.stateNode.complete){Me=0,Dt=null;var b=h.sibling;if(b!==null)ye=b;else{var A=h.return;A!==null?(ye=A,Mu(A)):ye=null}break t}}Me=0,Dt=null,gl(e,t,o,5);break;case 6:Me=0,Dt=null,gl(e,t,o,6);break;case 8:ec(),Ie=6;break e;default:throw Error(u(462))}}Hv();break}catch(N){Zd(e,N)}while(!0);return vn=xa=null,T.H=a,T.A=i,ze=n,ye!==null?0:(ke=null,be=0,Ii(),Ie)}function Hv(){for(;ye!==null&&!Nn();)Wd(ye)}function Wd(e){var t=Sd(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?Mu(e):ye=t}function Fd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=pd(n,t,t.pendingProps,t.type,void 0,be);break;case 11:t=pd(n,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:vo(t);default:Ed(n,t),t=ye=Jr(t,_n),t=Sd(n,t,_n)}e.memoizedProps=e.pendingProps,t===null?Mu(e):ye=t}function gl(e,t,n,a){vn=xa=null,vo(t),sl=null,Fl=0;var i=t.return;try{if(Rv(e,i,t,n,be)){Ie=1,gu(e,Vt(n,e.current)),ye=null;return}}catch(o){if(i!==null)throw ye=i,o;Ie=1,gu(e,Vt(n,e.current)),ye=null;return}t.flags&32768?(je||a===1?e=!0:ml||(be&536870912)!==0?e=!1:(In=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Pd(t,e)):Mu(t)}function Mu(e){var t=e;do{if((t.flags&32768)!==0){Pd(t,In);return}e=t.return;var n=wv(t.alternate,t,_n);if(n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Ie===0&&(Ie=5)}function Pd(e,t){do{var n=Mv(e.alternate,e);if(n!==null){n.flags&=32767,ye=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=n}while(e!==null);Ie=6,ye=null}function eh(e,t,n,a,i,o,r,h,b){e.cancelPendingCommit=null;do Nu();while(it!==0);if((ze&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=$s,L(e,n,o,r,h,b),e===ke&&(ye=ke=null,be=0),vl=t,Pn=e,Rn=n,Wo=o,Fo=i,Yd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Yv(On,function(){return ih(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,i=$.p,$.p=2,r=ze,ze|=4;try{Nv(e,t,n)}finally{ze=r,$.p=i,T.T=a}}it=1,th(),nh(),ah()}}function th(){if(it===1){it=0;var e=Pn,t=vl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=T.T,T.T=null;var a=$.p;$.p=2;var i=ze;ze|=4;try{Ud(t,e);var o=hc,r=qr(e.containerInfo),h=o.focusedElem,b=o.selectionRange;if(r!==h&&h&&h.ownerDocument&&Hr(h.ownerDocument.documentElement,h)){if(b!==null&&Ls(h)){var A=b.start,N=b.end;if(N===void 0&&(N=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(N,h.value.length);else{var k=h.ownerDocument||document,w=k&&k.defaultView||window;if(w.getSelection){var M=w.getSelection(),F=h.textContent.length,ie=Math.min(b.start,F),Ue=b.end===void 0?ie:Math.min(b.end,F);!M.extend&&ie>Ue&&(r=Ue,Ue=ie,ie=r);var _=Br(h,ie),j=Br(h,Ue);if(_&&j&&(M.rangeCount!==1||M.anchorNode!==_.node||M.anchorOffset!==_.offset||M.focusNode!==j.node||M.focusOffset!==j.offset)){var z=k.createRange();z.setStart(_.node,_.offset),M.removeAllRanges(),ie>Ue?(M.addRange(z),M.extend(j.node,j.offset)):(z.setEnd(j.node,j.offset),M.addRange(z))}}}}for(k=[],M=h;M=M.parentNode;)M.nodeType===1&&k.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<k.length;h++){var O=k[h];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}Gu=!!dc,hc=dc=null}finally{ze=i,$.p=a,T.T=n}}e.current=t,it=2}}function nh(){if(it===2){it=0;var e=Pn,t=vl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=T.T,T.T=null;var a=$.p;$.p=2;var i=ze;ze|=4;try{wd(e,t.alternate,t)}finally{ze=i,$.p=a,T.T=n}}it=3}}function ah(){if(it===4||it===3){it=0,Dn();var e=Pn,t=vl,n=Rn,a=Yd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?it=5:(it=0,vl=Pn=null,lh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Fn=null),kl(n),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(kn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,i=$.p,$.p=2,T.T=null;try{for(var o=e.onRecoverableError,r=0;r<a.length;r++){var h=a[r];o(h.value,{componentStack:h.stack})}}finally{T.T=t,$.p=i}}(Rn&3)!==0&&Nu(),ln(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Po?pi++:(pi=0,Po=e):pi=0,vi(0)}}function lh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Il(t)))}function Nu(){return th(),nh(),ah(),ih()}function ih(){if(it!==5)return!1;var e=Pn,t=Wo;Wo=0;var n=kl(Rn),a=T.T,i=$.p;try{$.p=32>n?32:n,T.T=null,n=Fo,Fo=null;var o=Pn,r=Rn;if(it=0,vl=Pn=null,Rn=0,(ze&6)!==0)throw Error(u(331));var h=ze;if(ze|=4,qd(o.current),Ld(o,o.current,r,n),ze=h,vi(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(kn,o)}catch{}return!0}finally{$.p=i,T.T=a,lh(e,t)}}function uh(e,t,n){t=Vt(n,t),t=Mo(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(da(e,2),ln(e))}function Ne(e,t,n){if(e.tag===3)uh(e,e,n);else for(;t!==null;){if(t.tag===3){uh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Fn===null||!Fn.has(a))){e=Vt(n,e),n=sd(2),a=Xn(t,n,2),a!==null&&(od(n,a,t,e),da(a,2),ln(a));break}}t=t.return}}function nc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Uv;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Ko=!0,i.add(n),e=qv.bind(null,e,t,n),t.then(e,e))}function qv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ke===e&&(be&n)===n&&(Ie===4||Ie===3&&(be&62914560)===be&&300>ct()-_u?(ze&2)===0&&yl(e,0):Jo|=n,pl===be&&(pl=0)),ln(e)}function sh(e,t){t===0&&(t=Bi()),e=ya(e,t),e!==null&&(da(e,t),ln(e))}function Vv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sh(e,n)}function $v(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),sh(e,n)}function Yv(e,t){return It(e,t)}var Du=null,bl=null,ac=!1,Ou=!1,lc=!1,ta=0;function ln(e){e!==bl&&e.next===null&&(bl===null?Du=bl=e:bl=bl.next=e),Ou=!0,ac||(ac=!0,Qv())}function vi(e,t){if(!lc&&Ou){lc=!0;do for(var n=!1,a=Du;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var r=a.suspendedLanes,h=a.pingedLanes;o=(1<<31-Xe(42|e)+1)-1,o&=i&~(r&~h),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,fh(a,o))}else o=be,o=Ha(a,a===ke?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||fa(a,o)||(n=!0,fh(a,o));a=a.next}while(n);lc=!1}}function Gv(){oh()}function oh(){Ou=ac=!1;var e=0;ta!==0&&ty()&&(e=ta);for(var t=ct(),n=null,a=Du;a!==null;){var i=a.next,o=ch(a,t);o===0?(a.next=null,n===null?Du=i:n.next=i,i===null&&(bl=n)):(n=a,(e!==0||(o&3)!==0)&&(Ou=!0)),a=i}it!==0&&it!==5||vi(e),ta!==0&&(ta=0)}function ch(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var r=31-Xe(o),h=1<<r,b=i[r];b===-1?((h&n)===0||(h&a)!==0)&&(i[r]=gs(h,t)):b<=t&&(e.expiredLanes|=h),o&=~h}if(t=ke,n=be,n=Ha(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ae(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||fa(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Ae(a),kl(n)){case 2:case 8:n=Ua;break;case 32:n=On;break;case 268435456:n=Un;break;default:n=On}return a=rh.bind(null,e),n=It(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Ae(a),e.callbackPriority=2,e.callbackNode=null,2}function rh(e,t){if(it!==0&&it!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Nu()&&e.callbackNode!==n)return null;var a=be;return a=Ha(e,e===ke?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Qd(e,a,t),ch(e,ct()),e.callbackNode!=null&&e.callbackNode===n?rh.bind(null,e):null)}function fh(e,t){if(Nu())return null;Qd(e,t,!0)}function Qv(){ay(function(){(ze&6)!==0?It(Oa,Gv):oh()})}function ic(){if(ta===0){var e=ll;e===0&&(e=ka,ka<<=1,(ka&261888)===0&&(ka=256)),ta=e}return ta}function dh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$i(""+e)}function hh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Xv(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var o=dh((i[xt]||null).action),r=a.submitter;r&&(t=(t=r[xt]||null)?dh(t.formAction):r.getAttribute("formAction"),t!==null&&(o=t,r=null));var h=new Xi("action","action",null,a,i);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ta!==0){var b=r?hh(i,r):new FormData(i);To(n,{pending:!0,data:b,method:i.method,action:o},null,b)}}else typeof o=="function"&&(h.preventDefault(),b=r?hh(i,r):new FormData(i),To(n,{pending:!0,data:b,method:i.method,action:o},o,b))},currentTarget:i}]})}}for(var uc=0;uc<Vs.length;uc++){var sc=Vs[uc],Zv=sc.toLowerCase(),Kv=sc[0].toUpperCase()+sc.slice(1);Wt(Zv,"on"+Kv)}Wt(Yr,"onAnimationEnd"),Wt(Gr,"onAnimationIteration"),Wt(Qr,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(rv,"onTransitionRun"),Wt(fv,"onTransitionStart"),Wt(dv,"onTransitionCancel"),Wt(Xr,"onTransitionEnd"),Ga("onMouseEnter",["mouseout","mouseover"]),Ga("onMouseLeave",["mouseout","mouseover"]),Ga("onPointerEnter",["pointerout","pointerover"]),Ga("onPointerLeave",["pointerout","pointerover"]),ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ha("onBeforeInput",["compositionend","keypress","textInput","paste"]),ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yi));function mh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var r=a.length-1;0<=r;r--){var h=a[r],b=h.instance,A=h.currentTarget;if(h=h.listener,b!==o&&i.isPropagationStopped())break e;o=h,i.currentTarget=A;try{o(i)}catch(N){Ji(N)}i.currentTarget=null,o=b}else for(r=0;r<a.length;r++){if(h=a[r],b=h.instance,A=h.currentTarget,h=h.listener,b!==o&&i.isPropagationStopped())break e;o=h,i.currentTarget=A;try{o(i)}catch(N){Ji(N)}i.currentTarget=null,o=b}}}}function ge(e,t){var n=t[bs];n===void 0&&(n=t[bs]=new Set);var a=e+"__bubble";n.has(a)||(ph(t,e,2,!1),n.add(a))}function oc(e,t,n){var a=0;t&&(a|=4),ph(n,e,a,t)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function cc(e){if(!e[Uu]){e[Uu]=!0,sr.forEach(function(n){n!=="selectionchange"&&(Jv.has(n)||oc(n,!1,e),oc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uu]||(t[Uu]=!0,oc("selectionchange",!1,t))}}function ph(e,t,n,a){switch(Gh(t)){case 2:var i=Ey;break;case 8:i=Cy;break;default:i=Cc}n=i.bind(null,t,n,e),i=void 0,!zs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function rc(e,t,n,a,i){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var h=a.stateNode.containerInfo;if(h===i)break;if(r===4)for(r=a.return;r!==null;){var b=r.tag;if((b===3||b===4)&&r.stateNode.containerInfo===i)return;r=r.return}for(;h!==null;){if(r=Va(h),r===null)return;if(b=r.tag,b===5||b===6||b===26||b===27){a=o=r;continue e}h=h.parentNode}}a=a.return}br(function(){var A=o,N=_s(n),k=[];e:{var w=Zr.get(e);if(w!==void 0){var M=Xi,F=e;switch(e){case"keypress":if(Gi(n)===0)break e;case"keydown":case"keyup":M=$p;break;case"focusin":F="focus",M=Ns;break;case"focusout":F="blur",M=Ns;break;case"beforeblur":case"afterblur":M=Ns;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=wp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Qp;break;case Yr:case Gr:case Qr:M=Dp;break;case Xr:M=Zp;break;case"scroll":case"scrollend":M=zp;break;case"wheel":M=Jp;break;case"copy":case"cut":case"paste":M=Up;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Cr;break;case"toggle":case"beforetoggle":M=Wp}var ie=(t&4)!==0,Ue=!ie&&(e==="scroll"||e==="scrollend"),_=ie?w!==null?w+"Capture":null:w;ie=[];for(var j=A,z;j!==null;){var O=j;if(z=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||z===null||_===null||(O=Hl(j,_),O!=null&&ie.push(gi(j,O,z))),Ue)break;j=j.return}0<ie.length&&(w=new M(w,F,null,n,N),k.push({event:w,listeners:ie}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",w&&n!==Ts&&(F=n.relatedTarget||n.fromElement)&&(Va(F)||F[qa]))break e;if((M||w)&&(w=N.window===N?N:(w=N.ownerDocument)?w.defaultView||w.parentWindow:window,M?(F=n.relatedTarget||n.toElement,M=A,F=F?Va(F):null,F!==null&&(Ue=m(F),ie=F.tag,F!==Ue||ie!==5&&ie!==27&&ie!==6)&&(F=null)):(M=null,F=A),M!==F)){if(ie=jr,O="onMouseLeave",_="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Cr,O="onPointerLeave",_="onPointerEnter",j="pointer"),Ue=M==null?w:Bl(M),z=F==null?w:Bl(F),w=new ie(O,j+"leave",M,n,N),w.target=Ue,w.relatedTarget=z,O=null,Va(N)===A&&(ie=new ie(_,j+"enter",F,n,N),ie.target=z,ie.relatedTarget=Ue,O=ie),Ue=O,M&&F)t:{for(ie=Iv,_=M,j=F,z=0,O=_;O;O=ie(O))z++;O=0;for(var le=j;le;le=ie(le))O++;for(;0<z-O;)_=ie(_),z--;for(;0<O-z;)j=ie(j),O--;for(;z--;){if(_===j||j!==null&&_===j.alternate){ie=_;break t}_=ie(_),j=ie(j)}ie=null}else ie=null;M!==null&&vh(k,w,M,ie,!1),F!==null&&Ue!==null&&vh(k,Ue,F,ie,!0)}}e:{if(w=A?Bl(A):window,M=w.nodeName&&w.nodeName.toLowerCase(),M==="select"||M==="input"&&w.type==="file")var Te=Nr;else if(wr(w))if(Dr)Te=sv;else{Te=iv;var P=lv}else M=w.nodeName,!M||M.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?A&&Cs(A.elementType)&&(Te=Nr):Te=uv;if(Te&&(Te=Te(e,A))){Mr(k,Te,n,N);break e}P&&P(e,w,A),e==="focusout"&&A&&w.type==="number"&&A.memoizedProps.value!=null&&Es(w,"number",w.value)}switch(P=A?Bl(A):window,e){case"focusin":(wr(P)||P.contentEditable==="true")&&(Ia=P,Bs=A,Zl=null);break;case"focusout":Zl=Bs=Ia=null;break;case"mousedown":Hs=!0;break;case"contextmenu":case"mouseup":case"dragend":Hs=!1,Vr(k,n,N);break;case"selectionchange":if(cv)break;case"keydown":case"keyup":Vr(k,n,N)}var pe;if(Os)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Ja?zr(e,n)&&(xe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(xe="onCompositionStart");xe&&(Tr&&n.locale!=="ko"&&(Ja||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Ja&&(pe=xr()):(Hn=N,As="value"in Hn?Hn.value:Hn.textContent,Ja=!0)),P=ku(A,xe),0<P.length&&(xe=new Er(xe,e,null,n,N),k.push({event:xe,listeners:P}),pe?xe.data=pe:(pe=Ar(n),pe!==null&&(xe.data=pe)))),(pe=Pp?ev(e,n):tv(e,n))&&(xe=ku(A,"onBeforeInput"),0<xe.length&&(P=new Er("onBeforeInput","beforeinput",null,n,N),k.push({event:P,listeners:xe}),P.data=pe)),Xv(k,e,A,n,N)}mh(k,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ku(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Hl(e,n),i!=null&&a.unshift(gi(e,i,o)),i=Hl(e,t),i!=null&&a.push(gi(e,i,o))),e.tag===3)return a;e=e.return}return[]}function Iv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vh(e,t,n,a,i){for(var o=t._reactName,r=[];n!==null&&n!==a;){var h=n,b=h.alternate,A=h.stateNode;if(h=h.tag,b!==null&&b===a)break;h!==5&&h!==26&&h!==27||A===null||(b=A,i?(A=Hl(n,o),A!=null&&r.unshift(gi(n,A,b))):i||(A=Hl(n,o),A!=null&&r.push(gi(n,A,b)))),n=n.return}r.length!==0&&e.push({event:t,listeners:r})}var Wv=/\r\n?/g,Fv=/\u0000|\uFFFD/g;function yh(e){return(typeof e=="string"?e:""+e).replace(Wv,`
`).replace(Fv,"")}function gh(e,t){return t=yh(t),yh(e)===t}function Oe(e,t,n,a,i,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Xa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Xa(e,""+a);break;case"className":qi(e,"class",a);break;case"tabIndex":qi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":qi(e,n,a);break;case"style":yr(e,a,o);break;case"data":if(t!=="object"){qi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=$i(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Oe(e,t,"name",i.name,i,null),Oe(e,t,"formEncType",i.formEncType,i,null),Oe(e,t,"formMethod",i.formMethod,i,null),Oe(e,t,"formTarget",i.formTarget,i,null)):(Oe(e,t,"encType",i.encType,i,null),Oe(e,t,"method",i.method,i,null),Oe(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=$i(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=dn);break;case"onScroll":a!=null&&ge("scroll",e);break;case"onScrollEnd":a!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=$i(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ge("beforetoggle",e),ge("toggle",e),Hi(e,"popover",a);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Hi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=_p.get(n)||n,Hi(e,n,a))}}function fc(e,t,n,a,i,o){switch(n){case"style":yr(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Xa(e,a):(typeof a=="number"||typeof a=="bigint")&&Xa(e,""+a);break;case"onScroll":a!=null&&ge("scroll",e);break;case"onScrollEnd":a!=null&&ge("scrollend",e);break;case"onClick":a!=null&&(e.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!or.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[xt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Hi(e,n,a)}}}function vt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var r=n[o];if(r!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Oe(e,t,o,r,n,null)}}i&&Oe(e,t,"srcSet",n.srcSet,n,null),a&&Oe(e,t,"src",n.src,n,null);return;case"input":ge("invalid",e);var h=o=r=i=null,b=null,A=null;for(a in n)if(n.hasOwnProperty(a)){var N=n[a];if(N!=null)switch(a){case"name":i=N;break;case"type":r=N;break;case"checked":b=N;break;case"defaultChecked":A=N;break;case"value":o=N;break;case"defaultValue":h=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,t));break;default:Oe(e,t,a,N,n,null)}}hr(e,o,h,b,A,r,i,!1);return;case"select":ge("invalid",e),a=r=o=null;for(i in n)if(n.hasOwnProperty(i)&&(h=n[i],h!=null))switch(i){case"value":o=h;break;case"defaultValue":r=h;break;case"multiple":a=h;default:Oe(e,t,i,h,n,null)}t=o,n=r,e.multiple=!!a,t!=null?Qa(e,!!a,t,!1):n!=null&&Qa(e,!!a,n,!0);return;case"textarea":ge("invalid",e),o=i=a=null;for(r in n)if(n.hasOwnProperty(r)&&(h=n[r],h!=null))switch(r){case"value":a=h;break;case"defaultValue":i=h;break;case"children":o=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(u(91));break;default:Oe(e,t,r,h,n,null)}pr(e,a,i,o);return;case"option":for(b in n)if(n.hasOwnProperty(b)&&(a=n[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,b,a,n,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(a=0;a<yi.length;a++)ge(yi[a],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in n)if(n.hasOwnProperty(A)&&(a=n[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Oe(e,t,A,a,n,null)}return;default:if(Cs(t)){for(N in n)n.hasOwnProperty(N)&&(a=n[N],a!==void 0&&fc(e,t,N,a,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(a=n[h],a!=null&&Oe(e,t,h,a,n,null))}function Pv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,r=null,h=null,b=null,A=null,N=null;for(M in n){var k=n[M];if(n.hasOwnProperty(M)&&k!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":b=k;default:a.hasOwnProperty(M)||Oe(e,t,M,null,a,k)}}for(var w in a){var M=a[w];if(k=n[w],a.hasOwnProperty(w)&&(M!=null||k!=null))switch(w){case"type":o=M;break;case"name":i=M;break;case"checked":A=M;break;case"defaultChecked":N=M;break;case"value":r=M;break;case"defaultValue":h=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(u(137,t));break;default:M!==k&&Oe(e,t,w,M,a,k)}}js(e,r,h,b,A,N,o,i);return;case"select":M=r=h=w=null;for(o in n)if(b=n[o],n.hasOwnProperty(o)&&b!=null)switch(o){case"value":break;case"multiple":M=b;default:a.hasOwnProperty(o)||Oe(e,t,o,null,a,b)}for(i in a)if(o=a[i],b=n[i],a.hasOwnProperty(i)&&(o!=null||b!=null))switch(i){case"value":w=o;break;case"defaultValue":h=o;break;case"multiple":r=o;default:o!==b&&Oe(e,t,i,o,a,b)}t=h,n=r,a=M,w!=null?Qa(e,!!n,w,!1):!!a!=!!n&&(t!=null?Qa(e,!!n,t,!0):Qa(e,!!n,n?[]:"",!1));return;case"textarea":M=w=null;for(h in n)if(i=n[h],n.hasOwnProperty(h)&&i!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Oe(e,t,h,null,a,i)}for(r in a)if(i=a[r],o=n[r],a.hasOwnProperty(r)&&(i!=null||o!=null))switch(r){case"value":w=i;break;case"defaultValue":M=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(u(91));break;default:i!==o&&Oe(e,t,r,i,a,o)}mr(e,w,M);return;case"option":for(var F in n)if(w=n[F],n.hasOwnProperty(F)&&w!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Oe(e,t,F,null,a,w)}for(b in a)if(w=a[b],M=n[b],a.hasOwnProperty(b)&&w!==M&&(w!=null||M!=null))switch(b){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Oe(e,t,b,w,a,M)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in n)w=n[ie],n.hasOwnProperty(ie)&&w!=null&&!a.hasOwnProperty(ie)&&Oe(e,t,ie,null,a,w);for(A in a)if(w=a[A],M=n[A],a.hasOwnProperty(A)&&w!==M&&(w!=null||M!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(u(137,t));break;default:Oe(e,t,A,w,a,M)}return;default:if(Cs(t)){for(var Ue in n)w=n[Ue],n.hasOwnProperty(Ue)&&w!==void 0&&!a.hasOwnProperty(Ue)&&fc(e,t,Ue,void 0,a,w);for(N in a)w=a[N],M=n[N],!a.hasOwnProperty(N)||w===M||w===void 0&&M===void 0||fc(e,t,N,w,a,M);return}}for(var _ in n)w=n[_],n.hasOwnProperty(_)&&w!=null&&!a.hasOwnProperty(_)&&Oe(e,t,_,null,a,w);for(k in a)w=a[k],M=n[k],!a.hasOwnProperty(k)||w===M||w==null&&M==null||Oe(e,t,k,w,a,M)}function bh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ey(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,r=i.initiatorType,h=i.duration;if(o&&h&&bh(r)){for(r=0,h=i.responseEnd,a+=1;a<n.length;a++){var b=n[a],A=b.startTime;if(A>h)break;var N=b.transferSize,k=b.initiatorType;N&&bh(k)&&(b=b.responseEnd,r+=N*(b<h?1:(h-A)/(b-A)))}if(--a,t+=8*(o+r)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var dc=null,hc=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function xh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function mc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pc=null;function ty(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var jh=typeof setTimeout=="function"?setTimeout:void 0,ny=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,ay=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(e){return Eh.resolve(null).then(e).catch(ly)}:jh;function ly(e){setTimeout(function(){throw e})}function na(e){return e==="head"}function Ch(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),El(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")bi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,bi(n);for(var o=n.firstChild;o;){var r=o.nextSibling,h=o.nodeName;o[Ll]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=r}}else n==="body"&&bi(e.ownerDocument.body);n=i}while(n);El(t)}function Th(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function vc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vc(n),xs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iy(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ll])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function uy(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xt(e.nextSibling),e===null))return null;return e}function _h(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function yc(e){return e.data==="$?"||e.data==="$~"}function gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sy(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bc=null;function Rh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Ah(e,t,n){switch(t=Lu(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function bi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xs(e)}var Zt=new Map,wh=new Set;function Bu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zn=$.d;$.d={f:oy,r:cy,D:ry,C:fy,L:dy,m:hy,X:py,S:my,M:vy};function oy(){var e=zn.f(),t=Au();return e||t}function cy(e){var t=$a(e);t!==null&&t.tag===5&&t.type==="form"?Zf(t):zn.r(e)}var xl=typeof document>"u"?null:document;function Mh(e,t,n){var a=xl;if(a&&typeof t=="string"&&t){var i=Ht(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),wh.has(i)||(wh.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),vt(t,"link",e),ut(t),a.head.appendChild(t)))}}function ry(e){zn.D(e),Mh("dns-prefetch",e,null)}function fy(e,t){zn.C(e,t),Mh("preconnect",e,t)}function dy(e,t,n){zn.L(e,t,n);var a=xl;if(a&&e&&t){var i='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ht(n.imageSizes)+'"]')):i+='[href="'+Ht(e)+'"]';var o=i;switch(t){case"style":o=Sl(e);break;case"script":o=jl(e)}Zt.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zt.set(o,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(xi(o))||t==="script"&&a.querySelector(Si(o))||(t=a.createElement("link"),vt(t,"link",e),ut(t),a.head.appendChild(t)))}}function hy(e,t){zn.m(e,t);var n=xl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ht(a)+'"][href="'+Ht(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=jl(e)}if(!Zt.has(o)&&(e=S({rel:"modulepreload",href:e},t),Zt.set(o,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Si(o)))return}a=n.createElement("link"),vt(a,"link",e),ut(a),n.head.appendChild(a)}}}function my(e,t,n){zn.S(e,t,n);var a=xl;if(a&&e){var i=Ya(a).hoistableStyles,o=Sl(e);t=t||"default";var r=i.get(o);if(!r){var h={loading:0,preload:null};if(r=a.querySelector(xi(o)))h.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zt.get(o))&&xc(e,n);var b=r=a.createElement("link");ut(b),vt(b,"link",e),b._p=new Promise(function(A,N){b.onload=A,b.onerror=N}),b.addEventListener("load",function(){h.loading|=1}),b.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Hu(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:h},i.set(o,r)}}}function py(e,t){zn.X(e,t);var n=xl;if(n&&e){var a=Ya(n).hoistableScripts,i=jl(e),o=a.get(i);o||(o=n.querySelector(Si(i)),o||(e=S({src:e,async:!0},t),(t=Zt.get(i))&&Sc(e,t),o=n.createElement("script"),ut(o),vt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function vy(e,t){zn.M(e,t);var n=xl;if(n&&e){var a=Ya(n).hoistableScripts,i=jl(e),o=a.get(i);o||(o=n.querySelector(Si(i)),o||(e=S({src:e,async:!0,type:"module"},t),(t=Zt.get(i))&&Sc(e,t),o=n.createElement("script"),ut(o),vt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Nh(e,t,n,a){var i=(i=re.current)?Bu(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Sl(n.href),n=Ya(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Sl(n.href);var o=Ya(i).hoistableStyles,r=o.get(e);if(r||(i=i.ownerDocument||i,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,r),(o=i.querySelector(xi(e)))&&!o._p&&(r.instance=o,r.state.loading=5),Zt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zt.set(e,n),o||yy(i,e,n,r.state))),t&&a===null)throw Error(u(528,""));return r}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=jl(n),n=Ya(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sl(e){return'href="'+Ht(e)+'"'}function xi(e){return'link[rel="stylesheet"]['+e+"]"}function Dh(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function yy(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),vt(t,"link",n),ut(t),e.head.appendChild(t))}function jl(e){return'[src="'+Ht(e)+'"]'}function Si(e){return"script[async]"+e}function Oh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(a)return t.instance=a,ut(a),a;var i=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ut(a),vt(a,"style",i),Hu(a,n.precedence,e),t.instance=a;case"stylesheet":i=Sl(n.href);var o=e.querySelector(xi(i));if(o)return t.state.loading|=4,t.instance=o,ut(o),o;a=Dh(n),(i=Zt.get(i))&&xc(a,i),o=(e.ownerDocument||e).createElement("link"),ut(o);var r=o;return r._p=new Promise(function(h,b){r.onload=h,r.onerror=b}),vt(o,"link",a),t.state.loading|=4,Hu(o,n.precedence,e),t.instance=o;case"script":return o=jl(n.src),(i=e.querySelector(Si(o)))?(t.instance=i,ut(i),i):(a=n,(i=Zt.get(o))&&(a=S({},n),Sc(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),ut(i),vt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Hu(a,n.precedence,e));return t.instance}function Hu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,r=0;r<a.length;r++){var h=a[r];if(h.dataset.precedence===t)o=h;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qu=null;function Uh(e,t,n){if(qu===null){var a=new Map,i=qu=new Map;i.set(n,a)}else i=qu,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Ll]||o[dt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var r=o.getAttribute(t)||"";r=e+r;var h=a.get(r);h?h.push(o):a.set(r,[o])}}return a}function kh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function gy(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function by(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Sl(a.href),o=t.querySelector(xi(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,ut(o);return}o=t.ownerDocument||t,a=Dh(a),(i=Zt.get(i))&&xc(a,i),o=o.createElement("link"),ut(o);var r=o;r._p=new Promise(function(h,b){r.onload=h,r.onerror=b}),vt(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Vu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var jc=0;function xy(e,t){return e.stylesheets&&e.count===0&&Yu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&jc===0&&(jc=62500*ey());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>jc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $u=null;function Yu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(Sy,e),$u=null,Vu.call(e))}function Sy(e,t){if(!(t.state.loading&4)){var n=$u.get(e);if(n)var a=n.get(null);else{n=new Map,$u.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var r=i[o];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),a=r)}a&&n.set(null,a)}i=t.instance,r=i.getAttribute("data-precedence"),o=n.get(r)||a,o===a&&n.set(null,i),n.set(r,i),this.count++,a=Vu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ji={$$typeof:X,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function jy(e,t,n,a,i,o,r,h,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ul(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ul(0),this.hiddenUpdates=Ul(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Bh(e,t,n,a,i,o,r,h,b,A,N,k){return e=new jy(e,t,n,r,b,A,N,k,h),t=1,o===!0&&(t|=24),o=wt(3,null,null,t),e.current=o,o.stateNode=e,t=eo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},lo(o),e}function Hh(e){return e?(e=Pa,e):Pa}function qh(e,t,n,a,i,o){i=Hh(i),a.context===null?a.context=i:a.pendingContext=i,a=Qn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Xn(e,a,t),n!==null&&(_t(n,e,t),ei(n,e,t))}function Vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ec(e,t){Vh(e,t),(e=e.alternate)&&Vh(e,t)}function $h(e){if(e.tag===13||e.tag===31){var t=ya(e,67108864);t!==null&&_t(t,e,67108864),Ec(e,67108864)}}function Yh(e){if(e.tag===13||e.tag===31){var t=Ut();t=zt(t);var n=ya(e,t);n!==null&&_t(n,e,t),Ec(e,t)}}var Gu=!0;function Ey(e,t,n,a){var i=T.T;T.T=null;var o=$.p;try{$.p=2,Cc(e,t,n,a)}finally{$.p=o,T.T=i}}function Cy(e,t,n,a){var i=T.T;T.T=null;var o=$.p;try{$.p=8,Cc(e,t,n,a)}finally{$.p=o,T.T=i}}function Cc(e,t,n,a){if(Gu){var i=Tc(a);if(i===null)rc(e,t,a,Qu,n),Qh(e,a);else if(_y(i,e,t,n,a))a.stopPropagation();else if(Qh(e,a),t&4&&-1<Ty.indexOf(e)){for(;i!==null;){var o=$a(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var r=cn(o.pendingLanes);if(r!==0){var h=o;for(h.pendingLanes|=2,h.entangledLanes|=2;r;){var b=1<<31-Xe(r);h.entanglements[1]|=b,r&=~b}ln(o),(ze&6)===0&&(Ru=ct()+500,vi(0))}}break;case 31:case 13:h=ya(o,2),h!==null&&_t(h,o,2),Au(),Ec(o,2)}if(o=Tc(a),o===null&&rc(e,t,a,Qu,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else rc(e,t,a,null,n)}}function Tc(e){return e=_s(e),_c(e)}var Qu=null;function _c(e){if(Qu=null,e=Va(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=v(t),e!==null)return e;e=null}else if(n===31){if(e=x(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qu=e,null}function Gh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ra()){case Oa:return 2;case Ua:return 8;case On:case Ol:return 32;case Un:return 268435456;default:return 32}default:return 32}}var Rc=!1,aa=null,la=null,ia=null,Ei=new Map,Ci=new Map,ua=[],Ty="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Qh(e,t){switch(e){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":la=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ci.delete(t.pointerId)}}function Ti(e,t,n,a,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},t!==null&&(t=$a(t),t!==null&&$h(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _y(e,t,n,a,i){switch(t){case"focusin":return aa=Ti(aa,e,t,n,a,i),!0;case"dragenter":return la=Ti(la,e,t,n,a,i),!0;case"mouseover":return ia=Ti(ia,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Ei.set(o,Ti(Ei.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Ci.set(o,Ti(Ci.get(o)||null,e,t,n,a,i)),!0}return!1}function Xh(e){var t=Va(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=v(n),t!==null){e.blockedOn=t,ir(e.priority,function(){Yh(n)});return}}else if(t===31){if(t=x(n),t!==null){e.blockedOn=t,ir(e.priority,function(){Yh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ts=a,n.target.dispatchEvent(a),Ts=null}else return t=$a(n),t!==null&&$h(t),e.blockedOn=n,!1;t.shift()}return!0}function Zh(e,t,n){Xu(e)&&n.delete(t)}function Ry(){Rc=!1,aa!==null&&Xu(aa)&&(aa=null),la!==null&&Xu(la)&&(la=null),ia!==null&&Xu(ia)&&(ia=null),Ei.forEach(Zh),Ci.forEach(Zh)}function Zu(e,t){e.blockedOn===t&&(e.blockedOn=null,Rc||(Rc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Ry)))}var Ku=null;function Kh(e){Ku!==e&&(Ku=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ku===e&&(Ku=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(_c(a||n)===null)continue;break}var o=$a(n);o!==null&&(e.splice(t,3),t-=3,To(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function El(e){function t(b){return Zu(b,e)}aa!==null&&Zu(aa,e),la!==null&&Zu(la,e),ia!==null&&Zu(ia,e),Ei.forEach(t),Ci.forEach(t);for(var n=0;n<ua.length;n++){var a=ua[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ua.length&&(n=ua[0],n.blockedOn===null);)Xh(n),n.blockedOn===null&&ua.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],r=i[xt]||null;if(typeof o=="function")r||Kh(n);else if(r){var h=null;if(o&&o.hasAttribute("formAction")){if(i=o,r=o[xt]||null)h=r.formAction;else if(_c(i)!==null)continue}else h=r.action;typeof h=="function"?n[a+1]=h:(n.splice(a,3),a-=3),Kh(n)}}}function Jh(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(r){return i=r})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function zc(e){this._internalRoot=e}Ju.prototype.render=zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=Ut();qh(n,a,e,t,null,null)},Ju.prototype.unmount=zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qh(e.current,2,null,e,null,null),Au(),t[qa]=null}};function Ju(e){this._internalRoot=e}Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ln();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ua.length&&t!==0&&t<ua[n].priority;n++);ua.splice(n,0,e),n===0&&Xh(e)}};var Ih=s.version;if(Ih!=="19.2.4")throw Error(u(527,Ih,"19.2.4"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=y(t),e=e!==null?R(e):null,e=e===null?null:e.stateNode,e};var zy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Iu.isDisabled&&Iu.supportsFiber)try{kn=Iu.inject(zy),rt=Iu}catch{}}return Ri.createRoot=function(e,t){if(!d(e))throw Error(u(299));var n=!1,a="",i=ad,o=ld,r=id;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Bh(e,1,!1,null,null,n,a,null,i,o,r,Jh),e[qa]=t.current,cc(e),new zc(t)},Ri.hydrateRoot=function(e,t,n){if(!d(e))throw Error(u(299));var a=!1,i="",o=ad,r=ld,h=id,b=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(b=n.formState)),t=Bh(e,1,!0,t,n??null,a,i,b,o,r,h,Jh),t.context=Hh(null),n=t.current,a=Ut(),a=zt(a),i=Qn(a),i.callback=null,Xn(n,i,a),n=a,t.current.lanes=n,da(t,n),ln(t),e[qa]=t.current,cc(e),new Ju(t)},Ri.version="19.2.4",Ri}var um;function By(){if(um)return Mc.exports;um=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Mc.exports=Ly(),Mc.exports}var Hy=By();const qy="modulepreload",Vy=function(l){return"/dashboard/"+l},sm={},ae=function(s,f,u){let d=Promise.resolve();if(f&&f.length>0){let v=function(y){return Promise.all(y.map(R=>Promise.resolve(R).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),g=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));d=v(f.map(y=>{if(y=Vy(y),y in sm)return;sm[y]=!0;const R=y.endsWith(".css"),S=R?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${S}`))return;const D=document.createElement("link");if(D.rel=R?"stylesheet":qy,R||(D.as="script"),D.crossOrigin="",D.href=y,g&&D.setAttribute("nonce",g),document.head.appendChild(D),R)return new Promise((Y,U)=>{D.addEventListener("load",Y),D.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${y}`)))})}))}function m(v){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=v,window.dispatchEvent(x),!x.defaultPrevented)throw v}return d.then(v=>{for(const x of v||[])x.status==="rejected"&&m(x.reason);return s().catch(m)})};/**
 * react-router v7.13.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var om="popstate";function cm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function $y(l={}){function s(u,d){var y;let m=(y=d.state)==null?void 0:y.masked,{pathname:v,search:x,hash:g}=m||u.location;return Gc("",{pathname:v,search:x,hash:g},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function f(u,d){return typeof d=="string"?d:Mi(d)}return Gy(s,f,null,l)}function Ge(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function Kt(l,s){if(!l){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Yy(){return Math.random().toString(36).substring(2,10)}function rm(l,s){return{usr:l.state,key:l.key,idx:s,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Gc(l,s,f=null,u,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof s=="string"?zl(s):s,state:f,key:s&&s.key||u||Yy(),unstable_mask:d}}function Mi({pathname:l="/",search:s="",hash:f=""}){return s&&s!=="?"&&(l+=s.charAt(0)==="?"?s:"?"+s),f&&f!=="#"&&(l+=f.charAt(0)==="#"?f:"#"+f),l}function zl(l){let s={};if(l){let f=l.indexOf("#");f>=0&&(s.hash=l.substring(f),l=l.substring(0,f));let u=l.indexOf("?");u>=0&&(s.search=l.substring(u),l=l.substring(0,u)),l&&(s.pathname=l)}return s}function Gy(l,s,f,u={}){let{window:d=document.defaultView,v5Compat:m=!1}=u,v=d.history,x="POP",g=null,y=R();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function R(){return(v.state||{idx:null}).idx}function S(){x="POP";let B=R(),q=B==null?null:B-y;y=B,g&&g({action:x,location:Q.location,delta:q})}function D(B,q){x="PUSH";let H=cm(B)?B:Gc(Q.location,B,q);y=R()+1;let X=rm(H,y),ee=Q.createHref(H.unstable_mask||H);try{v.pushState(X,"",ee)}catch(ue){if(ue instanceof DOMException&&ue.name==="DataCloneError")throw ue;d.location.assign(ee)}m&&g&&g({action:x,location:Q.location,delta:1})}function Y(B,q){x="REPLACE";let H=cm(B)?B:Gc(Q.location,B,q);y=R();let X=rm(H,y),ee=Q.createHref(H.unstable_mask||H);v.replaceState(X,"",ee),m&&g&&g({action:x,location:Q.location,delta:0})}function U(B){return Qy(B)}let Q={get action(){return x},get location(){return l(d,v)},listen(B){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(om,S),g=B,()=>{d.removeEventListener(om,S),g=null}},createHref(B){return s(d,B)},createURL:U,encodeLocation(B){let q=U(B);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:D,replace:Y,go(B){return v.go(B)}};return Q}function Qy(l,s=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Ge(f,"No window.location.(origin|href) available to create URL");let u=typeof l=="string"?l:Mi(l);return u=u.replace(/ $/,"%20"),!s&&u.startsWith("//")&&(u=f+u),new URL(u,f)}function Nm(l,s,f="/"){return Xy(l,s,f,!1)}function Xy(l,s,f,u){let d=typeof s=="string"?zl(s):s,m=wn(d.pathname||"/",f);if(m==null)return null;let v=Dm(l);Zy(v);let x=null;for(let g=0;x==null&&g<v.length;++g){let y=lg(m);x=ng(v[g],y,u)}return x}function Dm(l,s=[],f=[],u="",d=!1){let m=(v,x,g=d,y)=>{let R={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:x,route:v};if(R.relativePath.startsWith("/")){if(!R.relativePath.startsWith(u)&&g)return;Ge(R.relativePath.startsWith(u),`Absolute route path "${R.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),R.relativePath=R.relativePath.slice(u.length)}let S=un([u,R.relativePath]),D=f.concat(R);v.children&&v.children.length>0&&(Ge(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),Dm(v.children,s,D,S,g)),!(v.path==null&&!v.index)&&s.push({path:S,score:eg(S,v.index),routesMeta:D})};return l.forEach((v,x)=>{var g;if(v.path===""||!((g=v.path)!=null&&g.includes("?")))m(v,x);else for(let y of Om(v.path))m(v,x,!0,y)}),s}function Om(l){let s=l.split("/");if(s.length===0)return[];let[f,...u]=s,d=f.endsWith("?"),m=f.replace(/\?$/,"");if(u.length===0)return d?[m,""]:[m];let v=Om(u.join("/")),x=[];return x.push(...v.map(g=>g===""?m:[m,g].join("/"))),d&&x.push(...v),x.map(g=>l.startsWith("/")&&g===""?"/":g)}function Zy(l){l.sort((s,f)=>s.score!==f.score?f.score-s.score:tg(s.routesMeta.map(u=>u.childrenIndex),f.routesMeta.map(u=>u.childrenIndex)))}var Ky=/^:[\w-]+$/,Jy=3,Iy=2,Wy=1,Fy=10,Py=-2,fm=l=>l==="*";function eg(l,s){let f=l.split("/"),u=f.length;return f.some(fm)&&(u+=Py),s&&(u+=Iy),f.filter(d=>!fm(d)).reduce((d,m)=>d+(Ky.test(m)?Jy:m===""?Wy:Fy),u)}function tg(l,s){return l.length===s.length&&l.slice(0,-1).every((u,d)=>u===s[d])?l[l.length-1]-s[s.length-1]:0}function ng(l,s,f=!1){let{routesMeta:u}=l,d={},m="/",v=[];for(let x=0;x<u.length;++x){let g=u[x],y=x===u.length-1,R=m==="/"?s:s.slice(m.length)||"/",S=ls({path:g.relativePath,caseSensitive:g.caseSensitive,end:y},R),D=g.route;if(!S&&y&&f&&!u[u.length-1].route.index&&(S=ls({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},R)),!S)return null;Object.assign(d,S.params),v.push({params:d,pathname:un([m,S.pathname]),pathnameBase:og(un([m,S.pathnameBase])),route:D}),S.pathnameBase!=="/"&&(m=un([m,S.pathnameBase]))}return v}function ls(l,s){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[f,u]=ag(l.path,l.caseSensitive,l.end),d=s.match(f);if(!d)return null;let m=d[0],v=m.replace(/(.)\/+$/,"$1"),x=d.slice(1);return{params:u.reduce((y,{paramName:R,isOptional:S},D)=>{if(R==="*"){let U=x[D]||"";v=m.slice(0,m.length-U.length).replace(/(.)\/+$/,"$1")}const Y=x[D];return S&&!Y?y[R]=void 0:y[R]=(Y||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:v,pattern:l}}function ag(l,s=!1,f=!0){Kt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let u=[],d="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,x,g,y,R)=>{if(u.push({paramName:x,isOptional:g!=null}),g){let S=R.charAt(y+v.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(u.push({paramName:"*"}),d+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?d+="\\/*$":l!==""&&l!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),u]}function lg(l){try{return l.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Kt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),l}}function wn(l,s){if(s==="/")return l;if(!l.toLowerCase().startsWith(s.toLowerCase()))return null;let f=s.endsWith("/")?s.length-1:s.length,u=l.charAt(f);return u&&u!=="/"?null:l.slice(f)||"/"}var ig=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ug(l,s="/"){let{pathname:f,search:u="",hash:d=""}=typeof l=="string"?zl(l):l,m;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?m=dm(f.substring(1),"/"):m=dm(f,s)):m=s,{pathname:m,search:cg(u),hash:rg(d)}}function dm(l,s){let f=s.replace(/\/+$/,"").split("/");return l.split("/").forEach(d=>{d===".."?f.length>1&&f.pop():d!=="."&&f.push(d)}),f.length>1?f.join("/"):"/"}function Uc(l,s,f,u){return`Cannot include a '${l}' character in a manually specified \`to.${s}\` field [${JSON.stringify(u)}].  Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function sg(l){return l.filter((s,f)=>f===0||s.route.path&&s.route.path.length>0)}function Ic(l){let s=sg(l);return s.map((f,u)=>u===s.length-1?f.pathname:f.pathnameBase)}function us(l,s,f,u=!1){let d;typeof l=="string"?d=zl(l):(d={...l},Ge(!d.pathname||!d.pathname.includes("?"),Uc("?","pathname","search",d)),Ge(!d.pathname||!d.pathname.includes("#"),Uc("#","pathname","hash",d)),Ge(!d.search||!d.search.includes("#"),Uc("#","search","hash",d)));let m=l===""||d.pathname==="",v=m?"/":d.pathname,x;if(v==null)x=f;else{let S=s.length-1;if(!u&&v.startsWith("..")){let D=v.split("/");for(;D[0]==="..";)D.shift(),S-=1;d.pathname=D.join("/")}x=S>=0?s[S]:"/"}let g=ug(d,x),y=v&&v!=="/"&&v.endsWith("/"),R=(m||v===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(y||R)&&(g.pathname+="/"),g}var un=l=>l.join("/").replace(/\/\/+/g,"/"),og=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),cg=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,rg=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,fg=class{constructor(l,s,f,u=!1){this.status=l,this.statusText=s||"",this.internal=u,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function dg(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function hg(l){return l.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Um=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function km(l,s){let f=l;if(typeof f!="string"||!ig.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let u=f,d=!1;if(Um)try{let m=new URL(window.location.href),v=f.startsWith("//")?new URL(m.protocol+f):new URL(f),x=wn(v.pathname,s);v.origin===m.origin&&x!=null?f=x+v.search+v.hash:d=!0}catch{Kt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:d,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Lm=["POST","PUT","PATCH","DELETE"];new Set(Lm);var mg=["GET",...Lm];new Set(mg);var Al=p.createContext(null);Al.displayName="DataRouter";var ss=p.createContext(null);ss.displayName="DataRouterState";var pg=p.createContext(!1),Bm=p.createContext({isTransitioning:!1});Bm.displayName="ViewTransition";var vg=p.createContext(new Map);vg.displayName="Fetchers";var yg=p.createContext(null);yg.displayName="Await";var Lt=p.createContext(null);Lt.displayName="Navigation";var Oi=p.createContext(null);Oi.displayName="Location";var Jt=p.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var Wc=p.createContext(null);Wc.displayName="RouteError";var Hm="REACT_ROUTER_ERROR",gg="REDIRECT",bg="ROUTE_ERROR_RESPONSE";function xg(l){if(l.startsWith(`${Hm}:${gg}:{`))try{let s=JSON.parse(l.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function Sg(l){if(l.startsWith(`${Hm}:${bg}:{`))try{let s=JSON.parse(l.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new fg(s.status,s.statusText,s.data)}catch{}}function jg(l,{relative:s}={}){Ge(wl(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:u}=p.useContext(Lt),{hash:d,pathname:m,search:v}=Ui(l,{relative:s}),x=m;return f!=="/"&&(x=m==="/"?f:un([f,m])),u.createHref({pathname:x,search:v,hash:d})}function wl(){return p.useContext(Oi)!=null}function en(){return Ge(wl(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Oi).location}var qm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vm(l){p.useContext(Lt).static||p.useLayoutEffect(l)}function os(){let{isDataRoute:l}=p.useContext(Jt);return l?Lg():Eg()}function Eg(){Ge(wl(),"useNavigate() may be used only in the context of a <Router> component.");let l=p.useContext(Al),{basename:s,navigator:f}=p.useContext(Lt),{matches:u}=p.useContext(Jt),{pathname:d}=en(),m=JSON.stringify(Ic(u)),v=p.useRef(!1);return Vm(()=>{v.current=!0}),p.useCallback((g,y={})=>{if(Kt(v.current,qm),!v.current)return;if(typeof g=="number"){f.go(g);return}let R=us(g,JSON.parse(m),d,y.relative==="path");l==null&&s!=="/"&&(R.pathname=R.pathname==="/"?s:un([s,R.pathname])),(y.replace?f.replace:f.push)(R,y.state,y)},[s,f,m,d,l])}var Cg=p.createContext(null);function Tg(l){let s=p.useContext(Jt).outlet;return p.useMemo(()=>s&&p.createElement(Cg.Provider,{value:l},s),[s,l])}function Mb(){let{matches:l}=p.useContext(Jt),s=l[l.length-1];return s?s.params:{}}function Ui(l,{relative:s}={}){let{matches:f}=p.useContext(Jt),{pathname:u}=en(),d=JSON.stringify(Ic(f));return p.useMemo(()=>us(l,JSON.parse(d),u,s==="path"),[l,d,u,s])}function _g(l,s){return $m(l,s)}function $m(l,s,f){var B;Ge(wl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=p.useContext(Lt),{matches:d}=p.useContext(Jt),m=d[d.length-1],v=m?m.params:{},x=m?m.pathname:"/",g=m?m.pathnameBase:"/",y=m&&m.route;{let q=y&&y.path||"";Gm(x,!y||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let R=en(),S;if(s){let q=typeof s=="string"?zl(s):s;Ge(g==="/"||((B=q.pathname)==null?void 0:B.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${q.pathname}" was given in the \`location\` prop.`),S=q}else S=R;let D=S.pathname||"/",Y=D;if(g!=="/"){let q=g.replace(/^\//,"").split("/");Y="/"+D.replace(/^\//,"").split("/").slice(q.length).join("/")}let U=Nm(l,{pathname:Y});Kt(y||U!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Kt(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=Mg(U&&U.map(q=>Object.assign({},q,{params:Object.assign({},v,q.params),pathname:un([g,u.encodeLocation?u.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?g:un([g,u.encodeLocation?u.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),d,f);return s&&Q?p.createElement(Oi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...S},navigationType:"POP"}},Q):Q}function Rg(){let l=kg(),s=dg(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),f=l instanceof Error?l.stack:null,u="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:u},m={padding:"2px 4px",backgroundColor:u},v=null;return console.error("Error handled by React Router default ErrorBoundary:",l),v=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:m},"ErrorBoundary")," or"," ",p.createElement("code",{style:m},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},s),f?p.createElement("pre",{style:d},f):null,v)}var zg=p.createElement(Rg,null),Ym=class extends p.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,s){return s.location!==l.location||s.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:s.error,location:s.location,revalidation:l.revalidation||s.revalidation}}componentDidCatch(l,s){this.props.onError?this.props.onError(l,s):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const f=Sg(l.digest);f&&(l=f)}let s=l!==void 0?p.createElement(Jt.Provider,{value:this.props.routeContext},p.createElement(Wc.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?p.createElement(Ag,{error:l},s):s}};Ym.contextType=pg;var kc=new WeakMap;function Ag({children:l,error:s}){let{basename:f}=p.useContext(Lt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let u=xg(s.digest);if(u){let d=kc.get(s);if(d)throw d;let m=km(u.location,f);if(Um&&!kc.get(s))if(m.isExternal||u.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:u.replace}));throw kc.set(s,v),v}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return l}function wg({routeContext:l,match:s,children:f}){let u=p.useContext(Al);return u&&u.static&&u.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=s.route.id),p.createElement(Jt.Provider,{value:l},f)}function Mg(l,s=[],f){let u=f==null?void 0:f.state;if(l==null){if(!u)return null;if(u.errors)l=u.matches;else if(s.length===0&&!u.initialized&&u.matches.length>0)l=u.matches;else return null}let d=l,m=u==null?void 0:u.errors;if(m!=null){let R=d.findIndex(S=>S.route.id&&(m==null?void 0:m[S.route.id])!==void 0);Ge(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,R+1))}let v=!1,x=-1;if(f&&u){v=u.renderFallback;for(let R=0;R<d.length;R++){let S=d[R];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(x=R),S.route.id){let{loaderData:D,errors:Y}=u,U=S.route.loader&&!D.hasOwnProperty(S.route.id)&&(!Y||Y[S.route.id]===void 0);if(S.route.lazy||U){f.isStatic&&(v=!0),x>=0?d=d.slice(0,x+1):d=[d[0]];break}}}}let g=f==null?void 0:f.onError,y=u&&g?(R,S)=>{var D,Y;g(R,{location:u.location,params:((Y=(D=u.matches)==null?void 0:D[0])==null?void 0:Y.params)??{},unstable_pattern:hg(u.matches),errorInfo:S})}:void 0;return d.reduceRight((R,S,D)=>{let Y,U=!1,Q=null,B=null;u&&(Y=m&&S.route.id?m[S.route.id]:void 0,Q=S.route.errorElement||zg,v&&(x<0&&D===0?(Gm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),U=!0,B=null):x===D&&(U=!0,B=S.route.hydrateFallbackElement||null)));let q=s.concat(d.slice(0,D+1)),H=()=>{let X;return Y?X=Q:U?X=B:S.route.Component?X=p.createElement(S.route.Component,null):S.route.element?X=S.route.element:X=R,p.createElement(wg,{match:S,routeContext:{outlet:R,matches:q,isDataRoute:u!=null},children:X})};return u&&(S.route.ErrorBoundary||S.route.errorElement||D===0)?p.createElement(Ym,{location:u.location,revalidation:u.revalidation,component:Q,error:Y,children:H(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:y}):H()},null)}function Fc(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ng(l){let s=p.useContext(Al);return Ge(s,Fc(l)),s}function Dg(l){let s=p.useContext(ss);return Ge(s,Fc(l)),s}function Og(l){let s=p.useContext(Jt);return Ge(s,Fc(l)),s}function Pc(l){let s=Og(l),f=s.matches[s.matches.length-1];return Ge(f.route.id,`${l} can only be used on routes that contain a unique "id"`),f.route.id}function Ug(){return Pc("useRouteId")}function kg(){var u;let l=p.useContext(Wc),s=Dg("useRouteError"),f=Pc("useRouteError");return l!==void 0?l:(u=s.errors)==null?void 0:u[f]}function Lg(){let{router:l}=Ng("useNavigate"),s=Pc("useNavigate"),f=p.useRef(!1);return Vm(()=>{f.current=!0}),p.useCallback(async(d,m={})=>{Kt(f.current,qm),f.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:s,...m}))},[l,s])}var hm={};function Gm(l,s,f){!s&&!hm[l]&&(hm[l]=!0,Kt(!1,f))}p.memo(Bg);function Bg({routes:l,future:s,state:f,isStatic:u,onError:d}){return $m(l,void 0,{state:f,isStatic:u,onError:d})}function mm({to:l,replace:s,state:f,relative:u}){Ge(wl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=p.useContext(Lt);Kt(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=p.useContext(Jt),{pathname:v}=en(),x=os(),g=us(l,Ic(m),v,u==="path"),y=JSON.stringify(g);return p.useEffect(()=>{x(JSON.parse(y),{replace:s,state:f,relative:u})},[x,y,u,s,f]),null}function Hg(l){return Tg(l.context)}function I(l){Ge(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function qg({basename:l="/",children:s=null,location:f,navigationType:u="POP",navigator:d,static:m=!1,unstable_useTransitions:v}){Ge(!wl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=l.replace(/^\/*/,"/"),g=p.useMemo(()=>({basename:x,navigator:d,static:m,unstable_useTransitions:v,future:{}}),[x,d,m,v]);typeof f=="string"&&(f=zl(f));let{pathname:y="/",search:R="",hash:S="",state:D=null,key:Y="default",unstable_mask:U}=f,Q=p.useMemo(()=>{let B=wn(y,x);return B==null?null:{location:{pathname:B,search:R,hash:S,state:D,key:Y,unstable_mask:U},navigationType:u}},[x,y,R,S,D,Y,u,U]);return Kt(Q!=null,`<Router basename="${x}"> is not able to match the URL "${y}${R}${S}" because it does not start with the basename, so the <Router> won't render anything.`),Q==null?null:p.createElement(Lt.Provider,{value:g},p.createElement(Oi.Provider,{children:s,value:Q}))}function Vg({children:l,location:s}){return _g(Qc(l),s)}function Qc(l,s=[]){let f=[];return p.Children.forEach(l,(u,d)=>{if(!p.isValidElement(u))return;let m=[...s,d];if(u.type===p.Fragment){f.push.apply(f,Qc(u.props.children,m));return}Ge(u.type===I,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ge(!u.props.index||!u.props.children,"An index route cannot have child routes.");let v={id:u.props.id||m.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(v.children=Qc(u.props.children,m)),f.push(v)}),f}var ts="get",ns="application/x-www-form-urlencoded";function cs(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function $g(l){return cs(l)&&l.tagName.toLowerCase()==="button"}function Yg(l){return cs(l)&&l.tagName.toLowerCase()==="form"}function Gg(l){return cs(l)&&l.tagName.toLowerCase()==="input"}function Qg(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Xg(l,s){return l.button===0&&(!s||s==="_self")&&!Qg(l)}function Xc(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((s,f)=>{let u=l[f];return s.concat(Array.isArray(u)?u.map(d=>[f,d]):[[f,u]])},[]))}function Zg(l,s){let f=Xc(l);return s&&s.forEach((u,d)=>{f.has(d)||s.getAll(d).forEach(m=>{f.append(d,m)})}),f}var Wu=null;function Kg(){if(Wu===null)try{new FormData(document.createElement("form"),0),Wu=!1}catch{Wu=!0}return Wu}var Jg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lc(l){return l!=null&&!Jg.has(l)?(Kt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ns}"`),null):l}function Ig(l,s){let f,u,d,m,v;if(Yg(l)){let x=l.getAttribute("action");u=x?wn(x,s):null,f=l.getAttribute("method")||ts,d=Lc(l.getAttribute("enctype"))||ns,m=new FormData(l)}else if($g(l)||Gg(l)&&(l.type==="submit"||l.type==="image")){let x=l.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=l.getAttribute("formaction")||x.getAttribute("action");if(u=g?wn(g,s):null,f=l.getAttribute("formmethod")||x.getAttribute("method")||ts,d=Lc(l.getAttribute("formenctype"))||Lc(x.getAttribute("enctype"))||ns,m=new FormData(x,l),!Kg()){let{name:y,type:R,value:S}=l;if(R==="image"){let D=y?`${y}.`:"";m.append(`${D}x`,"0"),m.append(`${D}y`,"0")}else y&&m.append(y,S)}}else{if(cs(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=ts,u=null,d=ns,v=l}return m&&d==="text/plain"&&(v=m,m=void 0),{action:u,method:f.toLowerCase(),encType:d,formData:m,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function er(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function Wg(l,s,f,u){let d=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return f?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${u}`:d.pathname=`${d.pathname}.${u}`:d.pathname==="/"?d.pathname=`_root.${u}`:s&&wn(d.pathname,s)==="/"?d.pathname=`${s.replace(/\/$/,"")}/_root.${u}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${u}`,d}async function Fg(l,s){if(l.id in s)return s[l.id];try{let f=await import(l.module);return s[l.id]=f,f}catch(f){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Pg(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function e1(l,s,f){let u=await Promise.all(l.map(async d=>{let m=s.routes[d.route.id];if(m){let v=await Fg(m,f);return v.links?v.links():[]}return[]}));return l1(u.flat(1).filter(Pg).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function pm(l,s,f,u,d,m){let v=(g,y)=>f[y]?g.route.id!==f[y].route.id:!0,x=(g,y)=>{var R;return f[y].pathname!==g.pathname||((R=f[y].route.path)==null?void 0:R.endsWith("*"))&&f[y].params["*"]!==g.params["*"]};return m==="assets"?s.filter((g,y)=>v(g,y)||x(g,y)):m==="data"?s.filter((g,y)=>{var S;let R=u.routes[g.route.id];if(!R||!R.hasLoader)return!1;if(v(g,y)||x(g,y))return!0;if(g.route.shouldRevalidate){let D=g.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((S=f[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof D=="boolean")return D}return!0}):[]}function t1(l,s,{includeHydrateFallback:f}={}){return n1(l.map(u=>{let d=s.routes[u.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),f&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function n1(l){return[...new Set(l)]}function a1(l){let s={},f=Object.keys(l).sort();for(let u of f)s[u]=l[u];return s}function l1(l,s){let f=new Set;return new Set(s),l.reduce((u,d)=>{let m=JSON.stringify(a1(d));return f.has(m)||(f.add(m),u.push({key:m,link:d})),u},[])}function Qm(){let l=p.useContext(Al);return er(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function i1(){let l=p.useContext(ss);return er(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var tr=p.createContext(void 0);tr.displayName="FrameworkContext";function Xm(){let l=p.useContext(tr);return er(l,"You must render this element inside a <HydratedRouter> element"),l}function u1(l,s){let f=p.useContext(tr),[u,d]=p.useState(!1),[m,v]=p.useState(!1),{onFocus:x,onBlur:g,onMouseEnter:y,onMouseLeave:R,onTouchStart:S}=s,D=p.useRef(null);p.useEffect(()=>{if(l==="render"&&v(!0),l==="viewport"){let Q=q=>{q.forEach(H=>{v(H.isIntersecting)})},B=new IntersectionObserver(Q,{threshold:.5});return D.current&&B.observe(D.current),()=>{B.disconnect()}}},[l]),p.useEffect(()=>{if(u){let Q=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(Q)}}},[u]);let Y=()=>{d(!0)},U=()=>{d(!1),v(!1)};return f?l!=="intent"?[m,D,{}]:[m,D,{onFocus:zi(x,Y),onBlur:zi(g,U),onMouseEnter:zi(y,Y),onMouseLeave:zi(R,U),onTouchStart:zi(S,Y)}]:[!1,D,{}]}function zi(l,s){return f=>{l&&l(f),f.defaultPrevented||s(f)}}function s1({page:l,...s}){let{router:f}=Qm(),u=p.useMemo(()=>Nm(f.routes,l,f.basename),[f.routes,l,f.basename]);return u?p.createElement(c1,{page:l,matches:u,...s}):null}function o1(l){let{manifest:s,routeModules:f}=Xm(),[u,d]=p.useState([]);return p.useEffect(()=>{let m=!1;return e1(l,s,f).then(v=>{m||d(v)}),()=>{m=!0}},[l,s,f]),u}function c1({page:l,matches:s,...f}){let u=en(),{future:d,manifest:m,routeModules:v}=Xm(),{basename:x}=Qm(),{loaderData:g,matches:y}=i1(),R=p.useMemo(()=>pm(l,s,y,m,u,"data"),[l,s,y,m,u]),S=p.useMemo(()=>pm(l,s,y,m,u,"assets"),[l,s,y,m,u]),D=p.useMemo(()=>{if(l===u.pathname+u.search+u.hash)return[];let Q=new Set,B=!1;if(s.forEach(H=>{var ee;let X=m.routes[H.route.id];!X||!X.hasLoader||(!R.some(ue=>ue.route.id===H.route.id)&&H.route.id in g&&((ee=v[H.route.id])!=null&&ee.shouldRevalidate)||X.hasClientLoader?B=!0:Q.add(H.route.id))}),Q.size===0)return[];let q=Wg(l,x,d.unstable_trailingSlashAwareDataRequests,"data");return B&&Q.size>0&&q.searchParams.set("_routes",s.filter(H=>Q.has(H.route.id)).map(H=>H.route.id).join(",")),[q.pathname+q.search]},[x,d.unstable_trailingSlashAwareDataRequests,g,u,m,R,s,l,v]),Y=p.useMemo(()=>t1(S,m),[S,m]),U=o1(S);return p.createElement(p.Fragment,null,D.map(Q=>p.createElement("link",{key:Q,rel:"prefetch",as:"fetch",href:Q,...f})),Y.map(Q=>p.createElement("link",{key:Q,rel:"modulepreload",href:Q,...f})),U.map(({key:Q,link:B})=>p.createElement("link",{key:Q,nonce:f.nonce,...B,crossOrigin:B.crossOrigin??f.crossOrigin})))}function r1(...l){return s=>{l.forEach(f=>{typeof f=="function"?f(s):f!=null&&(f.current=s)})}}var f1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{f1&&(window.__reactRouterVersion="7.13.1")}catch{}function d1({basename:l,children:s,unstable_useTransitions:f,window:u}){let d=p.useRef();d.current==null&&(d.current=$y({window:u,v5Compat:!0}));let m=d.current,[v,x]=p.useState({action:m.action,location:m.location}),g=p.useCallback(y=>{f===!1?x(y):p.startTransition(()=>x(y))},[f]);return p.useLayoutEffect(()=>m.listen(g),[m,g]),p.createElement(qg,{basename:l,children:s,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:f})}var Zm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Km=p.forwardRef(function({onClick:s,discover:f="render",prefetch:u="none",relative:d,reloadDocument:m,replace:v,unstable_mask:x,state:g,target:y,to:R,preventScrollReset:S,viewTransition:D,unstable_defaultShouldRevalidate:Y,...U},Q){let{basename:B,navigator:q,unstable_useTransitions:H}=p.useContext(Lt),X=typeof R=="string"&&Zm.test(R),ee=km(R,B);R=ee.to;let ue=jg(R,{relative:d}),se=en(),te=null;if(x){let ne=us(x,[],se.unstable_mask?se.unstable_mask.pathname:"/",!0);B!=="/"&&(ne.pathname=ne.pathname==="/"?B:un([B,ne.pathname])),te=q.createHref(ne)}let[Ee,Ce,We]=u1(u,U),Qe=p1(R,{replace:v,unstable_mask:x,state:g,target:y,preventScrollReset:S,relative:d,viewTransition:D,unstable_defaultShouldRevalidate:Y,unstable_useTransitions:H});function Re(ne){s&&s(ne),ne.defaultPrevented||Qe(ne)}let Ve=!(ee.isExternal||m),$e=p.createElement("a",{...U,...We,href:(Ve?te:void 0)||ee.absoluteURL||ue,onClick:Ve?Re:s,ref:r1(Q,Ce),target:y,"data-discover":!X&&f==="render"?"true":void 0});return Ee&&!X?p.createElement(p.Fragment,null,$e,p.createElement(s1,{page:ue})):$e});Km.displayName="Link";var as=p.forwardRef(function({"aria-current":s="page",caseSensitive:f=!1,className:u="",end:d=!1,style:m,to:v,viewTransition:x,children:g,...y},R){let S=Ui(v,{relative:y.relative}),D=en(),Y=p.useContext(ss),{navigator:U,basename:Q}=p.useContext(Lt),B=Y!=null&&x1(S)&&x===!0,q=U.encodeLocation?U.encodeLocation(S).pathname:S.pathname,H=D.pathname,X=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;f||(H=H.toLowerCase(),X=X?X.toLowerCase():null,q=q.toLowerCase()),X&&Q&&(X=wn(X,Q)||X);const ee=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let ue=H===q||!d&&H.startsWith(q)&&H.charAt(ee)==="/",se=X!=null&&(X===q||!d&&X.startsWith(q)&&X.charAt(q.length)==="/"),te={isActive:ue,isPending:se,isTransitioning:B},Ee=ue?s:void 0,Ce;typeof u=="function"?Ce=u(te):Ce=[u,ue?"active":null,se?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let We=typeof m=="function"?m(te):m;return p.createElement(Km,{...y,"aria-current":Ee,className:Ce,ref:R,style:We,to:v,viewTransition:x},typeof g=="function"?g(te):g)});as.displayName="NavLink";var h1=p.forwardRef(({discover:l="render",fetcherKey:s,navigate:f,reloadDocument:u,replace:d,state:m,method:v=ts,action:x,onSubmit:g,relative:y,preventScrollReset:R,viewTransition:S,unstable_defaultShouldRevalidate:D,...Y},U)=>{let{unstable_useTransitions:Q}=p.useContext(Lt),B=g1(),q=b1(x,{relative:y}),H=v.toLowerCase()==="get"?"get":"post",X=typeof x=="string"&&Zm.test(x),ee=ue=>{if(g&&g(ue),ue.defaultPrevented)return;ue.preventDefault();let se=ue.nativeEvent.submitter,te=(se==null?void 0:se.getAttribute("formmethod"))||v,Ee=()=>B(se||ue.currentTarget,{fetcherKey:s,method:te,navigate:f,replace:d,state:m,relative:y,preventScrollReset:R,viewTransition:S,unstable_defaultShouldRevalidate:D});Q&&f!==!1?p.startTransition(()=>Ee()):Ee()};return p.createElement("form",{ref:U,method:H,action:q,onSubmit:u?g:ee,...Y,"data-discover":!X&&l==="render"?"true":void 0})});h1.displayName="Form";function m1(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jm(l){let s=p.useContext(Al);return Ge(s,m1(l)),s}function p1(l,{target:s,replace:f,unstable_mask:u,state:d,preventScrollReset:m,relative:v,viewTransition:x,unstable_defaultShouldRevalidate:g,unstable_useTransitions:y}={}){let R=os(),S=en(),D=Ui(l,{relative:v});return p.useCallback(Y=>{if(Xg(Y,s)){Y.preventDefault();let U=f!==void 0?f:Mi(S)===Mi(D),Q=()=>R(l,{replace:U,unstable_mask:u,state:d,preventScrollReset:m,relative:v,viewTransition:x,unstable_defaultShouldRevalidate:g});y?p.startTransition(()=>Q()):Q()}},[S,R,D,f,u,d,s,l,m,v,x,g,y])}function Nb(l){Kt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let s=p.useRef(Xc(l)),f=p.useRef(!1),u=en(),d=p.useMemo(()=>Zg(u.search,f.current?null:s.current),[u.search]),m=os(),v=p.useCallback((x,g)=>{const y=Xc(typeof x=="function"?x(new URLSearchParams(d)):x);f.current=!0,m("?"+y,g)},[m,d]);return[d,v]}var v1=0,y1=()=>`__${String(++v1)}__`;function g1(){let{router:l}=Jm("useSubmit"),{basename:s}=p.useContext(Lt),f=Ug(),u=l.fetch,d=l.navigate;return p.useCallback(async(m,v={})=>{let{action:x,method:g,encType:y,formData:R,body:S}=Ig(m,s);if(v.navigate===!1){let D=v.fetcherKey||y1();await u(D,f,v.action||x,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:R,body:S,formMethod:v.method||g,formEncType:v.encType||y,flushSync:v.flushSync})}else await d(v.action||x,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:R,body:S,formMethod:v.method||g,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:f,flushSync:v.flushSync,viewTransition:v.viewTransition})},[u,d,s,f])}function b1(l,{relative:s}={}){let{basename:f}=p.useContext(Lt),u=p.useContext(Jt);Ge(u,"useFormAction must be used inside a RouteContext");let[d]=u.matches.slice(-1),m={...Ui(l||".",{relative:s})},v=en();if(l==null){m.search=v.search;let x=new URLSearchParams(m.search),g=x.getAll("index");if(g.some(R=>R==="")){x.delete("index"),g.filter(S=>S).forEach(S=>x.append("index",S));let R=x.toString();m.search=R?`?${R}`:""}}return(!l||l===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:un([f,m.pathname])),Mi(m)}function x1(l,{relative:s}={}){let f=p.useContext(Bm);Ge(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Jm("useViewTransitionState"),d=Ui(l,{relative:s});if(!f.isTransitioning)return!1;let m=wn(f.currentLocation.pathname,u)||f.currentLocation.pathname,v=wn(f.nextLocation.pathname,u)||f.nextLocation.pathname;return ls(d.pathname,v)!=null||ls(d.pathname,m)!=null}const rs="";let Ma=null,sn=null;function Ai(l){Ma=l}function S1(l){sn=l}function j1(l){return l.charAt(0).toLowerCase()+l.slice(1)}function Ni(l){return Array.isArray(l)?l.map(Ni):l!==null&&typeof l=="object"&&!(l instanceof Date)?Object.fromEntries(Object.entries(l).map(([s,f])=>[j1(s),Ni(f)])):l}const Im=300*1e3,nr=180*1e3;async function fs(l,s,f,u){const d={"Content-Type":"application/json"};Ma&&(d["X-Token"]=Ma);const m=new AbortController,v=(u==null?void 0:u.timeout)??3e4,x=setTimeout(()=>m.abort(),v);try{const g=await fetch(`${rs}${s}`,{method:l,headers:d,body:f?JSON.stringify(f):void 0,signal:m.signal});if(clearTimeout(x),g.status===401)throw sn==null||sn(),new Error("Unauthorized");if(!g.ok){const R=await g.text();let S=`${g.status}: ${R}`;try{const D=JSON.parse(R);S=D.Message||D.message||D.Error||D.error||S}catch{}throw new Error(S)}if(g.status===204)return;if(u!=null&&u.rawText)return await g.text();const y=await g.json();return Ni(y)}catch(g){throw clearTimeout(x),g instanceof DOMException&&g.name==="AbortError"?new Error("Request timed out"):g}}function Z(l,s){return fs("GET",l,void 0,s)}function W(l,s,f){return fs("POST",l,s,f)}function Ke(l,s,f){return fs("PUT",l,s,f)}function Le(l,s){return fs("DELETE",l,void 0,s)}async function ar(l,s,f){const u={},d=await fetch(`${rs}${s}`,{method:l,headers:u,body:void 0,credentials:"same-origin"});if(d.status===404||d.status===401)throw new Error(`proxy:${d.status}`);if(!d.ok){const x=await d.text();let g=x||`${d.status}`;try{const y=JSON.parse(x);g=y.error||y.message||g}catch{}throw new Error(g)}if(d.status===204||!(d.headers.get("content-type")||"").includes("application/json"))return;const v=await d.json();return Ni(v)}function yt(l){if(!l)return"";const s=[];if(l.pageNumber&&s.push(`pageNumber=${l.pageNumber}`),l.pageSize&&s.push(`pageSize=${l.pageSize}`),l.filters)for(const[f,u]of Object.entries(l.filters))u&&s.push(`${encodeURIComponent(f)}=${encodeURIComponent(u)}`);return s.length?"?"+s.join("&"):""}function Wm(l){if(!l)return"";const s=new URLSearchParams,f=[];l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),l.pageSize&&s.set("pageSize",String(l.pageSize)),l.bucketMinutes&&s.set("bucketMinutes",String(l.bucketMinutes)),l.method&&s.set("method",l.method),l.principal&&s.set("principal",l.principal),l.tenantId&&s.set("tenantId",l.tenantId),l.userId&&s.set("userId",l.userId),l.credentialId&&s.set("credentialId",l.credentialId),l.statusCode!==void 0&&l.statusCode!==null&&s.set("statusCode",String(l.statusCode)),l.isSuccess!==void 0&&l.isSuccess!==null&&s.set("isSuccess",String(l.isSuccess)),l.fromUtc&&s.set("fromUtc",l.fromUtc),l.toUtc&&s.set("toUtc",l.toUtc);const u=s.toString();return u&&f.push(u),l.route&&f.push(`route=${ds(l.route)}`),f.length?`?${f.join("&")}`:""}function Fm(l){if(!l)return"";const s=new URLSearchParams;l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),l.pageSize&&s.set("pageSize",String(l.pageSize)),l.owner&&s.set("owner",l.owner),l.category&&s.set("category",l.category),l.parentObjectiveId&&s.set("parentObjectiveId",l.parentObjectiveId),l.vesselId&&s.set("vesselId",l.vesselId),l.fleetId&&s.set("fleetId",l.fleetId),l.planningSessionId&&s.set("planningSessionId",l.planningSessionId),l.voyageId&&s.set("voyageId",l.voyageId),l.missionId&&s.set("missionId",l.missionId),l.checkRunId&&s.set("checkRunId",l.checkRunId),l.releaseId&&s.set("releaseId",l.releaseId),l.deploymentId&&s.set("deploymentId",l.deploymentId),l.incidentId&&s.set("incidentId",l.incidentId),l.tag&&s.set("tag",l.tag),l.status&&s.set("status",l.status),l.backlogState&&s.set("backlogState",l.backlogState),l.kind&&s.set("kind",l.kind),l.priority&&s.set("priority",l.priority),l.effort&&s.set("effort",l.effort),l.targetVersion&&s.set("targetVersion",l.targetVersion),l.search&&s.set("search",l.search),l.fromUtc&&s.set("fromUtc",l.fromUtc),l.toUtc&&s.set("toUtc",l.toUtc);const f=s.toString();return f?`?${f}`:""}function E1(l){if(!l)return"";const s=new URLSearchParams;l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),l.pageSize&&s.set("pageSize",String(l.pageSize)),l.vesselId&&s.set("vesselId",l.vesselId),l.workflowProfileId&&s.set("workflowProfileId",l.workflowProfileId),l.voyageId&&s.set("voyageId",l.voyageId),l.missionId&&s.set("missionId",l.missionId),l.checkRunId&&s.set("checkRunId",l.checkRunId),l.status&&s.set("status",l.status),l.search&&s.set("search",l.search),l.fromUtc&&s.set("fromUtc",l.fromUtc),l.toUtc&&s.set("toUtc",l.toUtc);const f=s.toString();return f?`?${f}`:""}function C1(l){if(!l)return"";const s=new URLSearchParams;l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),l.pageSize&&s.set("pageSize",String(l.pageSize)),l.vesselId&&s.set("vesselId",l.vesselId),l.kind&&s.set("kind",l.kind),l.isDefault!==void 0&&l.isDefault!==null&&s.set("isDefault",String(l.isDefault)),l.active!==void 0&&l.active!==null&&s.set("active",String(l.active)),l.search&&s.set("search",l.search);const f=s.toString();return f?`?${f}`:""}function T1(l){if(!l)return"";const s=new URLSearchParams;l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),l.pageSize&&s.set("pageSize",String(l.pageSize)),l.vesselId&&s.set("vesselId",l.vesselId),l.workflowProfileId&&s.set("workflowProfileId",l.workflowProfileId),l.environmentId&&s.set("environmentId",l.environmentId),l.environmentName&&s.set("environmentName",l.environmentName),l.releaseId&&s.set("releaseId",l.releaseId),l.missionId&&s.set("missionId",l.missionId),l.voyageId&&s.set("voyageId",l.voyageId),l.checkRunId&&s.set("checkRunId",l.checkRunId),l.status&&s.set("status",l.status),l.verificationStatus&&s.set("verificationStatus",l.verificationStatus),l.search&&s.set("search",l.search),l.fromUtc&&s.set("fromUtc",l.fromUtc),l.toUtc&&s.set("toUtc",l.toUtc);const f=s.toString();return f?`?${f}`:""}function _1(l){if(!l)return"";const s=new URLSearchParams;l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),l.pageSize&&s.set("pageSize",String(l.pageSize)),l.vesselId&&s.set("vesselId",l.vesselId),l.environmentId&&s.set("environmentId",l.environmentId),l.deploymentId&&s.set("deploymentId",l.deploymentId),l.releaseId&&s.set("releaseId",l.releaseId),l.missionId&&s.set("missionId",l.missionId),l.voyageId&&s.set("voyageId",l.voyageId),l.status&&s.set("status",l.status),l.severity&&s.set("severity",l.severity),l.search&&s.set("search",l.search);const f=s.toString();return f?`?${f}`:""}function R1(l){if(!l)return"";const s=new URLSearchParams;l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),s.set("pageSize",String(l.pageSize)),l.workflowProfileId&&s.set("workflowProfileId",l.workflowProfileId),l.environmentId&&s.set("environmentId",l.environmentId),l.defaultCheckType&&s.set("defaultCheckType",l.defaultCheckType),l.active!==void 0&&l.active!==null&&s.set("active",String(l.active)),l.search&&s.set("search",l.search);const f=s.toString();return f?`?${f}`:""}function z1(l){if(!l)return"";const s=new URLSearchParams;l.pageNumber&&s.set("pageNumber",String(l.pageNumber)),l.pageSize&&s.set("pageSize",String(l.pageSize)),l.runbookId&&s.set("runbookId",l.runbookId),l.deploymentId&&s.set("deploymentId",l.deploymentId),l.incidentId&&s.set("incidentId",l.incidentId),l.status&&s.set("status",l.status),l.search&&s.set("search",l.search);const f=s.toString();return f?`?${f}`:""}const A1=l=>W("/api/v1/authenticate",l),vm=()=>Z("/api/v1/whoami");async function w1(){try{return await ar("GET","/proxy-api/v1/session/context")}catch(l){if(l instanceof Error&&(l.message==="proxy:404"||l.message==="proxy:401"))return null;throw l}}async function M1(){await ar("POST","/proxy-api/v1/session/logout-instance")}async function N1(){try{await ar("POST","/proxy-api/v1/auth/logout")}catch(l){if(l instanceof Error&&l.message==="proxy:404")return;throw l}}const D1=l=>W("/api/v1/tenants/lookup",{Email:l}),Db=()=>Z("/api/v1/tenants"),Ob=l=>W("/api/v1/tenants",l),Ub=(l,s)=>Ke(`/api/v1/tenants/${l}`,s),kb=l=>Le(`/api/v1/tenants/${l}`),Lb=()=>Z("/api/v1/users"),Bb=l=>W("/api/v1/users",l),Hb=(l,s)=>Ke(`/api/v1/users/${l}`,s),qb=l=>Le(`/api/v1/users/${l}`),Vb=()=>Z("/api/v1/credentials"),$b=l=>W("/api/v1/credentials",l),Yb=(l,s)=>Ke(`/api/v1/credentials/${l}`,s),Gb=l=>Le(`/api/v1/credentials/${l}`),Pm=l=>Z(`/api/v1/fleets${yt(l)}`),O1=l=>W("/api/v1/fleets",l),Qb=(l,s)=>Ke(`/api/v1/fleets/${l}`,s),Xb=l=>Le(`/api/v1/fleets/${l}`),ep=l=>Z(`/api/v1/vessels${yt(l)}`),Zb=l=>Z(`/api/v1/vessels/${l}`),U1=l=>W("/api/v1/vessels",l),Kb=(l,s)=>Ke(`/api/v1/vessels/${l}`,s),Jb=l=>Le(`/api/v1/vessels/${l}`),k1=(l,s)=>{const f=new URLSearchParams;s!=null&&s.workflowProfileId&&f.set("workflowProfileId",s.workflowProfileId),s!=null&&s.checkType&&f.set("checkType",s.checkType),s!=null&&s.environmentName&&f.set("environmentName",s.environmentName),typeof(s==null?void 0:s.includeWorkflowRequirements)=="boolean"&&f.set("includeWorkflowRequirements",String(s.includeWorkflowRequirements));const u=f.toString().length>0?`?${f.toString()}`:"";return Z(`/api/v1/vessels/${encodeURIComponent(l)}/readiness${u}`)},Ib=(l,s)=>Z(`/api/v1/vessels/${encodeURIComponent(l)}/landing-preview${s?`?sourceBranch=${encodeURIComponent(s)}`:""}`),Wb=l=>Z(`/api/v1/vessels/${l}/git-status`);function ds(l){return encodeURIComponent(l).replace(/%2F/g,"/")}const Fb=l=>Z(`/api/v1/workspace/vessels/${encodeURIComponent(l)}/status`),Pb=(l,s)=>Z(`/api/v1/workspace/vessels/${encodeURIComponent(l)}/tree${s?`?path=${ds(s)}`:""}`),ex=(l,s)=>Z(`/api/v1/workspace/vessels/${encodeURIComponent(l)}/file?path=${ds(s)}`),tx=(l,s)=>Ke(`/api/v1/workspace/vessels/${encodeURIComponent(l)}/file`,s),nx=(l,s)=>W(`/api/v1/workspace/vessels/${encodeURIComponent(l)}/directory`,s),ax=(l,s)=>W(`/api/v1/workspace/vessels/${encodeURIComponent(l)}/rename`,s),lx=(l,s)=>Le(`/api/v1/workspace/vessels/${encodeURIComponent(l)}/entry?path=${ds(s)}`),ix=l=>Z(`/api/v1/request-history${Wm(l)}`),ux=l=>Z(`/api/v1/request-history/summary${Wm(l)}`),sx=l=>Z(`/api/v1/request-history/${encodeURIComponent(l)}`),ox=l=>Le(`/api/v1/request-history/${encodeURIComponent(l)}`),cx=l=>W("/api/v1/request-history/delete/multiple",{Ids:l}),rx=l=>W("/api/v1/request-history/delete/by-filter",l),fx=l=>W("/api/v1/history/enumerate",l||{}),dx=l=>Z(`/api/v1/objectives${Fm(l)}`),hx=l=>W("/api/v1/objectives/import/github",l),mx=l=>Z(`/api/v1/backlog${Fm(l)}`),px=l=>W("/api/v1/backlog/reorder",l),vx=l=>Z(`/api/v1/backlog/${encodeURIComponent(l)}`),yx=l=>W("/api/v1/backlog",l),gx=(l,s)=>Ke(`/api/v1/backlog/${encodeURIComponent(l)}`,s),bx=l=>Le(`/api/v1/backlog/${encodeURIComponent(l)}`),xx=l=>Z(`/api/v1/backlog/${encodeURIComponent(l)}/refinement-sessions`),Sx=(l,s)=>W(`/api/v1/backlog/${encodeURIComponent(l)}/refinement-sessions`,s,{timeout:Im}),jx=l=>Z(`/api/v1/objective-refinement-sessions/${encodeURIComponent(l)}`),Ex=(l,s)=>W(`/api/v1/objective-refinement-sessions/${encodeURIComponent(l)}/messages`,s),Cx=(l,s)=>W(`/api/v1/objective-refinement-sessions/${encodeURIComponent(l)}/summarize`,s||{},{timeout:nr}),Tx=(l,s)=>W(`/api/v1/objective-refinement-sessions/${encodeURIComponent(l)}/apply`,s||{},{timeout:nr}),_x=l=>W(`/api/v1/objective-refinement-sessions/${encodeURIComponent(l)}/stop`),Rx=l=>Le(`/api/v1/objective-refinement-sessions/${encodeURIComponent(l)}`),tp=l=>Z(`/api/v1/captains${yt(l)}`),L1=l=>Z(`/api/v1/captains/${l}`),zx=l=>Z(`/api/v1/captains/${l}/tools`),np=l=>W("/api/v1/captains",l),Ax=(l,s)=>Ke(`/api/v1/captains/${l}`,s),B1=l=>Le(`/api/v1/captains/${l}`),wx=(l,s=500)=>Z(`/api/v1/captains/${l}/log?lines=${s}`),Mx=l=>W(`/api/v1/captains/${l}/stop`),Nx=l=>W(`/api/v1/captains/${l}/recall`),Dx=()=>W("/api/v1/captains/stop-all"),H1=l=>Z(`/api/v1/runtimes/mux/endpoints${l?`?configDirectory=${encodeURIComponent(l)}`:""}`);async function Ox(l){const s=await L1(l);return await B1(l),np({name:s.name,runtime:s.runtime,systemInstructions:s.systemInstructions,model:s.model,allowedPersonas:s.allowedPersonas,preferredPersona:s.preferredPersona,runtimeOptionsJson:s.runtimeOptionsJson})}const Ux=l=>Z(`/api/v1/missions${yt(l)}`),kx=l=>Z(`/api/v1/missions/summaries${yt(l)}`),q1=l=>Z(`/api/v1/missions/${l}`),Lx=l=>Z(`/api/v1/missions/history${yt(l?{filters:Object.fromEntries(Object.entries(l).filter(([,s])=>s!=null&&s!=="").map(([s,f])=>[s,String(f)]))}:void 0)}`),Bx=l=>Z(`/api/v1/missions/${encodeURIComponent(l)}/landing-preview`),Hx=l=>Z(`/api/v1/missions/${encodeURIComponent(l)}/github/pull-request`),qx=l=>W("/api/v1/missions",l),Vx=(l,s)=>Ke(`/api/v1/missions/${l}`,s),$x=l=>Le(`/api/v1/missions/${l}`),Yx=l=>Le(`/api/v1/missions/${l}/purge`),V1=l=>W("/api/v1/missions",l),Gx=l=>W(`/api/v1/missions/${l}/restart`),Qx=l=>W(`/api/v1/missions/${l}/retry-landing`,{}),Xx=(l,s)=>Ke(`/api/v1/missions/${l}/status`,s),Zx=(l,s)=>W(`/api/v1/missions/${l}/review/approve`,s?{comment:s}:{}),Kx=(l,s)=>W(`/api/v1/missions/${l}/review/deny`,s?{comment:s}:{}),Jx=l=>Z(`/api/v1/missions/${l}/diff`,{timeout:3e4}),Ix=(l,s=500)=>Z(`/api/v1/missions/${l}/log?lines=${s}`),Wx=l=>Z(`/api/v1/missions/${l}/instructions`),Fx=l=>Z(`/api/v1/voyages${yt(l)}`),Px=l=>Z(`/api/v1/voyages/${l}`),eS=l=>Z(`/api/v1/voyages/${l}/status`),tS=l=>W("/api/v1/voyages",l),nS=l=>Le(`/api/v1/voyages/${l}`),aS=l=>Le(`/api/v1/voyages/${l}/purge`),lS=()=>Z("/api/v1/planning-sessions"),iS=l=>Z(`/api/v1/planning-sessions/${l}`),uS=l=>W("/api/v1/planning-sessions",l,{timeout:Im}),sS=(l,s)=>W(`/api/v1/planning-sessions/${l}/messages`,s),oS=(l,s)=>W(`/api/v1/planning-sessions/${l}/summarize`,s,{timeout:nr}),cS=(l,s)=>W(`/api/v1/planning-sessions/${l}/dispatch`,s),rS=l=>W(`/api/v1/planning-sessions/${l}/stop`),fS=l=>Le(`/api/v1/planning-sessions/${l}`),dS=l=>Z(`/api/v1/events${yt(l)}`),hS=l=>Z(`/api/v1/events/${l}`),mS=l=>W("/api/v1/events/delete/multiple",{Ids:l}),pS=l=>Z(`/api/v1/merge-queue${yt(l)}`),vS=l=>Z(`/api/v1/merge-queue/${l}`),yS=l=>W("/api/v1/merge-queue",l),gS=l=>Le(`/api/v1/merge-queue/${l}`),bS=l=>W(`/api/v1/merge-queue/${l}/process`),xS=()=>W("/api/v1/merge-queue/process-all"),SS=l=>W(`/api/v1/merge-queue/${l}/cancel`),jS=l=>Z(`/api/v1/prompt-templates${yt(l)}`),ES=l=>Z(`/api/v1/prompt-templates/${encodeURIComponent(l)}`),CS=l=>W("/api/v1/prompt-templates",l),TS=(l,s)=>Ke(`/api/v1/prompt-templates/${encodeURIComponent(l)}`,s),_S=l=>W(`/api/v1/prompt-templates/${encodeURIComponent(l)}/reset`),RS=l=>Z(`/api/v1/playbooks${yt(l)}`),zS=l=>Z(`/api/v1/playbooks/${l}`),AS=l=>W("/api/v1/playbooks",l),wS=(l,s)=>Ke(`/api/v1/playbooks/${l}`,s),MS=l=>Le(`/api/v1/playbooks/${l}`),$1=l=>Z(`/api/v1/workflow-profiles${yt(l)}`),NS=l=>Z(`/api/v1/workflow-profiles/${encodeURIComponent(l)}`),DS=l=>W("/api/v1/workflow-profiles",l),OS=(l,s)=>Ke(`/api/v1/workflow-profiles/${encodeURIComponent(l)}`,s),US=l=>Le(`/api/v1/workflow-profiles/${encodeURIComponent(l)}`),kS=l=>W("/api/v1/workflow-profiles/validate",l),LS=(l,s)=>Z(`/api/v1/workflow-profiles/preview/vessels/${encodeURIComponent(l)}${s?`?workflowProfileId=${encodeURIComponent(s)}`:""}`),Y1=l=>Z(`/api/v1/environments${C1(l)}`),BS=l=>Z(`/api/v1/environments/${encodeURIComponent(l)}`),HS=l=>W("/api/v1/environments",l),qS=(l,s)=>Ke(`/api/v1/environments/${encodeURIComponent(l)}`,s),VS=l=>Le(`/api/v1/environments/${encodeURIComponent(l)}`),$S=l=>Z(`/api/v1/deployments${T1(l)}`),YS=l=>Z(`/api/v1/deployments/${encodeURIComponent(l)}`),GS=l=>W("/api/v1/deployments",l),QS=(l,s)=>Ke(`/api/v1/deployments/${encodeURIComponent(l)}`,s),XS=l=>W("/api/v1/check-runs/sync/github-actions",l),ZS=(l,s)=>W(`/api/v1/deployments/${encodeURIComponent(l)}/approve`,{}),KS=(l,s)=>W(`/api/v1/deployments/${encodeURIComponent(l)}/deny`,{}),JS=l=>W(`/api/v1/deployments/${encodeURIComponent(l)}/verify`,{}),IS=l=>W(`/api/v1/deployments/${encodeURIComponent(l)}/rollback`,{}),WS=l=>Le(`/api/v1/deployments/${encodeURIComponent(l)}`),FS=l=>Z(`/api/v1/incidents${_1(l)}`),PS=l=>Z(`/api/v1/incidents/${encodeURIComponent(l)}`),e2=l=>W("/api/v1/incidents",l),t2=(l,s)=>Ke(`/api/v1/incidents/${encodeURIComponent(l)}`,s),n2=l=>Le(`/api/v1/incidents/${encodeURIComponent(l)}`),a2=l=>Z(`/api/v1/runbooks${R1(l)}`),l2=l=>Z(`/api/v1/runbooks/${encodeURIComponent(l)}`),i2=l=>W("/api/v1/runbooks",l),u2=(l,s)=>Ke(`/api/v1/runbooks/${encodeURIComponent(l)}`,s),s2=l=>Le(`/api/v1/runbooks/${encodeURIComponent(l)}`),o2=l=>Z(`/api/v1/runbook-executions${z1(l)}`),c2=(l,s)=>W(`/api/v1/runbooks/${encodeURIComponent(l)}/executions`,s),r2=(l,s)=>Ke(`/api/v1/runbook-executions/${encodeURIComponent(l)}`,s),f2=l=>Z(`/api/v1/releases${E1(l)}`),d2=l=>Z(`/api/v1/releases/${encodeURIComponent(l)}`),h2=l=>W("/api/v1/releases",l),m2=(l,s)=>Ke(`/api/v1/releases/${encodeURIComponent(l)}`,s),p2=l=>W(`/api/v1/releases/${encodeURIComponent(l)}/refresh`,{}),v2=l=>Le(`/api/v1/releases/${encodeURIComponent(l)}`),y2=l=>Z(`/api/v1/releases/${encodeURIComponent(l)}/github/pull-requests`),g2=l=>Z(`/api/v1/check-runs${yt(l)}`),b2=l=>Z(`/api/v1/check-runs/${encodeURIComponent(l)}`),x2=l=>W("/api/v1/check-runs",l,{timeout:2100*1e3}),S2=l=>W(`/api/v1/check-runs/${encodeURIComponent(l)}/retry`),j2=l=>Le(`/api/v1/check-runs/${encodeURIComponent(l)}`),E2=l=>Z(`/api/v1/personas${yt(l)}`),C2=l=>Z(`/api/v1/personas/${encodeURIComponent(l)}`),T2=l=>W("/api/v1/personas",l),_2=(l,s)=>Ke(`/api/v1/personas/${encodeURIComponent(l)}`,s),R2=l=>Le(`/api/v1/personas/${encodeURIComponent(l)}`),z2=l=>Z(`/api/v1/pipelines${yt(l)}`),A2=l=>Z(`/api/v1/pipelines/${encodeURIComponent(l)}`),w2=l=>W("/api/v1/pipelines",l),M2=(l,s)=>Ke(`/api/v1/pipelines/${encodeURIComponent(l)}`,s),N2=l=>Le(`/api/v1/pipelines/${encodeURIComponent(l)}`),D2=l=>Z(`/api/v1/docks${yt(l)}`),O2=l=>Z(`/api/v1/docks/${l}`),U2=l=>Le(`/api/v1/docks/${l}`),k2=l=>Z(`/api/v1/signals${yt(l)}`),L2=l=>Z(`/api/v1/signals/${l}`),B2=l=>W("/api/v1/signals",l),H2=l=>Ke(`/api/v1/signals/${l}/read`),q2=l=>W("/api/v1/signals/delete/multiple",{Ids:l}),V2=()=>Z("/api/v1/status"),G1=()=>Z("/api/v1/status/health"),$2=()=>Z("/api/v1/doctor"),Y2=()=>Z("/api/v1/settings"),G2=l=>Ke("/api/v1/settings",l),Q2=()=>W("/api/v1/server/stop"),X2=()=>W("/api/v1/server/reset");async function Z2(){const l={};Ma&&(l["X-Token"]=Ma);const s=await fetch(`${rs}/api/v1/backup`,{method:"GET",headers:l});if(s.status===401)throw sn==null||sn(),new Error("Unauthorized");if(!s.ok)throw new Error(`Backup failed: ${s.status}`);const f=await s.blob(),d=(s.headers.get("Content-Disposition")||"").match(/filename="?([^"]+)"?/),m=d?d[1]:`armada-backup-${new Date().toISOString().slice(0,10)}.zip`,v=URL.createObjectURL(f),x=document.createElement("a");x.href=v,x.download=m,document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(v)}async function K2(l){const s={"Content-Type":"application/octet-stream"};Ma&&(s["X-Token"]=Ma),s["X-Original-Filename"]=l.name;const f=await l.arrayBuffer(),u=await fetch(`${rs}/api/v1/restore`,{method:"POST",headers:s,body:f});if(u.status===401)throw sn==null||sn(),new Error("Unauthorized");if(!u.ok){const m=await u.text();throw new Error(m||`Restore failed: ${u.status}`)}const d=await u.json();return Ni(d)}const Cl="armada_session_token",ap=p.createContext(null);function Q1({children:l}){var D,Y;const[s,f]=p.useState(()=>localStorage.getItem(Cl)),[u,d]=p.useState(null),[m,v]=p.useState(!0),x=p.useCallback(()=>{f(null),d(null),Ai(null),localStorage.removeItem(Cl)},[]);p.useEffect(()=>{S1(x)},[x]),p.useEffect(()=>{const U=localStorage.getItem(Cl);U?(Ai(U),vm().then(Q=>{d(Q),f(U)}).catch(()=>{localStorage.removeItem(Cl),f(null),Ai(null)}).finally(()=>v(!1))):v(!1)},[]);const g=p.useCallback(async U=>{v(!0);try{f(U),Ai(U),localStorage.setItem(Cl,U);const Q=await vm();d(Q)}catch{throw f(null),Ai(null),localStorage.removeItem(Cl),new Error("Login failed")}finally{v(!1)}},[]),y=!!s&&!!u,R=((D=u==null?void 0:u.user)==null?void 0:D.isAdmin)??!1,S=R||(((Y=u==null?void 0:u.user)==null?void 0:Y.isTenantAdmin)??!1);return c.jsx(ap.Provider,{value:{sessionToken:s,user:u,isAuthenticated:y,isAdmin:R,isTenantAdmin:S,loading:m,login:g,logout:x},children:l})}function hs(){const l=p.useContext(ap);if(!l)throw new Error("useAuth must be used within AuthProvider");return l}const lp="armada_locale",Bc="data-armada-i18n-title",lr=[{code:"en",label:"English",nativeLabel:"English",dir:"ltr",aliases:["en-US","en-GB","en-CA","en-AU"]},{code:"es",label:"Spanish",nativeLabel:"Español",dir:"ltr",aliases:["es-ES","es-MX","es-419"]},{code:"zh-Hans",label:"Mandarin (Simplified)",nativeLabel:"简体中文",dir:"ltr",aliases:["zh","zh-CN","zh-SG","cmn-Hans"]},{code:"zh-Hant",label:"Mandarin (Traditional)",nativeLabel:"繁體中文",dir:"ltr",aliases:["zh-TW","cmn-Hant"]},{code:"yue-Hant",label:"Cantonese",nativeLabel:"粵語",dir:"ltr",aliases:["zh-HK","zh-MO","yue","yue-HK"]},{code:"ja",label:"Japanese",nativeLabel:"日本語",dir:"ltr",aliases:["ja-JP"]},{code:"de",label:"German",nativeLabel:"Deutsch",dir:"ltr",aliases:["de-DE"]},{code:"fr",label:"French",nativeLabel:"Français",dir:"ltr",aliases:["fr-FR","fr-CA"]},{code:"it",label:"Italian",nativeLabel:"Italiano",dir:"ltr",aliases:["it-IT"]}],ip=["title","placeholder","aria-label","aria-description","alt"];let Hc=null,ym=!1,gm=!1;function X1(){return{defaultLocale:"en",supportedLocales:lr,locales:{}}}function Di(l){return l??X1()}function up(l,s){return Di(s).locales[l]??{}}function Z1(l){const s=l;return s.__armadaI18nOriginal===void 0&&(s.__armadaI18nOriginal=l.nodeValue??""),s.__armadaI18nOriginal}function K1(l,s){const f=`data-armada-i18n-orig-${s}`;if(l.hasAttribute(f))return l.getAttribute(f);const u=l.getAttribute(s);return u!==null&&l.setAttribute(f,u),u}function J1(l){const s="data-armada-i18n-orig-value",f=l.getAttribute(s);if(f!==null)return f;const u=l.value;return l.setAttribute(s,u),u}function qc(l,s){var d,m;const f=((d=l.match(/^\s*/))==null?void 0:d[0])??"",u=((m=l.match(/\s*$/))==null?void 0:m[0])??"";return`${f}${s.trim()}${u}`}function sp(l,s,f){var d;return((d=up(l,f).terms)==null?void 0:d[s])??null}function I1(l,s,f){var d,m;const u=up(l,f);return((d=u.phrases)==null?void 0:d[s])??((m=u.sections)==null?void 0:m[s])??null}function ot(l,s){return new Intl.NumberFormat(l).format(s)}function An(l,s,f){return new Intl.RelativeTimeFormat(l,{numeric:"auto"}).format(s,f)}function W1(l,s,f,u){const d=J(l,s,u);return d===s&&!sp(l,s,u)?null:`${d}: ${f}`}function F1(l,s,f){if(s==="just now")return An(l,0,"second");let u=s.match(/^\+\s+(.+)$/);if(u)return`+ ${J(l,u[1],f)}`;if(u=s.match(/^←\s+(.+)$/),u)return`← ${J(l,u[1],f)}`;if(u=s.match(/^(.+)\s+→$/),u)return`${J(l,u[1],f)} →`;if(["healthy","degraded","unhealthy","error","unknown","connected","connecting","disconnected","disabled","active","inactive"].includes(s)){const x=s.charAt(0).toUpperCase()+s.slice(1);return J(l,x,f)}if(u=s.match(/^(\d+)\s*\/\s*page$/i),u)return`${ot(l,Number(u[1]))} / ${J(l,"page",f)}`;if(u=s.match(/^(\d+)s ago$/),u)return An(l,-Number(u[1]),"second");if(u=s.match(/^(\d+)m ago$/),u)return An(l,-Number(u[1]),"minute");if(u=s.match(/^(\d+)h ago$/),u)return An(l,-Number(u[1]),"hour");if(u=s.match(/^(\d+)d ago$/),u)return An(l,-Number(u[1]),"day");if(u=s.match(/^(\d+) chars$/),u)return`${ot(l,Number(u[1]))} ${J(l,"chars",f)}`;if(u=s.match(/^(\d+) lines$/),u)return`${ot(l,Number(u[1]))} ${J(l,"lines",f)}`;if(u=s.match(/^(\d+) unread$/),u)return`${ot(l,Number(u[1]))} ${J(l,"unread",f)}`;if(u=s.match(/^(\d+) records$/),u)return`${ot(l,Number(u[1]))} ${J(l,"records",f)}`;if(u=s.match(/^(\d+) selected$/),u)return`${ot(l,Number(u[1]))} ${J(l,"selected",f)}`;if(u=s.match(/^(\d+) idle$/),u)return`${ot(l,Number(u[1]))} ${J(l,"idle",f)}`;if(u=s.match(/^(\d+) working$/),u)return`${ot(l,Number(u[1]))} ${J(l,"working",f)}`;if(u=s.match(/^(\d+) stalled$/),u)return`${ot(l,Number(u[1]))} ${J(l,"stalled",f)}`;if(u=s.match(/^(\d+) failed$/),u)return`${ot(l,Number(u[1]))} ${J(l,"failed",f)}`;if(u=s.match(/^(\d+)\/(\d+) done$/),u)return`${ot(l,Number(u[1]))}/${ot(l,Number(u[2]))} ${J(l,"done",f)}`;if(u=s.match(/^, (\d+) failed$/),u)return`, ${ot(l,Number(u[1]))} ${J(l,"failed",f)}`;if(u=s.match(/^(\d+) file changed$/),u)return`${ot(l,Number(u[1]))} ${J(l,"file changed",f)}`;if(u=s.match(/^(\d+) files changed$/),u)return`${ot(l,Number(u[1]))} ${J(l,"files changed",f)}`;if(u=s.match(/^Files \((\d+)\)$/),u)return`${J(l,"Files",f)} (${ot(l,Number(u[1]))})`;if(u=s.match(/^Missions \((\d+)\)$/),u)return`${J(l,"Missions",f)} (${ot(l,Number(u[1]))})`;if(u=s.match(/^Mission (\d+)$/),u)return`${J(l,"Mission",f)} ${ot(l,Number(u[1]))}`;if(u=s.match(/^(.+?) -- click to sort$/),u)return`${J(l,u[1],f)} -- ${J(l,"click to sort",f)}`;if(u=s.match(/^Select all (.+)$/),u)return`${J(l,"Select all",f)} ${J(l,u[1],f)}`;if(u=s.match(/^Select this (.+)$/),u)return`${J(l,"Select this",f)} ${J(l,u[1],f)}`;if(u=s.match(/^Delete Selected (.+)$/),u)return`${J(l,"Delete Selected",f)} ${J(l,u[1],f)}`;if(u=s.match(/^(Mission|Voyage|Captain): (.+)$/),u)return`${J(l,u[1],f)}: ${u[2]}`;if(u=s.match(/^Log: (.+)$/),u)return`${J(l,"Log",f)}: ${u[1]}`;if(u=s.match(/^Health: (.+)$/),u)return`${J(l,"Health",f)}: ${J(l,u[1],f)}`;if(u=s.match(/^Copy (.+) HTTP config to clipboard$/),u){const x=J(l,"Copy {{title}} HTTP config to clipboard",f);return lt(x,{title:u[1]})}if(u=s.match(/^Copy (.+) STDIO config to clipboard$/),u){const x=J(l,"Copy {{title}} STDIO config to clipboard",f);return lt(x,{title:u[1]})}if(u=s.match(/^Delete ([A-Za-z ]+) "(.+)"\? This cannot be undone\.$/),u)return lt(J(l,'Delete {{entity}} "{{name}}"? This cannot be undone.',f),{entity:J(l,u[1],f).toLowerCase(),name:u[2]});if(u=s.match(/^Delete ([A-Za-z ]+) (.+)\? This cannot be undone\.$/),u)return lt(J(l,"Delete {{entity}} {{name}}? This cannot be undone.",f),{entity:J(l,u[1],f).toLowerCase(),name:u[2]});if(u=s.match(/^Delete dock (.+)\? This will clean up the git worktree and cannot be undone\.$/),u)return lt(J(l,"Delete dock {{name}}? This will clean up the git worktree and cannot be undone.",f),{name:u[1]});if(u=s.match(/^Delete (event|signal) (.+)\?$/),u)return lt(J(l,"Delete {{entity}} {{name}}?",f),{entity:J(l,u[1],f).toLowerCase(),name:u[2]});if(u=s.match(/^Stop captain "(.+)"\? This will halt the current mission\.$/),u)return lt(J(l,'Stop captain "{{name}}"? This will halt the current mission.',f),{name:u[1]});if(u=s.match(/^Recall captain "(.+)"\? The captain will finish current work and return to idle\.$/),u)return lt(J(l,'Recall captain "{{name}}"? The captain will finish current work and return to idle.',f),{name:u[1]});if(u=s.match(/^Remove captain "(.+)"\? This cannot be undone\.$/),u)return lt(J(l,'Remove captain "{{name}}"? This cannot be undone.',f),{name:u[1]});if(u=s.match(/^Delete failed: (.+)$/),u)return lt(J(l,"Delete failed: {{message}}",f),{message:u[1]});if(u=s.match(/^Save failed: (.+)$/),u)return lt(J(l,"Save failed: {{message}}",f),{message:u[1]});if(u=s.match(/^Failed to save settings: (.+)$/),u)return lt(J(l,"Failed to save settings: {{message}}",f),{message:u[1]});if(u=s.match(/^Unable to load existing Armada resources: (.+)$/),u)return lt(J(l,"Unable to load existing Armada resources: {{message}}",f),{message:u[1]});if(u=s.match(/^(Fleet|Vessel|Captain) creation failed: (.+)$/),u)return lt(J(l,"{{entity}} creation failed: {{message}}",f),{entity:J(l,u[1],f),message:u[2]});if(u=s.match(/^Dispatch failed: (.+)$/),u)return lt(J(l,"Dispatch failed: {{message}}",f),{message:u[1]});if(u=s.match(/^Created (fleet|vessel|captain) "(.+)"\.$/i),u)return lt(J(l,'Created {{entity}} "{{name}}".',f),{entity:J(l,u[1],f).toLowerCase(),name:u[2]});if(u=s.match(/^Using (fleet|vessel|captain) "(.+)"\.$/i),u)return lt(J(l,'Using {{entity}} "{{name}}".',f),{entity:J(l,u[1],f).toLowerCase(),name:u[2]});if(u=s.match(/^Mission status refreshed: (.+)\.$/),u)return lt(J(l,"Mission status refreshed: {{status}}.",f),{status:J(l,u[1],f)});if(u=s.match(/^([A-Za-z ]+): (.+)$/),u){const x=J(l,u[1],f);if(x!==u[1])return`${x}: ${u[2]}`}if(u=s.match(/^(Mission|Voyage|Captain) "(.+)" \u2014 (.+)$/),u)return`${J(l,u[1],f)} "${u[2]}" — ${J(l,u[3],f)}`;if(u=s.match(/^(Mission|Voyage|Captain) (Pending|Assigned|InProgress|WorkProduced|Testing|Review|Complete|Completed|Failed|LandingFailed|Cancelled|Idle|Working|Stalled|Stopping|Queued|Passed|Landed|Active|Inactive)$/),u)return`${J(l,u[1],f)} ${J(l,u[2],f)}`;if(u=s.match(/^Signing in as (.+) to (.+)$/),u)return lt(J(l,"Signing in as {{email}} to {{tenant}}",f),{email:u[1],tenant:u[2]});const m=["Mission","Voyage","Captain","Fleet","Vessel","Dock","Event","Signal","Pipeline","Persona","Prompt Template","Template","Credential","Tenant","User","Error","Health","Status","Title","Message","Connection","Version","Uptime","Payload","Branch","Priority","Runtime","Model","Description"],v=s.match(/^([^:]+): (.+)$/);return v&&m.includes(v[1])?W1(l,v[1],v[2],f):null}function J(l,s,f){if(!s||l==="en")return s;const u=s.trim();if(!u)return s;const d=I1(l,u,f);if(d)return qc(s,d);const m=F1(l,u,f);if(m)return qc(s,m);if(!u.includes(`
`)&&!u.includes(" ")&&!u.includes("	")){const v=sp(l,u,f);if(v)return qc(s,v)}return s}function lt(l,s){return s?Object.entries(s).reduce((f,[u,d])=>f.split(`{{${u}}}`).join(d==null?"":String(d)),l):l}function P1(l,s,f,u){return lt(J(l,s,f),u)}function wi(l,s){const u=(l||"").trim()||Di(s).defaultLocale,d=is(s),m=d.find(g=>g.code.toLowerCase()===u.toLowerCase());if(m)return m.code;const v=d.find(g=>{var y;return(y=g.aliases)==null?void 0:y.some(R=>R.toLowerCase()===u.toLowerCase())});if(v)return v.code;const x=u.toLowerCase();return x.startsWith("zh-hk")||x.startsWith("zh-mo")||x.startsWith("yue")?"yue-Hant":x.startsWith("zh-tw")||x.startsWith("zh-hant")?"zh-Hant":x.startsWith("zh")?"zh-Hans":x.startsWith("ja")?"ja":x.startsWith("de")?"de":x.startsWith("fr")?"fr":x.startsWith("it")?"it":x.startsWith("es")?"es":Di(s).defaultLocale}function is(l){return Di(l).supportedLocales}function e0(l,s){return is(s).find(f=>f.code===l)??lr[0]}function t0(l){var f;try{const u=localStorage.getItem(lp);if(u)return wi(u,l)}catch{}const s=(f=navigator.languages)!=null&&f.length?navigator.languages:[navigator.language];for(const u of s){const d=wi(u,l);if(d)return d}return Di(l).defaultLocale}function bm(l){try{localStorage.setItem(lp,l)}catch{}}async function n0(){return Hc||(Hc=fetch("/dashboard/i18n/armada.json",{cache:"force-cache"}).then(async l=>{if(!l.ok)throw new Error(`Failed to load i18n catalog (${l.status})`);return await l.json()}).catch(()=>null)),await Hc}function op(l){return l?!!l.closest('[data-i18n-skip="true"], pre, code, textarea, script, style, svg, .mono'):!1}function a0(l,s,f){if(op(l.parentElement))return;const u=Z1(l),d=J(s,u,f);d!==(l.nodeValue??"")&&(l.nodeValue=d)}function xm(l,s,f){if(!op(l)){for(const u of ip){const d=K1(l,u);if(d!==null){const m=J(s,d,f);(m!==d||l.getAttribute(u)!==m)&&l.setAttribute(u,m)}}if(l instanceof HTMLInputElement&&["button","submit","reset"].includes(l.type)){const u=J1(l),d=J(s,u,f);d!==l.value&&(l.value=d)}}}function l0(l,s,f){if(!(l instanceof Element||l instanceof Document||l instanceof DocumentFragment))return;l instanceof HTMLElement&&xm(l,s,f);const u=l instanceof Document?Array.from(l.body.querySelectorAll("*")):Array.from(l.querySelectorAll("*"));for(const v of u)xm(v,s,f);const d=document.createTreeWalker(l,NodeFilter.SHOW_TEXT);let m=d.nextNode();for(;m;)a0(m,s,f),m=d.nextNode()}function Zc(l,s){const f=e0(l,s);document.documentElement.lang=f.code,document.documentElement.dir=f.dir,document.documentElement.hasAttribute(Bc)||document.documentElement.setAttribute(Bc,document.title);const u=document.documentElement.getAttribute(Bc)||document.title;document.title=J(l,u,s)}function i0(l,s,f){let u=!1;const d=()=>{u=!1;const v=s(),x=f();Zc(v,x),l0(l,v,x)};d();const m=new MutationObserver(()=>{u||(u=!0,window.requestAnimationFrame(d))});return m.observe(l,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[...ip,"value"]}),()=>m.disconnect()}function u0(l,s){if(ym)return;ym=!0;const f=window.confirm.bind(window),u=window.alert.bind(window);window.confirm=d=>f(J(l(),d??"",s())),window.alert=d=>u(J(l(),d??"",s()))}function Fu(l){return Array.isArray(l)?l.length>0:typeof l=="string"?l.trim().length>0:l!=null}function s0(l){if(gm)return;gm=!0;const s=Date.prototype.toLocaleString,f=Date.prototype.toLocaleDateString,u=Date.prototype.toLocaleTimeString,d=Number.prototype.toLocaleString;Date.prototype.toLocaleString=function(v,x){const g=Fu(v)?v:l();return s.call(this,g,x)},Date.prototype.toLocaleDateString=function(v,x){const g=Fu(v)?v:l();return f.call(this,g,x)},Date.prototype.toLocaleTimeString=function(v,x){const g=Fu(v)?v:l();return u.call(this,g,x)},Number.prototype.toLocaleString=function(v,x){const g=Fu(v)?v:l();return d.call(this,g,x)}}function o0(l,s){return s?new Date(s).toLocaleString(l):""}function c0(l,s){return s?new Date(s).toLocaleDateString(l):""}function r0(l,s){if(!s)return"-";const f=new Date(s).getTime(),u=Date.now(),d=Math.round((f-u)/1e3);if(Math.abs(d)<60)return An(l,d,"second");const v=Math.round(d/60);if(Math.abs(v)<60)return An(l,v,"minute");const x=Math.round(v/60);if(Math.abs(x)<24)return An(l,x,"hour");const g=Math.round(x/24);return An(l,g,"day")}const cp=p.createContext(null);function f0({children:l}){const[s,f]=p.useState(null),[u,d]=p.useState(()=>t0(null)),m=p.useRef(s),v=p.useRef(u);p.useEffect(()=>{m.current=s},[s]),p.useEffect(()=>{v.current=u},[u]),p.useEffect(()=>{n0().then(R=>{f(R),d(S=>wi(S,R))})},[]),p.useEffect(()=>{if(bm(u),Zc(u,s),document.body){const R=wi(u,s);if(R!==u){d(R);return}}},[u,s]),p.useEffect(()=>{if(document.body)return s0(()=>v.current),u0(()=>v.current,()=>m.current),i0(document.body,()=>v.current,()=>m.current)},[]);const x=p.useCallback(R=>{const S=wi(R,m.current);v.current=S,d(S),bm(S),Zc(S,m.current)},[]),g=p.useCallback((R,S)=>P1(v.current,R,m.current,S),[]),y=p.useMemo(()=>({locale:u,setLocale:x,supportedLocales:is(s).length>0?is(s):lr,catalog:s,t:g,formatDateTime:R=>o0(u,R),formatDate:R=>c0(u,R),formatRelativeTime:R=>r0(u,R)}),[s,u,x,g]);return c.jsx(cp.Provider,{value:y,children:l})}function Ml(){const l=p.useContext(cp);if(!l)throw new Error("useLocale must be used within LocaleProvider");return l}const rp=p.createContext(null),Sm="armada_theme";function d0({children:l}){const[s,f]=p.useState(()=>{var m;const d=localStorage.getItem(Sm);return d!==null?d==="dark":((m=window.matchMedia)==null?void 0:m.call(window,"(prefers-color-scheme: dark)").matches)??!1});p.useEffect(()=>{const d=s?"dark":"light";document.documentElement.setAttribute("data-theme",d),localStorage.setItem(Sm,d);const m=document.getElementById("favicon");m&&(m.href=s?"/img/logo-light-grey.png":"/img/logo-dark-grey.png")},[s]);const u=p.useCallback(()=>{f(d=>!d)},[]);return c.jsx(rp.Provider,{value:{darkMode:s,toggleTheme:u},children:l})}function fp(){const l=p.useContext(rp);if(!l)throw new Error("useTheme must be used within ThemeProvider");return l}const dp=p.createContext(null),jm=3e3;function h0({children:l}){const{isAuthenticated:s}=hs(),[f,u]=p.useState(!1),d=p.useRef(null),m=p.useRef(new Set),v=p.useRef(null),x=p.useRef(!0),g=p.useCallback(S=>(m.current.add(S),()=>{m.current.delete(S)}),[]),y=p.useCallback(S=>{var D;((D=d.current)==null?void 0:D.readyState)===WebSocket.OPEN&&d.current.send(JSON.stringify(S))},[]),R=p.useCallback(()=>{if(x.current)try{const D=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`,Y=new WebSocket(D);Y.onopen=()=>{if(!x.current){Y.close();return}u(!0),Y.send(JSON.stringify({Route:"subscribe"}))},Y.onmessage=U=>{try{const Q=JSON.parse(U.data);m.current.forEach(B=>B(Q))}catch{}},Y.onclose=()=>{x.current&&(u(!1),d.current=null,v.current=window.setTimeout(()=>{x.current&&R()},jm))},Y.onerror=()=>{u(!1)},d.current=Y}catch{u(!1),v.current=window.setTimeout(()=>{x.current&&R()},jm)}},[]);return p.useEffect(()=>{if(x.current=!0,!!s)return R(),()=>{x.current=!1,v.current&&(clearTimeout(v.current),v.current=null),d.current&&(d.current.close(),d.current=null)}},[s,R]),c.jsx(dp.Provider,{value:{connected:f,subscribe:g,send:y},children:l})}function hp(){const l=p.useContext(dp);if(!l)throw new Error("useWebSocket must be used within WebSocketProvider");return l}const mp=p.createContext(null),pp="armada_notifications",Kc=100;function m0(){try{const l=localStorage.getItem(pp);if(l)return JSON.parse(l)}catch{}return[]}function p0(l){try{localStorage.setItem(pp,JSON.stringify(l.slice(0,Kc)))}catch{}}function v0(l){if(!l)return"info";const s=l.toLowerCase();return s==="completed"||s==="complete"||s==="landed"||s==="passed"||s.includes("succeeded")?"success":s==="failed"||s==="error"||s.includes("failed")?"error":s==="cancelled"||s==="stalled"||s==="stopping"||s.includes("rolledback")||s.includes("denied")?"warning":"info"}function y0(l){return typeof l=="object"&&l!==null}const Em=5e3;function g0({children:l}){const{subscribe:s}=hp(),{t:f}=Ml(),[u,d]=p.useState(m0),[m,v]=p.useState([]),x=p.useRef(0),g=p.useRef(new Map);p.useEffect(()=>{p0(u)},[u]);const y=u.filter(B=>!B.read).length,R=p.useCallback((B,q,H,X)=>{const ee=`${B}:${q}`;if(g.current.get(ee)===X)return;g.current.set(ee,X);const ue=H.length>80?H.substring(0,80)+"...":H,se=`${f(B)} ${f(X)}`,te=`${f(B)} "${ue}" - ${f(X)}`,Ee=v0(X),Ce={id:`ntf_${Date.now()}_${Math.random().toString(36).substring(2,8)}`,severity:Ee,title:se,message:te,timestampUtc:new Date().toISOString(),missionId:B==="Mission"?q:null,voyageId:B==="Voyage"?q:null,captainId:B==="Captain"?q:null,read:!1};d(Re=>{const Ve=[Ce,...Re];return Ve.length>Kc&&(Ve.length=Kc),Ve});const We=++x.current,Qe={id:We,severity:Ee,message:te};v(Re=>[...Re,Qe]),setTimeout(()=>{v(Re=>Re.filter(Ve=>Ve.id!==We))},Em)},[f]);p.useEffect(()=>s(q=>{const H=q.data;if(y0(H)){if(q.type==="mission.changed"&&H.status&&R("Mission",String(H.id||""),String(H.title||H.id||""),String(H.status)),q.type==="voyage.changed"&&H.status&&R("Voyage",String(H.id||""),String(H.title||H.id||""),String(H.status)),q.type==="captain.changed"&&(H.state||H.status)&&R("Captain",String(H.id||""),String(H.name||H.id||""),String(H.state||H.status)),q.type==="deployment.changed"&&H.status){const X=typeof H.verificationStatus=="string"?` / ${String(H.verificationStatus)}`:"";R("Deployment",String(H.id||""),String(H.title||H.id||""),`${String(H.status)}${X}`)}q.type==="objective.changed"&&H.status&&R("Objective",String(H.id||""),String(H.title||H.id||""),String(H.status)),q.type==="incident.changed"&&H.status&&R("Incident",String(H.id||""),String(H.title||H.id||""),String(H.status))}}),[s,R]);const S=p.useCallback(B=>{d(q=>q.map(H=>H.id===B?{...H,read:!0}:H))},[]),D=p.useCallback(()=>{d(B=>B.map(q=>({...q,read:!0})))},[]),Y=p.useCallback(()=>{d([]),g.current.clear()},[]),U=p.useCallback(B=>{v(q=>q.filter(H=>H.id!==B))},[]),Q=p.useCallback((B,q)=>{const H=++x.current,X={id:H,severity:B,message:q};v(ee=>[...ee,X]),setTimeout(()=>{v(ee=>ee.filter(ue=>ue.id!==H))},Em)},[]);return c.jsx(mp.Provider,{value:{notifications:u,unreadCount:y,toasts:m,markRead:S,markAllRead:D,clearHistory:Y,dismissToast:U,pushToast:Q},children:l})}function b0(){const l=p.useContext(mp);if(!l)throw new Error("useNotifications must be used within NotificationProvider");return l}function vp({className:l="",compact:s=!1,showLabel:f=!1}){const{locale:u,setLocale:d,supportedLocales:m,t:v}=Ml(),x=["locale-select-wrap",s?"compact":"",f?"with-label":"",l].filter(Boolean).join(" ");return c.jsxs("label",{className:x,title:v("Language"),children:[f&&c.jsx("span",{className:"locale-select-label",children:v("Language")}),c.jsx("select",{className:"locale-select",value:u,onChange:g=>d(g.target.value),"aria-label":v("Language"),title:v("Language"),children:m.map(g=>c.jsx("option",{value:g.code,children:g.nativeLabel},g.code))})]})}function x0(){const{login:l}=hs(),{t:s}=Ml(),{darkMode:f,toggleTheme:u}=fp(),[d,m]=p.useState("email"),[v,x]=p.useState("email"),[g,y]=p.useState(""),[R,S]=p.useState(""),[D,Y]=p.useState(""),[U,Q]=p.useState([]),[B,q]=p.useState(null),[H,X]=p.useState(""),[ee,ue]=p.useState(!1),[se,te]=p.useState(null);function Ee(ne){te(ne)}function Ce(){te(null)}async function We(ne){ne.preventDefault(),X(""),ue(!0);try{const T=await D1(g);T.tenants.length===0?X(s("No tenants found for this email.")):T.tenants.length===1?(q(T.tenants[0]),x("password")):(Q(T.tenants),x("tenant"))}catch{X(s("Failed to look up tenants."))}finally{ue(!1)}}function Qe(ne){const T=U.find($=>$.id===ne)??null;q(T)}function Re(){if(!B){X(s("Please select a tenant."));return}X(""),x("password")}async function Ve(ne){if(ne.preventDefault(),!!B){X(""),ue(!0);try{const T=await A1({email:g,password:R,tenantId:B.id});if(!T.success||!T.token)throw new Error(s("Authentication failed."));await l(T.token)}catch{X(s("Authentication failed."))}finally{ue(!1)}}}async function $e(ne){ne.preventDefault(),X(""),ue(!0);try{await l(D)}catch{X(s("API key authentication failed."))}finally{ue(!1)}}return c.jsx("div",{className:"login-container",children:c.jsxs("div",{className:"login-card",children:[c.jsx("img",{src:f?"/img/logo-light-grey.png":"/img/logo-dark-grey.png",alt:"Armada",className:"login-logo",onError:ne=>{ne.target.style.display="none"}}),c.jsx("h1",{children:"Armada"}),c.jsx(vp,{className:"login-language-select",showLabel:!0}),c.jsxs("div",{className:"login-mode-tabs",children:[c.jsx("button",{className:`login-mode-tab${d==="email"?" active":""}`,onClick:()=>{m("email"),X("")},type:"button",children:s("Email Login")}),c.jsx("button",{className:`login-mode-tab${d==="apikey"?" active":""}`,onClick:()=>{m("apikey"),X("")},type:"button",children:s("API Key Login")})]}),H&&c.jsx("div",{className:"login-error",children:H}),d==="apikey"&&c.jsxs("form",{onSubmit:$e,children:[c.jsx("label",{htmlFor:"apikey",children:s("API Key / Bearer Token")}),c.jsxs("div",{className:"login-secret-field",children:[c.jsx("input",{id:"apikey",type:se==="apikey"?"text":"password",value:D,onChange:ne=>Y(ne.target.value),placeholder:s("Paste your API key"),required:!0,autoFocus:!0}),c.jsx("button",{type:"button",className:"login-secret-toggle","aria-label":s(se==="apikey"?"Hide API key":"Show API key"),title:s(se==="apikey"?"Hide API key":"Show API key"),onPointerDown:ne=>{ne.preventDefault(),Ee("apikey")},onPointerUp:Ce,onPointerLeave:Ce,onPointerCancel:Ce,onBlur:Ce,children:c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6z"}),c.jsx("circle",{cx:"12",cy:"12",r:"3"})]})})]}),c.jsx("button",{type:"submit",disabled:ee,children:s(ee?"Connecting...":"Connect")})]}),d==="email"&&v==="email"&&c.jsxs("form",{onSubmit:We,children:[c.jsx("label",{htmlFor:"email",children:s("Email")}),c.jsx("input",{id:"email",type:"email",value:g,onChange:ne=>y(ne.target.value),placeholder:s("you@company.com"),required:!0,autoFocus:!0}),c.jsx("button",{type:"submit",disabled:ee,children:s(ee?"Looking up...":"Continue")})]}),d==="email"&&v==="tenant"&&c.jsxs("form",{onSubmit:ne=>{ne.preventDefault(),Re()},children:[c.jsx("label",{htmlFor:"tenant-select",children:s("Tenant")}),c.jsxs("select",{className:"login-select",id:"tenant-select",value:(B==null?void 0:B.id)??"",onChange:ne=>Qe(ne.target.value),onKeyDown:ne=>{ne.key==="Enter"&&B&&(ne.preventDefault(),Re())},required:!0,autoFocus:!0,children:[c.jsx("option",{value:"",children:s("Select a tenant...")}),U.map(ne=>c.jsx("option",{value:ne.id,children:ne.name},ne.id))]}),c.jsxs("div",{className:"login-actions",children:[c.jsx("button",{type:"submit",disabled:!B||ee,children:s("Continue")}),c.jsx("button",{type:"button",className:"link-btn",onClick:()=>{q(null),x("email")},children:s("Back")})]})]}),d==="email"&&v==="password"&&c.jsxs("form",{onSubmit:Ve,children:[c.jsx("div",{className:"login-context",children:s("Signing in as {{email}} to {{tenant}}",{email:g,tenant:(B==null?void 0:B.name)??""})}),c.jsx("label",{htmlFor:"password",children:s("Password")}),c.jsxs("div",{className:"login-secret-field",children:[c.jsx("input",{id:"password",type:se==="password"?"text":"password",value:R,onChange:ne=>S(ne.target.value),placeholder:s("Password"),required:!0,autoFocus:!0}),c.jsx("button",{type:"button",className:"login-secret-toggle","aria-label":s(se==="password"?"Hide password":"Show password"),title:s(se==="password"?"Hide password":"Show password"),onPointerDown:ne=>{ne.preventDefault(),Ee("password")},onPointerUp:Ce,onPointerLeave:Ce,onPointerCancel:Ce,onBlur:Ce,children:c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6z"}),c.jsx("circle",{cx:"12",cy:"12",r:"3"})]})})]}),c.jsx("button",{type:"submit",disabled:ee,children:s(ee?"Signing in...":"Sign In")}),c.jsx("button",{type:"button",className:"link-btn",onClick:()=>{x("email"),S("")},children:s("Back")})]}),c.jsxs("div",{className:"login-footer",children:[c.jsx("a",{href:"https://github.com/jchristn/armada",target:"_blank",rel:"noopener noreferrer",className:"github-link",title:s("GitHub"),children:c.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"})})}),c.jsxs("span",{style:{fontSize:"0.75em",color:"var(--text-dim)",opacity:.6},children:["v","0.8.0"]}),c.jsx("button",{className:"login-theme-toggle",onClick:u,title:s(f?"Switch to light mode":"Switch to dark mode"),children:f?"☀":"☾"})]})]})})}function Pu({children:l,requireAdmin:s,requireTenantAdmin:f}){const{isAuthenticated:u,isAdmin:d,isTenantAdmin:m,loading:v}=hs(),{t:x}=Ml();return v?null:u?s&&!d?c.jsxs("div",{className:"page-message",children:[c.jsx("h2",{children:x("Access Denied")}),c.jsx("p",{children:x("You need administrator privileges to view this page.")})]}):f&&!m?c.jsxs("div",{className:"page-message",children:[c.jsx("h2",{children:x("Access Denied")}),c.jsx("p",{children:x("You need tenant administrator privileges to view this page.")})]}):c.jsx(c.Fragment,{children:l}):c.jsx(x0,{})}const S0="Mux",yp={muxConfigDirectory:"",muxEndpoint:"",muxBaseUrl:"",muxAdapterType:"",muxTemperature:"",muxMaxTokens:"",muxSystemPromptPath:"",muxApprovalPolicy:""};function wa(l){return(l??"").trim()===S0}function j0(l){if(!l)return null;try{const s=JSON.parse(l);return{schemaVersion:s.schemaVersion??1,configDirectory:s.configDirectory??null,endpoint:s.endpoint??null,baseUrl:s.baseUrl??null,adapterType:s.adapterType??null,temperature:typeof s.temperature=="number"?s.temperature:null,maxTokens:typeof s.maxTokens=="number"?s.maxTokens:null,systemPromptPath:s.systemPromptPath??null,approvalPolicy:s.approvalPolicy??null}}catch{return null}}function J2(l){const s=j0(l==null?void 0:l.runtimeOptionsJson);return!l||!wa(l.runtime)||!s?{...yp}:{muxConfigDirectory:s.configDirectory??"",muxEndpoint:s.endpoint??"",muxBaseUrl:s.baseUrl??"",muxAdapterType:s.adapterType??"",muxTemperature:s.temperature!=null?String(s.temperature):"",muxMaxTokens:s.maxTokens!=null?String(s.maxTokens):"",muxSystemPromptPath:s.systemPromptPath??"",muxApprovalPolicy:s.approvalPolicy??""}}function E0(l,s){if(!wa(l))return null;const f=C0(s.muxTemperature),u=T0(s.muxMaxTokens),d={schemaVersion:1,configDirectory:Tl(s.muxConfigDirectory),endpoint:Tl(s.muxEndpoint),baseUrl:Tl(s.muxBaseUrl),adapterType:Tl(s.muxAdapterType),temperature:f,maxTokens:u,systemPromptPath:Tl(s.muxSystemPromptPath),approvalPolicy:Tl(s.muxApprovalPolicy)};return JSON.stringify(d)}function Tl(l){const s=l.trim();return s||null}function C0(l){const s=l.trim();if(!s)return null;const f=Number(s);return Number.isFinite(f)?f:null}function T0(l){const s=l.trim();if(!s)return null;const f=Number.parseInt(s,10);return Number.isFinite(f)?f:null}function _0({runtime:l,form:s,onChange:f,t:u,compact:d=!1}){const[m,v]=p.useState([]),[x,g]=p.useState(!1),[y,R]=p.useState(""),S=s.muxConfigDirectory.trim(),D=p.useCallback(async()=>{if(!wa(l)){v([]),R("");return}try{g(!0);const U=await H1(S||void 0);if(!U.success)throw new Error(U.errorMessage||U.errorCode||u("Mux endpoint discovery failed."));v(U.endpoints??[]),R("")}catch(U){v([]),R(U instanceof Error?U.message:u("Mux endpoint discovery failed."))}finally{g(!1)}},[S,l,u]);p.useEffect(()=>{wa(l)&&D()},[D,l]);const Y=p.useMemo(()=>wa(l)?x?u("Loading saved Mux endpoints..."):y||(m.length===0?u("No saved Mux endpoints were found for this config directory."):u("{{count}} saved Mux endpoint(s) available.",{count:m.length})):"",[m.length,y,x,l,u]);return wa(l)?c.jsxs("div",{className:"mux-runtime-fields",style:{marginTop:d?"0.5rem":"0.75rem"},children:[c.jsxs("div",{className:"wizard-context-strip",style:{marginBottom:"0.75rem"},children:[c.jsx("span",{children:u("Mux Runtime")}),c.jsx("strong",{children:u("This captain must target a named Mux endpoint.")})]}),c.jsxs("div",{className:"wizard-form-grid",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u("Optional mux config directory override. Leave blank to use mux defaults."),children:u("Mux Config Directory")}),c.jsx("input",{value:s.muxConfigDirectory,onChange:U=>f({muxConfigDirectory:U.target.value}),placeholder:u("Optional path, e.g. C:\\Users\\you\\.mux")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u("Named mux endpoint to validate and launch for this captain."),children:u("Mux Endpoint")}),c.jsx("input",{list:"mux-endpoint-options",value:s.muxEndpoint,onChange:U=>f({muxEndpoint:U.target.value}),placeholder:u("Required endpoint name"),required:!0}),c.jsx("datalist",{id:"mux-endpoint-options",children:m.map(U=>c.jsxs("option",{value:U.name,children:[U.adapterType," ",U.model?`(${U.model})`:""]},U.name))})]})]}),c.jsxs("div",{className:"wizard-inline-actions",style:{marginBottom:"0.75rem"},children:[c.jsx("button",{type:"button",className:"btn btn-sm",onClick:()=>void D(),disabled:x,children:u(x?"Refreshing...":"Refresh Mux Endpoints")}),c.jsx("span",{className:`text-dim${y?" text-danger":""}`,children:Y})]}),c.jsxs("details",{children:[c.jsx("summary",{children:u("Advanced Mux Overrides")}),c.jsxs("div",{className:"wizard-form-grid",style:{marginTop:"0.75rem"},children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{children:u("Mux Base URL")}),c.jsx("input",{value:s.muxBaseUrl,onChange:U=>f({muxBaseUrl:U.target.value}),placeholder:u("Optional override")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{children:u("Mux Adapter Type")}),c.jsx("input",{value:s.muxAdapterType,onChange:U=>f({muxAdapterType:U.target.value}),placeholder:u("Optional override")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{children:u("Mux Temperature")}),c.jsx("input",{value:s.muxTemperature,onChange:U=>f({muxTemperature:U.target.value}),placeholder:u("Optional number")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{children:u("Mux Max Tokens")}),c.jsx("input",{value:s.muxMaxTokens,onChange:U=>f({muxMaxTokens:U.target.value}),placeholder:u("Optional integer")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{children:u("Mux System Prompt Path")}),c.jsx("input",{value:s.muxSystemPromptPath,onChange:U=>f({muxSystemPromptPath:U.target.value}),placeholder:u("Optional path")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{children:u("Mux Approval Policy")}),c.jsxs("select",{value:s.muxApprovalPolicy,onChange:U=>f({muxApprovalPolicy:U.target.value}),children:[c.jsx("option",{value:"",children:u("Default (auto)")}),c.jsx("option",{value:"auto",children:"auto"}),c.jsx("option",{value:"autoapprove",children:"autoapprove"}),c.jsx("option",{value:"deny",children:"deny"}),c.jsx("option",{value:"ask",children:"ask"})]})]})]})]})]}):null}const gp="armada_setup_completed";function R0(){try{return localStorage.getItem(gp)==="true"}catch{return!1}}function Cm(){try{localStorage.setItem(gp,"true")}catch{}}const es=[{title:"Objective",summary:"Configure Armada to dispatch one safe first mission."},{title:"Fleet",summary:"Create or choose the group that owns your repository."},{title:"Vessel",summary:"Register the git repository that captains will work in."},{title:"Captain",summary:"Create or choose an AI runtime so dispatch has capacity."},{title:"Dispatch",summary:"Send a low-risk onboarding mission directly to Armada."},{title:"Handoff",summary:"Refresh the mission and continue into onboarding, backlog, planning, and delivery setup."}],me={fleetSelect:"Choose an existing fleet to group this setup vessel under.",fleetName:"Name for the fleet that will organize one or more related repositories.",fleetDescription:"Optional notes describing what repositories belong in this fleet.",vesselSelect:"Choose the existing git repository Armada should dispatch the setup mission to.",vesselName:"Display name for this repository inside Armada.",defaultBranch:"Default branch Armada should branch from when creating mission worktrees.",repoUrl:"Git clone URL for the repository Armada will manage.",workingDirectory:"Optional path to your local checkout, used for local landing and git status checks.",landingMode:"Controls how completed mission work is landed. None is safest for the setup mission.",enableModelContext:"Allow captains to save useful repository knowledge back onto the vessel for future missions.",allowConcurrentMissions:"Allow more than one mission to run on this vessel at the same time.",projectContext:"Optional architecture, build, test, and dependency notes injected into captain prompts.",styleGuide:"Optional coding conventions, naming rules, and library preferences for captains.",captainSelect:"Choose an idle captain that is currently available for mission assignment.",captainName:"Display name for the AI agent runtime registered with Armada.",runtime:"AI agent runtime Armada should launch for missions assigned to this captain.",model:"Optional runtime-specific model override. Leave blank to use the runtime default.",systemInstructions:"Optional instructions injected into every mission handled by this captain.",missionTitle:"Short title for the direct setup mission created by dispatch.",missionDescription:"Full task instructions sent to the captain for this setup dispatch.",priority:"Scheduling priority for the mission. Lower values are higher priority in Armada."};function Vc(l,s){return l.some(u=>u.id===s.id)?l.map(u=>u.id===s.id?s:u):[s,...l]}function _l(l){return l instanceof Error?l.message:"Request failed."}function z0(l){var u;const s=l;if((u=s==null?void 0:s.mission)!=null&&u.id)return{mission:s.mission,warning:s.warning};const f=l;return f!=null&&f.id?{mission:f}:{mission:null}}function $c(l){return l?l.slice(0,12):"-"}function A0({title:l,children:s}){return c.jsxs("div",{className:"wizard-explanation",children:[c.jsx("h3",{children:l}),c.jsx("div",{className:"wizard-explanation-body",children:s})]})}function w0({result:l}){return l?c.jsx("div",{className:`wizard-result wizard-result-${l.kind}`,children:l.message}):null}function kt({label:l,value:s}){return c.jsxs("div",{className:"wizard-summary-item",children:[c.jsx("span",{children:l}),c.jsx("strong",{children:s})]})}function M0({onClose:l,onHighlightChange:s}){const f=os(),{t:u}=Ml(),[d,m]=p.useState(0),[v,x]=p.useState(!0),[g,y]=p.useState(!1),[R,S]=p.useState(null),[D,Y]=p.useState([]),[U,Q]=p.useState([]),[B,q]=p.useState([]),[H,X]=p.useState("new"),[ee,ue]=p.useState("new"),[se,te]=p.useState("new"),[Ee,Ce]=p.useState(""),[We,Qe]=p.useState(""),[Re,Ve]=p.useState(""),[$e,ne]=p.useState(()=>({name:u("Armada Starter Fleet"),description:u("Created from the setup wizard.")})),[T,$]=p.useState(()=>({name:"",repoUrl:"",defaultBranch:"main",workingDirectory:"",projectContext:"",styleGuide:"",landingMode:"None",enableModelContext:!0,allowConcurrentMissions:!1})),[K,ve]=p.useState(()=>({name:u("Setup Captain"),runtime:"Codex",model:"",systemInstructions:u("For setup missions, prefer read-only repository inspection unless the mission explicitly asks for code changes."),...yp})),[de,E]=p.useState(()=>({title:u("Repository onboarding survey"),description:u("Inspect this repository and report a concise onboarding summary. Do not modify files. Identify the project type, important directories, build/test commands, and one safe follow-up task."),priority:100})),[C,V]=p.useState(""),[G,oe]=p.useState(""),[re,Se]=p.useState(""),[we,Be]=p.useState(null),[Mn,oa]=p.useState(""),[Rt,Nl]=p.useState(null),[on,Na]=p.useState([]),[Dl,ki]=p.useState([]),[ca,Da]=p.useState(!1),It=p.useMemo(()=>D.find(L=>L.id===C)??null,[D,C]),Ae=p.useMemo(()=>U.find(L=>L.id===G)??null,[U,G]),Nn=p.useMemo(()=>B.find(L=>L.id===re)??null,[B,re]),Dn=p.useMemo(()=>B.filter(L=>String(L.state||"").toLowerCase()==="idle"),[B]),ct=p.useMemo(()=>D.find(L=>L.id===Ee)??null,[D,Ee]),ra=p.useMemo(()=>U.find(L=>L.id===We)??null,[U,We]),Oa=p.useMemo(()=>Dn.find(L=>L.id===Re)??null,[Dn,Re]),Ua=p.useMemo(()=>((Rt==null?void 0:Rt.setupChecklist)||[]).find(L=>!L.isSatisfied)||null,[Rt]),On=on.length,Ol=Dl.length,Un=C||(Ae==null?void 0:Ae.fleetId)||"",ms=p.useMemo(()=>{const L=new URLSearchParams;Un&&L.set("fleetId",Un),G&&L.set("vesselId",G);const ce=L.toString();return ce?`/backlog?${ce}`:"/backlog"},[G,Un]),Li=p.useMemo(()=>G?{fromSetupWizard:!0,fleetId:Un||void 0,vesselId:G,title:u("Repository onboarding follow-up"),initialPrompt:u("Use the onboarding findings for this vessel to produce a safe first execution plan. Summarize the setup gaps, pick one small follow-up task, and outline how Armada should approach it.")}:null,[G,Un,u]),kn=p.useCallback(async()=>{try{x(!0);const[L,ce,Ze]=await Promise.all([Pm({pageSize:9999}),ep({pageSize:9999}),tp({pageSize:9999})]);Y(L.objects),Q(ce.objects),q(Ze.objects),L.objects.length>0&&(X("existing"),Ce(zt=>zt||L.objects[0].id)),ce.objects.length>0&&(ue("existing"),Qe(zt=>zt||ce.objects[0].id));const rn=Ze.objects.filter(zt=>String(zt.state||"").toLowerCase()==="idle");rn.length>0&&(te("existing"),Ve(zt=>zt||rn[0].id))}catch(L){S({kind:"error",message:u("Unable to load existing Armada resources: {{message}}",{message:_l(L)})})}finally{x(!1)}},[u]);p.useEffect(()=>{kn()},[kn]),p.useEffect(()=>{const L={1:["/fleets"],2:["/vessels"],3:["/captains"],4:["/dispatch"],5:["/vessels","/workspace","/backlog","/planning","/workflow-profiles","/environments","/checks","/playbooks"]};return s==null||s(L[d]||[]),()=>s==null?void 0:s([])},[d,s]);const rt=p.useCallback(()=>{Cm(),s==null||s([]),l()},[l,s]),ft=p.useCallback((L,ce)=>{Cm(),s==null||s([]),l(),f(L,ce)},[f,l,s]),Xe=p.useCallback(L=>{m(L),S(null)},[]);p.useEffect(()=>{if(d!==es.length-1||!G)return;let L=!0;async function ce(){try{Da(!0);const[Ze,rn,zt]=await Promise.all([k1(G),$1({pageSize:9999}),Y1({pageSize:9999,vesselId:G})]);if(!L)return;const kl=(rn.objects||[]).filter(Ln=>Ln.scope==="Global"?!0:Ln.scope==="Fleet"&&C?Ln.fleetId===C:Ln.scope==="Vessel"?Ln.vesselId===G:!1);Nl(Ze),Na(kl),ki(zt.objects||[])}catch{if(!L)return;Nl(null),Na([]),ki([])}finally{L&&Da(!1)}}return ce(),()=>{L=!1}},[C,G,d]);const ps=async L=>{if(L.preventDefault(),S(null),H==="existing"){if(!ct){S({kind:"error",message:u("Choose a fleet before continuing.")});return}V(ct.id),S({kind:"success",message:u('Using {{entity}} "{{name}}".',{entity:u("Fleet").toLowerCase(),name:ct.name})}),Xe(2);return}if(!$e.name.trim()){S({kind:"error",message:u("Fleet name is required.")});return}try{y(!0);const ce=await O1({name:$e.name.trim(),description:$e.description.trim()||null});Y(Ze=>Vc(Ze,ce)),Ce(ce.id),V(ce.id),X("existing"),S({kind:"success",message:u('Created {{entity}} "{{name}}".',{entity:u("Fleet").toLowerCase(),name:ce.name})}),Xe(2)}catch(ce){S({kind:"error",message:u("{{entity}} creation failed: {{message}}",{entity:u("Fleet"),message:_l(ce)})})}finally{y(!1)}},vs=async L=>{if(L.preventDefault(),S(null),ee==="existing"){if(!ra){S({kind:"error",message:u("Choose a vessel before continuing.")});return}oe(ra.id),ra.fleetId&&V(ra.fleetId),S({kind:"success",message:u('Using {{entity}} "{{name}}".',{entity:u("Vessel").toLowerCase(),name:ra.name})}),Xe(3);return}if(!T.name.trim()){S({kind:"error",message:u("Vessel name is required.")});return}if(!T.repoUrl.trim()){S({kind:"error",message:u("Repository URL is required.")});return}try{y(!0);const ce={name:T.name.trim(),repoUrl:T.repoUrl.trim(),defaultBranch:T.defaultBranch.trim()||"main",enableModelContext:T.enableModelContext,allowConcurrentMissions:T.allowConcurrentMissions};C&&(ce.fleetId=C),T.workingDirectory.trim()&&(ce.workingDirectory=T.workingDirectory.trim()),T.projectContext.trim()&&(ce.projectContext=T.projectContext.trim()),T.styleGuide.trim()&&(ce.styleGuide=T.styleGuide.trim()),T.landingMode&&(ce.landingMode=T.landingMode);const Ze=await U1(ce);Q(rn=>Vc(rn,Ze)),Qe(Ze.id),oe(Ze.id),ue("existing"),S({kind:"success",message:u('Registered vessel "{{name}}".',{name:Ze.name})}),Xe(3)}catch(ce){S({kind:"error",message:u("Vessel registration failed: {{message}}",{message:_l(ce)})})}finally{y(!1)}},ys=async L=>{if(L.preventDefault(),S(null),se==="existing"){if(!Oa){S({kind:"error",message:u("Choose a captain before continuing.")});return}Se(Oa.id),S({kind:"success",message:u('Using {{entity}} "{{name}}".',{entity:u("Captain").toLowerCase(),name:Oa.name})}),Xe(4);return}if(!K.name.trim()){S({kind:"error",message:u("Captain name is required.")});return}if(!K.runtime){S({kind:"error",message:u("Choose a captain runtime.")});return}if(wa(K.runtime)&&!K.muxEndpoint.trim()){S({kind:"error",message:u("Mux captains require a named Mux endpoint.")});return}try{y(!0);const ce=await np({name:K.name.trim(),runtime:K.runtime,model:K.model.trim()||null,systemInstructions:K.systemInstructions.trim()||null,runtimeOptionsJson:E0(K.runtime,K)});q(Ze=>Vc(Ze,ce)),Ve(ce.id),Se(ce.id),te("existing"),S({kind:"success",message:u('Created {{entity}} "{{name}}".',{entity:u("Captain").toLowerCase(),name:ce.name})}),Xe(4)}catch(ce){S({kind:"error",message:u("{{entity}} creation failed: {{message}}",{entity:u("Captain"),message:_l(ce)})})}finally{y(!1)}},ka=async L=>{if(L.preventDefault(),S(null),oa(""),!Ae){S({kind:"error",message:u("Choose or create a vessel before dispatching.")});return}if(!Nn){S({kind:"error",message:u("Choose or create a captain before dispatching.")});return}if(!de.title.trim()||!de.description.trim()){S({kind:"error",message:u("Mission title and description are required.")});return}try{y(!0);const ce=await V1({vesselId:Ae.id,title:de.title.trim(),description:de.description.trim(),priority:de.priority}),Ze=z0(ce);if(!Ze.mission){S({kind:"error",message:u("Dispatch succeeded but no mission was returned.")});return}Be(Ze.mission),oa(Ze.warning||""),S({kind:Ze.warning?"info":"success",message:Ze.warning||u('Dispatched mission "{{title}}".',{title:Ze.mission.title})}),Xe(5)}catch(ce){S({kind:"error",message:u("Dispatch failed: {{message}}",{message:_l(ce)})})}finally{y(!1)}},La=async()=>{if(we)try{y(!0);const L=await q1(we.id);Be(L),S({kind:"success",message:u("Mission status refreshed: {{status}}.",{status:u(L.status)})})}catch(L){S({kind:"error",message:u("Mission refresh failed: {{message}}",{message:_l(L)})})}finally{y(!1)}},Ba=d===0?!v:d===1?!!It:d===2?!!Ae:d===3?!!Nn:d===4?!!we:!0,cn=()=>c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"wizard-step-heading",children:u("Set up Armada by dispatching one first mission")}),c.jsx(A0,{title:u("What this wizard will do"),children:c.jsxs("div",{className:"wizard-start-list",children:[c.jsxs("div",{children:[c.jsx("strong",{children:u("Pick a fleet")}),c.jsx("span",{children:u("Create or reuse the repository group Armada should organize work under.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Register a vessel")}),c.jsx("span",{children:u("Provide the target git repository and optional project context, without leaving the wizard.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Prepare captain capacity")}),c.jsx("span",{children:u("Create or reuse an AI runtime so Armada has a captain available for assignment.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Dispatch directly")}),c.jsx("span",{children:u("Send a read-only onboarding mission through the dispatch endpoint and monitor the returned mission.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Hand off into onboarding")}),c.jsx("span",{children:u("From there, continue in Vessel Onboarding, Backlog, Planning, Workspace, Workflow Profiles, Environments, and Checks.")})]})]})}),c.jsx("p",{className:"wizard-text",children:u("The default mission is intentionally low-risk: it asks the captain to inspect and summarize the repository without modifying files. The wizard stops once Armada can dispatch safely, then hands you into the richer onboarding and delivery surfaces.")})]}),Ha=()=>c.jsxs("form",{onSubmit:ps,className:"wizard-step-form",children:[c.jsx("h2",{className:"wizard-step-heading",children:u("Choose the fleet for this setup")}),c.jsx("p",{className:"wizard-text",children:u("Fleets group related repositories. Use an existing fleet if Armada is already configured, or create a starter fleet now.")}),c.jsxs("div",{className:"wizard-mode-toggle",children:[c.jsx("button",{type:"button",className:`btn btn-sm${H==="existing"?" btn-primary":""}`,disabled:D.length===0,onClick:()=>X("existing"),children:u("Use Existing")}),c.jsx("button",{type:"button",className:`btn btn-sm${H==="new"?" btn-primary":""}`,onClick:()=>X("new"),children:u("Create New")})]}),H==="existing"?c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.fleetSelect),children:u("Fleet")}),c.jsxs("select",{title:u(me.fleetSelect),value:Ee,onChange:L=>Ce(L.target.value),disabled:D.length===0,children:[D.length===0&&c.jsx("option",{value:"",children:u("No fleets found")}),D.map(L=>c.jsx("option",{value:L.id,children:L.name},L.id))]})]}):c.jsxs("div",{className:"wizard-form-grid",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.fleetName),children:u("Fleet Name")}),c.jsx("input",{title:u(me.fleetName),value:$e.name,onChange:L=>ne({...$e,name:L.target.value}),required:!0})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.fleetDescription),children:u("Description")}),c.jsx("input",{title:u(me.fleetDescription),value:$e.description,onChange:L=>ne({...$e,description:L.target.value})})]})]}),c.jsx("div",{className:"wizard-inline-actions",children:c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:g||v,children:u(g?"Saving...":H==="existing"?"Use Fleet":"Create Fleet")})})]}),fa=()=>c.jsxs("form",{onSubmit:vs,className:"wizard-step-form",children:[c.jsx("h2",{className:"wizard-step-heading",children:u("Register the vessel Armada will dispatch to")}),c.jsx("p",{className:"wizard-text",children:u("A vessel is a git repository. The setup mission will run against the vessel you choose here.")}),c.jsxs("div",{className:"wizard-context-strip",children:[c.jsx("span",{children:u("Fleet")}),c.jsx("strong",{children:(It==null?void 0:It.name)??u("No fleet selected")})]}),c.jsxs("div",{className:"wizard-mode-toggle",children:[c.jsx("button",{type:"button",className:`btn btn-sm${ee==="existing"?" btn-primary":""}`,disabled:U.length===0,onClick:()=>ue("existing"),children:u("Use Existing")}),c.jsx("button",{type:"button",className:`btn btn-sm${ee==="new"?" btn-primary":""}`,onClick:()=>ue("new"),children:u("Create New")})]}),ee==="existing"?c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.vesselSelect),children:u("Vessel")}),c.jsxs("select",{title:u(me.vesselSelect),value:We,onChange:L=>Qe(L.target.value),disabled:U.length===0,children:[U.length===0&&c.jsx("option",{value:"",children:u("No vessels found")}),U.map(L=>c.jsxs("option",{value:L.id,children:[L.name," (",L.defaultBranch||"main",")"]},L.id))]})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"wizard-form-grid",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.vesselName),children:u("Vessel Name")}),c.jsx("input",{title:u(me.vesselName),value:T.name,onChange:L=>$({...T,name:L.target.value}),required:!0,placeholder:u("e.g., Armada")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.defaultBranch),children:u("Default Branch")}),c.jsx("input",{title:u(me.defaultBranch),value:T.defaultBranch,onChange:L=>$({...T,defaultBranch:L.target.value}),placeholder:u("main")})]})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.repoUrl),children:u("Repository URL")}),c.jsx("input",{title:u(me.repoUrl),value:T.repoUrl,onChange:L=>$({...T,repoUrl:L.target.value}),required:!0,placeholder:u("https://github.com/org/repo.git")})]}),c.jsxs("div",{className:"wizard-form-grid",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.workingDirectory),children:u("Working Directory")}),c.jsx("input",{title:u(me.workingDirectory),value:T.workingDirectory,onChange:L=>$({...T,workingDirectory:L.target.value}),placeholder:u("Optional local checkout path")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.landingMode),children:u("Landing Mode")}),c.jsxs("select",{title:u(me.landingMode),value:T.landingMode,onChange:L=>$({...T,landingMode:L.target.value}),children:[c.jsx("option",{value:"",children:u("Default")}),c.jsx("option",{value:"None",children:u("None (safest for setup)")}),c.jsx("option",{value:"LocalMerge",children:u("Local Merge")}),c.jsx("option",{value:"PullRequest",children:u("Pull Request")}),c.jsx("option",{value:"MergeQueue",children:u("Merge Queue")})]})]})]}),c.jsxs("div",{className:"wizard-form-grid",children:[c.jsxs("label",{className:"wizard-checkbox",title:u(me.enableModelContext),children:[c.jsx("input",{title:u(me.enableModelContext),type:"checkbox",checked:T.enableModelContext,onChange:L=>$({...T,enableModelContext:L.target.checked})}),u("Enable model context accumulation")]}),c.jsxs("label",{className:"wizard-checkbox",title:u(me.allowConcurrentMissions),children:[c.jsx("input",{title:u(me.allowConcurrentMissions),type:"checkbox",checked:T.allowConcurrentMissions,onChange:L=>$({...T,allowConcurrentMissions:L.target.checked})}),u("Allow concurrent missions on this vessel")]})]}),c.jsxs("div",{className:"wizard-form-grid",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.projectContext),children:u("Project Context")}),c.jsx("textarea",{title:u(me.projectContext),rows:4,value:T.projectContext,onChange:L=>$({...T,projectContext:L.target.value}),placeholder:u("Optional architecture, build, or repository notes for captains.")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.styleGuide),children:u("Style Guide")}),c.jsx("textarea",{title:u(me.styleGuide),rows:4,value:T.styleGuide,onChange:L=>$({...T,styleGuide:L.target.value}),placeholder:u("Optional conventions captains should follow.")})]})]})]}),c.jsx("div",{className:"wizard-inline-actions",children:c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:g||v,children:u(g?"Saving...":ee==="existing"?"Use Vessel":"Register Vessel")})})]}),gs=()=>c.jsxs("form",{onSubmit:ys,className:"wizard-step-form",children:[c.jsx("h2",{className:"wizard-step-heading",children:u("Prepare a captain for dispatch")}),c.jsx("p",{className:"wizard-text",children:u("A captain is an AI runtime registered with Armada. Direct dispatch assigns work to an available captain, so this step ensures the pool has capacity.")}),c.jsxs("div",{className:"wizard-context-strip",children:[c.jsx("span",{children:u("Vessel")}),c.jsx("strong",{children:(Ae==null?void 0:Ae.name)??u("No vessel selected")})]}),c.jsxs("div",{className:"wizard-mode-toggle",children:[c.jsx("button",{type:"button",className:`btn btn-sm${se==="existing"?" btn-primary":""}`,disabled:Dn.length===0,onClick:()=>te("existing"),children:u("Use Existing Idle")}),c.jsx("button",{type:"button",className:`btn btn-sm${se==="new"?" btn-primary":""}`,onClick:()=>te("new"),children:u("Create New")})]}),se==="existing"?c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.captainSelect),children:u("Captain")}),c.jsxs("select",{title:u(me.captainSelect),value:Re,onChange:L=>Ve(L.target.value),disabled:Dn.length===0,children:[Dn.length===0&&c.jsx("option",{value:"",children:u("No idle captains found")}),Dn.map(L=>c.jsxs("option",{value:L.id,children:[L.name," (",L.runtime,", ",L.state,")"]},L.id))]})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"wizard-form-grid",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.captainName),children:u("Captain Name")}),c.jsx("input",{title:u(me.captainName),value:K.name,onChange:L=>ve({...K,name:L.target.value}),required:!0})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.runtime),children:u("Runtime")}),c.jsxs("select",{title:u(me.runtime),value:K.runtime,onChange:L=>ve({...K,runtime:L.target.value}),required:!0,children:[c.jsx("option",{value:"",children:u("Select runtime...")}),c.jsx("option",{value:"ClaudeCode",children:"Claude Code"}),c.jsx("option",{value:"Codex",children:"Codex"}),c.jsx("option",{value:"Gemini",children:"Gemini"}),c.jsx("option",{value:"Cursor",children:"Cursor"}),c.jsx("option",{value:"Mux",children:"Mux"})]})]})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.model),children:u("Model")}),c.jsx("input",{title:u(me.model),value:K.model,onChange:L=>ve({...K,model:L.target.value}),placeholder:u("Optional runtime-specific model override")})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.systemInstructions),children:u("System Instructions")}),c.jsx("textarea",{title:u(me.systemInstructions),rows:4,value:K.systemInstructions,onChange:L=>ve({...K,systemInstructions:L.target.value})})]}),c.jsx(_0,{runtime:K.runtime,form:K,onChange:L=>ve(ce=>({...ce,...L})),t:u,compact:!0})]}),c.jsx("div",{className:"wizard-inline-actions",children:c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:g||v,children:u(g?"Saving...":se==="existing"?"Use Captain":"Create Captain")})})]}),Bi=()=>c.jsxs("form",{onSubmit:ka,className:"wizard-step-form",children:[c.jsx("h2",{className:"wizard-step-heading",children:u("Dispatch the first mission")}),c.jsx("p",{className:"wizard-text",children:u("This uses Armada's direct mission dispatch path. It does not create a voyage from the setup wizard.")}),c.jsxs("div",{className:"wizard-summary-grid",children:[c.jsx(kt,{label:u("Fleet"),value:(It==null?void 0:It.name)??"-"}),c.jsx(kt,{label:u("Vessel"),value:(Ae==null?void 0:Ae.name)??"-"}),c.jsx(kt,{label:u("Available Captain"),value:(Nn==null?void 0:Nn.name)??"-"})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.missionTitle),children:u("Mission Title")}),c.jsx("input",{title:u(me.missionTitle),value:de.title,onChange:L=>E({...de,title:L.target.value}),required:!0})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.missionDescription),children:u("Mission Description")}),c.jsx("textarea",{title:u(me.missionDescription),rows:7,value:de.description,onChange:L=>E({...de,description:L.target.value}),required:!0})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{title:u(me.priority),children:u("Priority")}),c.jsx("input",{title:u(me.priority),type:"number",value:de.priority,min:0,max:1e3,onChange:L=>{const ce=parseInt(L.target.value,10);E({...de,priority:Number.isNaN(ce)?100:ce})}})]}),c.jsx("div",{className:"wizard-inline-actions",children:c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:g||!Ae||!Nn,children:u(g?"Dispatching...":"Dispatch Mission")})})]}),Ul=()=>c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"wizard-step-heading",children:u("Mission dispatched, handoff ready")}),c.jsx("p",{className:"wizard-text",children:u("Armada can dispatch safely now. Use the handoff actions below to move this vessel into onboarding, backlog, planning, workspace, workflow-profile, environment, and first-check setup.")}),Mn&&c.jsx("div",{className:"wizard-result wizard-result-info",children:Mn}),we?c.jsxs("div",{className:"wizard-summary-grid wizard-summary-grid-wide",children:[c.jsx(kt,{label:u("Mission"),value:we.title}),c.jsx(kt,{label:u("Mission ID"),value:c.jsx("code",{children:$c(we.id)})}),c.jsx(kt,{label:u("Status"),value:u(we.status)}),c.jsx(kt,{label:u("Captain ID"),value:c.jsx("code",{children:$c(we.captainId)})}),c.jsx(kt,{label:u("Vessel ID"),value:c.jsx("code",{children:$c(we.vesselId)})}),c.jsx(kt,{label:u("Branch"),value:we.branchName||"-"})]}):c.jsx("p",{className:"text-dim",children:u("No mission has been dispatched yet.")}),c.jsxs("div",{className:"wizard-summary-grid",style:{marginTop:"1rem"},children:[c.jsx(kt,{label:u("Readiness"),value:ca?u("Loading..."):Rt?`${Rt.setupChecklistSatisfiedCount}/${Rt.setupChecklistTotalCount}`:"-"}),c.jsx(kt,{label:u("Blocking Issues"),value:ca?u("Loading..."):Rt?Rt.errorCount:"-"}),c.jsx(kt,{label:u("Workflow Profiles"),value:ca?u("Loading..."):On}),c.jsx(kt,{label:u("Environments"),value:ca?u("Loading..."):Ol})]}),Ua&&c.jsxs("div",{className:"wizard-explanation",style:{marginTop:"1rem"},children:[c.jsx("h3",{children:u("Next Recommended Step")}),c.jsxs("div",{className:"wizard-explanation-body",children:[c.jsx("strong",{children:Ua.title}),c.jsx("div",{className:"text-dim",style:{marginTop:"0.35rem"},children:Ua.message})]})]}),c.jsxs("div",{className:"wizard-start-list",style:{marginTop:"1rem"},children:[c.jsxs("div",{children:[c.jsx("strong",{children:u("Vessel Onboarding")}),c.jsx("span",{children:u("Review the readiness checklist, fix blocking issues, and follow the recommended onboarding actions for this vessel.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Backlog")}),c.jsx("span",{children:u("Capture the follow-up work uncovered by the onboarding mission and keep it attached to this vessel.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Planning")}),c.jsx("span",{children:u("Turn one of those follow-up tasks into a captain-backed execution plan before you dispatch code-changing work.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Workspace")}),c.jsx("span",{children:u("Inspect the repository directly, review the onboarding findings, and continue setup or debugging without leaving Armada.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Workflow Profiles")}),c.jsx("span",{children:u("Teach Armada how this repository builds, tests, deploys, rolls back, and verifies itself.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Environments")}),c.jsx("span",{children:u("Capture at least one named rollout target with approval, verification, and monitoring metadata.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Checks")}),c.jsx("span",{children:u("Run the first structured check once readiness and profile setup are in place.")})]}),c.jsxs("div",{children:[c.jsx("strong",{children:u("Playbooks")}),c.jsx("span",{children:u("Optional: capture reusable dispatch and planning guidance if your team wants consistent execution patterns.")})]})]}),c.jsxs("div",{className:"wizard-inline-actions",children:[c.jsx("button",{type:"button",className:"btn",onClick:La,disabled:g||!we,children:u(g?"Refreshing...":"Refresh Mission Status")}),Ae&&c.jsx("button",{type:"button",className:"btn",onClick:()=>ft(`/vessels/${Ae.id}/onboarding`),children:u("Open Vessel Onboarding")}),Ae&&c.jsx("button",{type:"button",className:"btn",onClick:()=>ft(ms),children:u("Open Backlog")}),Ae&&Li&&c.jsx("button",{type:"button",className:"btn",onClick:()=>ft("/planning",{state:Li}),children:u("Open Planning")}),Ae&&c.jsx("button",{type:"button",className:"btn",onClick:()=>ft(`/workspace/${Ae.id}`),children:u("Open Workspace")}),Ae&&c.jsx("button",{type:"button",className:"btn",onClick:()=>ft(On>0?"/workflow-profiles":`/workflow-profiles/new?scope=Vessel&vesselId=${encodeURIComponent(Ae.id)}`),children:On>0?u("Open Workflow Profiles"):u("Create Workflow Profile")}),Ae&&c.jsx("button",{type:"button",className:"btn",onClick:()=>ft(Ol>0?"/environments":`/environments/new?vesselId=${encodeURIComponent(Ae.id)}&kind=Development`),children:Ol>0?u("Open Environments"):u("Create Environment")}),Ae&&c.jsx("button",{type:"button",className:"btn",onClick:()=>ft("/checks",{state:{prefill:{vesselId:Ae.id,branchName:Ae.defaultBranch||""}}}),children:u("Run First Check")}),c.jsx("button",{type:"button",className:"btn",onClick:()=>ft("/playbooks"),children:u("Open Playbooks")}),c.jsx("button",{type:"button",className:"btn btn-primary",onClick:rt,children:u("Finish Setup")})]})]}),da=d===0?cn():d===1?Ha():d===2?fa():d===3?gs():d===4?Bi():Ul();return c.jsx("div",{className:"wizard-overlay",children:c.jsxs("div",{className:"wizard-container wizard-container-objective",children:[c.jsx("button",{type:"button",className:"wizard-close",onClick:rt,title:u("Close setup wizard"),"aria-label":u("Close setup wizard"),children:"×"}),c.jsxs("div",{className:"wizard-body",children:[c.jsxs("div",{className:"wizard-header",children:[c.jsxs("div",{children:[c.jsx("div",{className:"wizard-kicker",children:u("Setup Wizard")}),c.jsx("h1",{children:u("Launch Armada With One Mission")})]}),c.jsx("div",{className:"wizard-step-count",children:u("Step {{current}} of {{total}}",{current:d+1,total:es.length})})]}),c.jsx("div",{className:"wizard-progress","aria-label":u("Setup progress"),children:es.map((L,ce)=>c.jsxs("div",{className:`wizard-progress-step${ce===d?" active":""}${ce<d?" done":""}`,children:[c.jsx("span",{children:ce<d?"✓":ce+1}),c.jsxs("div",{children:[c.jsx("strong",{children:u(L.title)}),c.jsx("small",{children:u(L.summary)})]})]},L.title))}),c.jsxs("div",{className:"wizard-content",children:[v&&d===0&&c.jsx("div",{className:"wizard-result wizard-result-info",children:u("Loading existing Armada resources...")}),da,c.jsx(w0,{result:R})]}),c.jsxs("div",{className:"wizard-actions",children:[c.jsx("button",{className:"btn",onClick:rt,children:u("Skip Setup")}),c.jsxs("div",{className:"wizard-actions-right",children:[d>0&&c.jsx("button",{className:"btn",onClick:()=>Xe(d-1),children:u("Back")}),d<es.length-1&&c.jsx("button",{className:"btn btn-primary",onClick:()=>Xe(d+1),disabled:!Ba,children:u(d===0?"Start Setup":"Next")})]})]})]})]})})}const Rl={to:"/",label:"Dashboard",tooltip:"Overview of captains, missions, and voyages",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:"3",y:"3",width:"7",height:"7"}),c.jsx("rect",{x:"14",y:"3",width:"7",height:"7"}),c.jsx("rect",{x:"14",y:"14",width:"7",height:"7"}),c.jsx("rect",{x:"3",y:"14",width:"7",height:"7"})]})},N0=[{key:"operations",label:"OPERATIONS",matchers:["/dispatch","/planning","/backlog","/objectives","/voyages","/missions","/merge-queue"],items:[{to:"/planning",label:"Planning",tooltip:"Plan with a captain, preserve the transcript, and dispatch directly from the session",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),c.jsx("path",{d:"M8 9h8"}),c.jsx("path",{d:"M8 13h5"})]})},{to:"/dispatch",label:"Dispatch",tooltip:"Send work to vessels via missions and voyages",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M22 2 11 13"}),c.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})},{to:"/backlog",label:"Backlog",tooltip:"Capture future work, refine it with a selected captain, and carry the same record through planning, dispatch, release, deployment, and incident follow-through",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4 4h16v16H4z"}),c.jsx("path",{d:"M8 8h8"}),c.jsx("path",{d:"M8 12h8"}),c.jsx("path",{d:"M8 16h5"})]})},{to:"/voyages",label:"Voyages",tooltip:"Batches of related missions dispatched together",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"12 6 12 12 16 14"})]})},{to:"/missions",label:"Missions",tooltip:"Individual work units assigned to captains",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),c.jsx("polyline",{points:"14 2 14 8 20 8"}),c.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),c.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]})},{to:"/merge-queue",label:"Merge Queue",tooltip:"Bors-style queue for landing and testing branches",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"18",cy:"18",r:"3"}),c.jsx("circle",{cx:"6",cy:"6",r:"3"}),c.jsx("path",{d:"M6 21V9a9 9 0 0 0 9 9"})]})}]},{key:"delivery",label:"DELIVERY",matchers:["/workflow-profiles","/checks","/environments","/deployments","/releases","/incidents","/runbooks"],items:[{to:"/workflow-profiles",label:"Workflow Profiles",tooltip:"Project-specific commands for build, test, release, deploy, and verification",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4 7h16"}),c.jsx("path",{d:"M4 12h10"}),c.jsx("path",{d:"M4 17h7"}),c.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"})]})},{to:"/checks",label:"Checks",tooltip:"Structured build, test, deploy, and verification runs",icon:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M20 6 9 17l-5-5"})})},{to:"/environments",label:"Environments",tooltip:"Named deployment targets with environment metadata, URLs, approval rules, and access notes",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3 11h18"}),c.jsx("path",{d:"M6 7h12"}),c.jsx("path",{d:"M8 15h8"}),c.jsx("path",{d:"M10 19h4"}),c.jsx("path",{d:"M12 3v4"})]})},{to:"/deployments",label:"Deployments",tooltip:"Approve, execute, verify, and roll back deployments into named environments",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M12 3v12"}),c.jsx("path",{d:"m7 10 5 5 5-5"}),c.jsx("path",{d:"M5 21h14"})]})},{to:"/releases",label:"Releases",tooltip:"Draft, candidate, shipped, failed, and rolled-back release records tied to work, checks, notes, and artifacts",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M7 3h10l4 4v14H3V3h4"}),c.jsx("path",{d:"M7 3v6h10"}),c.jsx("path",{d:"M9 13h6"}),c.jsx("path",{d:"M9 17h6"})]})},{to:"/incidents",label:"Incidents",tooltip:"Operational incidents tied to deployments, environments, rollback, hotfix planning, and postmortems",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M12 9v4"}),c.jsx("path",{d:"M12 17h.01"}),c.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"})]})},{to:"/runbooks",label:"Runbooks",tooltip:"Playbook-backed operational runbooks with parameters, step tracking, and execution history",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),c.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"}),c.jsx("path",{d:"M8 7h8"}),c.jsx("path",{d:"M8 11h8"})]})}]},{key:"fleet",label:"FLEET",matchers:["/fleets","/vessels","/workspace","/captains","/docks"],items:[{to:"/fleets",label:"Fleets",tooltip:"Collections of vessels grouped together",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"}),c.jsx("rect",{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"})]})},{to:"/workspace",label:"Workspace",tooltip:"Open a vessel as a browsable, editable repository workspace",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3 6h18"}),c.jsx("path",{d:"M7 12h10"}),c.jsx("path",{d:"M10 18h4"}),c.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"})]})},{to:"/vessels",label:"Vessels",tooltip:"Registered git repositories and vessel configuration",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M8 6h13"}),c.jsx("path",{d:"M8 12h13"}),c.jsx("path",{d:"M8 18h13"}),c.jsx("path",{d:"M3 6h.01"}),c.jsx("path",{d:"M3 12h.01"}),c.jsx("path",{d:"M3 18h.01"})]})},{to:"/captains",label:"Captains",tooltip:"AI coding agents that execute missions",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),c.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},{to:"/docks",label:"Docks",tooltip:"Isolated git worktrees assigned to captains",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",ry:"2"}),c.jsx("path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"})]})}]},{key:"activity",label:"ACTIVITY",matchers:["/history","/signals","/events","/notifications"],items:[{to:"/history",label:"History",tooltip:"Cross-entity timeline spanning missions, checks, requests, planning, merge queue, and events",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3 12h18"}),c.jsx("path",{d:"M12 3v18"}),c.jsx("circle",{cx:"12",cy:"12",r:"9"})]})},{to:"/signals",label:"Signals",tooltip:"Messages exchanged between the Admiral and captains",icon:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})},{to:"/events",label:"Events",tooltip:"Audit log of system-wide actions and state changes",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M12 20h9"}),c.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]})},{to:"/notifications",label:"Notifications",tooltip:"Real-time alerts for mission completions and failures",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),c.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})}]},{key:"system",label:"SYSTEM",matchers:["/server","/doctor","/settings","/personas","/pipelines","/prompt-templates","/playbooks","/requests","/api-explorer"],items:[{to:"/personas",label:"Personas",tooltip:"Agent personality profiles (Worker, Architect, Judge, etc.)",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),c.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},{to:"/pipelines",label:"Pipelines",tooltip:"Multi-stage workflows combining different personas",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("polyline",{points:"16 3 21 3 21 8"}),c.jsx("line",{x1:"4",y1:"20",x2:"21",y2:"3"}),c.jsx("polyline",{points:"21 16 21 21 16 21"}),c.jsx("line",{x1:"15",y1:"15",x2:"21",y2:"21"}),c.jsx("line",{x1:"4",y1:"4",x2:"9",y2:"9"})]})},{to:"/prompt-templates",label:"Prompts",tooltip:"Customizable prompt templates injected into agent instructions",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),c.jsx("polyline",{points:"14 2 14 8 20 8"}),c.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),c.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),c.jsx("line",{x1:"10",y1:"9",x2:"8",y2:"9"})]})},{to:"/playbooks",label:"Playbooks",tooltip:"Reusable markdown guidance applied during dispatch and voyages",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),c.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]})},{to:"/requests",label:"Requests",tooltip:"Captured request history with summaries, replay, and request inspection",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3 12h18"}),c.jsx("path",{d:"M8 7l-5 5 5 5"}),c.jsx("path",{d:"M16 17l5-5-5-5"})]})},{to:"/api-explorer",label:"API Explorer",tooltip:"Browse the live OpenAPI document, execute requests, and inspect responses",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"11",cy:"11",r:"8"}),c.jsx("path",{d:"m21 21-4.35-4.35"}),c.jsx("path",{d:"M11 8v6"}),c.jsx("path",{d:"M8 11h6"})]})},{to:"/server",label:"Server",tooltip:"Admiral server settings, ports, and configuration",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"}),c.jsx("rect",{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"}),c.jsx("line",{x1:"6",y1:"6",x2:"6.01",y2:"6"}),c.jsx("line",{x1:"6",y1:"18",x2:"6.01",y2:"18"})]})},{to:"/doctor",label:"Doctor",tooltip:"System health diagnostics and environment checks",icon:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"})})}]},{key:"security",label:"SECURITY",matchers:["/admin/tenants","/admin/users","/admin/credentials"],items:[{to:"/admin/tenants",label:"Tenants",tooltip:"Multi-tenant organizations within Armada",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M3 21h18"}),c.jsx("path",{d:"M5 21V7l7-4 7 4v14"}),c.jsx("path",{d:"M9 9h.01"}),c.jsx("path",{d:"M9 13h.01"}),c.jsx("path",{d:"M15 9h.01"}),c.jsx("path",{d:"M15 13h.01"})]})},{to:"/admin/users",label:"Users",tooltip:"User accounts and role assignments",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),c.jsx("circle",{cx:"9",cy:"7",r:"4"}),c.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),c.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})},{to:"/admin/credentials",label:"Credentials",tooltip:"API tokens and bearer credentials for authentication",icon:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1 7.78 7.78l-3.19-3.19"}),c.jsx("path",{d:"M5.5 12.5 2 16l6 6 3.5-3.5"}),c.jsx("path",{d:"m14.5 8.5 1 1"}),c.jsx("path",{d:"m10.5 12.5 1 1"})]})}]}];function D0(){var K,ve,de,E;const l=en(),{user:s,isAdmin:f,isTenantAdmin:u,logout:d}=hs(),{t:m}=Ml(),{darkMode:v,toggleTheme:x}=fp(),{connected:g}=hp(),{unreadCount:y,toasts:R,dismissToast:S}=b0(),[D,Y]=p.useState(!1),[U,Q]=p.useState([]),[B,q]=p.useState(()=>{try{return localStorage.getItem("armada_sidebar_collapsed")==="true"}catch{return!1}}),[H,X]=p.useState({operations:!0,delivery:!0,fleet:!0,activity:!0,system:!0,security:!0}),[ee,ue]=p.useState("unknown"),[se,te]=p.useState(null);p.useEffect(()=>{try{localStorage.setItem("armada_sidebar_collapsed",String(B))}catch{}},[B]);const Ee=p.useCallback(C=>{X(V=>({...V,[C]:!V[C]}))},[]);p.useEffect(()=>{let C=!0;const V=()=>{G1().then(oe=>{if(!C)return;const re=String(oe.status||oe.Status||"").toLowerCase();ue(re==="healthy"||re==="ok"?"healthy":re==="degraded"||re==="warning"?"warning":"error")}).catch(()=>{C&&ue("error")})};V();const G=setInterval(V,3e4);return()=>{C=!1,clearInterval(G)}},[]),p.useEffect(()=>{if(R0()){Y(!1);return}let C=!0;async function V(){try{const[G,oe,re]=await Promise.all([Pm({pageSize:1}),ep({pageSize:1}),tp({pageSize:1})]);if(!C)return;const Se=(G.objects||[]).length>0,we=(oe.objects||[]).length>0,Be=(re.objects||[]).length>0;Y(!Se||!we||!Be)}catch{C&&Y(!0)}}return V(),()=>{C=!1}},[(K=s==null?void 0:s.user)==null?void 0:K.id]),p.useEffect(()=>{function C(){Y(!0)}return window.addEventListener("armada:open-setup-wizard",C),()=>{window.removeEventListener("armada:open-setup-wizard",C)}},[]),p.useEffect(()=>{let C=!0;return w1().then(V=>{C&&te(V)}).catch(()=>{C&&te(null)}),()=>{C=!1}},[(ve=s==null?void 0:s.user)==null?void 0:ve.id]);const Ce=N0.map(C=>C.key!=="security"?C:{...C,items:C.items.filter(V=>V.to==="/admin/tenants"||V.to==="/admin/users"||V.to==="/admin/credentials")}).filter(C=>C.key!=="security"||C.items.length>0),We=p.useCallback(C=>C.some(V=>l.pathname.startsWith(V)),[l.pathname]),Qe=p.useCallback(C=>l.pathname===C.to||l.pathname.startsWith(`${C.to}/`),[l.pathname]),Re=p.useCallback(C=>C.hidden?null:c.jsxs(as,{to:C.to,className:({isActive:V})=>`sidebar-nav-item${V||Qe(C)?" active":""}${U.includes(C.to)?" wizard-highlight":""}`,title:m(B?C.label:C.tooltip||C.label),children:[C.icon,c.jsx("span",{className:"sidebar-label",children:m(C.label)}),C.to==="/notifications"&&y>0&&c.jsx("span",{className:"notif-badge",children:y>99?"99+":y})]},C.key||C.to),[B,Qe,m,y,U]),Ve=p.useCallback(async()=>{try{await M1()}catch{}window.location.assign("/")},[]),$e=p.useCallback(async()=>{try{await N1()}catch{}d(),window.location.assign("/")},[d]),ne=["app-layout",D?"wizard-active":"",D&&U.length>0?"wizard-spotlight-active":""].filter(Boolean).join(" "),T=se==null?void 0:se.selectedInstance,$=!!(se!=null&&se.selectedInstanceId);return c.jsxs("div",{className:"app-shell",children:[$&&c.jsxs("div",{className:"proxy-context-strip proxy-context-shell-strip",children:[c.jsxs("div",{className:"proxy-context-copy",children:[c.jsx("span",{className:"proxy-context-pill",children:m("Proxy Mode")}),c.jsx("span",{children:m("Remote dashboard for {{instanceId}}",{instanceId:(T==null?void 0:T.instanceId)||(se==null?void 0:se.selectedInstanceId)||""})}),c.jsx("span",{className:"proxy-context-meta",children:m("State: {{state}}",{state:(T==null?void 0:T.state)||"unknown"})}),(T==null?void 0:T.armadaVersion)&&c.jsx("span",{className:"proxy-context-meta",children:m("Armada {{version}}",{version:T.armadaVersion})})]}),c.jsxs("div",{className:"proxy-context-actions",children:[c.jsx("button",{className:"btn btn-sm",onClick:Ve,children:m("Switch Deployment")}),c.jsx("button",{className:"btn btn-sm",onClick:$e,children:m("Proxy Logout")})]})]}),c.jsxs("div",{className:ne,style:{gridTemplateColumns:B?"56px 1fr":"180px 1fr"},children:[c.jsxs("aside",{className:`sidebar${B?" sidebar-collapsed":""}`,children:[c.jsxs("div",{className:"sidebar-brand",children:[c.jsx("img",{src:"/img/logo-light-grey.png",alt:"Armada",className:"sidebar-logo",onError:C=>{C.target.style.display="none"}}),c.jsx("h1",{className:"sidebar-label",children:"Armada"})]}),c.jsxs("nav",{className:"sidebar-nav",children:[c.jsxs(as,{to:Rl.to,className:({isActive:C})=>`sidebar-nav-item${C?" active":""}${U.includes(Rl.to)?" wizard-highlight":""}`,title:m(B?Rl.label:Rl.tooltip),children:[Rl.icon,c.jsx("span",{className:"sidebar-label",children:m(Rl.label)})]}),Ce.map(C=>c.jsxs("div",{className:`sidebar-section${We(C.matchers)?" section-active":""}${H[C.key]?"":" collapsed"}`,children:[!B&&c.jsxs("button",{className:"sidebar-section-header",onClick:()=>Ee(C.key),children:[m(C.label),c.jsx("span",{className:"sidebar-section-chevron",children:c.jsx("svg",{viewBox:"0 0 24 24",children:c.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}),c.jsx("div",{className:"sidebar-section-items",style:{display:B||H[C.key]?void 0:"none"},children:C.items.filter(V=>!V.hidden).map(V=>Re(V))})]},C.key))]}),c.jsxs("div",{className:"sidebar-footer",children:[c.jsx("button",{className:"sidebar-toggle-btn",onClick:()=>q(C=>!C),title:m(B?"Expand sidebar":"Collapse sidebar"),children:c.jsx("span",{"aria-hidden":"true",children:B?"▶":"◀"})}),!B&&c.jsxs(c.Fragment,{children:[c.jsx("button",{className:"btn btn-sm",onClick:d,title:m("Sign out"),children:m("Logout")}),c.jsxs("span",{style:{fontSize:"0.7em",color:"var(--text-dim)",opacity:.5},children:["v","0.8.0"]})]})]})]}),c.jsxs("div",{className:"main-content-area",children:[c.jsxs("div",{className:"top-bar",children:[c.jsxs(as,{to:"/doctor",className:"top-bar-health",title:m("Health: {{status}}",{status:m(ee==="healthy"?"Healthy":ee==="warning"?"Degraded":ee==="unknown"?"Checking...":"Unhealthy")}),children:[c.jsx("span",{className:`status-dot ${ee==="healthy"?"healthy":ee==="warning"?"warning":"error"}`}),c.jsx("span",{className:"top-bar-status-label",children:m(ee==="healthy"?"Healthy":ee==="warning"?"Degraded":ee==="unknown"?"Checking...":"Unhealthy")})]}),c.jsxs("span",{className:"top-bar-status",title:m(g?"Live: WebSocket connected":"Disconnected"),children:[c.jsx("span",{className:`status-dot ${g?"connected":"disconnected"}`}),c.jsx("span",{className:"top-bar-status-label",children:m(g?"Live":"Offline")})]}),s&&c.jsxs(c.Fragment,{children:[f&&c.jsx("span",{className:"auth-badge auth-badge-admin",children:m("Global Admin")}),!f&&u&&c.jsx("span",{className:"auth-badge auth-badge-tenant-admin",children:m("Tenant Admin")}),c.jsx("span",{className:"auth-badge auth-badge-tenant",children:(de=s.tenant)==null?void 0:de.name}),c.jsx("span",{className:"auth-badge auth-badge-user",children:(E=s.user)==null?void 0:E.email})]}),c.jsx(vp,{className:"topbar-language-select",compact:!0}),c.jsx("button",{className:"theme-toggle",onClick:x,title:m(v?"Switch to light mode":"Switch to dark mode"),children:v?"☀":"☾"}),c.jsx("a",{href:"https://github.com/jchristn/Armada",target:"_blank",rel:"noopener noreferrer",className:"github-link",title:m("View on GitHub"),children:c.jsx("svg",{height:"18",width:"18",viewBox:"0 0 16 16",fill:"currentColor",children:c.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"})})}),B&&c.jsx("button",{className:"btn btn-sm",onClick:d,title:m("Sign out"),children:m("Logout")})]}),c.jsx("main",{className:"main",children:c.jsx("div",{className:"view",children:c.jsx(Hg,{})})})]})]}),R.length>0&&c.jsx("div",{className:"toast-container",children:R.map(C=>c.jsxs("div",{className:`toast toast-${C.severity}`,children:[c.jsx("span",{className:"toast-body",children:C.message}),c.jsx("button",{className:"toast-close",onClick:()=>S(C.id),children:"×"})]},C.id))}),D&&c.jsx(M0,{onClose:()=>Y(!1),onHighlightChange:Q})]})}const O0=p.lazy(()=>ae(()=>import("./Dashboard-B06Dl9Fo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),U0=p.lazy(()=>ae(()=>import("./Fleets-Dkg15nwj.js"),__vite__mapDeps([8,9,4,1,7,6,5,2,10]))),k0=p.lazy(()=>ae(()=>import("./Vessels-BKHk23w7.js"),__vite__mapDeps([11,9,4,1,7,6,5,2,10]))),L0=p.lazy(()=>ae(()=>import("./Captains-CPBZGqd-.js"),__vite__mapDeps([12,9,4,3,1,13,7,6,5,2,14,10]))),B0=p.lazy(()=>ae(()=>import("./Missions-D9VHS-cD.js"),__vite__mapDeps([15,9,4,3,1,7,6,16,2,5]))),H0=p.lazy(()=>ae(()=>import("./Voyages-B2iJkppj.js"),__vite__mapDeps([17,9,4,3,1,7,6,5,2]))),q0=p.lazy(()=>ae(()=>import("./Events-CpJ98WFI.js"),__vite__mapDeps([18,9,4,1,7,6,5,2]))),V0=p.lazy(()=>ae(()=>import("./MergeQueue-iNX3xjwu.js"),__vite__mapDeps([19,9,4,3,1,7,6,16,2,5]))),$0=p.lazy(()=>ae(()=>import("./Docks-QsArYPO6.js"),__vite__mapDeps([20,9,4,1,7,6,5,2]))),Y0=p.lazy(()=>ae(()=>import("./Doctor-zH2-rPLv.js"),__vite__mapDeps([21,3,2]))),G0=p.lazy(()=>ae(()=>import("./Tenants-DoHm3t_2.js"),__vite__mapDeps([22,9,4,1,7,6,5,2,23]))),Q0=p.lazy(()=>ae(()=>import("./Users-C6pjubR9.js"),__vite__mapDeps([24,9,4,1,7,6,5,2,23]))),X0=p.lazy(()=>ae(()=>import("./Credentials--F90SPi1.js"),__vite__mapDeps([25,9,4,1,7,6,5,2,23]))),Z0=p.lazy(()=>ae(()=>import("./Dispatch-Dd-Xhbaw.js"),__vite__mapDeps([26,27,28]))),Tm=p.lazy(()=>ae(()=>import("./Planning-CofGI07_.js"),__vite__mapDeps([29,1,3,14,27,28]))),_m=p.lazy(()=>ae(()=>import("./Objectives-DwkzTZzX.js"),__vite__mapDeps([30,31,4,1,2,7,6,5,3,10]))),Rm=p.lazy(()=>ae(()=>import("./ObjectiveDetail-siBDpc33.js"),__vite__mapDeps([32,3,31,1,2,7,6,10]))),K0=p.lazy(()=>ae(()=>import("./Signals-Db_tcnpD.js"),__vite__mapDeps([33,9,4,1,7,6,5,2]))),J0=p.lazy(()=>ae(()=>import("./Notifications-DS5d5hOf.js"),[])),I0=p.lazy(()=>ae(()=>import("./Server-CK7q01_a.js"),__vite__mapDeps([34,5,1,6,2]))),W0=p.lazy(()=>ae(()=>import("./FleetDetail-Bw0sZWi1.js"),__vite__mapDeps([35,4,1,7,6,2,10]))),F0=p.lazy(()=>ae(()=>import("./VesselDetail-CP_-eRLA.js"),__vite__mapDeps([36,4,1,7,6,3,2,28,10]))),P0=p.lazy(()=>ae(()=>import("./VesselOnboarding-eZtKz9yI.js"),__vite__mapDeps([37,2,28]))),eb=p.lazy(()=>ae(()=>import("./CaptainDetail--gbU345v.js"),__vite__mapDeps([38,4,13,1,2,7,6,3,10]))),tb=p.lazy(()=>ae(()=>import("./MissionDetail-Dtc7i1jH.js"),__vite__mapDeps([39,2,3,4,1,7,6,16]))),nb=p.lazy(()=>ae(()=>import("./VoyageDetail-CfgXpLcJ.js"),__vite__mapDeps([40,3,2,1,7,6,16]))),ab=p.lazy(()=>ae(()=>import("./VoyageCreate-Dprbfk3f.js"),__vite__mapDeps([41,2,27]))),lb=p.lazy(()=>ae(()=>import("./SignalDetail--vIXsURt.js"),__vite__mapDeps([42,1,7,6,2]))),ib=p.lazy(()=>ae(()=>import("./EventDetail-llo8nBZO.js"),__vite__mapDeps([43,1,7,6,2]))),ub=p.lazy(()=>ae(()=>import("./DockDetail-Cvje2baO.js"),__vite__mapDeps([44,1,7,6,2]))),sb=p.lazy(()=>ae(()=>import("./MergeQueueDetail-D_NZOB-J.js"),__vite__mapDeps([45,4,1,7,6,16,3,2]))),ob=p.lazy(()=>ae(()=>import("./Personas-DTm7i3Mx.js"),__vite__mapDeps([46,9,4,3,1,7,6,5,2,10]))),cb=p.lazy(()=>ae(()=>import("./PersonaDetail-BaNoGDkA.js"),__vite__mapDeps([47,4,7,6,3,1,2,10]))),rb=p.lazy(()=>ae(()=>import("./Pipelines-BSuudGIz.js"),__vite__mapDeps([48,9,4,1,7,6,3,5,2,10]))),fb=p.lazy(()=>ae(()=>import("./PipelineDetail-Br5YJT0p.js"),__vite__mapDeps([49,4,7,6,1,2,10]))),db=p.lazy(()=>ae(()=>import("./PromptTemplates-D8N8KlTl.js"),__vite__mapDeps([50,9,4,1,7,6,3,5,2,10]))),zm=p.lazy(()=>ae(()=>import("./PromptTemplateDetail-CocoTw8F.js"),__vite__mapDeps([51,4,7,6,3,1,2,10]))),hb=p.lazy(()=>ae(()=>import("./Playbooks-BOAR1CNi.js"),__vite__mapDeps([52,4,1,2,7,6,5,3,10]))),mb=p.lazy(()=>ae(()=>import("./PlaybookDetail-DRSckTVh.js"),__vite__mapDeps([53,1,6,2,7,3,10]))),pb=p.lazy(()=>ae(()=>import("./WorkflowProfiles-Bg7CNM1f.js"),__vite__mapDeps([54,4,1,2,7,6,5,3,10]))),vb=p.lazy(()=>ae(()=>import("./WorkflowProfileDetail-Bdy5fj4w.js"),__vite__mapDeps([55,1,6,2,7,3,56,10]))),yb=p.lazy(()=>ae(()=>import("./CheckRuns-D8WEAXsI.js"),__vite__mapDeps([57,4,2,7,6,28,5,3,56,58]))),gb=p.lazy(()=>ae(()=>import("./CheckRunDetail-DIhvljqF.js"),__vite__mapDeps([59,1,6,2,7,3,58]))),bb=p.lazy(()=>ae(()=>import("./Environments-DCdRZ4FS.js"),__vite__mapDeps([60,4,1,2,7,6,5,10]))),xb=p.lazy(()=>ae(()=>import("./EnvironmentDetail-DjjFW9T2.js"),__vite__mapDeps([61,1,6,2,7,10]))),Sb=p.lazy(()=>ae(()=>import("./Deployments-CamaQUQa.js"),__vite__mapDeps([62,4,1,2,7,6,5,3]))),jb=p.lazy(()=>ae(()=>import("./DeploymentDetail-ChjXHTni.js"),__vite__mapDeps([63,1,6,2,7,3]))),Eb=p.lazy(()=>ae(()=>import("./Releases-LxfvRJgk.js"),__vite__mapDeps([64,4,1,2,7,6,5,3]))),Am=p.lazy(()=>ae(()=>import("./ReleaseDetail-DzkpO70E.js"),__vite__mapDeps([65,1,6,2,7,3]))),Cb=p.lazy(()=>ae(()=>import("./Incidents-CA-Hv6Da.js"),__vite__mapDeps([66,4,1,2,7,6,5,3]))),Tb=p.lazy(()=>ae(()=>import("./IncidentDetail-BN7DNyeJ.js"),__vite__mapDeps([67,1,6,2,7,3]))),_b=p.lazy(()=>ae(()=>import("./Runbooks-CV3FdQNC.js"),__vite__mapDeps([68,4,1,2,7,6,5,10]))),Rb=p.lazy(()=>ae(()=>import("./RunbookDetail-D59uJ7tK.js"),__vite__mapDeps([69,1,6,2,7,3,10]))),Yc=p.lazy(()=>ae(()=>import("./Workspace-Bvo-qn3X.js"),__vite__mapDeps([70,28,4]))),wm=p.lazy(()=>ae(()=>import("./RequestHistory-DR1Tkuao.js"),__vite__mapDeps([71,4,9,1,5,2]))),Mm=p.lazy(()=>ae(()=>import("./ApiExplorer-B3ES3jm1.js"),[])),zb=p.lazy(()=>ae(()=>import("./History-CwxTRzSE.js"),__vite__mapDeps([72,2,7,6,5])));function Ab(){return c.jsx("div",{style:{padding:"2rem 2.5rem"},children:c.jsx("p",{className:"text-dim",children:"Loading page..."})})}function wb(){return c.jsx(f0,{children:c.jsx(d0,{children:c.jsx(Q1,{children:c.jsx(h0,{children:c.jsx(g0,{children:c.jsx(d1,{basename:"/dashboard",children:c.jsx(p.Suspense,{fallback:c.jsx(Ab,{}),children:c.jsx(Vg,{children:c.jsxs(I,{element:c.jsx(Pu,{children:c.jsx(D0,{})}),children:[c.jsx(I,{index:!0,element:c.jsx(O0,{})}),c.jsx(I,{path:"dashboard",element:c.jsx(mm,{to:"/",replace:!0})}),c.jsx(I,{path:"planning",element:c.jsx(Tm,{})}),c.jsx(I,{path:"planning/:id",element:c.jsx(Tm,{})}),c.jsx(I,{path:"dispatch",element:c.jsx(Z0,{})}),c.jsx(I,{path:"backlog",element:c.jsx(_m,{})}),c.jsx(I,{path:"backlog/:id",element:c.jsx(Rm,{})}),c.jsx(I,{path:"objectives",element:c.jsx(_m,{})}),c.jsx(I,{path:"objectives/:id",element:c.jsx(Rm,{})}),c.jsx(I,{path:"fleets",element:c.jsx(U0,{})}),c.jsx(I,{path:"fleets/:id",element:c.jsx(W0,{})}),c.jsx(I,{path:"vessels",element:c.jsx(k0,{})}),c.jsx(I,{path:"vessels/:id",element:c.jsx(F0,{})}),c.jsx(I,{path:"vessels/:id/onboarding",element:c.jsx(P0,{})}),c.jsx(I,{path:"workspace",element:c.jsx(Yc,{})}),c.jsx(I,{path:"workspace/:vesselId",element:c.jsx(Yc,{})}),c.jsx(I,{path:"workspace/:vesselId/:panel",element:c.jsx(Yc,{})}),c.jsx(I,{path:"captains",element:c.jsx(L0,{})}),c.jsx(I,{path:"captains/:id",element:c.jsx(eb,{})}),c.jsx(I,{path:"missions",element:c.jsx(B0,{})}),c.jsx(I,{path:"missions/:id",element:c.jsx(tb,{})}),c.jsx(I,{path:"voyages",element:c.jsx(H0,{})}),c.jsx(I,{path:"voyages/create",element:c.jsx(ab,{})}),c.jsx(I,{path:"voyages/:id",element:c.jsx(nb,{})}),c.jsx(I,{path:"signals",element:c.jsx(K0,{})}),c.jsx(I,{path:"history",element:c.jsx(zb,{})}),c.jsx(I,{path:"signals/:id",element:c.jsx(lb,{})}),c.jsx(I,{path:"events",element:c.jsx(q0,{})}),c.jsx(I,{path:"events/:id",element:c.jsx(ib,{})}),c.jsx(I,{path:"docks",element:c.jsx($0,{})}),c.jsx(I,{path:"docks/:id",element:c.jsx(ub,{})}),c.jsx(I,{path:"merge-queue",element:c.jsx(V0,{})}),c.jsx(I,{path:"merge-queue/:id",element:c.jsx(sb,{})}),c.jsx(I,{path:"personas",element:c.jsx(ob,{})}),c.jsx(I,{path:"personas/:name",element:c.jsx(cb,{})}),c.jsx(I,{path:"pipelines",element:c.jsx(rb,{})}),c.jsx(I,{path:"pipelines/:name",element:c.jsx(fb,{})}),c.jsx(I,{path:"prompt-templates",element:c.jsx(db,{})}),c.jsx(I,{path:"prompt-templates/create",element:c.jsx(zm,{})}),c.jsx(I,{path:"prompt-templates/:name",element:c.jsx(zm,{})}),c.jsx(I,{path:"playbooks",element:c.jsx(hb,{})}),c.jsx(I,{path:"playbooks/:id",element:c.jsx(mb,{})}),c.jsx(I,{path:"workflow-profiles",element:c.jsx(pb,{})}),c.jsx(I,{path:"workflow-profiles/:id",element:c.jsx(vb,{})}),c.jsx(I,{path:"checks",element:c.jsx(yb,{})}),c.jsx(I,{path:"checks/:id",element:c.jsx(gb,{})}),c.jsx(I,{path:"environments",element:c.jsx(bb,{})}),c.jsx(I,{path:"environments/:id",element:c.jsx(xb,{})}),c.jsx(I,{path:"deployments",element:c.jsx(Sb,{})}),c.jsx(I,{path:"deployments/:id",element:c.jsx(jb,{})}),c.jsx(I,{path:"releases",element:c.jsx(Eb,{})}),c.jsx(I,{path:"releases/new",element:c.jsx(Am,{})}),c.jsx(I,{path:"releases/:id",element:c.jsx(Am,{})}),c.jsx(I,{path:"incidents",element:c.jsx(Cb,{})}),c.jsx(I,{path:"incidents/:id",element:c.jsx(Tb,{})}),c.jsx(I,{path:"runbooks",element:c.jsx(_b,{})}),c.jsx(I,{path:"runbooks/:id",element:c.jsx(Rb,{})}),c.jsx(I,{path:"requests",element:c.jsx(wm,{})}),c.jsx(I,{path:"requests/:id",element:c.jsx(wm,{})}),c.jsx(I,{path:"api-explorer",element:c.jsx(Mm,{})}),c.jsx(I,{path:"api-explorer/:operationId",element:c.jsx(Mm,{})}),c.jsx(I,{path:"notifications",element:c.jsx(J0,{})}),c.jsx(I,{path:"admin/tenants",element:c.jsx(Pu,{children:c.jsx(G0,{})})}),c.jsx(I,{path:"admin/users",element:c.jsx(Pu,{children:c.jsx(Q0,{})})}),c.jsx(I,{path:"admin/credentials",element:c.jsx(Pu,{children:c.jsx(X0,{})})}),c.jsx(I,{path:"server",element:c.jsx(I0,{})}),c.jsx(I,{path:"doctor",element:c.jsx(Y0,{})}),c.jsx(I,{path:"settings",element:c.jsx(mm,{to:"/server",replace:!0})})]})})})})})})})})})}Hy.createRoot(document.getElementById("root")).render(c.jsx(p.StrictMode,{children:c.jsx(wb,{})}));export{D2 as $,np as A,B1 as B,Mx as C,Nx as D,yp as E,Ox as F,Dx as G,zx as H,Fx as I,qx as J,Yx as K,Qx as L,_0 as M,Jx as N,Ix as O,Xx as P,nS as Q,aS as R,eS as S,dS as T,mS as U,pS as V,yS as W,xS as X,bS as Y,SS as Z,gS as _,hp as a,g2 as a$,U2 as a0,$2 as a1,hs as a2,Db as a3,Ub as a4,Ob as a5,kb as a6,Lb as a7,Hb as a8,Bb as a9,gx as aA,Sx as aB,Ex as aC,Cx as aD,Tx as aE,_x as aF,Rx as aG,xx as aH,k2 as aI,q2 as aJ,B2 as aK,H2 as aL,G1 as aM,Y2 as aN,G2 as aO,Z2 as aP,K2 as aQ,Q2 as aR,X2 as aS,Nb as aT,Ib as aU,Zb as aV,L1 as aW,q1 as aX,j0 as aY,wx as aZ,Bx as a_,qb as aa,Vb as ab,Yb as ac,$b as ad,Gb as ae,w1 as af,en as ag,k1 as ah,Km as ai,tS as aj,Mb as ak,lS as al,iS as am,uS as an,sS as ao,oS as ap,cS as aq,rS as ar,fS as as,mx as at,px as au,bx as av,yx as aw,hx as ax,jx as ay,vx as az,os as b,h2 as b$,$S as b0,Hx as b1,Wx as b2,Vx as b3,Zx as b4,Kx as b5,Px as b6,Ux as b7,RS as b8,L2 as b9,kS as bA,OS as bB,LS as bC,x2 as bD,b2 as bE,S2 as bF,j2 as bG,Y1 as bH,VS as bI,HS as bJ,BS as bK,qS as bL,f2 as bM,WS as bN,o2 as bO,YS as bP,GS as bQ,QS as bR,ZS as bS,KS as bT,JS as bU,IS as bV,XS as bW,v2 as bX,dx as bY,y2 as bZ,d2 as b_,hS as ba,O2 as bb,vS as bc,ky as bd,E2 as be,jS as bf,_2 as bg,T2 as bh,R2 as bi,ES as bj,C2 as bk,TS as bl,_S as bm,M2 as bn,w2 as bo,N2 as bp,A2 as bq,CS as br,MS as bs,AS as bt,zS as bu,wS as bv,$1 as bw,US as bx,DS as by,NS as bz,V2 as c,m2 as c0,p2 as c1,FS as c2,n2 as c3,PS as c4,e2 as c5,t2 as c6,a2 as c7,s2 as c8,i2 as c9,l2 as ca,u2 as cb,c2 as cc,r2 as cd,Fb as ce,Pb as cf,ex as cg,tx as ch,nx as ci,ax as cj,lx as ck,ix as cl,ux as cm,sx as cn,ox as co,cx as cp,rx as cq,fx as cr,ep as d,tp as e,Pm as f,Lx as g,Gx as h,$x as i,c as j,b0 as k,kx as l,z2 as m,O1 as n,Qb as o,Xb as p,Wb as q,p as r,Kb as s,U1 as t,Ml as u,Jb as v,J2 as w,wa as x,E0 as y,Ax as z};
