Files
orchestra/internal/webui/assets/assets/index-BAiY1a7C.js
T
kami 34f3c2888f Rebuild the operator console on the ethos shell
Nine screens against orchestra-ui-spec.md and the accepted mockups, on
the ethos design system: signal violet #8F7AE5, the routing fork motif,
the 64px rail and 56px top bar, mono for every machine value and sans
for every human one.

Each screen was built by its own agent against a fixed foundation, so
the shell, tokens and primitives have one author and the screens cannot
drift into nine dialects.

Real data only. Where no endpoint exists the screen says which one it
needs instead of inventing a value. That is most of what was learned
here: Steer / Correct is disabled because nothing records a human
decision from the web, take-control is disabled because nothing
forwards keystrokes to a pane, context occupancy is missing from three
screens, and projects can show no repo, remote, quality gate or
verification policy because those live only in config.jsonc.

Three bugs the render caught that no computed value would have:

The previous stylesheet fought every shared class name and leaked
properties the new rules never mention, which is how position:fixed
survived on .topbar. It is now scoped under .legacy and applies only to
the login route, which also stops its green accent and its
backdrop-filter from reaching the console.

Go marshals a zero time.Time as "0001-01-01T00:00:00Z" and omitempty
does not omit a struct, so absent timestamps arrived populated-looking
and rendered as "739855d ago". Stripped once at the API boundary every
screen reads through, with a test.

Long machine ids overflowed their cards and painted under the next one.

Verified by rendering: chromium screenshots of the dashboard, tasks,
task detail, terminal, workers and review at 1440px, and the dashboard
at 390px. Geist is still not on disk, so both stacks fall back to the
system faces.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CVbaKucEYBjMqVeUgJUsc1
2026-08-29 02:44:43 +04:00

62 lines
356 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var _p=l=>{throw TypeError(l)};var No=(l,i,o)=>i.has(l)||_p("Cannot "+o);var b=(l,i,o)=>(No(l,i,"read from private field"),o?o.call(l):i.get(l)),ae=(l,i,o)=>i.has(l)?_p("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,o),$=(l,i,o,c)=>(No(l,i,"write to private field"),c?c.call(l,o):i.set(l,o),o),me=(l,i,o)=>(No(l,i,"access private method"),o);var qu=(l,i,o,c)=>({set _(d){$(l,i,d,o)},get _(){return b(l,i,c)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&c(v)}).observe(document,{childList:!0,subtree:!0});function o(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(d){if(d.ep)return;d.ep=!0;const h=o(d);fetch(d.href,h)}})();function A0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Eo={exports:{}},ai={};/**
* @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 wp;function R0(){if(wp)return ai;wp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(c,d,h){var v=null;if(h!==void 0&&(v=""+h),d.key!==void 0&&(v=""+d.key),"key"in d){h={};for(var g in d)g!=="key"&&(h[g]=d[g])}else h=d;return d=h.ref,{$$typeof:l,type:c,key:v,ref:d!==void 0?d:null,props:h}}return ai.Fragment=i,ai.jsx=o,ai.jsxs=o,ai}var Cp;function M0(){return Cp||(Cp=1,Eo.exports=R0()),Eo.exports}var s=M0(),To={exports:{}},re={};/**
* @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 Op;function z0(){if(Op)return re;Op=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function O(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,q={};function H(T,Y,F){this.props=T,this.context=Y,this.refs=q,this.updater=F||U}H.prototype.isReactComponent={},H.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},H.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function G(){}G.prototype=H.prototype;function K(T,Y,F){this.props=T,this.context=Y,this.refs=q,this.updater=F||U}var Z=K.prototype=new G;Z.constructor=K,z(Z,H.prototype),Z.isPureReactComponent=!0;var W=Array.isArray;function J(){}var te={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function ce(T,Y,F){var I=F.ref;return{$$typeof:l,type:T,key:Y,ref:I!==void 0?I:null,props:F}}function _e(T,Y){return ce(T.type,Y,T.props)}function He(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function X(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(F){return Y[F]})}var de=/\/+/g;function pe(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?X(""+T.key):Y.toString(36)}function se(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(J,J):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function D(T,Y,F,I,oe){var ve=typeof T;(ve==="undefined"||ve==="boolean")&&(T=null);var Ce=!1;if(T===null)Ce=!0;else switch(ve){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(T.$$typeof){case l:case i:Ce=!0;break;case E:return Ce=T._init,D(Ce(T._payload),Y,F,I,oe)}}if(Ce)return oe=oe(T),Ce=I===""?"."+pe(T,0):I,W(oe)?(F="",Ce!=null&&(F=Ce.replace(de,"$&/")+"/"),D(oe,Y,F,"",function(cs){return cs})):oe!=null&&(He(oe)&&(oe=_e(oe,F+(oe.key==null||T&&T.key===oe.key?"":(""+oe.key).replace(de,"$&/")+"/")+Ce)),Y.push(oe)),1;Ce=0;var pt=I===""?".":I+":";if(W(T))for(var Je=0;Je<T.length;Je++)I=T[Je],ve=pt+pe(I,Je),Ce+=D(I,Y,F,ve,oe);else if(Je=O(T),typeof Je=="function")for(T=Je.call(T),Je=0;!(I=T.next()).done;)I=I.value,ve=pt+pe(I,Je++),Ce+=D(I,Y,F,ve,oe);else if(ve==="object"){if(typeof T.then=="function")return D(se(T),Y,F,I,oe);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function V(T,Y,F){if(T==null)return T;var I=[],oe=0;return D(T,I,"","",function(ve){return Y.call(F,ve,oe++)}),I}function ue(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(F){(T._status===0||T._status===-1)&&(T._status=1,T._result=F)},function(F){(T._status===0||T._status===-1)&&(T._status=2,T._result=F)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var Me=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ke={map:V,forEach:function(T,Y,F){V(T,function(){Y.apply(this,arguments)},F)},count:function(T){var Y=0;return V(T,function(){Y++}),Y},toArray:function(T){return V(T,function(Y){return Y})||[]},only:function(T){if(!He(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return re.Activity=x,re.Children=ke,re.Component=H,re.Fragment=o,re.Profiler=d,re.PureComponent=K,re.StrictMode=c,re.Suspense=p,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,re.__COMPILER_RUNTIME={__proto__:null,c:function(T){return te.H.useMemoCache(T)}},re.cache=function(T){return function(){return T.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(T,Y,F){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var I=z({},T.props),oe=T.key;if(Y!=null)for(ve in Y.key!==void 0&&(oe=""+Y.key),Y)!ne.call(Y,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&Y.ref===void 0||(I[ve]=Y[ve]);var ve=arguments.length-2;if(ve===1)I.children=F;else if(1<ve){for(var Ce=Array(ve),pt=0;pt<ve;pt++)Ce[pt]=arguments[pt+2];I.children=Ce}return ce(T.type,oe,I)},re.createContext=function(T){return T={$$typeof:v,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},re.createElement=function(T,Y,F){var I,oe={},ve=null;if(Y!=null)for(I in Y.key!==void 0&&(ve=""+Y.key),Y)ne.call(Y,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(oe[I]=Y[I]);var Ce=arguments.length-2;if(Ce===1)oe.children=F;else if(1<Ce){for(var pt=Array(Ce),Je=0;Je<Ce;Je++)pt[Je]=arguments[Je+2];oe.children=pt}if(T&&T.defaultProps)for(I in Ce=T.defaultProps,Ce)oe[I]===void 0&&(oe[I]=Ce[I]);return ce(T,ve,oe)},re.createRef=function(){return{current:null}},re.forwardRef=function(T){return{$$typeof:g,render:T}},re.isValidElement=He,re.lazy=function(T){return{$$typeof:E,_payload:{_status:-1,_result:T},_init:ue}},re.memo=function(T,Y){return{$$typeof:y,type:T,compare:Y===void 0?null:Y}},re.startTransition=function(T){var Y=te.T,F={};te.T=F;try{var I=T(),oe=te.S;oe!==null&&oe(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(J,Me)}catch(ve){Me(ve)}finally{Y!==null&&F.types!==null&&(Y.types=F.types),te.T=Y}},re.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},re.use=function(T){return te.H.use(T)},re.useActionState=function(T,Y,F){return te.H.useActionState(T,Y,F)},re.useCallback=function(T,Y){return te.H.useCallback(T,Y)},re.useContext=function(T){return te.H.useContext(T)},re.useDebugValue=function(){},re.useDeferredValue=function(T,Y){return te.H.useDeferredValue(T,Y)},re.useEffect=function(T,Y){return te.H.useEffect(T,Y)},re.useEffectEvent=function(T){return te.H.useEffectEvent(T)},re.useId=function(){return te.H.useId()},re.useImperativeHandle=function(T,Y,F){return te.H.useImperativeHandle(T,Y,F)},re.useInsertionEffect=function(T,Y){return te.H.useInsertionEffect(T,Y)},re.useLayoutEffect=function(T,Y){return te.H.useLayoutEffect(T,Y)},re.useMemo=function(T,Y){return te.H.useMemo(T,Y)},re.useOptimistic=function(T,Y){return te.H.useOptimistic(T,Y)},re.useReducer=function(T,Y,F){return te.H.useReducer(T,Y,F)},re.useRef=function(T){return te.H.useRef(T)},re.useState=function(T){return te.H.useState(T)},re.useSyncExternalStore=function(T,Y,F){return te.H.useSyncExternalStore(T,Y,F)},re.useTransition=function(){return te.H.useTransition()},re.version="19.2.8",re}var Ap;function lf(){return Ap||(Ap=1,To.exports=z0()),To.exports}var S=lf();const D0=A0(S);var _o={exports:{}},ni={},wo={exports:{}},Co={};/**
* @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 Rp;function U0(){return Rp||(Rp=1,(function(l){function i(D,V){var ue=D.length;D.push(V);e:for(;0<ue;){var Me=ue-1>>>1,ke=D[Me];if(0<d(ke,V))D[Me]=V,D[ue]=ke,ue=Me;else break e}}function o(D){return D.length===0?null:D[0]}function c(D){if(D.length===0)return null;var V=D[0],ue=D.pop();if(ue!==V){D[0]=ue;e:for(var Me=0,ke=D.length,T=ke>>>1;Me<T;){var Y=2*(Me+1)-1,F=D[Y],I=Y+1,oe=D[I];if(0>d(F,ue))I<ke&&0>d(oe,F)?(D[Me]=oe,D[I]=ue,Me=I):(D[Me]=F,D[Y]=ue,Me=Y);else if(I<ke&&0>d(oe,ue))D[Me]=oe,D[I]=ue,Me=I;else break e}}return V}function d(D,V){var ue=D.sortIndex-V.sortIndex;return ue!==0?ue:D.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var v=Date,g=v.now();l.unstable_now=function(){return v.now()-g}}var p=[],y=[],E=1,x=null,w=3,O=!1,U=!1,z=!1,q=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Z(D){for(var V=o(y);V!==null;){if(V.callback===null)c(y);else if(V.startTime<=D)c(y),V.sortIndex=V.expirationTime,i(p,V);else break;V=o(y)}}function W(D){if(z=!1,Z(D),!U)if(o(p)!==null)U=!0,J||(J=!0,X());else{var V=o(y);V!==null&&se(W,V.startTime-D)}}var J=!1,te=-1,ne=5,ce=-1;function _e(){return q?!0:!(l.unstable_now()-ce<ne)}function He(){if(q=!1,J){var D=l.unstable_now();ce=D;var V=!0;try{e:{U=!1,z&&(z=!1,G(te),te=-1),O=!0;var ue=w;try{t:{for(Z(D),x=o(p);x!==null&&!(x.expirationTime>D&&_e());){var Me=x.callback;if(typeof Me=="function"){x.callback=null,w=x.priorityLevel;var ke=Me(x.expirationTime<=D);if(D=l.unstable_now(),typeof ke=="function"){x.callback=ke,Z(D),V=!0;break t}x===o(p)&&c(p),Z(D)}else c(p);x=o(p)}if(x!==null)V=!0;else{var T=o(y);T!==null&&se(W,T.startTime-D),V=!1}}break e}finally{x=null,w=ue,O=!1}V=void 0}}finally{V?X():J=!1}}}var X;if(typeof K=="function")X=function(){K(He)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,pe=de.port2;de.port1.onmessage=He,X=function(){pe.postMessage(null)}}else X=function(){H(He,0)};function se(D,V){te=H(function(){D(l.unstable_now())},V)}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(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(D){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var ue=w;w=V;try{return D()}finally{w=ue}},l.unstable_requestPaint=function(){q=!0},l.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ue=w;w=D;try{return V()}finally{w=ue}},l.unstable_scheduleCallback=function(D,V,ue){var Me=l.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?Me+ue:Me):ue=Me,D){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=ue+ke,D={id:E++,callback:V,priorityLevel:D,startTime:ue,expirationTime:ke,sortIndex:-1},ue>Me?(D.sortIndex=ue,i(y,D),o(p)===null&&D===o(y)&&(z?(G(te),te=-1):z=!0,se(W,ue-Me))):(D.sortIndex=ke,i(p,D),U||O||(U=!0,J||(J=!0,X()))),D},l.unstable_shouldYield=_e,l.unstable_wrapCallback=function(D){var V=w;return function(){var ue=w;w=V;try{return D.apply(this,arguments)}finally{w=ue}}}})(Co)),Co}var Mp;function k0(){return Mp||(Mp=1,wo.exports=U0()),wo.exports}var Oo={exports:{}},ht={};/**
* @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 zp;function q0(){if(zp)return ht;zp=1;var l=lf();function i(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,y,E){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:p,containerInfo:y,implementation:E}}var v=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ht.createPortal=function(p,y){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return h(p,y,null,E)},ht.flushSync=function(p){var y=v.T,E=c.p;try{if(v.T=null,c.p=2,p)return p()}finally{v.T=y,c.p=E,c.d.f()}},ht.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(p,y))},ht.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},ht.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var E=y.as,x=g(E,y.crossOrigin),w=typeof y.integrity=="string"?y.integrity:void 0,O=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;E==="style"?c.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:O}):E==="script"&&c.d.X(p,{crossOrigin:x,integrity:w,fetchPriority:O,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ht.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var E=g(y.as,y.crossOrigin);c.d.M(p,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(p)},ht.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var E=y.as,x=g(E,y.crossOrigin);c.d.L(p,E,{crossOrigin:x,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})}},ht.preloadModule=function(p,y){if(typeof p=="string")if(y){var E=g(y.as,y.crossOrigin);c.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(p)},ht.requestFormReset=function(p){c.d.r(p)},ht.unstable_batchedUpdates=function(p,y){return p(y)},ht.useFormState=function(p,y,E){return v.H.useFormState(p,y,E)},ht.useFormStatus=function(){return v.H.useHostTransitionStatus()},ht.version="19.2.8",ht}var Dp;function H0(){if(Dp)return Oo.exports;Dp=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(i){console.error(i)}}return l(),Oo.exports=q0(),Oo.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 Up;function B0(){if(Up)return ni;Up=1;var l=k0(),i=lf(),o=H0();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a: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 g(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 p(e){if(h(e)!==e)throw Error(c(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,n=t;;){var u=a.return;if(u===null)break;var r=u.alternate;if(r===null){if(n=u.return,n!==null){a=n;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===a)return p(u),e;if(r===n)return p(u),t;r=r.sibling}throw Error(c(188))}if(a.return!==n.return)a=u,n=r;else{for(var f=!1,m=u.child;m;){if(m===a){f=!0,a=u,n=r;break}if(m===n){f=!0,n=u,a=r;break}m=m.sibling}if(!f){for(m=r.child;m;){if(m===a){f=!0,a=r,n=u;break}if(m===n){f=!0,n=r,a=u;break}m=m.sibling}if(!f)throw Error(c(189))}}if(a.alternate!==n)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,w=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),_e=Symbol.for("react.memo_cache_sentinel"),He=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=He&&e[He]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case H:return"Profiler";case q:return"StrictMode";case W:return"Suspense";case J:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case K:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case Z: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:pe(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var se=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},Me=[],ke=-1;function T(e){return{current:e}}function Y(e){0>ke||(e.current=Me[ke],Me[ke]=null,ke--)}function F(e,t){ke++,Me[ke]=e.current,e.current=t}var I=T(null),oe=T(null),ve=T(null),Ce=T(null);function pt(e,t){switch(F(ve,t),F(oe,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$m(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$m(t),e=Fm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(I),F(I,e)}function Je(){Y(I),Y(oe),Y(ve)}function cs(e){e.memoizedState!==null&&F(Ce,e);var t=I.current,a=Fm(t,e.type);t!==a&&(F(oe,e),F(I,a))}function xi(e){oe.current===e&&(Y(I),Y(oe)),Ce.current===e&&(Y(Ce),Ps._currentValue=ue)}var lr,Tf;function Cn(e){if(lr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);lr=t&&t[1]||"",Tf=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+lr+e+Tf}var sr=!1;function ir(e,t){if(!e||sr)return"";sr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(M){var R=M}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(M){R=M}e.call(Q.prototype)}}else{try{throw Error()}catch(M){R=M}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(M){if(M&&R&&typeof M.stack=="string")return[M.stack,R.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),f=r[0],m=r[1];if(f&&m){var j=f.split(`
`),A=m.split(`
`);for(u=n=0;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;for(;u<A.length&&!A[u].includes("DetermineComponentFrameRoot");)u++;if(n===j.length||u===A.length)for(n=j.length-1,u=A.length-1;1<=n&&0<=u&&j[n]!==A[u];)u--;for(;1<=n&&0<=u;n--,u--)if(j[n]!==A[u]){if(n!==1||u!==1)do if(n--,u--,0>u||j[n]!==A[u]){var k=`
`+j[n].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=n&&0<=u);break}}}finally{sr=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Cn(a):""}function uy(e,t){switch(e.tag){case 26:case 27:case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return e.child!==t&&t!==null?Cn("Suspense Fallback"):Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 15:return ir(e.type,!1);case 11:return ir(e.type.render,!1);case 1:return ir(e.type,!0);case 31:return Cn("Activity");default:return""}}function _f(e){try{var t="",a=null;do t+=uy(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var ur=Object.prototype.hasOwnProperty,rr=l.unstable_scheduleCallback,cr=l.unstable_cancelCallback,ry=l.unstable_shouldYield,cy=l.unstable_requestPaint,Ot=l.unstable_now,oy=l.unstable_getCurrentPriorityLevel,wf=l.unstable_ImmediatePriority,Cf=l.unstable_UserBlockingPriority,ji=l.unstable_NormalPriority,fy=l.unstable_LowPriority,Of=l.unstable_IdlePriority,dy=l.log,hy=l.unstable_setDisableYieldValue,os=null,At=null;function Xa(e){if(typeof dy=="function"&&hy(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(os,e)}catch{}}var Rt=Math.clz32?Math.clz32:vy,my=Math.log,py=Math.LN2;function vy(e){return e>>>=0,e===0?32:31-(my(e)/py|0)|0}var bi=256,Si=262144,Ni=4194304;function On(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 Ei(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var u=0,r=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?u=On(n):(f&=m,f!==0?u=On(f):a||(a=m&~e,a!==0&&(u=On(a))))):(m=n&~r,m!==0?u=On(m):f!==0?u=On(f):a||(a=n&~e,a!==0&&(u=On(a)))),u===0?0:t!==0&&t!==u&&(t&r)===0&&(r=u&-u,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:u}function fs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yy(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 Af(){var e=Ni;return Ni<<=1,(Ni&62914560)===0&&(Ni=4194304),e}function or(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ds(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gy(e,t,a,n,u,r){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,j=e.expirationTimes,A=e.hiddenUpdates;for(a=f&~a;0<a;){var k=31-Rt(a),Q=1<<k;m[k]=0,j[k]=-1;var R=A[k];if(R!==null)for(A[k]=null,k=0;k<R.length;k++){var M=R[k];M!==null&&(M.lane&=-536870913)}a&=~Q}n!==0&&Rf(e,n,0),r!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=r&~(f&~t))}function Rf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Rt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Mf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Rt(a),u=1<<n;u&t|e[n]&t&&(e[n]|=t),a&=~u}}function zf(e,t){var a=t&-t;return a=(a&42)!==0?1:fr(a),(a&(e.suspendedLanes|t))!==0?0:a}function fr(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 dr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Df(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:xp(e.type))}function Uf(e,t){var a=V.p;try{return V.p=e,t()}finally{V.p=a}}var Ka=Math.random().toString(36).slice(2),rt="__reactFiber$"+Ka,jt="__reactProps$"+Ka,sl="__reactContainer$"+Ka,hr="__reactEvents$"+Ka,xy="__reactListeners$"+Ka,jy="__reactHandles$"+Ka,kf="__reactResources$"+Ka,hs="__reactMarker$"+Ka;function mr(e){delete e[rt],delete e[jt],delete e[hr],delete e[xy],delete e[jy]}function il(e){var t=e[rt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[sl]||a[rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=np(e);e!==null;){if(a=e[rt])return a;e=np(e)}return t}e=a,a=e.parentNode}return null}function ul(e){if(e=e[rt]||e[sl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ms(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function rl(e){var t=e[kf];return t||(t=e[kf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[hs]=!0}var qf=new Set,Hf={};function An(e,t){cl(e,t),cl(e+"Capture",t)}function cl(e,t){for(Hf[e]=t,e=0;e<t.length;e++)qf.add(t[e])}var by=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]*$"),Bf={},Lf={};function Sy(e){return ur.call(Lf,e)?!0:ur.call(Bf,e)?!1:by.test(e)?Lf[e]=!0:(Bf[e]=!0,!1)}function Ti(e,t,a){if(Sy(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function _i(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ga(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ny(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(f){a=""+f,r.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pr(e){if(!e._valueTracker){var t=Qf(e)?"checked":"value";e._valueTracker=Ny(e,t,""+e[t])}}function Yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Qf(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function wi(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 Ey=/[\n"\\]/g;function Gt(e){return e.replace(Ey,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vr(e,t,a,n,u,r,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yt(t)):e.value!==""+Yt(t)&&(e.value=""+Yt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?yr(e,f,Yt(t)):a!=null?yr(e,f,Yt(a)):n!=null&&e.removeAttribute("value"),u==null&&r!=null&&(e.defaultChecked=!!r),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Yt(m):e.removeAttribute("name")}function Gf(e,t,a,n,u,r,f,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){pr(e);return}a=a!=null?""+Yt(a):"",t=t!=null?""+Yt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),pr(e)}function yr(e,t,a){t==="number"&&wi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ol(e,t,a,n){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Yt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,n&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Xf(e,t,a){if(t!=null&&(t=""+Yt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Yt(a):""}function Kf(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(se(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Yt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),pr(e)}function fl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Ty=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 Zf(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Ty.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Vf(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var u in t)n=t[u],t.hasOwnProperty(u)&&a[u]!==n&&Zf(e,u,n)}else for(var r in t)t.hasOwnProperty(r)&&Zf(e,r,t[r])}function gr(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 _y=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"]]),wy=/^[\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 Ci(e){return wy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xa(){}var xr=null;function jr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dl=null,hl=null;function Jf(e){var t=ul(e);if(t&&(e=t.stateNode)){var a=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(vr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var u=n[jt]||null;if(!u)throw Error(c(90));vr(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Yf(n)}break e;case"textarea":Xf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ol(e,!!a.multiple,t,!1)}}}var br=!1;function $f(e,t,a){if(br)return e(t,a);br=!0;try{var n=e(t);return n}finally{if(br=!1,(dl!==null||hl!==null)&&(pu(),dl&&(t=dl,e=hl,hl=dl=null,Jf(t),e)))for(t=0;t<e.length;t++)Jf(e[t])}}function ps(e,t){var a=e.stateNode;if(a===null)return null;var n=a[jt]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var ja=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sr=!1;if(ja)try{var vs={};Object.defineProperty(vs,"passive",{get:function(){Sr=!0}}),window.addEventListener("test",vs,vs),window.removeEventListener("test",vs,vs)}catch{Sr=!1}var Za=null,Nr=null,Oi=null;function Ff(){if(Oi)return Oi;var e,t=Nr,a=t.length,n,u="value"in Za?Za.value:Za.textContent,r=u.length;for(e=0;e<a&&t[e]===u[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===u[r-n];n++);return Oi=u.slice(e,1<n?1-n:void 0)}function Ai(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 Ri(){return!0}function Wf(){return!1}function bt(e){function t(a,n,u,r,f){this._reactName=a,this._targetInst=u,this.type=n,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Ri:Wf,this.isPropagationStopped=Wf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=bt(Rn),ys=x({},Rn,{view:0,detail:0}),Cy=bt(ys),Er,Tr,gs,zi=x({},ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wr,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!==gs&&(gs&&e.type==="mousemove"?(Er=e.screenX-gs.screenX,Tr=e.screenY-gs.screenY):Tr=Er=0,gs=e),Er)},movementY:function(e){return"movementY"in e?e.movementY:Tr}}),Pf=bt(zi),Oy=x({},zi,{dataTransfer:0}),Ay=bt(Oy),Ry=x({},ys,{relatedTarget:0}),_r=bt(Ry),My=x({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),zy=bt(My),Dy=x({},Rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=bt(Dy),ky=x({},Rn,{data:0}),If=bt(ky),qy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ly(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=By[e])?!!t[e]:!1}function wr(){return Ly}var Qy=x({},ys,{key:function(e){if(e.key){var t=qy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ai(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wr,charCode:function(e){return e.type==="keypress"?Ai(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ai(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yy=bt(Qy),Gy=x({},zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ed=bt(Gy),Xy=x({},ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wr}),Ky=bt(Xy),Zy=x({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vy=bt(Zy),Jy=x({},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}),$y=bt(Jy),Fy=x({},Rn,{newState:0,oldState:0}),Wy=bt(Fy),Py=[9,13,27,32],Cr=ja&&"CompositionEvent"in window,xs=null;ja&&"documentMode"in document&&(xs=document.documentMode);var Iy=ja&&"TextEvent"in window&&!xs,td=ja&&(!Cr||xs&&8<xs&&11>=xs),ad=" ",nd=!1;function ld(e,t){switch(e){case"keyup":return Py.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ml=!1;function eg(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(nd=!0,ad);case"textInput":return e=t.data,e===ad&&nd?null:e;default:return null}}function tg(e,t){if(ml)return e==="compositionend"||!Cr&&ld(e,t)?(e=Ff(),Oi=Nr=Za=null,ml=!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 td&&t.locale!=="ko"?null:t.data;default:return null}}var ag={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 id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ag[e.type]:t==="textarea"}function ud(e,t,a,n){dl?hl?hl.push(n):hl=[n]:dl=n,t=Su(t,"onChange"),0<t.length&&(a=new Mi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var js=null,bs=null;function ng(e){Gm(e,0)}function Di(e){var t=ms(e);if(Yf(t))return e}function rd(e,t){if(e==="change")return t}var cd=!1;if(ja){var Or;if(ja){var Ar="oninput"in document;if(!Ar){var od=document.createElement("div");od.setAttribute("oninput","return;"),Ar=typeof od.oninput=="function"}Or=Ar}else Or=!1;cd=Or&&(!document.documentMode||9<document.documentMode)}function fd(){js&&(js.detachEvent("onpropertychange",dd),bs=js=null)}function dd(e){if(e.propertyName==="value"&&Di(bs)){var t=[];ud(t,bs,e,jr(e)),$f(ng,t)}}function lg(e,t,a){e==="focusin"?(fd(),js=t,bs=a,js.attachEvent("onpropertychange",dd)):e==="focusout"&&fd()}function sg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Di(bs)}function ig(e,t){if(e==="click")return Di(t)}function ug(e,t){if(e==="input"||e==="change")return Di(t)}function rg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:rg;function Ss(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var u=a[n];if(!ur.call(t,u)||!Mt(e[u],t[u]))return!1}return!0}function hd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function md(e,t){var a=hd(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=hd(a)}}function pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=wi(e.document)}return t}function Rr(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 cg=ja&&"documentMode"in document&&11>=document.documentMode,pl=null,Mr=null,Ns=null,zr=!1;function yd(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zr||pl==null||pl!==wi(n)||(n=pl,"selectionStart"in n&&Rr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ns&&Ss(Ns,n)||(Ns=n,n=Su(Mr,"onSelect"),0<n.length&&(t=new Mi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=pl)))}function Mn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var vl={animationend:Mn("Animation","AnimationEnd"),animationiteration:Mn("Animation","AnimationIteration"),animationstart:Mn("Animation","AnimationStart"),transitionrun:Mn("Transition","TransitionRun"),transitionstart:Mn("Transition","TransitionStart"),transitioncancel:Mn("Transition","TransitionCancel"),transitionend:Mn("Transition","TransitionEnd")},Dr={},gd={};ja&&(gd=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function zn(e){if(Dr[e])return Dr[e];if(!vl[e])return e;var t=vl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in gd)return Dr[e]=t[a];return e}var xd=zn("animationend"),jd=zn("animationiteration"),bd=zn("animationstart"),og=zn("transitionrun"),fg=zn("transitionstart"),dg=zn("transitioncancel"),Sd=zn("transitionend"),Nd=new Map,Ur="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(" ");Ur.push("scrollEnd");function na(e,t){Nd.set(e,t),An(t,[e])}var Ui=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)},Xt=[],yl=0,kr=0;function ki(){for(var e=yl,t=kr=yl=0;t<e;){var a=Xt[t];Xt[t++]=null;var n=Xt[t];Xt[t++]=null;var u=Xt[t];Xt[t++]=null;var r=Xt[t];if(Xt[t++]=null,n!==null&&u!==null){var f=n.pending;f===null?u.next=u:(u.next=f.next,f.next=u),n.pending=u}r!==0&&Ed(a,u,r)}}function qi(e,t,a,n){Xt[yl++]=e,Xt[yl++]=t,Xt[yl++]=a,Xt[yl++]=n,kr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function qr(e,t,a,n){return qi(e,t,a,n),Hi(e)}function Dn(e,t){return qi(e,null,null,t),Hi(e)}function Ed(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var u=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(u=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,u&&t!==null&&(u=31-Rt(a),e=r.hiddenUpdates,n=e[u],n===null?e[u]=[t]:n.push(t),t.lane=a|536870912),r):null}function Hi(e){if(50<Ks)throw Ks=0,Zc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gl={};function hg(e,t,a,n){this.tag=e,this.key=a,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,a,n){return new hg(e,t,a,n)}function Hr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ba(e,t){var a=e.alternate;return a===null?(a=zt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Td(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Bi(e,t,a,n,u,r){var f=0;if(n=e,typeof e=="function")Hr(e)&&(f=1);else if(typeof e=="string")f=g0(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=zt(31,a,t,u),e.elementType=ce,e.lanes=r,e;case z:return Un(a.children,u,r,t);case q:f=8,u|=24;break;case H:return e=zt(12,a,t,u|2),e.elementType=H,e.lanes=r,e;case W:return e=zt(13,a,t,u),e.elementType=W,e.lanes=r,e;case J:return e=zt(19,a,t,u),e.elementType=J,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:f=10;break e;case G:f=9;break e;case Z:f=11;break e;case te:f=14;break e;case ne:f=16,n=null;break e}f=29,a=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=zt(f,a,t,u),t.elementType=e,t.type=n,t.lanes=r,t}function Un(e,t,a,n){return e=zt(7,e,n,t),e.lanes=a,e}function Br(e,t,a){return e=zt(6,e,null,t),e.lanes=a,e}function _d(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function Lr(e,t,a){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wd=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var a=wd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:_f(t)},wd.set(e,t),t)}return{value:e,source:t,stack:_f(t)}}var xl=[],jl=0,Li=null,Es=0,Zt=[],Vt=0,Va=null,oa=1,fa="";function Sa(e,t){xl[jl++]=Es,xl[jl++]=Li,Li=e,Es=t}function Cd(e,t,a){Zt[Vt++]=oa,Zt[Vt++]=fa,Zt[Vt++]=Va,Va=e;var n=oa;e=fa;var u=32-Rt(n)-1;n&=~(1<<u),a+=1;var r=32-Rt(t)+u;if(30<r){var f=u-u%5;r=(n&(1<<f)-1).toString(32),n>>=f,u-=f,oa=1<<32-Rt(t)+u|a<<u|n,fa=r+e}else oa=1<<r|a<<u|n,fa=e}function Qr(e){e.return!==null&&(Sa(e,1),Cd(e,1,0))}function Yr(e){for(;e===Li;)Li=xl[--jl],xl[jl]=null,Es=xl[--jl],xl[jl]=null;for(;e===Va;)Va=Zt[--Vt],Zt[Vt]=null,fa=Zt[--Vt],Zt[Vt]=null,oa=Zt[--Vt],Zt[Vt]=null}function Od(e,t){Zt[Vt++]=oa,Zt[Vt++]=fa,Zt[Vt++]=Va,oa=t.id,fa=t.overflow,Va=e}var ct=null,Le=null,be=!1,Ja=null,Jt=!1,Gr=Error(c(519));function $a(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ts(Kt(t,e)),Gr}function Ad(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[rt]=e,t[jt]=n,a){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(a=0;a<Vs.length;a++)ge(Vs[a],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),Gf(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),Kf(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Vm(t.textContent,a)?(n.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),n.onScroll!=null&&ge("scroll",t),n.onScrollEnd!=null&&ge("scrollend",t),n.onClick!=null&&(t.onclick=xa),t=!0):t=!1,t||$a(e,!0)}function Rd(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:ct=ct.return}}function bl(e){if(e!==ct)return!1;if(!be)return Rd(e),be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||uo(e.type,e.memoizedProps)),a=!a),a&&Le&&$a(e),Rd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Le=ap(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Le=ap(e)}else t===27?(t=Le,on(e.type)?(e=ho,ho=null,Le=e):Le=t):Le=ct?Ft(e.stateNode.nextSibling):null;return!0}function kn(){Le=ct=null,be=!1}function Xr(){var e=Ja;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Ja=null),e}function Ts(e){Ja===null?Ja=[e]:Ja.push(e)}var Kr=T(null),qn=null,Na=null;function Fa(e,t,a){F(Kr,t._currentValue),t._currentValue=a}function Ea(e){e._currentValue=Kr.current,Y(Kr)}function Zr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Vr(e,t,a,n){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var r=u.dependencies;if(r!==null){var f=u.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=u;for(var j=0;j<t.length;j++)if(m.context===t[j]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),Zr(r.return,a,e),n||(f=null);break e}r=m.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(c(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),Zr(f,a,e),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===e){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Sl(e,t,a,n){e=null;for(var u=t,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var m=u.type;Mt(u.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(u===Ce.current){if(f=u.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ps):e=[Ps])}u=u.return}e!==null&&Vr(t,e,a,n),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hn(e){qn=e,Na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return Md(qn,e)}function Yi(e,t){return qn===null&&Hn(e),Md(e,t)}function Md(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Na===null){if(e===null)throw Error(c(308));Na=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Na=Na.next=t;return a}var mg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},pg=l.unstable_scheduleCallback,vg=l.unstable_NormalPriority,Pe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jr(){return{controller:new mg,data:new Map,refCount:0}}function _s(e){e.refCount--,e.refCount===0&&pg(vg,function(){e.controller.abort()})}var ws=null,$r=0,Nl=0,El=null;function yg(e,t){if(ws===null){var a=ws=[];$r=0,Nl=Pc(),El={status:"pending",value:void 0,then:function(n){a.push(n)}}}return $r++,t.then(zd,zd),t}function zd(){if(--$r===0&&ws!==null){El!==null&&(El.status="fulfilled");var e=ws;ws=null,Nl=0,El=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gg(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(n.status="rejected",n.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),n}var Dd=D.S;D.S=function(e,t){ym=Ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yg(e,t),Dd!==null&&Dd(e,t)};var Bn=T(null);function Fr(){var e=Bn.current;return e!==null?e:qe.pooledCache}function Gi(e,t){t===null?F(Bn,Bn.current):F(Bn,t.pool)}function Ud(){var e=Fr();return e===null?null:{parent:Pe._currentValue,pool:e}}var Tl=Error(c(460)),Wr=Error(c(474)),Xi=Error(c(542)),Ki={then:function(){}};function kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(xa,xa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bd(e),e;default:if(typeof t.status=="string")t.then(xa,xa);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=n}},function(n){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bd(e),e}throw Qn=t,Tl}}function Ln(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Qn=a,Tl):a}}var Qn=null;function Hd(){if(Qn===null)throw Error(c(459));var e=Qn;return Qn=null,e}function Bd(e){if(e===Tl||e===Xi)throw Error(c(483))}var _l=null,Cs=0;function Zi(e){var t=Cs;return Cs+=1,_l===null&&(_l=[]),qd(_l,e,t)}function Os(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vi(e,t){throw t.$$typeof===w?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ld(e){function t(_,N){if(e){var C=_.deletions;C===null?(_.deletions=[N],_.flags|=16):C.push(N)}}function a(_,N){if(!e)return null;for(;N!==null;)t(_,N),N=N.sibling;return null}function n(_){for(var N=new Map;_!==null;)_.key!==null?N.set(_.key,_):N.set(_.index,_),_=_.sibling;return N}function u(_,N){return _=ba(_,N),_.index=0,_.sibling=null,_}function r(_,N,C){return _.index=C,e?(C=_.alternate,C!==null?(C=C.index,C<N?(_.flags|=67108866,N):C):(_.flags|=67108866,N)):(_.flags|=1048576,N)}function f(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function m(_,N,C,L){return N===null||N.tag!==6?(N=Br(C,_.mode,L),N.return=_,N):(N=u(N,C),N.return=_,N)}function j(_,N,C,L){var le=C.type;return le===z?k(_,N,C.props.children,L,C.key):N!==null&&(N.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ne&&Ln(le)===N.type)?(N=u(N,C.props),Os(N,C),N.return=_,N):(N=Bi(C.type,C.key,C.props,null,_.mode,L),Os(N,C),N.return=_,N)}function A(_,N,C,L){return N===null||N.tag!==4||N.stateNode.containerInfo!==C.containerInfo||N.stateNode.implementation!==C.implementation?(N=Lr(C,_.mode,L),N.return=_,N):(N=u(N,C.children||[]),N.return=_,N)}function k(_,N,C,L,le){return N===null||N.tag!==7?(N=Un(C,_.mode,L,le),N.return=_,N):(N=u(N,C),N.return=_,N)}function Q(_,N,C){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Br(""+N,_.mode,C),N.return=_,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case O:return C=Bi(N.type,N.key,N.props,null,_.mode,C),Os(C,N),C.return=_,C;case U:return N=Lr(N,_.mode,C),N.return=_,N;case ne:return N=Ln(N),Q(_,N,C)}if(se(N)||X(N))return N=Un(N,_.mode,C,null),N.return=_,N;if(typeof N.then=="function")return Q(_,Zi(N),C);if(N.$$typeof===K)return Q(_,Yi(_,N),C);Vi(_,N)}return null}function R(_,N,C,L){var le=N!==null?N.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return le!==null?null:m(_,N,""+C,L);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case O:return C.key===le?j(_,N,C,L):null;case U:return C.key===le?A(_,N,C,L):null;case ne:return C=Ln(C),R(_,N,C,L)}if(se(C)||X(C))return le!==null?null:k(_,N,C,L,null);if(typeof C.then=="function")return R(_,N,Zi(C),L);if(C.$$typeof===K)return R(_,N,Yi(_,C),L);Vi(_,C)}return null}function M(_,N,C,L,le){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return _=_.get(C)||null,m(N,_,""+L,le);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case O:return _=_.get(L.key===null?C:L.key)||null,j(N,_,L,le);case U:return _=_.get(L.key===null?C:L.key)||null,A(N,_,L,le);case ne:return L=Ln(L),M(_,N,C,L,le)}if(se(L)||X(L))return _=_.get(C)||null,k(N,_,L,le,null);if(typeof L.then=="function")return M(_,N,C,Zi(L),le);if(L.$$typeof===K)return M(_,N,C,Yi(N,L),le);Vi(N,L)}return null}function P(_,N,C,L){for(var le=null,Ee=null,ee=N,he=N=0,je=null;ee!==null&&he<C.length;he++){ee.index>he?(je=ee,ee=null):je=ee.sibling;var Te=R(_,ee,C[he],L);if(Te===null){ee===null&&(ee=je);break}e&&ee&&Te.alternate===null&&t(_,ee),N=r(Te,N,he),Ee===null?le=Te:Ee.sibling=Te,Ee=Te,ee=je}if(he===C.length)return a(_,ee),be&&Sa(_,he),le;if(ee===null){for(;he<C.length;he++)ee=Q(_,C[he],L),ee!==null&&(N=r(ee,N,he),Ee===null?le=ee:Ee.sibling=ee,Ee=ee);return be&&Sa(_,he),le}for(ee=n(ee);he<C.length;he++)je=M(ee,_,he,C[he],L),je!==null&&(e&&je.alternate!==null&&ee.delete(je.key===null?he:je.key),N=r(je,N,he),Ee===null?le=je:Ee.sibling=je,Ee=je);return e&&ee.forEach(function(pn){return t(_,pn)}),be&&Sa(_,he),le}function ie(_,N,C,L){if(C==null)throw Error(c(151));for(var le=null,Ee=null,ee=N,he=N=0,je=null,Te=C.next();ee!==null&&!Te.done;he++,Te=C.next()){ee.index>he?(je=ee,ee=null):je=ee.sibling;var pn=R(_,ee,Te.value,L);if(pn===null){ee===null&&(ee=je);break}e&&ee&&pn.alternate===null&&t(_,ee),N=r(pn,N,he),Ee===null?le=pn:Ee.sibling=pn,Ee=pn,ee=je}if(Te.done)return a(_,ee),be&&Sa(_,he),le;if(ee===null){for(;!Te.done;he++,Te=C.next())Te=Q(_,Te.value,L),Te!==null&&(N=r(Te,N,he),Ee===null?le=Te:Ee.sibling=Te,Ee=Te);return be&&Sa(_,he),le}for(ee=n(ee);!Te.done;he++,Te=C.next())Te=M(ee,_,he,Te.value,L),Te!==null&&(e&&Te.alternate!==null&&ee.delete(Te.key===null?he:Te.key),N=r(Te,N,he),Ee===null?le=Te:Ee.sibling=Te,Ee=Te);return e&&ee.forEach(function(O0){return t(_,O0)}),be&&Sa(_,he),le}function Ue(_,N,C,L){if(typeof C=="object"&&C!==null&&C.type===z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case O:e:{for(var le=C.key;N!==null;){if(N.key===le){if(le=C.type,le===z){if(N.tag===7){a(_,N.sibling),L=u(N,C.props.children),L.return=_,_=L;break e}}else if(N.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ne&&Ln(le)===N.type){a(_,N.sibling),L=u(N,C.props),Os(L,C),L.return=_,_=L;break e}a(_,N);break}else t(_,N);N=N.sibling}C.type===z?(L=Un(C.props.children,_.mode,L,C.key),L.return=_,_=L):(L=Bi(C.type,C.key,C.props,null,_.mode,L),Os(L,C),L.return=_,_=L)}return f(_);case U:e:{for(le=C.key;N!==null;){if(N.key===le)if(N.tag===4&&N.stateNode.containerInfo===C.containerInfo&&N.stateNode.implementation===C.implementation){a(_,N.sibling),L=u(N,C.children||[]),L.return=_,_=L;break e}else{a(_,N);break}else t(_,N);N=N.sibling}L=Lr(C,_.mode,L),L.return=_,_=L}return f(_);case ne:return C=Ln(C),Ue(_,N,C,L)}if(se(C))return P(_,N,C,L);if(X(C)){if(le=X(C),typeof le!="function")throw Error(c(150));return C=le.call(C),ie(_,N,C,L)}if(typeof C.then=="function")return Ue(_,N,Zi(C),L);if(C.$$typeof===K)return Ue(_,N,Yi(_,C),L);Vi(_,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,N!==null&&N.tag===6?(a(_,N.sibling),L=u(N,C),L.return=_,_=L):(a(_,N),L=Br(C,_.mode,L),L.return=_,_=L),f(_)):a(_,N)}return function(_,N,C,L){try{Cs=0;var le=Ue(_,N,C,L);return _l=null,le}catch(ee){if(ee===Tl||ee===Xi)throw ee;var Ee=zt(29,ee,null,_.mode);return Ee.lanes=L,Ee.return=_,Ee}finally{}}}var Yn=Ld(!0),Qd=Ld(!1),Wa=!1;function Pr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ir(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 Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(we&2)!==0){var u=n.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),n.pending=t,t=Hi(e),Ed(e,null,a),t}return qi(e,n,t,a),Hi(e)}function As(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Mf(e,a)}}function ec(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var u=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,a=a.next}while(a!==null);r===null?u=r=t:r=r.next=t}else u=r=t;a={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var tc=!1;function Rs(){if(tc){var e=El;if(e!==null)throw e}}function Ms(e,t,a,n){tc=!1;var u=e.updateQueue;Wa=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,m=u.shared.pending;if(m!==null){u.shared.pending=null;var j=m,A=j.next;j.next=null,f===null?r=A:f.next=A,f=j;var k=e.alternate;k!==null&&(k=k.updateQueue,m=k.lastBaseUpdate,m!==f&&(m===null?k.firstBaseUpdate=A:m.next=A,k.lastBaseUpdate=j))}if(r!==null){var Q=u.baseState;f=0,k=A=j=null,m=r;do{var R=m.lane&-536870913,M=R!==m.lane;if(M?(xe&R)===R:(n&R)===R){R!==0&&R===Nl&&(tc=!0),k!==null&&(k=k.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var P=e,ie=m;R=t;var Ue=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){Q=P.call(Ue,Q,R);break e}Q=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,R=typeof P=="function"?P.call(Ue,Q,R):P,R==null)break e;Q=x({},Q,R);break e;case 2:Wa=!0}}R=m.callback,R!==null&&(e.flags|=64,M&&(e.flags|=8192),M=u.callbacks,M===null?u.callbacks=[R]:M.push(R))}else M={lane:R,tag:m.tag,payload:m.payload,callback:m.callback,next:null},k===null?(A=k=M,j=Q):k=k.next=M,f|=R;if(m=m.next,m===null){if(m=u.shared.pending,m===null)break;M=m,m=M.next,M.next=null,u.lastBaseUpdate=M,u.shared.pending=null}}while(!0);k===null&&(j=Q),u.baseState=j,u.firstBaseUpdate=A,u.lastBaseUpdate=k,r===null&&(u.shared.lanes=0),ln|=f,e.lanes=f,e.memoizedState=Q}}function Yd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Gd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Yd(a[e],t)}var wl=T(null),Ji=T(0);function Xd(e,t){e=za,F(Ji,e),F(wl,t),za=e|t.baseLanes}function ac(){F(Ji,za),F(wl,wl.current)}function nc(){za=Ji.current,Y(wl),Y(Ji)}var Dt=T(null),$t=null;function en(e){var t=e.alternate;F($e,$e.current&1),F(Dt,e),$t===null&&(t===null||wl.current!==null||t.memoizedState!==null)&&($t=e)}function lc(e){F($e,$e.current),F(Dt,e),$t===null&&($t=e)}function Kd(e){e.tag===22?(F($e,$e.current),F(Dt,e),$t===null&&($t=e)):tn()}function tn(){F($e,$e.current),F(Dt,Dt.current)}function Ut(e){Y(Dt),$t===e&&($t=null),Y($e)}var $e=T(0);function $i(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||oo(a)||fo(a)))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 Ta=0,fe=null,ze=null,Ie=null,Fi=!1,Cl=!1,Gn=!1,Wi=0,zs=0,Ol=null,xg=0;function Ke(){throw Error(c(321))}function sc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Mt(e[a],t[a]))return!1;return!0}function ic(e,t,a,n,u,r){return Ta=r,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Ch:bc,Gn=!1,r=a(n,u),Gn=!1,Cl&&(r=Vd(t,a,n,u)),Zd(e),r}function Zd(e){D.H=ks;var t=ze!==null&&ze.next!==null;if(Ta=0,Ie=ze=fe=null,Fi=!1,zs=0,Ol=null,t)throw Error(c(300));e===null||et||(e=e.dependencies,e!==null&&Qi(e)&&(et=!0))}function Vd(e,t,a,n){fe=e;var u=0;do{if(Cl&&(Ol=null),zs=0,Cl=!1,25<=u)throw Error(c(301));if(u+=1,Ie=ze=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}D.H=Oh,r=t(a,n)}while(Cl);return r}function jg(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Ds(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(fe.flags|=1024),t}function uc(){var e=Wi!==0;return Wi=0,e}function rc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function cc(e){if(Fi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fi=!1}Ta=0,Ie=ze=fe=null,Cl=!1,zs=Wi=0,Ol=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?fe.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Fe(){if(ze===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ie===null?fe.memoizedState:Ie.next;if(t!==null)Ie=t,ze=e;else{if(e===null)throw fe.alternate===null?Error(c(467)):Error(c(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ie===null?fe.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ds(e){var t=zs;return zs+=1,Ol===null&&(Ol=[]),e=qd(Ol,e,t),t=fe,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Ch:bc),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ds(e);if(e.$$typeof===K)return ot(e)}throw Error(c(438,String(e)))}function oc(e){var t=null,a=fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=fe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Pi(),fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=_e;return t.index++,a}function _a(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=Fe();return fc(t,ze,e)}function fc(e,t,a){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var u=e.baseQueue,r=n.pending;if(r!==null){if(u!==null){var f=u.next;u.next=r.next,r.next=f}t.baseQueue=u=r,n.pending=null}if(r=e.baseState,u===null)e.memoizedState=r;else{t=u.next;var m=f=null,j=null,A=t,k=!1;do{var Q=A.lane&-536870913;if(Q!==A.lane?(xe&Q)===Q:(Ta&Q)===Q){var R=A.revertLane;if(R===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),Q===Nl&&(k=!0);else if((Ta&R)===R){A=A.next,R===Nl&&(k=!0);continue}else Q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},j===null?(m=j=Q,f=r):j=j.next=Q,fe.lanes|=R,ln|=R;Q=A.action,Gn&&a(r,Q),r=A.hasEagerState?A.eagerState:a(r,Q)}else R={lane:Q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},j===null?(m=j=R,f=r):j=j.next=R,fe.lanes|=Q,ln|=Q;A=A.next}while(A!==null&&A!==t);if(j===null?f=r:j.next=m,!Mt(r,e.memoizedState)&&(et=!0,k&&(a=El,a!==null)))throw a;e.memoizedState=r,e.baseState=f,e.baseQueue=j,n.lastRenderedState=r}return u===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function dc(e){var t=Fe(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var n=a.dispatch,u=a.pending,r=t.memoizedState;if(u!==null){a.pending=null;var f=u=u.next;do r=e(r,f.action),f=f.next;while(f!==u);Mt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Jd(e,t,a){var n=fe,u=Fe(),r=be;if(r){if(a===void 0)throw Error(c(407));a=a()}else a=t();var f=!Mt((ze||u).memoizedState,a);if(f&&(u.memoizedState=a,et=!0),u=u.queue,pc(Wd.bind(null,n,u,e),[e]),u.getSnapshot!==t||f||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Al(9,{destroy:void 0},Fd.bind(null,n,u,a,t),null),qe===null)throw Error(c(349));r||(Ta&127)!==0||$d(n,t,a)}return a}function $d(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=fe.updateQueue,t===null?(t=Pi(),fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Fd(e,t,a,n){t.value=a,t.getSnapshot=n,Pd(t)&&Id(e)}function Wd(e,t,a){return a(function(){Pd(t)&&Id(e)})}function Pd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Mt(e,a)}catch{return!0}}function Id(e){var t=Dn(e,2);t!==null&&_t(t,e,2)}function hc(e){var t=vt();if(typeof e=="function"){var a=e;if(e=a(),Gn){Xa(!0);try{a()}finally{Xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t}function eh(e,t,a,n){return e.baseState=a,fc(e,ze,typeof n=="function"?n:_a)}function bg(e,t,a,n,u){if(nu(e))throw Error(c(485));if(e=t.action,e!==null){var r={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};D.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,th(t,r)):(r.next=a.next,t.pending=a.next=r)}}function th(e,t){var a=t.action,n=t.payload,u=e.state;if(t.isTransition){var r=D.T,f={};D.T=f;try{var m=a(u,n),j=D.S;j!==null&&j(f,m),ah(e,t,m)}catch(A){mc(e,t,A)}finally{r!==null&&f.types!==null&&(r.types=f.types),D.T=r}}else try{r=a(u,n),ah(e,t,r)}catch(A){mc(e,t,A)}}function ah(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){nh(e,t,n)},function(n){return mc(e,t,n)}):nh(e,t,a)}function nh(e,t,a){t.status="fulfilled",t.value=a,lh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,th(e,a)))}function mc(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,lh(t),t=t.next;while(t!==n)}e.action=null}function lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sh(e,t){return t}function ih(e,t){if(be){var a=qe.formState;if(a!==null){e:{var n=fe;if(be){if(Le){t:{for(var u=Le,r=Jt;u.nodeType!==8;){if(!r){u=null;break t}if(u=Ft(u.nextSibling),u===null){u=null;break t}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){Le=Ft(u.nextSibling),n=u.data==="F!";break e}}$a(n)}n=!1}n&&(t=a[0])}}return a=vt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:t},a.queue=n,a=Th.bind(null,fe,n),n.dispatch=a,n=hc(!1),r=jc.bind(null,fe,!1,n.queue),n=vt(),u={state:t,dispatch:null,action:e,pending:null},n.queue=u,a=bg.bind(null,fe,u,r,a),u.dispatch=a,n.memoizedState=e,[t,a,!1]}function uh(e){var t=Fe();return rh(t,ze,e)}function rh(e,t,a){if(t=fc(e,t,sh)[0],e=eu(_a)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ds(t)}catch(f){throw f===Tl?Xi:f}else n=t;t=Fe();var u=t.queue,r=u.dispatch;return a!==t.memoizedState&&(fe.flags|=2048,Al(9,{destroy:void 0},Sg.bind(null,u,a),null)),[n,r,e]}function Sg(e,t){e.action=t}function ch(e){var t=Fe(),a=ze;if(a!==null)return rh(t,a,e);Fe(),t=t.memoizedState,a=Fe();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Al(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=fe.updateQueue,t===null&&(t=Pi(),fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function oh(){return Fe().memoizedState}function tu(e,t,a,n){var u=vt();fe.flags|=e,u.memoizedState=Al(1|t,{destroy:void 0},a,n===void 0?null:n)}function au(e,t,a,n){var u=Fe();n=n===void 0?null:n;var r=u.memoizedState.inst;ze!==null&&n!==null&&sc(n,ze.memoizedState.deps)?u.memoizedState=Al(t,r,a,n):(fe.flags|=e,u.memoizedState=Al(1|t,r,a,n))}function fh(e,t){tu(8390656,8,e,t)}function pc(e,t){au(2048,8,e,t)}function Ng(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=Pi(),fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function dh(e){var t=Fe().memoizedState;return Ng({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function hh(e,t){return au(4,2,e,t)}function mh(e,t){return au(4,4,e,t)}function ph(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vh(e,t,a){a=a!=null?a.concat([e]):null,au(4,4,ph.bind(null,t,e),a)}function vc(){}function yh(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&sc(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function gh(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&sc(t,n[1]))return n[0];if(n=e(),Gn){Xa(!0);try{e()}finally{Xa(!1)}}return a.memoizedState=[n,t],n}function yc(e,t,a){return a===void 0||(Ta&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=xm(),fe.lanes|=e,ln|=e,a)}function xh(e,t,a,n){return Mt(a,t)?a:wl.current!==null?(e=yc(e,a,n),Mt(e,t)||(et=!0),e):(Ta&42)===0||(Ta&1073741824)!==0&&(xe&261930)===0?(et=!0,e.memoizedState=a):(e=xm(),fe.lanes|=e,ln|=e,t)}function jh(e,t,a,n,u){var r=V.p;V.p=r!==0&&8>r?r:8;var f=D.T,m={};D.T=m,jc(e,!1,t,a);try{var j=u(),A=D.S;if(A!==null&&A(m,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var k=gg(j,n);Us(e,t,k,Ht(e))}else Us(e,t,n,Ht(e))}catch(Q){Us(e,t,{then:function(){},status:"rejected",reason:Q},Ht())}finally{V.p=r,f!==null&&m.types!==null&&(f.types=m.types),D.T=f}}function Eg(){}function gc(e,t,a,n){if(e.tag!==5)throw Error(c(476));var u=bh(e).queue;jh(e,u,t,ue,a===null?Eg:function(){return Sh(e),a(n)})}function bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:ue},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sh(e){var t=bh(e);t.next===null&&(t=e.alternate.memoizedState),Us(e,t.next.queue,{},Ht())}function xc(){return ot(Ps)}function Nh(){return Fe().memoizedState}function Eh(){return Fe().memoizedState}function Tg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ht();e=Pa(a);var n=Ia(t,e,a);n!==null&&(_t(n,t,a),As(n,t,a)),t={cache:Jr()},e.payload=t;return}t=t.return}}function _g(e,t,a){var n=Ht();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},nu(e)?_h(t,a):(a=qr(e,t,a,n),a!==null&&(_t(a,e,n),wh(a,t,n)))}function Th(e,t,a){var n=Ht();Us(e,t,a,n)}function Us(e,t,a,n){var u={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(nu(e))_h(t,u);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var f=t.lastRenderedState,m=r(f,a);if(u.hasEagerState=!0,u.eagerState=m,Mt(m,f))return qi(e,t,u,0),qe===null&&ki(),!1}catch{}finally{}if(a=qr(e,t,u,n),a!==null)return _t(a,e,n),wh(a,t,n),!0}return!1}function jc(e,t,a,n){if(n={lane:2,revertLane:Pc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nu(e)){if(t)throw Error(c(479))}else t=qr(e,a,n,2),t!==null&&_t(t,e,2)}function nu(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function _h(e,t){Cl=Fi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function wh(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Mf(e,a)}}var ks={readContext:ot,use:Ii,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};ks.useEffectEvent=Ke;var Ch={readContext:ot,use:Ii,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:fh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,tu(4194308,4,ph.bind(null,t,e),a)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){tu(4,2,e,t)},useMemo:function(e,t){var a=vt();t=t===void 0?null:t;var n=e();if(Gn){Xa(!0);try{e()}finally{Xa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=vt();if(a!==void 0){var u=a(t);if(Gn){Xa(!0);try{a(t)}finally{Xa(!1)}}}else u=t;return n.memoizedState=n.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},n.queue=e,e=e.dispatch=_g.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=hc(e);var t=e.queue,a=Th.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vc,useDeferredValue:function(e,t){var a=vt();return yc(a,e,t)},useTransition:function(){var e=hc(!1);return e=jh.bind(null,fe,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=fe,u=vt();if(be){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),qe===null)throw Error(c(349));(xe&127)!==0||$d(n,t,a)}u.memoizedState=a;var r={value:a,getSnapshot:t};return u.queue=r,fh(Wd.bind(null,n,r,e),[e]),n.flags|=2048,Al(9,{destroy:void 0},Fd.bind(null,n,r,a,t),null),a},useId:function(){var e=vt(),t=qe.identifierPrefix;if(be){var a=fa,n=oa;a=(n&~(1<<32-Rt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Wi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=xg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xc,useFormState:ih,useActionState:ih,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=jc.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:oc,useCacheRefresh:function(){return vt().memoizedState=Tg.bind(null,fe)},useEffectEvent:function(e){var t=vt(),a={impl:e};return t.memoizedState=a,function(){if((we&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},bc={readContext:ot,use:Ii,useCallback:yh,useContext:ot,useEffect:pc,useImperativeHandle:vh,useInsertionEffect:hh,useLayoutEffect:mh,useMemo:gh,useReducer:eu,useRef:oh,useState:function(){return eu(_a)},useDebugValue:vc,useDeferredValue:function(e,t){var a=Fe();return xh(a,ze.memoizedState,e,t)},useTransition:function(){var e=eu(_a)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Ds(e),t]},useSyncExternalStore:Jd,useId:Nh,useHostTransitionStatus:xc,useFormState:uh,useActionState:uh,useOptimistic:function(e,t){var a=Fe();return eh(a,ze,e,t)},useMemoCache:oc,useCacheRefresh:Eh};bc.useEffectEvent=dh;var Oh={readContext:ot,use:Ii,useCallback:yh,useContext:ot,useEffect:pc,useImperativeHandle:vh,useInsertionEffect:hh,useLayoutEffect:mh,useMemo:gh,useReducer:dc,useRef:oh,useState:function(){return dc(_a)},useDebugValue:vc,useDeferredValue:function(e,t){var a=Fe();return ze===null?yc(a,e,t):xh(a,ze.memoizedState,e,t)},useTransition:function(){var e=dc(_a)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Ds(e),t]},useSyncExternalStore:Jd,useId:Nh,useHostTransitionStatus:xc,useFormState:ch,useActionState:ch,useOptimistic:function(e,t){var a=Fe();return ze!==null?eh(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:oc,useCacheRefresh:Eh};Oh.useEffectEvent=dh;function Sc(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Nc={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ht(),u=Pa(n);u.payload=t,a!=null&&(u.callback=a),t=Ia(e,u,n),t!==null&&(_t(t,e,n),As(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ht(),u=Pa(n);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ia(e,u,n),t!==null&&(_t(t,e,n),As(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ht(),n=Pa(a);n.tag=2,t!=null&&(n.callback=t),t=Ia(e,n,a),t!==null&&(_t(t,e,a),As(t,e,a))}};function Ah(e,t,a,n,u,r,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,f):t.prototype&&t.prototype.isPureReactComponent?!Ss(a,n)||!Ss(u,r):!0}function Rh(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Nc.enqueueReplaceState(t,t.state,null)}function Xn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Mh(e){Ui(e)}function zh(e){console.error(e)}function Dh(e){Ui(e)}function lu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Uh(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ec(e,t,a){return a=Pa(a),a.tag=3,a.payload={element:null},a.callback=function(){lu(e,t)},a}function kh(e){return e=Pa(e),e.tag=3,e}function qh(e,t,a,n){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var r=n.value;e.payload=function(){return u(r)},e.callback=function(){Uh(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Uh(t,a,n),typeof u!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function wg(e,t,a,n,u){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Sl(t,a,u,!0),a=Dt.current,a!==null){switch(a.tag){case 31:case 13:return $t===null?vu():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=u,n===Ki?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),$c(e,n,u)),!1;case 22:return a.flags|=65536,n===Ki?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),$c(e,n,u)),!1}throw Error(c(435,a.tag))}return $c(e,n,u),vu(),!1}if(be)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,n!==Gr&&(e=Error(c(422),{cause:n}),Ts(Kt(e,a)))):(n!==Gr&&(t=Error(c(423),{cause:n}),Ts(Kt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,n=Kt(n,a),u=Ec(e.stateNode,n,u),ec(e,u),Ze!==4&&(Ze=2)),!1;var r=Error(c(520),{cause:n});if(r=Kt(r,a),Xs===null?Xs=[r]:Xs.push(r),Ze!==4&&(Ze=2),t===null)return!0;n=Kt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Ec(a.stateNode,n,e),ec(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(sn===null||!sn.has(r))))return a.flags|=65536,u&=-u,a.lanes|=u,u=kh(u),qh(u,e,a,n),ec(a,u),!1}a=a.return}while(a!==null);return!1}var Tc=Error(c(461)),et=!1;function ft(e,t,a,n){t.child=e===null?Qd(t,null,a,n):Yn(t,e.child,a,n)}function Hh(e,t,a,n,u){a=a.render;var r=t.ref;if("ref"in n){var f={};for(var m in n)m!=="ref"&&(f[m]=n[m])}else f=n;return Hn(t),n=ic(e,t,a,f,r,u),m=uc(),e!==null&&!et?(rc(e,t,u),wa(e,t,u)):(be&&m&&Qr(t),t.flags|=1,ft(e,t,n,u),t.child)}function Bh(e,t,a,n,u){if(e===null){var r=a.type;return typeof r=="function"&&!Hr(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Lh(e,t,r,n,u)):(e=Bi(a.type,null,n,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!zc(e,u)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:Ss,a(f,n)&&e.ref===t.ref)return wa(e,t,u)}return t.flags|=1,e=ba(r,n),e.ref=t.ref,e.return=t,t.child=e}function Lh(e,t,a,n,u){if(e!==null){var r=e.memoizedProps;if(Ss(r,n)&&e.ref===t.ref)if(et=!1,t.pendingProps=n=r,zc(e,u))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,wa(e,t,u)}return _c(e,t,a,n,u)}function Qh(e,t,a,n){var u=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;n=u&~r}else n=0,t.child=null;return Yh(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Gi(t,r!==null?r.cachePool:null),r!==null?Xd(t,r):ac(),Kd(t);else return n=t.lanes=536870912,Yh(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Gi(t,r.cachePool),Xd(t,r),tn(),t.memoizedState=null):(e!==null&&Gi(t,null),ac(),tn());return ft(e,t,u,a),t.child}function qs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Yh(e,t,a,n,u){var r=Fr();return r=r===null?null:{parent:Pe._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Gi(t,null),ac(),Kd(t),e!==null&&Sl(e,t,n,!0),t.childLanes=u,null}function su(e,t){return t=uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gh(e,t,a){return Yn(t,e.child,null,a),e=su(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function Cg(e,t,a){var n=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(n.mode==="hidden")return e=su(t,n),t.lanes=536870912,qs(null,e);if(lc(t),(e=Le)?(e=tp(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Va!==null?{id:oa,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},a=_d(e),a.return=t,t.child=a,ct=t,Le=null)):e=null,e===null)throw $a(t);return t.lanes=536870912,null}return su(t,n)}var r=e.memoizedState;if(r!==null){var f=r.dehydrated;if(lc(t),u)if(t.flags&256)t.flags&=-257,t=Gh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(et||Sl(e,t,a,!1),u=(a&e.childLanes)!==0,et||u){if(n=qe,n!==null&&(f=zf(n,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,Dn(e,f),_t(n,e,f),Tc;vu(),t=Gh(e,t,a)}else e=r.treeContext,Le=Ft(f.nextSibling),ct=t,be=!0,Ja=null,Jt=!1,e!==null&&Od(t,e),t=su(t,n),t.flags|=4096;return t}return e=ba(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function iu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function _c(e,t,a,n,u){return Hn(t),a=ic(e,t,a,n,void 0,u),n=uc(),e!==null&&!et?(rc(e,t,u),wa(e,t,u)):(be&&n&&Qr(t),t.flags|=1,ft(e,t,a,u),t.child)}function Xh(e,t,a,n,u,r){return Hn(t),t.updateQueue=null,a=Vd(t,n,a,u),Zd(e),n=uc(),e!==null&&!et?(rc(e,t,r),wa(e,t,r)):(be&&n&&Qr(t),t.flags|=1,ft(e,t,a,r),t.child)}function Kh(e,t,a,n,u){if(Hn(t),t.stateNode===null){var r=gl,f=a.contextType;typeof f=="object"&&f!==null&&(r=ot(f)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Nc,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},Pr(t),f=a.contextType,r.context=typeof f=="object"&&f!==null?ot(f):gl,r.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Sc(t,a,f,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&Nc.enqueueReplaceState(r,r.state,null),Ms(t,n,r,u),Rs(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,j=Xn(a,m);r.props=j;var A=r.context,k=a.contextType;f=gl,typeof k=="object"&&k!==null&&(f=ot(k));var Q=a.getDerivedStateFromProps;k=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,k||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||A!==f)&&Rh(t,r,n,f),Wa=!1;var R=t.memoizedState;r.state=R,Ms(t,n,r,u),Rs(),A=t.memoizedState,m||R!==A||Wa?(typeof Q=="function"&&(Sc(t,a,Q,n),A=t.memoizedState),(j=Wa||Ah(t,a,j,n,R,A,f))?(k||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=A),r.props=n,r.state=A,r.context=f,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,Ir(e,t),f=t.memoizedProps,k=Xn(a,f),r.props=k,Q=t.pendingProps,R=r.context,A=a.contextType,j=gl,typeof A=="object"&&A!==null&&(j=ot(A)),m=a.getDerivedStateFromProps,(A=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==Q||R!==j)&&Rh(t,r,n,j),Wa=!1,R=t.memoizedState,r.state=R,Ms(t,n,r,u),Rs();var M=t.memoizedState;f!==Q||R!==M||Wa||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof m=="function"&&(Sc(t,a,m,n),M=t.memoizedState),(k=Wa||Ah(t,a,k,n,R,M,j)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(A||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,M,j),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,M,j)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=M),r.props=n,r.state=M,r.context=j,n=k):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,iu(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=Yn(t,e.child,null,u),t.child=Yn(t,null,a,u)):ft(e,t,a,u),t.memoizedState=r.state,e=t.child):e=wa(e,t,u),e}function Zh(e,t,a,n){return kn(),t.flags|=256,ft(e,t,a,n),t.child}var wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:Ud()}}function Oc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=qt),e}function Vh(e,t,a){var n=t.pendingProps,u=!1,r=(t.flags&128)!==0,f;if((f=r)||(f=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),f&&(u=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(u?en(t):tn(),(e=Le)?(e=tp(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Va!==null?{id:oa,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},a=_d(e),a.return=t,t.child=a,ct=t,Le=null)):e=null,e===null)throw $a(t);return fo(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,u?(tn(),u=t.mode,m=uu({mode:"hidden",children:m},u),n=Un(n,u,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Cc(a),n.childLanes=Oc(e,f,a),t.memoizedState=wc,qs(null,n)):(en(t),Ac(t,m))}var j=e.memoizedState;if(j!==null&&(m=j.dehydrated,m!==null)){if(r)t.flags&256?(en(t),t.flags&=-257,t=Rc(e,t,a)):t.memoizedState!==null?(tn(),t.child=e.child,t.flags|=128,t=null):(tn(),m=n.fallback,u=t.mode,n=uu({mode:"visible",children:n.children},u),m=Un(m,u,a,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,Yn(t,e.child,null,a),n=t.child,n.memoizedState=Cc(a),n.childLanes=Oc(e,f,a),t.memoizedState=wc,t=qs(null,n));else if(en(t),fo(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var A=f.dgst;f=A,n=Error(c(419)),n.stack="",n.digest=f,Ts({value:n,source:null,stack:null}),t=Rc(e,t,a)}else if(et||Sl(e,t,a,!1),f=(a&e.childLanes)!==0,et||f){if(f=qe,f!==null&&(n=zf(f,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,Dn(e,n),_t(f,e,n),Tc;oo(m)||vu(),t=Rc(e,t,a)}else oo(m)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Le=Ft(m.nextSibling),ct=t,be=!0,Ja=null,Jt=!1,e!==null&&Od(t,e),t=Ac(t,n.children),t.flags|=4096);return t}return u?(tn(),m=n.fallback,u=t.mode,j=e.child,A=j.sibling,n=ba(j,{mode:"hidden",children:n.children}),n.subtreeFlags=j.subtreeFlags&65011712,A!==null?m=ba(A,m):(m=Un(m,u,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,qs(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Cc(a):(u=m.cachePool,u!==null?(j=Pe._currentValue,u=u.parent!==j?{parent:j,pool:j}:u):u=Ud(),m={baseLanes:m.baseLanes|a,cachePool:u}),n.memoizedState=m,n.childLanes=Oc(e,f,a),t.memoizedState=wc,qs(e.child,n)):(en(t),a=e.child,e=a.sibling,a=ba(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function Ac(e,t){return t=uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uu(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function Rc(e,t,a){return Yn(t,e.child,null,a),e=Ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jh(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Zr(e.return,t,a)}function Mc(e,t,a,n,u,r){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:u,treeForkCount:r}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=u,f.treeForkCount=r)}function $h(e,t,a){var n=t.pendingProps,u=n.revealOrder,r=n.tail;n=n.children;var f=$e.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,F($e,f),ft(e,t,n,a),n=be?Es:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jh(e,a,t);else if(e.tag===19)Jh(e,a,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(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&$i(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Mc(t,!1,u,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$i(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Mc(t,!0,a,null,r,n);break;case"together":Mc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function wa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ln|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Sl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=ba(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ba(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qi(e)))}function Og(e,t,a){switch(t.tag){case 3:pt(t,t.stateNode.containerInfo),Fa(t,Pe,e.memoizedState.cache),kn();break;case 27:case 5:cs(t);break;case 4:pt(t,t.stateNode.containerInfo);break;case 10:Fa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(en(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Vh(e,t,a):(en(t),e=wa(e,t,a),e!==null?e.sibling:null);en(t);break;case 19:var u=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Sl(e,t,a,!1),n=(a&t.childLanes)!==0),u){if(n)return $h(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),F($e,$e.current),n)break;return null;case 22:return t.lanes=0,Qh(e,t,a,t.pendingProps);case 24:Fa(t,Pe,e.memoizedState.cache)}return wa(e,t,a)}function Fh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!zc(e,a)&&(t.flags&128)===0)return et=!1,Og(e,t,a);et=(e.flags&131072)!==0}else et=!1,be&&(t.flags&1048576)!==0&&Cd(t,Es,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Ln(t.elementType),t.type=e,typeof e=="function")Hr(e)?(n=Xn(e,n),t.tag=1,t=Kh(null,t,e,n,a)):(t.tag=0,t=_c(null,t,e,n,a));else{if(e!=null){var u=e.$$typeof;if(u===Z){t.tag=11,t=Hh(null,t,e,n,a);break e}else if(u===te){t.tag=14,t=Bh(null,t,e,n,a);break e}}throw t=pe(e)||e,Error(c(306,t,""))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,u=Xn(n,t.pendingProps),Kh(e,t,n,u,a);case 3:e:{if(pt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var r=t.memoizedState;u=r.element,Ir(e,t),Ms(t,n,null,a);var f=t.memoizedState;if(n=f.cache,Fa(t,Pe,n),n!==r.cache&&Vr(t,[Pe],a,!0),Rs(),n=f.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Zh(e,t,n,a);break e}else if(n!==u){u=Kt(Error(c(424)),t),Ts(u),t=Zh(e,t,n,a);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(Le=Ft(e.firstChild),ct=t,be=!0,Ja=null,Jt=!0,a=Qd(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(kn(),n===u){t=wa(e,t,a);break e}ft(e,t,n,a)}t=t.child}return t;case 26:return iu(e,t),e===null?(a=up(t.type,null,t.pendingProps,null))?t.memoizedState=a:be||(a=t.type,e=t.pendingProps,n=Nu(ve.current).createElement(a),n[rt]=t,n[jt]=e,dt(n,a,e),st(n),t.stateNode=n):t.memoizedState=up(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return cs(t),e===null&&be&&(n=t.stateNode=lp(t.type,t.pendingProps,ve.current),ct=t,Jt=!0,u=Le,on(t.type)?(ho=u,Le=Ft(n.firstChild)):Le=u),ft(e,t,t.pendingProps.children,a),iu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((u=n=Le)&&(n=s0(n,t.type,t.pendingProps,Jt),n!==null?(t.stateNode=n,ct=t,Le=Ft(n.firstChild),Jt=!1,u=!0):u=!1),u||$a(t)),cs(t),u=t.type,r=t.pendingProps,f=e!==null?e.memoizedProps:null,n=r.children,uo(u,r)?n=null:f!==null&&uo(u,f)&&(t.flags|=32),t.memoizedState!==null&&(u=ic(e,t,jg,null,null,a),Ps._currentValue=u),iu(e,t),ft(e,t,n,a),t.child;case 6:return e===null&&be&&((e=a=Le)&&(a=i0(a,t.pendingProps,Jt),a!==null?(t.stateNode=a,ct=t,Le=null,e=!0):e=!1),e||$a(t)),null;case 13:return Vh(e,t,a);case 4:return pt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Yn(t,null,n,a):ft(e,t,n,a),t.child;case 11:return Hh(e,t,t.type,t.pendingProps,a);case 7:return ft(e,t,t.pendingProps,a),t.child;case 8:return ft(e,t,t.pendingProps.children,a),t.child;case 12:return ft(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Fa(t,t.type,n.value),ft(e,t,n.children,a),t.child;case 9:return u=t.type._context,n=t.pendingProps.children,Hn(t),u=ot(u),n=n(u),t.flags|=1,ft(e,t,n,a),t.child;case 14:return Bh(e,t,t.type,t.pendingProps,a);case 15:return Lh(e,t,t.type,t.pendingProps,a);case 19:return $h(e,t,a);case 31:return Cg(e,t,a);case 22:return Qh(e,t,a,t.pendingProps);case 24:return Hn(t),n=ot(Pe),e===null?(u=Fr(),u===null&&(u=qe,r=Jr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=a),u=r),t.memoizedState={parent:n,cache:u},Pr(t),Fa(t,Pe,u)):((e.lanes&a)!==0&&(Ir(e,t),Ms(t,null,null,a),Rs()),u=e.memoizedState,r=t.memoizedState,u.parent!==n?(u={parent:n,cache:n},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Fa(t,Pe,n)):(n=r.cache,Fa(t,Pe,n),n!==u.cache&&Vr(t,[Pe],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Ca(e){e.flags|=4}function Dc(e,t,a,n,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Nm())e.flags|=8192;else throw Qn=Ki,Wr}else e.flags&=-16777217}function Wh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dp(t))if(Nm())e.flags|=8192;else throw Qn=Ki,Wr}function ru(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Af():536870912,e.lanes|=t,Dl|=t)}function Hs(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,n|=u.subtreeFlags&65011712,n|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,n|=u.subtreeFlags,n|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Ag(e,t,a){var n=t.pendingProps;switch(Yr(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 a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ea(Pe),Je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(bl(t)?Ca(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xr())),Qe(t),null;case 26:var u=t.type,r=t.memoizedState;return e===null?(Ca(t),r!==null?(Qe(t),Wh(t,r)):(Qe(t),Dc(t,u,null,n,a))):r?r!==e.memoizedState?(Ca(t),Qe(t),Wh(t,r)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Ca(t),Qe(t),Dc(t,u,e,n,a)),null;case 27:if(xi(t),a=ve.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ca(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Qe(t),null}e=I.current,bl(t)?Ad(t):(e=lp(u,n,a),t.stateNode=e,Ca(t))}return Qe(t),null;case 5:if(xi(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ca(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Qe(t),null}if(r=I.current,bl(t))Ad(t);else{var f=Nu(ve.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?f.createElement(u,{is:n.is}):f.createElement(u)}}r[rt]=t,r[jt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=r;e:switch(dt(r,u,n),u){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ca(t)}}return Qe(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Ca(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=ve.current,bl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,u=ct,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}e[rt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Vm(e.nodeValue,a)),e||$a(t,!0)}else e=Nu(e).createTextNode(n),e[rt]=t,t.stateNode=e}return Qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=bl(t),a!==null){if(e===null){if(!n)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[rt]=t}else kn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else a=Xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Qe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=bl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!u)throw Error(c(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[rt]=t}else kn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),u=!1}else u=Xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,u=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(u=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==u&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ru(t,t.updateQueue),Qe(t),null);case 4:return Je(),e===null&&ao(t.stateNode.containerInfo),Qe(t),null;case 10:return Ea(t.type),Qe(t),null;case 19:if(Y($e),n=t.memoizedState,n===null)return Qe(t),null;if(u=(t.flags&128)!==0,r=n.rendering,r===null)if(u)Hs(n,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=$i(e),r!==null){for(t.flags|=128,Hs(n,!1),e=r.updateQueue,t.updateQueue=e,ru(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Td(a,e),a=a.sibling;return F($e,$e.current&1|2),be&&Sa(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Ot()>hu&&(t.flags|=128,u=!0,Hs(n,!1),t.lanes=4194304)}else{if(!u)if(e=$i(r),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,ru(t,e),Hs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!be)return Qe(t),null}else 2*Ot()-n.renderingStartTime>hu&&a!==536870912&&(t.flags|=128,u=!0,Hs(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Ot(),e.sibling=null,a=$e.current,F($e,u?a&1|2:a&1),be&&Sa(t,n.treeForkCount),e):(Qe(t),null);case 22:case 23:return Ut(t),nc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),a=t.updateQueue,a!==null&&ru(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Y(Bn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ea(Pe),Qe(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Rg(e,t){switch(Yr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ea(Pe),Je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xi(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(c(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y($e),null;case 4:return Je(),null;case 10:return Ea(t.type),null;case 22:case 23:return Ut(t),nc(),e!==null&&Y(Bn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ea(Pe),null;case 25:return null;default:return null}}function Ph(e,t){switch(Yr(t),t.tag){case 3:Ea(Pe),Je();break;case 26:case 27:case 5:xi(t);break;case 4:Je();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:Y($e);break;case 10:Ea(t.type);break;case 22:case 23:Ut(t),nc(),e!==null&&Y(Bn);break;case 24:Ea(Pe)}}function Bs(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){n=void 0;var r=a.create,f=a.inst;n=r(),f.destroy=n}a=a.next}while(a!==u)}}catch(m){Re(t,t.return,m)}}function an(e,t,a){try{var n=t.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var r=u.next;n=r;do{if((n.tag&e)===e){var f=n.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,u=t;var j=a,A=m;try{A()}catch(k){Re(u,j,k)}}}n=n.next}while(n!==r)}}catch(k){Re(t,t.return,k)}}function Ih(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Gd(t,a)}catch(n){Re(e,e.return,n)}}}function em(e,t,a){a.props=Xn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Re(e,t,n)}}function Ls(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(u){Re(e,t,u)}}function da(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(u){Re(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Re(e,t,u)}else a.current=null}function tm(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(u){Re(e,e.return,u)}}function Uc(e,t,a){try{var n=e.stateNode;Ig(n,e.type,a,t),n[jt]=t}catch(u){Re(e,e.return,u)}}function am(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&on(e.type)||e.tag===4}function kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||am(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&&on(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 qc(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=xa));else if(n!==4&&(n===27&&on(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(qc(e,t,a),e=e.sibling;e!==null;)qc(e,t,a),e=e.sibling}function cu(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&on(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(cu(e,t,a),e=e.sibling;e!==null;)cu(e,t,a),e=e.sibling}function nm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);dt(t,n,a),t[rt]=e,t[jt]=a}catch(r){Re(e,e.return,r)}}var Oa=!1,tt=!1,Hc=!1,lm=typeof WeakSet=="function"?WeakSet:Set,it=null;function Mg(e,t){if(e=e.containerInfo,so=Au,e=vd(e),Rr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var u=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var f=0,m=-1,j=-1,A=0,k=0,Q=e,R=null;t:for(;;){for(var M;Q!==a||u!==0&&Q.nodeType!==3||(m=f+u),Q!==r||n!==0&&Q.nodeType!==3||(j=f+n),Q.nodeType===3&&(f+=Q.nodeValue.length),(M=Q.firstChild)!==null;)R=Q,Q=M;for(;;){if(Q===e)break t;if(R===a&&++A===u&&(m=f),R===r&&++k===n&&(j=f),(M=Q.nextSibling)!==null)break;Q=R,R=Q.parentNode}Q=M}a=m===-1||j===-1?null:{start:m,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(io={focusedElem:e,selectionRange:a},Au=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,r=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(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,u=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var P=Xn(a.type,u);e=n.getSnapshotBeforeUpdate(P,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Re(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)co(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":co(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function sm(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ra(e,a),n&4&&Bs(5,a);break;case 1:if(Ra(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Re(a,a.return,f)}else{var u=Xn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Re(a,a.return,f)}}n&64&&Ih(a),n&512&&Ls(a,a.return);break;case 3:if(Ra(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Gd(e,t)}catch(f){Re(a,a.return,f)}}break;case 27:t===null&&n&4&&nm(a);case 26:case 5:Ra(e,a),t===null&&n&4&&tm(a),n&512&&Ls(a,a.return);break;case 12:Ra(e,a);break;case 31:Ra(e,a),n&4&&rm(e,a);break;case 13:Ra(e,a),n&4&&cm(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Qg.bind(null,a),u0(e,a))));break;case 22:if(n=a.memoizedState!==null||Oa,!n){t=t!==null&&t.memoizedState!==null||tt,u=Oa;var r=tt;Oa=n,(tt=t)&&!r?Ma(e,a,(a.subtreeFlags&8772)!==0):Ra(e,a),Oa=u,tt=r}break;case 30:break;default:Ra(e,a)}}function im(e){var t=e.alternate;t!==null&&(e.alternate=null,im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mr(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,St=!1;function Aa(e,t,a){for(a=a.child;a!==null;)um(e,t,a),a=a.sibling}function um(e,t,a){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(os,a)}catch{}switch(a.tag){case 26:tt||da(a,t),Aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:tt||da(a,t);var n=Ye,u=St;on(a.type)&&(Ye=a.stateNode,St=!1),Aa(e,t,a),$s(a.stateNode),Ye=n,St=u;break;case 5:tt||da(a,t);case 6:if(n=Ye,u=St,Ye=null,Aa(e,t,a),Ye=n,St=u,Ye!==null)if(St)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(r){Re(a,t,r)}else try{Ye.removeChild(a.stateNode)}catch(r){Re(a,t,r)}break;case 18:Ye!==null&&(St?(e=Ye,Im(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Yl(e)):Im(Ye,a.stateNode));break;case 4:n=Ye,u=St,Ye=a.stateNode.containerInfo,St=!0,Aa(e,t,a),Ye=n,St=u;break;case 0:case 11:case 14:case 15:an(2,a,t),tt||an(4,a,t),Aa(e,t,a);break;case 1:tt||(da(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&em(a,t,n)),Aa(e,t,a);break;case 21:Aa(e,t,a);break;case 22:tt=(n=tt)||a.memoizedState!==null,Aa(e,t,a),tt=n;break;default:Aa(e,t,a)}}function rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yl(e)}catch(a){Re(t,t.return,a)}}}function cm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yl(e)}catch(a){Re(t,t.return,a)}}function zg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lm),t;default:throw Error(c(435,e.tag))}}function ou(e,t){var a=zg(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var u=Yg.bind(null,e,n);n.then(u,u)}})}function Nt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var u=a[n],r=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(on(m.type)){Ye=m.stateNode,St=!1;break e}break;case 5:Ye=m.stateNode,St=!1;break e;case 3:case 4:Ye=m.stateNode.containerInfo,St=!0;break e}m=m.return}if(Ye===null)throw Error(c(160));um(r,f,u),Ye=null,St=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)om(t,e),t=t.sibling}var la=null;function om(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nt(t,e),Et(e),n&4&&(an(3,e,e.return),Bs(3,e),an(5,e,e.return));break;case 1:Nt(t,e),Et(e),n&512&&(tt||a===null||da(a,a.return)),n&64&&Oa&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var u=la;if(Nt(t,e),Et(e),n&512&&(tt||a===null||da(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(n){case"title":r=u.getElementsByTagName("title")[0],(!r||r[hs]||r[rt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(n),u.head.insertBefore(r,u.querySelector("head > title"))),dt(r,n,a),r[rt]=e,st(r),n=r;break e;case"link":var f=op("link","href",u).get(n+(a.href||""));if(f){for(var m=0;m<f.length;m++)if(r=f[m],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(m,1);break t}}r=u.createElement(n),dt(r,n,a),u.head.appendChild(r);break;case"meta":if(f=op("meta","content",u).get(n+(a.content||""))){for(m=0;m<f.length;m++)if(r=f[m],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(m,1);break t}}r=u.createElement(n),dt(r,n,a),u.head.appendChild(r);break;default:throw Error(c(468,n))}r[rt]=e,st(r),n=r}e.stateNode=n}else fp(u,e.type,e.stateNode);else e.stateNode=cp(u,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?fp(u,e.type,e.stateNode):cp(u,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Nt(t,e),Et(e),n&512&&(tt||a===null||da(a,a.return)),a!==null&&n&4&&Uc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Nt(t,e),Et(e),n&512&&(tt||a===null||da(a,a.return)),e.flags&32){u=e.stateNode;try{fl(u,"")}catch(P){Re(e,e.return,P)}}n&4&&e.stateNode!=null&&(u=e.memoizedProps,Uc(e,u,a!==null?a.memoizedProps:u)),n&1024&&(Hc=!0);break;case 6:if(Nt(t,e),Et(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(P){Re(e,e.return,P)}}break;case 3:if(_u=null,u=la,la=Eu(t.containerInfo),Nt(t,e),la=u,Et(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Yl(t.containerInfo)}catch(P){Re(e,e.return,P)}Hc&&(Hc=!1,fm(e));break;case 4:n=la,la=Eu(e.stateNode.containerInfo),Nt(t,e),Et(e),la=n;break;case 12:Nt(t,e),Et(e);break;case 31:Nt(t,e),Et(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 13:Nt(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(du=Ot()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 22:u=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,A=Oa,k=tt;if(Oa=A||u,tt=k||j,Nt(t,e),tt=k,Oa=A,Et(e),n&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||j||Oa||tt||Kn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(r=j.stateNode,u)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=j.stateNode;var Q=j.memoizedProps.style,R=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;m.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(P){Re(j,j.return,P)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=u?"":j.memoizedProps}catch(P){Re(j,j.return,P)}}}else if(t.tag===18){if(a===null){j=t;try{var M=j.stateNode;u?ep(M,!0):ep(j.stateNode,!1)}catch(P){Re(j,j.return,P)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,ou(e,a))));break;case 19:Nt(t,e),Et(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 30:break;case 21:break;default:Nt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(am(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var u=a.stateNode,r=kc(e);cu(e,r,u);break;case 5:var f=a.stateNode;a.flags&32&&(fl(f,""),a.flags&=-33);var m=kc(e);cu(e,m,f);break;case 3:case 4:var j=a.stateNode.containerInfo,A=kc(e);qc(e,A,j);break;default:throw Error(c(161))}}catch(k){Re(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ra(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sm(e,t.alternate,t),t=t.sibling}function Kn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:an(4,t,t.return),Kn(t);break;case 1:da(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&em(t,t.return,a),Kn(t);break;case 27:$s(t.stateNode);case 26:case 5:da(t,t.return),Kn(t);break;case 22:t.memoizedState===null&&Kn(t);break;case 30:Kn(t);break;default:Kn(t)}e=e.sibling}}function Ma(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,u=e,r=t,f=r.flags;switch(r.tag){case 0:case 11:case 15:Ma(u,r,a),Bs(4,r);break;case 1:if(Ma(u,r,a),n=r,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(A){Re(n,n.return,A)}if(n=r,u=n.updateQueue,u!==null){var m=n.stateNode;try{var j=u.shared.hiddenCallbacks;if(j!==null)for(u.shared.hiddenCallbacks=null,u=0;u<j.length;u++)Yd(j[u],m)}catch(A){Re(n,n.return,A)}}a&&f&64&&Ih(r),Ls(r,r.return);break;case 27:nm(r);case 26:case 5:Ma(u,r,a),a&&n===null&&f&4&&tm(r),Ls(r,r.return);break;case 12:Ma(u,r,a);break;case 31:Ma(u,r,a),a&&f&4&&rm(u,r);break;case 13:Ma(u,r,a),a&&f&4&&cm(u,r);break;case 22:r.memoizedState===null&&Ma(u,r,a),Ls(r,r.return);break;case 30:break;default:Ma(u,r,a)}t=t.sibling}}function Bc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&_s(a))}function Lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_s(e))}function sa(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dm(e,t,a,n),t=t.sibling}function dm(e,t,a,n){var u=t.flags;switch(t.tag){case 0:case 11:case 15:sa(e,t,a,n),u&2048&&Bs(9,t);break;case 1:sa(e,t,a,n);break;case 3:sa(e,t,a,n),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_s(e)));break;case 12:if(u&2048){sa(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,f=r.id,m=r.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Re(t,t.return,j)}}else sa(e,t,a,n);break;case 31:sa(e,t,a,n);break;case 13:sa(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,f=t.alternate,t.memoizedState!==null?r._visibility&2?sa(e,t,a,n):Qs(e,t):r._visibility&2?sa(e,t,a,n):(r._visibility|=2,Rl(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Bc(f,t);break;case 24:sa(e,t,a,n),u&2048&&Lc(t.alternate,t);break;default:sa(e,t,a,n)}}function Rl(e,t,a,n,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,f=t,m=a,j=n,A=f.flags;switch(f.tag){case 0:case 11:case 15:Rl(r,f,m,j,u),Bs(8,f);break;case 23:break;case 22:var k=f.stateNode;f.memoizedState!==null?k._visibility&2?Rl(r,f,m,j,u):Qs(r,f):(k._visibility|=2,Rl(r,f,m,j,u)),u&&A&2048&&Bc(f.alternate,f);break;case 24:Rl(r,f,m,j,u),u&&A&2048&&Lc(f.alternate,f);break;default:Rl(r,f,m,j,u)}t=t.sibling}}function Qs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,u=n.flags;switch(n.tag){case 22:Qs(a,n),u&2048&&Bc(n.alternate,n);break;case 24:Qs(a,n),u&2048&&Lc(n.alternate,n);break;default:Qs(a,n)}t=t.sibling}}var Ys=8192;function Ml(e,t,a){if(e.subtreeFlags&Ys)for(e=e.child;e!==null;)hm(e,t,a),e=e.sibling}function hm(e,t,a){switch(e.tag){case 26:Ml(e,t,a),e.flags&Ys&&e.memoizedState!==null&&x0(a,la,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,a);break;case 3:case 4:var n=la;la=Eu(e.stateNode.containerInfo),Ml(e,t,a),la=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ys,Ys=16777216,Ml(e,t,a),Ys=n):Ml(e,t,a));break;default:Ml(e,t,a)}}function mm(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 Gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,vm(n,e)}mm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pm(e),e=e.sibling}function pm(e){switch(e.tag){case 0:case 11:case 15:Gs(e),e.flags&2048&&an(9,e,e.return);break;case 3:Gs(e);break;case 12:Gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):Gs(e);break;default:Gs(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,vm(n,e)}mm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:an(8,t,t.return),fu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function vm(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:an(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:_s(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,it=n;else e:for(a=e;it!==null;){n=it;var u=n.sibling,r=n.return;if(im(n),n===a){it=null;break e}if(u!==null){u.return=r,it=u;break e}it=r}}}var Dg={getCacheForType:function(e){var t=ot(Pe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ot(Pe).controller.signal}},Ug=typeof WeakMap=="function"?WeakMap:Map,we=0,qe=null,ye=null,xe=0,Ae=0,kt=null,nn=!1,zl=!1,Qc=!1,za=0,Ze=0,ln=0,Zn=0,Yc=0,qt=0,Dl=0,Xs=null,Tt=null,Gc=!1,du=0,ym=0,hu=1/0,mu=null,sn=null,at=0,un=null,Ul=null,Da=0,Xc=0,Kc=null,gm=null,Ks=0,Zc=null;function Ht(){return(we&2)!==0&&xe!==0?xe&-xe:D.T!==null?Pc():Df()}function xm(){if(qt===0)if((xe&536870912)===0||be){var e=Si;Si<<=1,(Si&3932160)===0&&(Si=262144),qt=e}else qt=536870912;return e=Dt.current,e!==null&&(e.flags|=32),qt}function _t(e,t,a){(e===qe&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(kl(e,0),rn(e,xe,qt,!1)),ds(e,a),((we&2)===0||e!==qe)&&(e===qe&&((we&2)===0&&(Zn|=a),Ze===4&&rn(e,xe,qt,!1)),ha(e))}function jm(e,t,a){if((we&6)!==0)throw Error(c(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||fs(e,t),u=n?Hg(e,t):Jc(e,t,!0),r=n;do{if(u===0){zl&&!n&&rn(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!kg(a)){u=Jc(e,t,!1),r=!1;continue}if(u===2){if(r=t,e.errorRecoveryDisabledLanes&r)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;u=Xs;var j=m.current.memoizedState.isDehydrated;if(j&&(kl(m,f).flags|=256),f=Jc(m,f,!1),f!==2){if(Qc&&!j){m.errorRecoveryDisabledLanes|=r,Zn|=r,u=4;break e}r=Tt,Tt=u,r!==null&&(Tt===null?Tt=r:Tt.push.apply(Tt,r))}u=f}if(r=!1,u!==2)continue}}if(u===1){kl(e,0),rn(e,t,0,!0);break}e:{switch(n=e,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:rn(n,t,qt,!nn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(u=du+300-Ot(),10<u)){if(rn(n,t,qt,!nn),Ei(n,0,!0)!==0)break e;Da=t,n.timeoutHandle=Wm(bm.bind(null,n,a,Tt,mu,Gc,t,qt,Zn,Dl,nn,r,"Throttled",-0,0),u);break e}bm(n,a,Tt,mu,Gc,t,qt,Zn,Dl,nn,r,null,-0,0)}}break}while(!0);ha(e)}function bm(e,t,a,n,u,r,f,m,j,A,k,Q,R,M){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xa},hm(t,r,Q);var P=(r&62914560)===r?du-Ot():(r&4194048)===r?ym-Ot():0;if(P=j0(Q,P),P!==null){Da=r,e.cancelPendingCommit=P(Om.bind(null,e,t,r,a,n,u,f,m,j,k,Q,null,R,M)),rn(e,r,f,!A);return}}Om(e,t,r,a,n,u,f,m,j)}function kg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var u=a[n],r=u.getSnapshot;u=u.value;try{if(!Mt(r(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 rn(e,t,a,n){t&=~Yc,t&=~Zn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var u=t;0<u;){var r=31-Rt(u),f=1<<r;n[r]=-1,u&=~f}a!==0&&Rf(e,a,t)}function pu(){return(we&6)===0?(Zs(0),!1):!0}function Vc(){if(ye!==null){if(Ae===0)var e=ye.return;else e=ye,Na=qn=null,cc(e),_l=null,Cs=0,e=ye;for(;e!==null;)Ph(e.alternate,e),e=e.return;ye=null}}function kl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,a0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Da=0,Vc(),qe=e,ye=a=ba(e.current,null),xe=t,Ae=0,kt=null,nn=!1,zl=fs(e,t),Qc=!1,Dl=qt=Yc=Zn=ln=Ze=0,Tt=Xs=null,Gc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var u=31-Rt(n),r=1<<u;t|=e[u],n&=~r}return za=t,ki(),a}function Sm(e,t){fe=null,D.H=ks,t===Tl||t===Xi?(t=Hd(),Ae=3):t===Wr?(t=Hd(),Ae=4):Ae=t===Tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kt=t,ye===null&&(Ze=1,lu(e,Kt(t,e.current)))}function Nm(){var e=Dt.current;return e===null?!0:(xe&4194048)===xe?$t===null:(xe&62914560)===xe||(xe&536870912)!==0?e===$t:!1}function Em(){var e=D.H;return D.H=ks,e===null?ks:e}function Tm(){var e=D.A;return D.A=Dg,e}function vu(){Ze=4,nn||(xe&4194048)!==xe&&Dt.current!==null||(zl=!0),(ln&134217727)===0&&(Zn&134217727)===0||qe===null||rn(qe,xe,qt,!1)}function Jc(e,t,a){var n=we;we|=2;var u=Em(),r=Tm();(qe!==e||xe!==t)&&(mu=null,kl(e,t)),t=!1;var f=Ze;e:do try{if(Ae!==0&&ye!==null){var m=ye,j=kt;switch(Ae){case 8:Vc(),f=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var A=Ae;if(Ae=0,kt=null,ql(e,m,j,A),a&&zl){f=0;break e}break;default:A=Ae,Ae=0,kt=null,ql(e,m,j,A)}}qg(),f=Ze;break}catch(k){Sm(e,k)}while(!0);return t&&e.shellSuspendCounter++,Na=qn=null,we=n,D.H=u,D.A=r,ye===null&&(qe=null,xe=0,ki()),f}function qg(){for(;ye!==null;)_m(ye)}function Hg(e,t){var a=we;we|=2;var n=Em(),u=Tm();qe!==e||xe!==t?(mu=null,hu=Ot()+500,kl(e,t)):zl=fs(e,t);e:do try{if(Ae!==0&&ye!==null){t=ye;var r=kt;t:switch(Ae){case 1:Ae=0,kt=null,ql(e,t,r,1);break;case 2:case 9:if(kd(r)){Ae=0,kt=null,wm(t);break}t=function(){Ae!==2&&Ae!==9||qe!==e||(Ae=7),ha(e)},r.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:kd(r)?(Ae=0,kt=null,wm(t)):(Ae=0,kt=null,ql(e,t,r,7));break;case 5:var f=null;switch(ye.tag){case 26:f=ye.memoizedState;case 5:case 27:var m=ye;if(f?dp(f):m.stateNode.complete){Ae=0,kt=null;var j=m.sibling;if(j!==null)ye=j;else{var A=m.return;A!==null?(ye=A,yu(A)):ye=null}break t}}Ae=0,kt=null,ql(e,t,r,5);break;case 6:Ae=0,kt=null,ql(e,t,r,6);break;case 8:Vc(),Ze=6;break e;default:throw Error(c(462))}}Bg();break}catch(k){Sm(e,k)}while(!0);return Na=qn=null,D.H=n,D.A=u,we=a,ye!==null?0:(qe=null,xe=0,ki(),Ze)}function Bg(){for(;ye!==null&&!ry();)_m(ye)}function _m(e){var t=Fh(e.alternate,e,za);e.memoizedProps=e.pendingProps,t===null?yu(e):ye=t}function wm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Xh(a,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Xh(a,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:cc(t);default:Ph(a,t),t=ye=Td(t,za),t=Fh(a,t,za)}e.memoizedProps=e.pendingProps,t===null?yu(e):ye=t}function ql(e,t,a,n){Na=qn=null,cc(t),_l=null,Cs=0;var u=t.return;try{if(wg(e,u,t,a,xe)){Ze=1,lu(e,Kt(a,e.current)),ye=null;return}}catch(r){if(u!==null)throw ye=u,r;Ze=1,lu(e,Kt(a,e.current)),ye=null;return}t.flags&32768?(be||n===1?e=!0:zl||(xe&536870912)!==0?e=!1:(nn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Dt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Cm(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){Cm(t,nn);return}e=t.return;var a=Ag(t.alternate,t,za);if(a!==null){ye=a;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Ze===0&&(Ze=5)}function Cm(e,t){do{var a=Rg(e.alternate,e);if(a!==null){a.flags&=32767,ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=a}while(e!==null);Ze=6,ye=null}function Om(e,t,a,n,u,r,f,m,j){e.cancelPendingCommit=null;do gu();while(at!==0);if((we&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(r=t.lanes|t.childLanes,r|=kr,gy(e,a,r,f,m,j),e===qe&&(ye=qe=null,xe=0),Ul=t,un=e,Da=a,Xc=r,Kc=u,gm=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gg(ji,function(){return Dm(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,u=V.p,V.p=2,f=we,we|=4;try{Mg(e,t,a)}finally{we=f,V.p=u,D.T=n}}at=1,Am(),Rm(),Mm()}}function Am(){if(at===1){at=0;var e=un,t=Ul,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var n=V.p;V.p=2;var u=we;we|=4;try{om(t,e);var r=io,f=vd(e.containerInfo),m=r.focusedElem,j=r.selectionRange;if(f!==m&&m&&m.ownerDocument&&pd(m.ownerDocument.documentElement,m)){if(j!==null&&Rr(m)){var A=j.start,k=j.end;if(k===void 0&&(k=A),"selectionStart"in m)m.selectionStart=A,m.selectionEnd=Math.min(k,m.value.length);else{var Q=m.ownerDocument||document,R=Q&&Q.defaultView||window;if(R.getSelection){var M=R.getSelection(),P=m.textContent.length,ie=Math.min(j.start,P),Ue=j.end===void 0?ie:Math.min(j.end,P);!M.extend&&ie>Ue&&(f=Ue,Ue=ie,ie=f);var _=md(m,ie),N=md(m,Ue);if(_&&N&&(M.rangeCount!==1||M.anchorNode!==_.node||M.anchorOffset!==_.offset||M.focusNode!==N.node||M.focusOffset!==N.offset)){var C=Q.createRange();C.setStart(_.node,_.offset),M.removeAllRanges(),ie>Ue?(M.addRange(C),M.extend(N.node,N.offset)):(C.setEnd(N.node,N.offset),M.addRange(C))}}}}for(Q=[],M=m;M=M.parentNode;)M.nodeType===1&&Q.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<Q.length;m++){var L=Q[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Au=!!so,io=so=null}finally{we=u,V.p=n,D.T=a}}e.current=t,at=2}}function Rm(){if(at===2){at=0;var e=un,t=Ul,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var n=V.p;V.p=2;var u=we;we|=4;try{sm(e,t.alternate,t)}finally{we=u,V.p=n,D.T=a}}at=3}}function Mm(){if(at===4||at===3){at=0,cy();var e=un,t=Ul,a=Da,n=gm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Ul=un=null,zm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(sn=null),dr(a),t=t.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(os,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,u=V.p,V.p=2,D.T=null;try{for(var r=e.onRecoverableError,f=0;f<n.length;f++){var m=n[f];r(m.value,{componentStack:m.stack})}}finally{D.T=t,V.p=u}}(Da&3)!==0&&gu(),ha(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Zc?Ks++:(Ks=0,Zc=e):Ks=0,Zs(0)}}function zm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_s(t)))}function gu(){return Am(),Rm(),Mm(),Dm()}function Dm(){if(at!==5)return!1;var e=un,t=Xc;Xc=0;var a=dr(Da),n=D.T,u=V.p;try{V.p=32>a?32:a,D.T=null,a=Kc,Kc=null;var r=un,f=Da;if(at=0,Ul=un=null,Da=0,(we&6)!==0)throw Error(c(331));var m=we;if(we|=4,pm(r.current),dm(r,r.current,f,a),we=m,Zs(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(os,r)}catch{}return!0}finally{V.p=u,D.T=n,zm(e,t)}}function Um(e,t,a){t=Kt(a,t),t=Ec(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(ds(e,2),ha(e))}function Re(e,t,a){if(e.tag===3)Um(e,e,a);else for(;t!==null;){if(t.tag===3){Um(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(sn===null||!sn.has(n))){e=Kt(a,e),a=kh(2),n=Ia(t,a,2),n!==null&&(qh(a,n,t,e),ds(n,2),ha(n));break}}t=t.return}}function $c(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Ug;var u=new Set;n.set(t,u)}else u=n.get(t),u===void 0&&(u=new Set,n.set(t,u));u.has(a)||(Qc=!0,u.add(a),e=Lg.bind(null,e,t,a),t.then(e,e))}function Lg(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(xe&a)===a&&(Ze===4||Ze===3&&(xe&62914560)===xe&&300>Ot()-du?(we&2)===0&&kl(e,0):Yc|=a,Dl===xe&&(Dl=0)),ha(e)}function km(e,t){t===0&&(t=Af()),e=Dn(e,t),e!==null&&(ds(e,t),ha(e))}function Qg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),km(e,a)}function Yg(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),km(e,a)}function Gg(e,t){return rr(e,t)}var xu=null,Hl=null,Fc=!1,ju=!1,Wc=!1,cn=0;function ha(e){e!==Hl&&e.next===null&&(Hl===null?xu=Hl=e:Hl=Hl.next=e),ju=!0,Fc||(Fc=!0,Kg())}function Zs(e,t){if(!Wc&&ju){Wc=!0;do for(var a=!1,n=xu;n!==null;){if(e!==0){var u=n.pendingLanes;if(u===0)var r=0;else{var f=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-Rt(42|e)+1)-1,r&=u&~(f&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Lm(n,r))}else r=xe,r=Ei(n,n===qe?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||fs(n,r)||(a=!0,Lm(n,r));n=n.next}while(a);Wc=!1}}function Xg(){qm()}function qm(){ju=Fc=!1;var e=0;cn!==0&&t0()&&(e=cn);for(var t=Ot(),a=null,n=xu;n!==null;){var u=n.next,r=Hm(n,t);r===0?(n.next=null,a===null?xu=u:a.next=u,u===null&&(Hl=a)):(a=n,(e!==0||(r&3)!==0)&&(ju=!0)),n=u}at!==0&&at!==5||Zs(e),cn!==0&&(cn=0)}function Hm(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,u=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var f=31-Rt(r),m=1<<f,j=u[f];j===-1?((m&a)===0||(m&n)!==0)&&(u[f]=yy(m,t)):j<=t&&(e.expiredLanes|=m),r&=~m}if(t=qe,a=xe,a=Ei(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&cr(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||fs(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&cr(n),dr(a)){case 2:case 8:a=Cf;break;case 32:a=ji;break;case 268435456:a=Of;break;default:a=ji}return n=Bm.bind(null,e),a=rr(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&cr(n),e.callbackPriority=2,e.callbackNode=null,2}function Bm(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(gu()&&e.callbackNode!==a)return null;var n=xe;return n=Ei(e,e===qe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(jm(e,n,t),Hm(e,Ot()),e.callbackNode!=null&&e.callbackNode===a?Bm.bind(null,e):null)}function Lm(e,t){if(gu())return null;jm(e,t,!0)}function Kg(){n0(function(){(we&6)!==0?rr(wf,Xg):qm()})}function Pc(){if(cn===0){var e=Nl;e===0&&(e=bi,bi<<=1,(bi&261888)===0&&(bi=256)),cn=e}return cn}function Qm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function Ym(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Zg(e,t,a,n,u){if(t==="submit"&&a&&a.stateNode===u){var r=Qm((u[jt]||null).action),f=n.submitter;f&&(t=(t=f[jt]||null)?Qm(t.formAction):f.getAttribute("formAction"),t!==null&&(r=t,f=null));var m=new Mi("action","action",null,n,u);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(cn!==0){var j=f?Ym(u,f):new FormData(u);gc(a,{pending:!0,data:j,method:u.method,action:r},null,j)}}else typeof r=="function"&&(m.preventDefault(),j=f?Ym(u,f):new FormData(u),gc(a,{pending:!0,data:j,method:u.method,action:r},r,j))},currentTarget:u}]})}}for(var Ic=0;Ic<Ur.length;Ic++){var eo=Ur[Ic],Vg=eo.toLowerCase(),Jg=eo[0].toUpperCase()+eo.slice(1);na(Vg,"on"+Jg)}na(xd,"onAnimationEnd"),na(jd,"onAnimationIteration"),na(bd,"onAnimationStart"),na("dblclick","onDoubleClick"),na("focusin","onFocus"),na("focusout","onBlur"),na(og,"onTransitionRun"),na(fg,"onTransitionStart"),na(dg,"onTransitionCancel"),na(Sd,"onTransitionEnd"),cl("onMouseEnter",["mouseout","mouseover"]),cl("onMouseLeave",["mouseout","mouseover"]),cl("onPointerEnter",["pointerout","pointerover"]),cl("onPointerLeave",["pointerout","pointerover"]),An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),An("onBeforeInput",["compositionend","keypress","textInput","paste"]),An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vs="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(" "),$g=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vs));function Gm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],u=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var f=n.length-1;0<=f;f--){var m=n[f],j=m.instance,A=m.currentTarget;if(m=m.listener,j!==r&&u.isPropagationStopped())break e;r=m,u.currentTarget=A;try{r(u)}catch(k){Ui(k)}u.currentTarget=null,r=j}else for(f=0;f<n.length;f++){if(m=n[f],j=m.instance,A=m.currentTarget,m=m.listener,j!==r&&u.isPropagationStopped())break e;r=m,u.currentTarget=A;try{r(u)}catch(k){Ui(k)}u.currentTarget=null,r=j}}}}function ge(e,t){var a=t[hr];a===void 0&&(a=t[hr]=new Set);var n=e+"__bubble";a.has(n)||(Xm(t,e,2,!1),a.add(n))}function to(e,t,a){var n=0;t&&(n|=4),Xm(a,e,n,t)}var bu="_reactListening"+Math.random().toString(36).slice(2);function ao(e){if(!e[bu]){e[bu]=!0,qf.forEach(function(a){a!=="selectionchange"&&($g.has(a)||to(a,!1,e),to(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bu]||(t[bu]=!0,to("selectionchange",!1,t))}}function Xm(e,t,a,n){switch(xp(t)){case 2:var u=N0;break;case 8:u=E0;break;default:u=go}a=u.bind(null,t,a,e),u=void 0,!Sr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),n?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function no(e,t,a,n,u){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var m=n.stateNode.containerInfo;if(m===u)break;if(f===4)for(f=n.return;f!==null;){var j=f.tag;if((j===3||j===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;m!==null;){if(f=il(m),f===null)return;if(j=f.tag,j===5||j===6||j===26||j===27){n=r=f;continue e}m=m.parentNode}}n=n.return}$f(function(){var A=r,k=jr(a),Q=[];e:{var R=Nd.get(e);if(R!==void 0){var M=Mi,P=e;switch(e){case"keypress":if(Ai(a)===0)break e;case"keydown":case"keyup":M=Yy;break;case"focusin":P="focus",M=_r;break;case"focusout":P="blur",M=_r;break;case"beforeblur":case"afterblur":M=_r;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Ay;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Ky;break;case xd:case jd:case bd:M=zy;break;case Sd:M=Vy;break;case"scroll":case"scrollend":M=Cy;break;case"wheel":M=$y;break;case"copy":case"cut":case"paste":M=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=ed;break;case"toggle":case"beforetoggle":M=Wy}var ie=(t&4)!==0,Ue=!ie&&(e==="scroll"||e==="scrollend"),_=ie?R!==null?R+"Capture":null:R;ie=[];for(var N=A,C;N!==null;){var L=N;if(C=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||C===null||_===null||(L=ps(N,_),L!=null&&ie.push(Js(N,L,C))),Ue)break;N=N.return}0<ie.length&&(R=new M(R,P,null,a,k),Q.push({event:R,listeners:ie}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",R&&a!==xr&&(P=a.relatedTarget||a.fromElement)&&(il(P)||P[sl]))break e;if((M||R)&&(R=k.window===k?k:(R=k.ownerDocument)?R.defaultView||R.parentWindow:window,M?(P=a.relatedTarget||a.toElement,M=A,P=P?il(P):null,P!==null&&(Ue=h(P),ie=P.tag,P!==Ue||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(M=null,P=A),M!==P)){if(ie=Pf,L="onMouseLeave",_="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ie=ed,L="onPointerLeave",_="onPointerEnter",N="pointer"),Ue=M==null?R:ms(M),C=P==null?R:ms(P),R=new ie(L,N+"leave",M,a,k),R.target=Ue,R.relatedTarget=C,L=null,il(k)===A&&(ie=new ie(_,N+"enter",P,a,k),ie.target=C,ie.relatedTarget=Ue,L=ie),Ue=L,M&&P)t:{for(ie=Fg,_=M,N=P,C=0,L=_;L;L=ie(L))C++;L=0;for(var le=N;le;le=ie(le))L++;for(;0<C-L;)_=ie(_),C--;for(;0<L-C;)N=ie(N),L--;for(;C--;){if(_===N||N!==null&&_===N.alternate){ie=_;break t}_=ie(_),N=ie(N)}ie=null}else ie=null;M!==null&&Km(Q,R,M,ie,!1),P!==null&&Ue!==null&&Km(Q,Ue,P,ie,!0)}}e:{if(R=A?ms(A):window,M=R.nodeName&&R.nodeName.toLowerCase(),M==="select"||M==="input"&&R.type==="file")var Ee=rd;else if(id(R))if(cd)Ee=ug;else{Ee=sg;var ee=lg}else M=R.nodeName,!M||M.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?A&&gr(A.elementType)&&(Ee=rd):Ee=ig;if(Ee&&(Ee=Ee(e,A))){ud(Q,Ee,a,k);break e}ee&&ee(e,R,A),e==="focusout"&&A&&R.type==="number"&&A.memoizedProps.value!=null&&yr(R,"number",R.value)}switch(ee=A?ms(A):window,e){case"focusin":(id(ee)||ee.contentEditable==="true")&&(pl=ee,Mr=A,Ns=null);break;case"focusout":Ns=Mr=pl=null;break;case"mousedown":zr=!0;break;case"contextmenu":case"mouseup":case"dragend":zr=!1,yd(Q,a,k);break;case"selectionchange":if(cg)break;case"keydown":case"keyup":yd(Q,a,k)}var he;if(Cr)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else ml?ld(e,a)&&(je="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(je="onCompositionStart");je&&(td&&a.locale!=="ko"&&(ml||je!=="onCompositionStart"?je==="onCompositionEnd"&&ml&&(he=Ff()):(Za=k,Nr="value"in Za?Za.value:Za.textContent,ml=!0)),ee=Su(A,je),0<ee.length&&(je=new If(je,e,null,a,k),Q.push({event:je,listeners:ee}),he?je.data=he:(he=sd(a),he!==null&&(je.data=he)))),(he=Iy?eg(e,a):tg(e,a))&&(je=Su(A,"onBeforeInput"),0<je.length&&(ee=new If("onBeforeInput","beforeinput",null,a,k),Q.push({event:ee,listeners:je}),ee.data=he)),Zg(Q,e,A,a,k)}Gm(Q,t)})}function Js(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Su(e,t){for(var a=t+"Capture",n=[];e!==null;){var u=e,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=ps(e,a),u!=null&&n.unshift(Js(e,u,r)),u=ps(e,t),u!=null&&n.push(Js(e,u,r))),e.tag===3)return n;e=e.return}return[]}function Fg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Km(e,t,a,n,u){for(var r=t._reactName,f=[];a!==null&&a!==n;){var m=a,j=m.alternate,A=m.stateNode;if(m=m.tag,j!==null&&j===n)break;m!==5&&m!==26&&m!==27||A===null||(j=A,u?(A=ps(a,r),A!=null&&f.unshift(Js(a,A,j))):u||(A=ps(a,r),A!=null&&f.push(Js(a,A,j)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Wg=/\r\n?/g,Pg=/\u0000|\uFFFD/g;function Zm(e){return(typeof e=="string"?e:""+e).replace(Wg,`
`).replace(Pg,"")}function Vm(e,t){return t=Zm(t),Zm(e)===t}function De(e,t,a,n,u,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||fl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&fl(e,""+n);break;case"className":_i(e,"class",n);break;case"tabIndex":_i(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":_i(e,a,n);break;case"style":Vf(e,n,r);break;case"data":if(t!=="object"){_i(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ci(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"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 r=="function"&&(a==="formAction"?(t!=="input"&&De(e,t,"name",u.name,u,null),De(e,t,"formEncType",u.formEncType,u,null),De(e,t,"formMethod",u.formMethod,u,null),De(e,t,"formTarget",u.formTarget,u,null)):(De(e,t,"encType",u.encType,u,null),De(e,t,"method",u.method,u,null),De(e,t,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ci(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=xa);break;case"onScroll":n!=null&&ge("scroll",e);break;case"onScrollEnd":n!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Ci(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ge("beforetoggle",e),ge("toggle",e),Ti(e,"popover",n);break;case"xlinkActuate":ga(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ga(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ga(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ga(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ga(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ga(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ga(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ga(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ga(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ti(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=_y.get(a)||a,Ti(e,a,n))}}function lo(e,t,a,n,u,r){switch(a){case"style":Vf(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof n=="string"?fl(e,n):(typeof n=="number"||typeof n=="bigint")&&fl(e,""+n);break;case"onScroll":n!=null&&ge("scroll",e);break;case"onScrollEnd":n!=null&&ge("scrollend",e);break;case"onClick":n!=null&&(e.onclick=xa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),r=e[jt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,u),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,u);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ti(e,a,n)}}}function dt(e,t,a){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 n=!1,u=!1,r;for(r in a)if(a.hasOwnProperty(r)){var f=a[r];if(f!=null)switch(r){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:De(e,t,r,f,a,null)}}u&&De(e,t,"srcSet",a.srcSet,a,null),n&&De(e,t,"src",a.src,a,null);return;case"input":ge("invalid",e);var m=r=f=u=null,j=null,A=null;for(n in a)if(a.hasOwnProperty(n)){var k=a[n];if(k!=null)switch(n){case"name":u=k;break;case"type":f=k;break;case"checked":j=k;break;case"defaultChecked":A=k;break;case"value":r=k;break;case"defaultValue":m=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(c(137,t));break;default:De(e,t,n,k,a,null)}}Gf(e,r,m,j,A,f,u,!1);return;case"select":ge("invalid",e),n=f=r=null;for(u in a)if(a.hasOwnProperty(u)&&(m=a[u],m!=null))switch(u){case"value":r=m;break;case"defaultValue":f=m;break;case"multiple":n=m;default:De(e,t,u,m,a,null)}t=r,a=f,e.multiple=!!n,t!=null?ol(e,!!n,t,!1):a!=null&&ol(e,!!n,a,!0);return;case"textarea":ge("invalid",e),r=u=n=null;for(f in a)if(a.hasOwnProperty(f)&&(m=a[f],m!=null))switch(f){case"value":n=m;break;case"defaultValue":u=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:De(e,t,f,m,a,null)}Kf(e,n,u,r);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(n=a[j],n!=null))switch(j){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:De(e,t,j,n,a,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(n=0;n<Vs.length;n++)ge(Vs[n],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 a)if(a.hasOwnProperty(A)&&(n=a[A],n!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:De(e,t,A,n,a,null)}return;default:if(gr(t)){for(k in a)a.hasOwnProperty(k)&&(n=a[k],n!==void 0&&lo(e,t,k,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&De(e,t,m,n,a,null))}function Ig(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,f=null,m=null,j=null,A=null,k=null;for(M in a){var Q=a[M];if(a.hasOwnProperty(M)&&Q!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":j=Q;default:n.hasOwnProperty(M)||De(e,t,M,null,n,Q)}}for(var R in n){var M=n[R];if(Q=a[R],n.hasOwnProperty(R)&&(M!=null||Q!=null))switch(R){case"type":r=M;break;case"name":u=M;break;case"checked":A=M;break;case"defaultChecked":k=M;break;case"value":f=M;break;case"defaultValue":m=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:M!==Q&&De(e,t,R,M,n,Q)}}vr(e,f,m,j,A,k,r,u);return;case"select":M=f=m=R=null;for(r in a)if(j=a[r],a.hasOwnProperty(r)&&j!=null)switch(r){case"value":break;case"multiple":M=j;default:n.hasOwnProperty(r)||De(e,t,r,null,n,j)}for(u in n)if(r=n[u],j=a[u],n.hasOwnProperty(u)&&(r!=null||j!=null))switch(u){case"value":R=r;break;case"defaultValue":m=r;break;case"multiple":f=r;default:r!==j&&De(e,t,u,r,n,j)}t=m,a=f,n=M,R!=null?ol(e,!!a,R,!1):!!n!=!!a&&(t!=null?ol(e,!!a,t,!0):ol(e,!!a,a?[]:"",!1));return;case"textarea":M=R=null;for(m in a)if(u=a[m],a.hasOwnProperty(m)&&u!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:De(e,t,m,null,n,u)}for(f in n)if(u=n[f],r=a[f],n.hasOwnProperty(f)&&(u!=null||r!=null))switch(f){case"value":R=u;break;case"defaultValue":M=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&De(e,t,f,u,n,r)}Xf(e,R,M);return;case"option":for(var P in a)if(R=a[P],a.hasOwnProperty(P)&&R!=null&&!n.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:De(e,t,P,null,n,R)}for(j in n)if(R=n[j],M=a[j],n.hasOwnProperty(j)&&R!==M&&(R!=null||M!=null))switch(j){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:De(e,t,j,R,n,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 a)R=a[ie],a.hasOwnProperty(ie)&&R!=null&&!n.hasOwnProperty(ie)&&De(e,t,ie,null,n,R);for(A in n)if(R=n[A],M=a[A],n.hasOwnProperty(A)&&R!==M&&(R!=null||M!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,t));break;default:De(e,t,A,R,n,M)}return;default:if(gr(t)){for(var Ue in a)R=a[Ue],a.hasOwnProperty(Ue)&&R!==void 0&&!n.hasOwnProperty(Ue)&&lo(e,t,Ue,void 0,n,R);for(k in n)R=n[k],M=a[k],!n.hasOwnProperty(k)||R===M||R===void 0&&M===void 0||lo(e,t,k,R,n,M);return}}for(var _ in a)R=a[_],a.hasOwnProperty(_)&&R!=null&&!n.hasOwnProperty(_)&&De(e,t,_,null,n,R);for(Q in n)R=n[Q],M=a[Q],!n.hasOwnProperty(Q)||R===M||R==null&&M==null||De(e,t,Q,R,n,M)}function Jm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function e0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var u=a[n],r=u.transferSize,f=u.initiatorType,m=u.duration;if(r&&m&&Jm(f)){for(f=0,m=u.responseEnd,n+=1;n<a.length;n++){var j=a[n],A=j.startTime;if(A>m)break;var k=j.transferSize,Q=j.initiatorType;k&&Jm(Q)&&(j=j.responseEnd,f+=k*(j<m?1:(m-A)/(j-A)))}if(--n,t+=8*(r+f)/(u.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 so=null,io=null;function Nu(e){return e.nodeType===9?e:e.ownerDocument}function $m(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 Fm(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 uo(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 ro=null;function t0(){var e=window.event;return e&&e.type==="popstate"?e===ro?!1:(ro=e,!0):(ro=null,!1)}var Wm=typeof setTimeout=="function"?setTimeout:void 0,a0=typeof clearTimeout=="function"?clearTimeout:void 0,Pm=typeof Promise=="function"?Promise:void 0,n0=typeof queueMicrotask=="function"?queueMicrotask:typeof Pm<"u"?function(e){return Pm.resolve(null).then(e).catch(l0)}:Wm;function l0(e){setTimeout(function(){throw e})}function on(e){return e==="head"}function Im(e,t){var a=t,n=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(u),Yl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")$s(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$s(a);for(var r=a.firstChild;r;){var f=r.nextSibling,m=r.nodeName;r[hs]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&$s(e.ownerDocument.body);a=u}while(a);Yl(t)}function ep(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function co(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":co(a),mr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function s0(e,t,a,n){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[hs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function i0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ft(e.nextSibling),e===null))return null;return e}function tp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function oo(e){return e.data==="$?"||e.data==="$~"}function fo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function u0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ft(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 ho=null;function ap(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ft(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function np(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function lp(e,t,a){switch(t=Nu(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function $s(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mr(e)}var Wt=new Map,sp=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ua=V.d;V.d={f:r0,r:c0,D:o0,C:f0,L:d0,m:h0,X:p0,S:m0,M:v0};function r0(){var e=Ua.f(),t=pu();return e||t}function c0(e){var t=ul(e);t!==null&&t.tag===5&&t.type==="form"?Sh(t):Ua.r(e)}var Bl=typeof document>"u"?null:document;function ip(e,t,a){var n=Bl;if(n&&typeof t=="string"&&t){var u=Gt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),sp.has(u)||(sp.add(u),e={rel:e,crossOrigin:a,href:t},n.querySelector(u)===null&&(t=n.createElement("link"),dt(t,"link",e),st(t),n.head.appendChild(t)))}}function o0(e){Ua.D(e),ip("dns-prefetch",e,null)}function f0(e,t){Ua.C(e,t),ip("preconnect",e,t)}function d0(e,t,a){Ua.L(e,t,a);var n=Bl;if(n&&e&&t){var u='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Gt(a.imageSizes)+'"]')):u+='[href="'+Gt(e)+'"]';var r=u;switch(t){case"style":r=Ll(e);break;case"script":r=Ql(e)}Wt.has(r)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Wt.set(r,e),n.querySelector(u)!==null||t==="style"&&n.querySelector(Fs(r))||t==="script"&&n.querySelector(Ws(r))||(t=n.createElement("link"),dt(t,"link",e),st(t),n.head.appendChild(t)))}}function h0(e,t){Ua.m(e,t);var a=Bl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Gt(n)+'"][href="'+Gt(e)+'"]',r=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Ql(e)}if(!Wt.has(r)&&(e=x({rel:"modulepreload",href:e},t),Wt.set(r,e),a.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ws(r)))return}n=a.createElement("link"),dt(n,"link",e),st(n),a.head.appendChild(n)}}}function m0(e,t,a){Ua.S(e,t,a);var n=Bl;if(n&&e){var u=rl(n).hoistableStyles,r=Ll(e);t=t||"default";var f=u.get(r);if(!f){var m={loading:0,preload:null};if(f=n.querySelector(Fs(r)))m.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Wt.get(r))&&mo(e,a);var j=f=n.createElement("link");st(j),dt(j,"link",e),j._p=new Promise(function(A,k){j.onload=A,j.onerror=k}),j.addEventListener("load",function(){m.loading|=1}),j.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Tu(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:m},u.set(r,f)}}}function p0(e,t){Ua.X(e,t);var a=Bl;if(a&&e){var n=rl(a).hoistableScripts,u=Ql(e),r=n.get(u);r||(r=a.querySelector(Ws(u)),r||(e=x({src:e,async:!0},t),(t=Wt.get(u))&&po(e,t),r=a.createElement("script"),st(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function v0(e,t){Ua.M(e,t);var a=Bl;if(a&&e){var n=rl(a).hoistableScripts,u=Ql(e),r=n.get(u);r||(r=a.querySelector(Ws(u)),r||(e=x({src:e,async:!0,type:"module"},t),(t=Wt.get(u))&&po(e,t),r=a.createElement("script"),st(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function up(e,t,a,n){var u=(u=ve.current)?Eu(u):null;if(!u)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ll(a.href),a=rl(u).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ll(a.href);var r=rl(u).hoistableStyles,f=r.get(e);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,f),(r=u.querySelector(Fs(e)))&&!r._p&&(f.instance=r,f.state.loading=5),Wt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Wt.set(e,a),r||y0(u,e,a,f.state))),t&&n===null)throw Error(c(528,""));return f}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ql(a),a=rl(u).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Ll(e){return'href="'+Gt(e)+'"'}function Fs(e){return'link[rel="stylesheet"]['+e+"]"}function rp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function y0(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),dt(t,"link",a),st(t),e.head.appendChild(t))}function Ql(e){return'[src="'+Gt(e)+'"]'}function Ws(e){return"script[async]"+e}function cp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(n)return t.instance=n,st(n),n;var u=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),st(n),dt(n,"style",u),Tu(n,a.precedence,e),t.instance=n;case"stylesheet":u=Ll(a.href);var r=e.querySelector(Fs(u));if(r)return t.state.loading|=4,t.instance=r,st(r),r;n=rp(a),(u=Wt.get(u))&&mo(n,u),r=(e.ownerDocument||e).createElement("link"),st(r);var f=r;return f._p=new Promise(function(m,j){f.onload=m,f.onerror=j}),dt(r,"link",n),t.state.loading|=4,Tu(r,a.precedence,e),t.instance=r;case"script":return r=Ql(a.src),(u=e.querySelector(Ws(r)))?(t.instance=u,st(u),u):(n=a,(u=Wt.get(r))&&(n=x({},a),po(n,u)),e=e.ownerDocument||e,u=e.createElement("script"),st(u),dt(u,"link",n),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Tu(n,a.precedence,e));return t.instance}function Tu(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,r=u,f=0;f<n.length;f++){var m=n[f];if(m.dataset.precedence===t)r=m;else if(r!==u)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function po(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _u=null;function op(e,t,a){if(_u===null){var n=new Map,u=_u=new Map;u.set(a,n)}else u=_u,n=u.get(a),n||(n=new Map,u.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var r=a[u];if(!(r[hs]||r[rt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(t)||"";f=e+f;var m=n.get(f);m?m.push(r):n.set(f,[r])}}return n}function fp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function g0(e,t,a){if(a===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 dp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function x0(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ll(n.href),r=t.querySelector(Fs(u));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=wu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,st(r);return}r=t.ownerDocument||t,n=rp(n),(u=Wt.get(u))&&mo(n,u),r=r.createElement("link"),st(r);var f=r;f._p=new Promise(function(m,j){f.onload=m,f.onerror=j}),dt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=wu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var vo=0;function j0(e,t){return e.stylesheets&&e.count===0&&Ou(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Ou(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&vo===0&&(vo=62500*e0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ou(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>vo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function wu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ou(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cu=null;function Ou(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cu=new Map,t.forEach(b0,e),Cu=null,wu.call(e))}function b0(e,t){if(!(t.state.loading&4)){var a=Cu.get(e);if(a)var n=a.get(null);else{a=new Map,Cu.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var f=u[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(null,n)}u=t.instance,f=u.getAttribute("data-precedence"),r=a.get(f)||n,r===n&&a.set(null,u),a.set(f,u),this.count++,n=wu.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),r?r.parentNode.insertBefore(u,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ps={$$typeof:K,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function S0(e,t,a,n,u,r,f,m,j){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=or(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=or(0),this.hiddenUpdates=or(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function hp(e,t,a,n,u,r,f,m,j,A,k,Q){return e=new S0(e,t,a,f,j,A,k,Q,m),t=1,r===!0&&(t|=24),r=zt(3,null,null,t),e.current=r,r.stateNode=e,t=Jr(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},Pr(r),e}function mp(e){return e?(e=gl,e):gl}function pp(e,t,a,n,u,r){u=mp(u),n.context===null?n.context=u:n.pendingContext=u,n=Pa(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Ia(e,n,t),a!==null&&(_t(a,e,t),As(a,e,t))}function vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yo(e,t){vp(e,t),(e=e.alternate)&&vp(e,t)}function yp(e){if(e.tag===13||e.tag===31){var t=Dn(e,67108864);t!==null&&_t(t,e,67108864),yo(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=Ht();t=fr(t);var a=Dn(e,t);a!==null&&_t(a,e,t),yo(e,t)}}var Au=!0;function N0(e,t,a,n){var u=D.T;D.T=null;var r=V.p;try{V.p=2,go(e,t,a,n)}finally{V.p=r,D.T=u}}function E0(e,t,a,n){var u=D.T;D.T=null;var r=V.p;try{V.p=8,go(e,t,a,n)}finally{V.p=r,D.T=u}}function go(e,t,a,n){if(Au){var u=xo(n);if(u===null)no(e,t,n,Ru,a),jp(e,n);else if(_0(u,e,t,a,n))n.stopPropagation();else if(jp(e,n),t&4&&-1<T0.indexOf(e)){for(;u!==null;){var r=ul(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=On(r.pendingLanes);if(f!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var j=1<<31-Rt(f);m.entanglements[1]|=j,f&=~j}ha(r),(we&6)===0&&(hu=Ot()+500,Zs(0))}}break;case 31:case 13:m=Dn(r,2),m!==null&&_t(m,r,2),pu(),yo(r,2)}if(r=xo(n),r===null&&no(e,t,n,Ru,a),r===u)break;u=r}u!==null&&n.stopPropagation()}else no(e,t,n,null,a)}}function xo(e){return e=jr(e),jo(e)}var Ru=null;function jo(e){if(Ru=null,e=il(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ru=e,null}function xp(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(oy()){case wf:return 2;case Cf:return 8;case ji:case fy:return 32;case Of:return 268435456;default:return 32}default:return 32}}var bo=!1,fn=null,dn=null,hn=null,Is=new Map,ei=new Map,mn=[],T0="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 jp(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":hn=null;break;case"pointerover":case"pointerout":Is.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(t.pointerId)}}function ti(e,t,a,n,u,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[u]},t!==null&&(t=ul(t),t!==null&&yp(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function _0(e,t,a,n,u){switch(t){case"focusin":return fn=ti(fn,e,t,a,n,u),!0;case"dragenter":return dn=ti(dn,e,t,a,n,u),!0;case"mouseover":return hn=ti(hn,e,t,a,n,u),!0;case"pointerover":var r=u.pointerId;return Is.set(r,ti(Is.get(r)||null,e,t,a,n,u)),!0;case"gotpointercapture":return r=u.pointerId,ei.set(r,ti(ei.get(r)||null,e,t,a,n,u)),!0}return!1}function bp(e){var t=il(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Uf(e.priority,function(){gp(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Uf(e.priority,function(){gp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=xo(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);xr=n,a.target.dispatchEvent(n),xr=null}else return t=ul(a),t!==null&&yp(t),e.blockedOn=a,!1;t.shift()}return!0}function Sp(e,t,a){Mu(e)&&a.delete(t)}function w0(){bo=!1,fn!==null&&Mu(fn)&&(fn=null),dn!==null&&Mu(dn)&&(dn=null),hn!==null&&Mu(hn)&&(hn=null),Is.forEach(Sp),ei.forEach(Sp)}function zu(e,t){e.blockedOn===t&&(e.blockedOn=null,bo||(bo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,w0)))}var Du=null;function Np(e){Du!==e&&(Du=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Du===e&&(Du=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],u=e[t+2];if(typeof n!="function"){if(jo(n||a)===null)continue;break}var r=ul(a);r!==null&&(e.splice(t,3),t-=3,gc(r,{pending:!0,data:u,method:a.method,action:n},n,u))}}))}function Yl(e){function t(j){return zu(j,e)}fn!==null&&zu(fn,e),dn!==null&&zu(dn,e),hn!==null&&zu(hn,e),Is.forEach(t),ei.forEach(t);for(var a=0;a<mn.length;a++){var n=mn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<mn.length&&(a=mn[0],a.blockedOn===null);)bp(a),a.blockedOn===null&&mn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var u=a[n],r=a[n+1],f=u[jt]||null;if(typeof r=="function")f||Np(a);else if(f){var m=null;if(r&&r.hasAttribute("formAction")){if(u=r,f=r[jt]||null)m=f.formAction;else if(jo(u)!==null)continue}else m=f.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),Np(a)}}}function Ep(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function So(e){this._internalRoot=e}Uu.prototype.render=So.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=Ht();pp(a,n,e,t,null,null)},Uu.prototype.unmount=So.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pp(e.current,2,null,e,null,null),pu(),t[sl]=null}};function Uu(e){this._internalRoot=e}Uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Df();e={blockedOn:null,target:e,priority:t};for(var a=0;a<mn.length&&t!==0&&t<mn[a].priority;a++);mn.splice(a,0,e),a===0&&bp(e)}};var Tp=i.version;if(Tp!=="19.2.8")throw Error(c(527,Tp,"19.2.8"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=y(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var C0={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{os=ku.inject(C0),At=ku}catch{}}return ni.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,n="",u=Mh,r=zh,f=Dh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=hp(e,1,!1,null,null,a,n,null,u,r,f,Ep),e[sl]=t.current,ao(e),new So(t)},ni.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var n=!1,u="",r=Mh,f=zh,m=Dh,j=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=hp(e,1,!0,t,a??null,n,u,j,r,f,m,Ep),t.context=mp(null),a=t.current,n=Ht(),n=fr(n),u=Pa(n),u.callback=null,Ia(a,u,n),a=n,t.current.lanes=a,ds(t,a),ha(t),e[sl]=t.current,ao(e),new Uu(t)},ni.version="19.2.8",ni}var kp;function L0(){if(kp)return _o.exports;kp=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(i){console.error(i)}}return l(),_o.exports=B0(),_o.exports}var Q0=L0();/**
* react-router v7.18.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 sf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,bv=/^[\\/]{2}/;function Y0(l,i){return i+l.replace(/\\/g,"/")}var qp="popstate";function Hp(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function G0(l={}){function i(c,d){var y;let h=(y=d.state)==null?void 0:y.masked,{pathname:v,search:g,hash:p}=h||c.location;return ko("",{pathname:v,search:g,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function o(c,d){return typeof d=="string"?d:ci(d)}return K0(i,o,null,l)}function Xe(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ya(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function X0(){return Math.random().toString(36).substring(2,10)}function Bp(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function ko(l,i,o=null,c,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?ss(i):i,state:o,key:i&&i.key||c||X0(),mask:d}}function ci({pathname:l="/",search:i="",hash:o=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(l+=o.charAt(0)==="#"?o:"#"+o),l}function ss(l){let i={};if(l){let o=l.indexOf("#");o>=0&&(i.hash=l.substring(o),l=l.substring(0,o));let c=l.indexOf("?");c>=0&&(i.search=l.substring(c),l=l.substring(0,c)),l&&(i.pathname=l)}return i}function K0(l,i,o,c={}){let{window:d=document.defaultView,v5Compat:h=!1}=c,v=d.history,g="POP",p=null,y=E();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function E(){return(v.state||{idx:null}).idx}function x(){g="POP";let q=E(),H=q==null?null:q-y;y=q,p&&p({action:g,location:z.location,delta:H})}function w(q,H){g="PUSH";let G=Hp(q)?q:ko(z.location,q,H);y=E()+1;let K=Bp(G,y),Z=z.createHref(G.mask||G);try{v.pushState(K,"",Z)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;d.location.assign(Z)}h&&p&&p({action:g,location:z.location,delta:1})}function O(q,H){g="REPLACE";let G=Hp(q)?q:ko(z.location,q,H);y=E();let K=Bp(G,y),Z=z.createHref(G.mask||G);v.replaceState(K,"",Z),h&&p&&p({action:g,location:z.location,delta:0})}function U(q){return Z0(d,q)}let z={get action(){return g},get location(){return l(d,v)},listen(q){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(qp,x),p=q,()=>{d.removeEventListener(qp,x),p=null}},createHref(q){return i(d,q)},createURL:U,encodeLocation(q){let H=U(q);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:w,replace:O,go(q){return v.go(q)}};return z}function Z0(l,i,o=!1){let c="http://localhost";l&&(c=l.location.origin!=="null"?l.location.origin:l.location.href),Xe(c,"No window.location.(origin|href) available to create URL");let d=typeof i=="string"?i:ci(i);return d=d.replace(/ $/,"%20"),!o&&bv.test(d)&&(d=c+d),new URL(d,c)}function Sv(l,i,o="/"){return V0(l,i,o,!1)}function V0(l,i,o,c,d){let h=typeof i=="string"?ss(i):i,v=Ya(h.pathname||"/",o);if(v==null)return null;let g=J0(l),p=null,y=sx(v);for(let E=0;p==null&&E<g.length;++E)p=lx(g[E],y,c);return p}function J0(l){let i=Nv(l);return $0(i),i}function Nv(l,i=[],o=[],c="",d=!1){let h=(v,g,p=d,y)=>{let E={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(c)&&p)return;Xe(E.relativePath.startsWith(c),`Absolute route path "${E.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(c.length)}let x=ra([c,E.relativePath]),w=o.concat(E);v.children&&v.children.length>0&&(Xe(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Nv(v.children,i,w,x,p)),!(v.path==null&&!v.index)&&i.push({path:x,score:ax(x,v.index),routesMeta:w.map((O,U)=>{let[z,q]=_v(O.relativePath,O.caseSensitive,U===w.length-1);return{...O,matcher:z,compiledParams:q}})})};return l.forEach((v,g)=>{var p;if(v.path===""||!((p=v.path)!=null&&p.includes("?")))h(v,g);else for(let y of Ev(v.path))h(v,g,!0,y)}),i}function Ev(l){let i=l.split("/");if(i.length===0)return[];let[o,...c]=i,d=o.endsWith("?"),h=o.replace(/\?$/,"");if(c.length===0)return d?[h,""]:[h];let v=Ev(c.join("/")),g=[];return g.push(...v.map(p=>p===""?h:[h,p].join("/"))),d&&g.push(...v),g.map(p=>l.startsWith("/")&&p===""?"/":p)}function $0(l){l.sort((i,o)=>i.score!==o.score?o.score-i.score:nx(i.routesMeta.map(c=>c.childrenIndex),o.routesMeta.map(c=>c.childrenIndex)))}var F0=/^:[\w-]+$/,W0=3,P0=2,I0=1,ex=10,tx=-2,Lp=l=>l==="*";function ax(l,i){let o=l.split("/"),c=o.length;return o.some(Lp)&&(c+=tx),i&&(c+=P0),o.filter(d=>!Lp(d)).reduce((d,h)=>d+(F0.test(h)?W0:h===""?I0:ex),c)}function nx(l,i){return l.length===i.length&&l.slice(0,-1).every((c,d)=>c===i[d])?l[l.length-1]-i[i.length-1]:0}function lx(l,i,o=!1){let{routesMeta:c}=l,d={},h="/",v=[];for(let g=0;g<c.length;++g){let p=c[g],y=g===c.length-1,E=h==="/"?i:i.slice(h.length)||"/",x={path:p.relativePath,caseSensitive:p.caseSensitive,end:y},w=p.matcher&&p.compiledParams?Tv(x,E,p.matcher,p.compiledParams):Vu(x,E),O=p.route;if(!w&&y&&o&&!c[c.length-1].route.index&&(w=Vu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},E)),!w)return null;Object.assign(d,w.params),v.push({params:d,pathname:ra([h,w.pathname]),pathnameBase:rx(ra([h,w.pathnameBase])),route:O}),w.pathnameBase!=="/"&&(h=ra([h,w.pathnameBase]))}return v}function Vu(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[o,c]=_v(l.path,l.caseSensitive,l.end);return Tv(l,i,o,c)}function Tv(l,i,o,c){let d=i.match(o);if(!d)return null;let h=d[0],v=h.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((y,{paramName:E,isOptional:x},w)=>{if(E==="*"){let U=g[w]||"";v=h.slice(0,h.length-U.length).replace(/(.)\/+$/,"$1")}const O=g[w];return x&&!O?y[E]=void 0:y[E]=(O||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:v,pattern:l}}function _v(l,i=!1,o=!0){ya(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 c=[],d="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,p,y,E)=>{if(c.push({paramName:g,isOptional:p!=null}),p){let x=E.charAt(y+v.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),d+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":l!==""&&l!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function sx(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ya(!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 (${i}).`),l}}function Ya(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,c=l.charAt(o);return c&&c!=="/"?null:l.slice(o)||"/"}function ix(l,i="/"){let{pathname:o,search:c="",hash:d=""}=typeof l=="string"?ss(l):l,h;return o?(o=Cv(o),o.startsWith("/")?h=Qp(o.substring(1),"/"):h=Qp(o,i)):h=i,{pathname:h,search:cx(c),hash:ox(d)}}function Qp(l,i){let o=Ju(i).split("/");return l.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function Ao(l,i,o,c){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ux(l){return l.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function wv(l){let i=ux(l);return i.map((o,c)=>c===i.length-1?o.pathname:o.pathnameBase)}function uf(l,i,o,c=!1){let d;typeof l=="string"?d=ss(l):(d={...l},Xe(!d.pathname||!d.pathname.includes("?"),Ao("?","pathname","search",d)),Xe(!d.pathname||!d.pathname.includes("#"),Ao("#","pathname","hash",d)),Xe(!d.search||!d.search.includes("#"),Ao("#","search","hash",d)));let h=l===""||d.pathname==="",v=h?"/":d.pathname,g;if(v==null)g=o;else{let x=i.length-1;if(!c&&v.startsWith("..")){let w=v.split("/");for(;w[0]==="..";)w.shift(),x-=1;d.pathname=w.join("/")}g=x>=0?i[x]:"/"}let p=ix(d,g),y=v&&v!=="/"&&v.endsWith("/"),E=(h||v===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(y||E)&&(p.pathname+="/"),p}var Cv=l=>l.replace(/[\\/]{2,}/g,"/"),ra=l=>Cv(l.join("/")),Ju=l=>l.replace(/\/+$/,""),rx=l=>Ju(l).replace(/^\/*/,"/"),cx=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,ox=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,fx=class{constructor(l,i,o,c=!1){this.status=l,this.statusText=i||"",this.internal=c,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function dx(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function hx(l){let i=l.map(o=>o.route.path).filter(Boolean);return ra(i)||"/"}var Ov=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Av(l,i){let o=l;if(typeof o!="string"||!sf.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let c=o,d=!1;if(Ov)try{let h=new URL(window.location.href),v=bv.test(o)?new URL(Y0(o,h.protocol)):new URL(o),g=Ya(v.pathname,i);v.origin===h.origin&&g!=null?o=g+v.search+v.hash:d=!0}catch{ya(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Rv=["POST","PUT","PATCH","DELETE"];new Set(Rv);var mx=["GET",...Rv];new Set(mx);var px=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function vx(l){try{return px.includes(new URL(l).protocol)}catch{return!1}}var is=S.createContext(null);is.displayName="DataRouter";var er=S.createContext(null);er.displayName="DataRouterState";var Mv=S.createContext(!1);function yx(){return S.useContext(Mv)}var zv=S.createContext({isTransitioning:!1});zv.displayName="ViewTransition";var gx=S.createContext(new Map);gx.displayName="Fetchers";var xx=S.createContext(null);xx.displayName="Await";var aa=S.createContext(null);aa.displayName="Navigation";var vi=S.createContext(null);vi.displayName="Location";var ca=S.createContext({outlet:null,matches:[],isDataRoute:!1});ca.displayName="Route";var rf=S.createContext(null);rf.displayName="RouteError";var Dv="REACT_ROUTER_ERROR",jx="REDIRECT",bx="ROUTE_ERROR_RESPONSE";function Sx(l){if(l.startsWith(`${Dv}:${jx}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Nx(l){if(l.startsWith(`${Dv}:${bx}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new fx(i.status,i.statusText,i.data)}catch{}}function Ex(l,{relative:i}={}){Xe(yi(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:c}=S.useContext(aa),{hash:d,pathname:h,search:v}=gi(l,{relative:i}),g=h;return o!=="/"&&(g=h==="/"?o:ra([o,h])),c.createHref({pathname:g,search:v,hash:d})}function yi(){return S.useContext(vi)!=null}function Ga(){return Xe(yi(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(vi).location}var Uv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kv(l){S.useContext(aa).static||S.useLayoutEffect(l)}function qv(){let{isDataRoute:l}=S.useContext(ca);return l?Bx():Tx()}function Tx(){Xe(yi(),"useNavigate() may be used only in the context of a <Router> component.");let l=S.useContext(is),{basename:i,navigator:o}=S.useContext(aa),{matches:c}=S.useContext(ca),{pathname:d}=Ga(),h=JSON.stringify(wv(c)),v=S.useRef(!1);return kv(()=>{v.current=!0}),S.useCallback((p,y={})=>{if(ya(v.current,Uv),!v.current)return;if(typeof p=="number"){o.go(p);return}let E=uf(p,JSON.parse(h),d,y.relative==="path");l==null&&i!=="/"&&(E.pathname=E.pathname==="/"?i:ra([i,E.pathname])),(y.replace?o.replace:o.push)(E,y.state,y)},[i,o,h,d,l])}var _x=S.createContext(null);function wx(l){let i=S.useContext(ca).outlet;return S.useMemo(()=>i&&S.createElement(_x.Provider,{value:l},i),[i,l])}function Hv(){let{matches:l}=S.useContext(ca),i=l[l.length-1];return(i==null?void 0:i.params)??{}}function gi(l,{relative:i}={}){let{matches:o}=S.useContext(ca),{pathname:c}=Ga(),d=JSON.stringify(wv(o));return S.useMemo(()=>uf(l,JSON.parse(d),c,i==="path"),[l,d,c,i])}function Cx(l,i){return Bv(l,i)}function Bv(l,i,o){var q;Xe(yi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=S.useContext(aa),{matches:d}=S.useContext(ca),h=d[d.length-1],v=h?h.params:{},g=h?h.pathname:"/",p=h?h.pathnameBase:"/",y=h&&h.route;{let H=y&&y.path||"";Qv(g,!y||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${H}">) 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="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let E=Ga(),x;if(i){let H=typeof i=="string"?ss(i):i;Xe(p==="/"||((q=H.pathname)==null?void 0:q.startsWith(p)),`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 "${p}" but pathname "${H.pathname}" was given in the \`location\` prop.`),x=H}else x=E;let w=x.pathname||"/",O=w;if(p!=="/"){let H=p.replace(/^\//,"").split("/");O="/"+w.replace(/^\//,"").split("/").slice(H.length).join("/")}let U=o&&o.state.matches.length?o.state.matches.map(H=>Object.assign(H,{route:o.manifest[H.route.id]||H.route})):Sv(l,{pathname:O});ya(y||U!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),ya(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 "${x.pathname}${x.search}${x.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 z=zx(U&&U.map(H=>Object.assign({},H,{params:Object.assign({},v,H.params),pathname:ra([p,c.encodeLocation?c.encodeLocation(H.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?p:ra([p,c.encodeLocation?c.encodeLocation(H.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),d,o);return i&&z?S.createElement(vi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},z):z}function Ox(){let l=Hx(),i=dx(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),o=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},v=null;return console.error("Error handled by React Router default ErrorBoundary:",l),v=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},i),o?S.createElement("pre",{style:d},o):null,v)}var Ax=S.createElement(Ox,null),Lv=class extends S.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,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):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 o=Nx(l.digest);o&&(l=o)}let i=l!==void 0?S.createElement(ca.Provider,{value:this.props.routeContext},S.createElement(rf.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?S.createElement(Rx,{error:l},i):i}};Lv.contextType=Mv;var Ro=new WeakMap;function Rx({children:l,error:i}){let{basename:o}=S.useContext(aa);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Sx(i.digest);if(c){let d=Ro.get(i);if(d)throw d;let h=Av(c.location,o),v=h.absoluteURL||h.to;if(vx(v))throw new Error("Invalid redirect location");if(Ov&&!Ro.get(i))if(h.isExternal||c.reloadDocument)window.location.href=v;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:c.replace}));throw Ro.set(i,g),g}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v}`})}}return l}function Mx({routeContext:l,match:i,children:o}){let c=S.useContext(is);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),S.createElement(ca.Provider,{value:l},o)}function zx(l,i=[],o){let c=o==null?void 0:o.state;if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let d=l,h=c==null?void 0:c.errors;if(h!=null){let E=d.findIndex(x=>x.route.id&&(h==null?void 0:h[x.route.id])!==void 0);Xe(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,E+1))}let v=!1,g=-1;if(o&&c){v=c.renderFallback;for(let E=0;E<d.length;E++){let x=d[E];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=E),x.route.id){let{loaderData:w,errors:O}=c,U=x.route.loader&&!w.hasOwnProperty(x.route.id)&&(!O||O[x.route.id]===void 0);if(x.route.lazy||U){o.isStatic&&(v=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let p=o==null?void 0:o.onError,y=c&&p?(E,x)=>{var w,O;p(E,{location:c.location,params:((O=(w=c.matches)==null?void 0:w[0])==null?void 0:O.params)??{},pattern:hx(c.matches),errorInfo:x})}:void 0;return d.reduceRight((E,x,w)=>{let O,U=!1,z=null,q=null;c&&(O=h&&x.route.id?h[x.route.id]:void 0,z=x.route.errorElement||Ax,v&&(g<0&&w===0?(Qv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),U=!0,q=null):g===w&&(U=!0,q=x.route.hydrateFallbackElement||null)));let H=i.concat(d.slice(0,w+1)),G=()=>{let K;return O?K=z:U?K=q:x.route.Component?K=S.createElement(x.route.Component,null):x.route.element?K=x.route.element:K=E,S.createElement(Mx,{match:x,routeContext:{outlet:E,matches:H,isDataRoute:c!=null},children:K})};return c&&(x.route.ErrorBoundary||x.route.errorElement||w===0)?S.createElement(Lv,{location:c.location,revalidation:c.revalidation,component:z,error:O,children:G(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:y}):G()},null)}function cf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dx(l){let i=S.useContext(is);return Xe(i,cf(l)),i}function Ux(l){let i=S.useContext(er);return Xe(i,cf(l)),i}function kx(l){let i=S.useContext(ca);return Xe(i,cf(l)),i}function of(l){let i=kx(l),o=i.matches[i.matches.length-1];return Xe(o.route.id,`${l} can only be used on routes that contain a unique "id"`),o.route.id}function qx(){return of("useRouteId")}function Hx(){var c;let l=S.useContext(rf),i=Ux("useRouteError"),o=of("useRouteError");return l!==void 0?l:(c=i.errors)==null?void 0:c[o]}function Bx(){let{router:l}=Dx("useNavigate"),i=of("useNavigate"),o=S.useRef(!1);return kv(()=>{o.current=!0}),S.useCallback(async(d,h={})=>{ya(o.current,Uv),o.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:i,...h}))},[l,i])}var Yp={};function Qv(l,i,o){!i&&!Yp[l]&&(Yp[l]=!0,ya(!1,o))}S.memo(Lx);function Lx({routes:l,manifest:i,future:o,state:c,isStatic:d,onError:h}){return Bv(l,void 0,{manifest:i,state:c,isStatic:d,onError:h})}function Qx(l){return wx(l.context)}function ia(l){Xe(!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 Yx({basename:l="/",children:i=null,location:o,navigationType:c="POP",navigator:d,static:h=!1,useTransitions:v}){Xe(!yi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=l.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:g,navigator:d,static:h,useTransitions:v,future:{}}),[g,d,h,v]);typeof o=="string"&&(o=ss(o));let{pathname:y="/",search:E="",hash:x="",state:w=null,key:O="default",mask:U}=o,z=S.useMemo(()=>{let q=Ya(y,g);return q==null?null:{location:{pathname:q,search:E,hash:x,state:w,key:O,mask:U},navigationType:c}},[g,y,E,x,w,O,c,U]);return ya(z!=null,`<Router basename="${g}"> is not able to match the URL "${y}${E}${x}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:S.createElement(aa.Provider,{value:p},S.createElement(vi.Provider,{children:i,value:z}))}function Gx({children:l,location:i}){return Cx(qo(l),i)}function qo(l,i=[]){let o=[];return S.Children.forEach(l,(c,d)=>{if(!S.isValidElement(c))return;let h=[...i,d];if(c.type===S.Fragment){o.push.apply(o,qo(c.props.children,h));return}Xe(c.type===ia,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!c.props.index||!c.props.children,"An index route cannot have child routes.");let v={id:c.props.id||h.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(v.children=qo(c.props.children,h)),o.push(v)}),o}var Gu="get",Xu="application/x-www-form-urlencoded";function tr(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Xx(l){return tr(l)&&l.tagName.toLowerCase()==="button"}function Kx(l){return tr(l)&&l.tagName.toLowerCase()==="form"}function Zx(l){return tr(l)&&l.tagName.toLowerCase()==="input"}function Vx(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Jx(l,i){return l.button===0&&(!i||i==="_self")&&!Vx(l)}var Hu=null;function $x(){if(Hu===null)try{new FormData(document.createElement("form"),0),Hu=!1}catch{Hu=!0}return Hu}var Fx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mo(l){return l!=null&&!Fx.has(l)?(ya(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xu}"`),null):l}function Wx(l,i){let o,c,d,h,v;if(Kx(l)){let g=l.getAttribute("action");c=g?Ya(g,i):null,o=l.getAttribute("method")||Gu,d=Mo(l.getAttribute("enctype"))||Xu,h=new FormData(l)}else if(Xx(l)||Zx(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=l.getAttribute("formaction")||g.getAttribute("action");if(c=p?Ya(p,i):null,o=l.getAttribute("formmethod")||g.getAttribute("method")||Gu,d=Mo(l.getAttribute("formenctype"))||Mo(g.getAttribute("enctype"))||Xu,h=new FormData(g,l),!$x()){let{name:y,type:E,value:x}=l;if(E==="image"){let w=y?`${y}.`:"";h.append(`${w}x`,"0"),h.append(`${w}y`,"0")}else y&&h.append(y,x)}}else{if(tr(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Gu,c=null,d=Xu,v=l}return h&&d==="text/plain"&&(v=h,h=void 0),{action:c,method:o.toLowerCase(),encType:d,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ff(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Yv(l,i,o,c){let d=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return o?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&Ya(d.pathname,i)==="/"?d.pathname=`${Ju(i)}/_root.${c}`:d.pathname=`${Ju(d.pathname)}.${c}`,d}async function Px(l,i){if(l.id in i)return i[l.id];try{let o=await import(l.module);return i[l.id]=o,o}catch(o){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ix(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 ej(l,i,o){let c=await Promise.all(l.map(async d=>{let h=i.routes[d.route.id];if(h){let v=await Px(h,o);return v.links?v.links():[]}return[]}));return lj(c.flat(1).filter(Ix).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Gp(l,i,o,c,d,h){let v=(p,y)=>o[y]?p.route.id!==o[y].route.id:!0,g=(p,y)=>{var E;return o[y].pathname!==p.pathname||((E=o[y].route.path)==null?void 0:E.endsWith("*"))&&o[y].params["*"]!==p.params["*"]};return h==="assets"?i.filter((p,y)=>v(p,y)||g(p,y)):h==="data"?i.filter((p,y)=>{var x;let E=c.routes[p.route.id];if(!E||!E.hasLoader)return!1;if(v(p,y)||g(p,y))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((x=o[0])==null?void 0:x.params)||{},nextUrl:new URL(l,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function tj(l,i,{includeHydrateFallback:o}={}){return aj(l.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),o&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function aj(l){return[...new Set(l)]}function nj(l){let i={},o=Object.keys(l).sort();for(let c of o)i[c]=l[c];return i}function lj(l,i){let o=new Set;return new Set(i),l.reduce((c,d)=>{let h=JSON.stringify(nj(d));return o.has(h)||(o.add(h),c.push({key:h,link:d})),c},[])}function df(){let l=S.useContext(is);return ff(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function sj(){let l=S.useContext(er);return ff(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var hf=S.createContext(void 0);hf.displayName="FrameworkContext";function ar(){let l=S.useContext(hf);return ff(l,"You must render this element inside a <HydratedRouter> element"),l}function ij(l,i){let o=S.useContext(hf),[c,d]=S.useState(!1),[h,v]=S.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:y,onMouseLeave:E,onTouchStart:x}=i,w=S.useRef(null);S.useEffect(()=>{if(l==="render"&&v(!0),l==="viewport"){let z=H=>{H.forEach(G=>{v(G.isIntersecting)})},q=new IntersectionObserver(z,{threshold:.5});return w.current&&q.observe(w.current),()=>{q.disconnect()}}},[l]),S.useEffect(()=>{if(c){let z=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(z)}}},[c]);let O=()=>{d(!0)},U=()=>{d(!1),v(!1)};return o?l!=="intent"?[h,w,{}]:[h,w,{onFocus:li(g,O),onBlur:li(p,U),onMouseEnter:li(y,O),onMouseLeave:li(E,U),onTouchStart:li(x,O)}]:[!1,w,{}]}function li(l,i){return o=>{l&&l(o),o.defaultPrevented||i(o)}}function uj({page:l,...i}){let o=yx(),{nonce:c}=ar(),{router:d}=df(),h=S.useMemo(()=>Sv(d.routes,l,d.basename),[d.routes,l,d.basename]);return h?(i.nonce==null&&c&&(i={...i,nonce:c}),o?S.createElement(cj,{page:l,matches:h,...i}):S.createElement(oj,{page:l,matches:h,...i})):null}function rj(l){let{manifest:i,routeModules:o}=ar(),[c,d]=S.useState([]);return S.useEffect(()=>{let h=!1;return ej(l,i,o).then(v=>{h||d(v)}),()=>{h=!0}},[l,i,o]),c}function cj({page:l,matches:i,...o}){let c=Ga(),{future:d}=ar(),{basename:h}=df(),v=S.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let g=Yv(l,h,d.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,y=[];for(let E of i)typeof E.route.shouldRevalidate=="function"?p=!0:y.push(E.route.id);return p&&y.length>0&&g.searchParams.set("_routes",y.join(",")),[g.pathname+g.search]},[h,d.v8_trailingSlashAwareDataRequests,l,c,i]);return S.createElement(S.Fragment,null,v.map(g=>S.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...o})))}function oj({page:l,matches:i,...o}){let c=Ga(),{future:d,manifest:h,routeModules:v}=ar(),{basename:g}=df(),{loaderData:p,matches:y}=sj(),E=S.useMemo(()=>Gp(l,i,y,h,c,"data"),[l,i,y,h,c]),x=S.useMemo(()=>Gp(l,i,y,h,c,"assets"),[l,i,y,h,c]),w=S.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let z=new Set,q=!1;if(i.forEach(G=>{var Z;let K=h.routes[G.route.id];!K||!K.hasLoader||(!E.some(W=>W.route.id===G.route.id)&&G.route.id in p&&((Z=v[G.route.id])!=null&&Z.shouldRevalidate)||K.hasClientLoader?q=!0:z.add(G.route.id))}),z.size===0)return[];let H=Yv(l,g,d.v8_trailingSlashAwareDataRequests,"data");return q&&z.size>0&&H.searchParams.set("_routes",i.filter(G=>z.has(G.route.id)).map(G=>G.route.id).join(",")),[H.pathname+H.search]},[g,d.v8_trailingSlashAwareDataRequests,p,c,h,E,i,l,v]),O=S.useMemo(()=>tj(x,h),[x,h]),U=rj(x);return S.createElement(S.Fragment,null,w.map(z=>S.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...o})),O.map(z=>S.createElement("link",{key:z,rel:"modulepreload",href:z,...o})),U.map(({key:z,link:q})=>S.createElement("link",{key:z,nonce:o.nonce,...q,crossOrigin:q.crossOrigin??o.crossOrigin})))}function fj(...l){return i=>{l.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var dj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dj&&(window.__reactRouterVersion="7.18.1")}catch{}function hj({basename:l,children:i,useTransitions:o,window:c}){let d=S.useRef();d.current==null&&(d.current=G0({window:c,v5Compat:!0}));let h=d.current,[v,g]=S.useState({action:h.action,location:h.location}),p=S.useCallback(y=>{o===!1?g(y):S.startTransition(()=>g(y))},[o]);return S.useLayoutEffect(()=>h.listen(p),[h,p]),S.createElement(Yx,{basename:l,children:i,location:v.location,navigationType:v.action,navigator:h,useTransitions:o})}var We=S.forwardRef(function({onClick:i,discover:o="render",prefetch:c="none",relative:d,reloadDocument:h,replace:v,mask:g,state:p,target:y,to:E,preventScrollReset:x,viewTransition:w,defaultShouldRevalidate:O,...U},z){let{basename:q,navigator:H,useTransitions:G}=S.useContext(aa),K=typeof E=="string"&&sf.test(E),Z=Av(E,q);E=Z.to;let W=Ex(E,{relative:d}),J=Ga(),te=null;if(g){let se=uf(g,[],J.mask?J.mask.pathname:"/",!0);q!=="/"&&(se.pathname=se.pathname==="/"?q:ra([q,se.pathname])),te=H.createHref(se)}let[ne,ce,_e]=ij(c,U),He=vj(E,{replace:v,mask:g,state:p,target:y,preventScrollReset:x,relative:d,viewTransition:w,defaultShouldRevalidate:O,useTransitions:G});function X(se){i&&i(se),se.defaultPrevented||He(se)}let de=!(Z.isExternal||h),pe=S.createElement("a",{...U,..._e,href:(de?te:void 0)||Z.absoluteURL||W,onClick:de?X:i,ref:fj(z,ce),target:y,"data-discover":!K&&o==="render"?"true":void 0});return ne&&!K?S.createElement(S.Fragment,null,pe,S.createElement(uj,{page:W})):pe});We.displayName="Link";var Gv=S.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:c="",end:d=!1,style:h,to:v,viewTransition:g,children:p,...y},E){let x=gi(v,{relative:y.relative}),w=Ga(),O=S.useContext(er),{navigator:U,basename:z}=S.useContext(aa),q=O!=null&&bj(x)&&g===!0,H=U.encodeLocation?U.encodeLocation(x).pathname:x.pathname,G=w.pathname,K=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;o||(G=G.toLowerCase(),K=K?K.toLowerCase():null,H=H.toLowerCase()),K&&z&&(K=Ya(K,z)||K);const Z=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let W=G===H||!d&&G.startsWith(H)&&G.charAt(Z)==="/",J=K!=null&&(K===H||!d&&K.startsWith(H)&&K.charAt(H.length)==="/"),te={isActive:W,isPending:J,isTransitioning:q},ne=W?i:void 0,ce;typeof c=="function"?ce=c(te):ce=[c,W?"active":null,J?"pending":null,q?"transitioning":null].filter(Boolean).join(" ");let _e=typeof h=="function"?h(te):h;return S.createElement(We,{...y,"aria-current":ne,className:ce,ref:E,style:_e,to:v,viewTransition:g},typeof p=="function"?p(te):p)});Gv.displayName="NavLink";var mj=S.forwardRef(({discover:l="render",fetcherKey:i,navigate:o,reloadDocument:c,replace:d,state:h,method:v=Gu,action:g,onSubmit:p,relative:y,preventScrollReset:E,viewTransition:x,defaultShouldRevalidate:w,...O},U)=>{let{useTransitions:z}=S.useContext(aa),q=xj(),H=jj(g,{relative:y}),G=v.toLowerCase()==="get"?"get":"post",K=typeof g=="string"&&sf.test(g),Z=W=>{if(p&&p(W),W.defaultPrevented)return;W.preventDefault();let J=W.nativeEvent.submitter,te=(J==null?void 0:J.getAttribute("formmethod"))||v,ne=()=>q(J||W.currentTarget,{fetcherKey:i,method:te,navigate:o,replace:d,state:h,relative:y,preventScrollReset:E,viewTransition:x,defaultShouldRevalidate:w});z&&o!==!1?S.startTransition(()=>ne()):ne()};return S.createElement("form",{ref:U,method:G,action:H,onSubmit:c?p:Z,...O,"data-discover":!K&&l==="render"?"true":void 0})});mj.displayName="Form";function pj(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xv(l){let i=S.useContext(is);return Xe(i,pj(l)),i}function vj(l,{target:i,replace:o,mask:c,state:d,preventScrollReset:h,relative:v,viewTransition:g,defaultShouldRevalidate:p,useTransitions:y}={}){let E=qv(),x=Ga(),w=gi(l,{relative:v});return S.useCallback(O=>{if(Jx(O,i)){O.preventDefault();let U=o!==void 0?o:ci(x)===ci(w),z=()=>E(l,{replace:U,mask:c,state:d,preventScrollReset:h,relative:v,viewTransition:g,defaultShouldRevalidate:p});y?S.startTransition(()=>z()):z()}},[x,E,w,o,c,d,i,l,h,v,g,p,y])}var yj=0,gj=()=>`__${String(++yj)}__`;function xj(){let{router:l}=Xv("useSubmit"),{basename:i}=S.useContext(aa),o=qx(),c=l.fetch,d=l.navigate;return S.useCallback(async(h,v={})=>{let{action:g,method:p,encType:y,formData:E,body:x}=Wx(h,i);if(v.navigate===!1){let w=v.fetcherKey||gj();await c(w,o,v.action||g,{defaultShouldRevalidate:v.defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:E,body:x,formMethod:v.method||p,formEncType:v.encType||y,flushSync:v.flushSync})}else await d(v.action||g,{defaultShouldRevalidate:v.defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:E,body:x,formMethod:v.method||p,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:o,flushSync:v.flushSync,viewTransition:v.viewTransition})},[c,d,i,o])}function jj(l,{relative:i}={}){let{basename:o}=S.useContext(aa),c=S.useContext(ca);Xe(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),h={...gi(l||".",{relative:i})},v=Ga();if(l==null){h.search=v.search;let g=new URLSearchParams(h.search),p=g.getAll("index");if(p.some(E=>E==="")){g.delete("index"),p.filter(x=>x).forEach(x=>g.append("index",x));let E=g.toString();h.search=E?`?${E}`:""}}return(!l||l===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(h.pathname=h.pathname==="/"?o:ra([o,h.pathname])),ci(h)}function bj(l,{relative:i}={}){let o=S.useContext(zv);Xe(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Xv("useViewTransitionState"),d=gi(l,{relative:i});if(!o.isTransitioning)return!1;let h=Ya(o.currentLocation.pathname,c)||o.currentLocation.pathname,v=Ya(o.nextLocation.pathname,c)||o.nextLocation.pathname;return Vu(d.pathname,v)!=null||Vu(d.pathname,h)!=null}var us=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Jn,gn,Kl,ov,Sj=(ov=class extends us{constructor(){super();ae(this,Jn);ae(this,gn);ae(this,Kl);$(this,Kl,i=>{if(typeof window<"u"&&window.addEventListener){const o=()=>i();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}})}onSubscribe(){b(this,gn)||this.setEventListener(b(this,Kl))}onUnsubscribe(){var i;this.hasListeners()||((i=b(this,gn))==null||i.call(this),$(this,gn,void 0))}setEventListener(i){var o;$(this,Kl,i),(o=b(this,gn))==null||o.call(this),$(this,gn,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){b(this,Jn)!==i&&($(this,Jn,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(o=>{o(i)})}isFocused(){var i;return typeof b(this,Jn)=="boolean"?b(this,Jn):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Jn=new WeakMap,gn=new WeakMap,Kl=new WeakMap,ov),mf=new Sj,Nj={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},xn,nf,fv,Ej=(fv=class{constructor(){ae(this,xn,Nj);ae(this,nf,!1)}setTimeoutProvider(l){$(this,xn,l)}setTimeout(l,i){return b(this,xn).setTimeout(l,i)}clearTimeout(l){b(this,xn).clearTimeout(l)}setInterval(l,i){return b(this,xn).setInterval(l,i)}clearInterval(l){b(this,xn).clearInterval(l)}},xn=new WeakMap,nf=new WeakMap,fv),Vn=new Ej;function Tj(l){setTimeout(l,0)}var _j=typeof window>"u"||"Deno"in globalThis;function xt(){}function wj(l,i){return typeof l=="function"?l(i):l}function Ho(l){return typeof l=="number"&&l>=0&&l!==1/0}function Kv(l,i){return Math.max(l+(i||0)-Date.now(),0)}function wn(l,i){return typeof l=="function"?l(i):l}function Lt(l,i){return typeof l=="function"?l(i):l}function Xp(l,i){const{type:o="all",exact:c,fetchStatus:d,predicate:h,queryKey:v,stale:g}=l;if(v){if(c){if(i.queryHash!==pf(v,i.options))return!1}else if(!ls(i.queryKey,v))return!1}if(o!=="all"){const p=i.isActive();if(o==="active"&&!p||o==="inactive"&&p)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||d&&d!==i.state.fetchStatus||h&&!h(i))}function Kp(l,i){const{exact:o,status:c,predicate:d,mutationKey:h}=l;if(h){if(!i.options.mutationKey)return!1;if(o){if(nl(i.options.mutationKey)!==nl(h))return!1}else if(!ls(i.options.mutationKey,h))return!1}return!(c&&i.state.status!==c||d&&!d(i))}function pf(l,i){return((i==null?void 0:i.queryKeyHashFn)||nl)(l)}function nl(l){return JSON.stringify(l,(i,o)=>Bo(o)?Object.keys(o).sort().reduce((c,d)=>(c[d]=o[d],c),{}):o)}function ls(l,i){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(l&&i&&typeof l=="object"&&typeof i=="object"){if(Array.isArray(l)&&Array.isArray(i)){for(let c=0;c<i.length;c++)if(!ls(l[c],i[c]))return!1;return!0}const o=Object.keys(i);for(const c of o)if(!ls(l[c],i[c]))return!1;return!0}return!1}var Cj=Object.prototype.hasOwnProperty;function Zv(l,i,o=0){if(l===i)return l;if(o>500)return i;const c=Zp(l)&&Zp(i);if(!c&&!(Bo(l)&&Bo(i)))return i;const h=(c?l:Object.keys(l)).length,v=c?i:Object.keys(i),g=v.length,p=c?new Array(g):{};let y=0;for(let E=0;E<g;E++){const x=c?E:v[E],w=l[x],O=i[x];if(w===O){p[x]=w,(c?E<h:Cj.call(l,x))&&y++;continue}if(w===null||O===null||typeof w!="object"||typeof O!="object"){p[x]=O;continue}const U=Zv(w,O,o+1);p[x]=U,U===w&&y++}return h===g&&y===h?l:p}function $u(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const o in l)if(l[o]!==i[o])return!1;return!0}function Zp(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Bo(l){if(!Vp(l))return!1;const i=l.constructor;if(i===void 0)return!0;const o=i.prototype;return!(!Vp(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Vp(l){return Object.prototype.toString.call(l)==="[object Object]"}function Oj(l){return new Promise(i=>{Vn.setTimeout(i,l)})}function Lo(l,i,o){return typeof o.structuralSharing=="function"?o.structuralSharing(l,i):o.structuralSharing!==!1?Zv(l,i):i}function Aj(l,i,o=0){const c=[...l,i];return o&&c.length>o?c.slice(1):c}function Rj(l,i,o=0){const c=[i,...l];return o&&c.length>o?c.slice(0,-1):c}var vf=Symbol();function Vv(l,i){return!l.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!l.queryFn||l.queryFn===vf?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function yf(l,i){return typeof l=="function"?l(...i):!!l}function Mj(l,i,o){let c=!1,d;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(d??(d=i()),c||(c=!0,d.aborted?o():d.addEventListener("abort",o,{once:!0})),d)}),l}var oi=(()=>{let l=()=>_j;return{isServer(){return l()},setIsServer(i){l=i}}})();function Qo(){let l,i;const o=new Promise((d,h)=>{l=d,i=h});o.status="pending",o.catch(()=>{});function c(d){Object.assign(o,d),delete o.resolve,delete o.reject}return o.resolve=d=>{c({status:"fulfilled",value:d}),l(d)},o.reject=d=>{c({status:"rejected",reason:d}),i(d)},o}var zj=Tj;function Dj(){let l=[],i=0,o=g=>{g()},c=g=>{g()},d=zj;const h=g=>{i?l.push(g):d(()=>{o(g)})},v=()=>{const g=l;l=[],g.length&&d(()=>{c(()=>{g.forEach(p=>{o(p)})})})};return{batch:g=>{let p;i++;try{p=g()}finally{i--,i||v()}return p},batchCalls:g=>(...p)=>{h(()=>{g(...p)})},schedule:h,setNotifyFunction:g=>{o=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{d=g}}}var nt=Dj(),Zl,jn,Vl,dv,Uj=(dv=class extends us{constructor(){super();ae(this,Zl,!0);ae(this,jn);ae(this,Vl);$(this,Vl,i=>{if(typeof window<"u"&&window.addEventListener){const o=()=>i(!0),c=()=>i(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",c)}}})}onSubscribe(){b(this,jn)||this.setEventListener(b(this,Vl))}onUnsubscribe(){var i;this.hasListeners()||((i=b(this,jn))==null||i.call(this),$(this,jn,void 0))}setEventListener(i){var o;$(this,Vl,i),(o=b(this,jn))==null||o.call(this),$(this,jn,i(this.setOnline.bind(this)))}setOnline(i){b(this,Zl)!==i&&($(this,Zl,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return b(this,Zl)}},Zl=new WeakMap,jn=new WeakMap,Vl=new WeakMap,dv),Fu=new Uj;function kj(l){return Math.min(1e3*2**l,3e4)}function Jv(l){return(l??"online")==="online"?Fu.isOnline():!0}var Yo=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function $v(l){let i=!1,o=0,c;const d=Qo(),h=()=>d.status!=="pending",v=z=>{var q;if(!h()){const H=new Yo(z);w(H),(q=l.onCancel)==null||q.call(l,H)}},g=()=>{i=!0},p=()=>{i=!1},y=()=>mf.isFocused()&&(l.networkMode==="always"||Fu.isOnline())&&l.canRun(),E=()=>Jv(l.networkMode)&&l.canRun(),x=z=>{h()||(c==null||c(),d.resolve(z))},w=z=>{h()||(c==null||c(),d.reject(z))},O=()=>new Promise(z=>{var q;c=H=>{(h()||y())&&z(H)},(q=l.onPause)==null||q.call(l)}).then(()=>{var z;c=void 0,h()||(z=l.onContinue)==null||z.call(l)}),U=()=>{if(h())return;let z;const q=o===0?l.initialPromise:void 0;try{z=q??l.fn()}catch(H){z=Promise.reject(H)}Promise.resolve(z).then(x).catch(H=>{var J;if(h())return;const G=l.retry??(oi.isServer()?0:3),K=l.retryDelay??kj,Z=typeof K=="function"?K(o,H):K,W=G===!0||typeof G=="number"&&o<G||typeof G=="function"&&G(o,H);if(i||!W){w(H);return}o++,(J=l.onFail)==null||J.call(l,o,H),Oj(Z).then(()=>y()?void 0:O()).then(()=>{i?w(H):U()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(c==null||c(),d),cancelRetry:g,continueRetry:p,canStart:E,start:()=>(E()?U():O().then(U),d)}}var $n,hv,Fv=(hv=class{constructor(){ae(this,$n)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ho(this.gcTime)&&$(this,$n,Vn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(oi.isServer()?1/0:300*1e3))}clearGcTimeout(){b(this,$n)!==void 0&&(Vn.clearTimeout(b(this,$n)),$(this,$n,void 0))}},$n=new WeakMap,hv);function qj(l){return{onFetch:(i,o)=>{var E,x,w,O,U;const c=i.options,d=(w=(x=(E=i.fetchOptions)==null?void 0:E.meta)==null?void 0:x.fetchMore)==null?void 0:w.direction,h=((O=i.state.data)==null?void 0:O.pages)||[],v=((U=i.state.data)==null?void 0:U.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let z=!1;const q=K=>{Mj(K,()=>i.signal,()=>z=!0)},H=Vv(i.options,i.fetchOptions),G=async(K,Z,W)=>{if(z)return Promise.reject(i.signal.reason);if(Z==null&&K.pages.length)return Promise.resolve(K);const te=(()=>{const He={client:i.client,queryKey:i.queryKey,pageParam:Z,direction:W?"backward":"forward",meta:i.options.meta};return q(He),He})(),ne=await H(te),{maxPages:ce}=i.options,_e=W?Rj:Aj;return{pages:_e(K.pages,ne,ce),pageParams:_e(K.pageParams,Z,ce)}};if(d&&h.length){const K=d==="backward",Z=K?Hj:Jp,W={pages:h,pageParams:v},J=Z(c,W);g=await G(W,J,K)}else{const K=l??h.length;do{const Z=p===0?v[0]??c.initialPageParam:Jp(c,g);if(p>0&&Z==null)break;g=await G(g,Z),p++}while(p<K)}return g};i.options.persister?i.fetchFn=()=>{var z,q;return(q=(z=i.options).persister)==null?void 0:q.call(z,y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},o)}:i.fetchFn=y}}}function Jp(l,{pages:i,pageParams:o}){const c=i.length-1;return i.length>0?l.getNextPageParam(i[c],i,o[c],o):void 0}function Hj(l,{pages:i,pageParams:o}){var c;return i.length>0?(c=l.getPreviousPageParam)==null?void 0:c.call(l,i[0],i,o[0],o):void 0}var Jl,Fn,$l,It,Wn,ut,fi,Pn,Bt,Wv,ka,mv,Bj=(mv=class extends Fv{constructor(i){super();ae(this,Bt);ae(this,Jl);ae(this,Fn);ae(this,$l);ae(this,It);ae(this,Wn);ae(this,ut);ae(this,fi);ae(this,Pn);$(this,Pn,!1),$(this,fi,i.defaultOptions),this.setOptions(i.options),this.observers=[],$(this,Wn,i.client),$(this,It,b(this,Wn).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,$(this,Fn,Fp(this.options)),this.state=i.state??b(this,Fn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return b(this,Jl)}get promise(){var i;return(i=b(this,ut))==null?void 0:i.promise}setOptions(i){if(this.options={...b(this,fi),...i},i!=null&&i._type&&$(this,Jl,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const o=Fp(this.options);o.data!==void 0&&(this.setState($p(o.data,o.dataUpdatedAt)),$(this,Fn,o))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,It).remove(this)}setData(i,o){const c=Lo(this.state.data,i,this.options);return me(this,Bt,ka).call(this,{data:c,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),c}setState(i){me(this,Bt,ka).call(this,{type:"setState",state:i})}cancel(i){var c,d;const o=(c=b(this,ut))==null?void 0:c.promise;return(d=b(this,ut))==null||d.cancel(i),o?o.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return b(this,Fn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Lt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>wn(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Kv(this.state.dataUpdatedAt,i)}onFocus(){var o;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(o=b(this,ut))==null||o.continue()}onOnline(){var o;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(o=b(this,ut))==null||o.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),b(this,It).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(o=>o!==i),this.observers.length||(b(this,ut)&&(b(this,Pn)||me(this,Bt,Wv).call(this)?b(this,ut).cancel({revert:!0}):b(this,ut).cancelRetry()),this.scheduleGc()),b(this,It).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,Bt,ka).call(this,{type:"invalidate"})}async fetch(i,o){var y,E,x,w,O,U,z,q,H,G,K;if(this.state.fetchStatus!=="idle"&&((y=b(this,ut))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(b(this,ut))return b(this,ut).continueRetry(),b(this,ut).promise}if(i&&this.setOptions(i),!this.options.queryFn){const Z=this.observers.find(W=>W.options.queryFn);Z&&this.setOptions(Z.options)}const c=new AbortController,d=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>($(this,Pn,!0),c.signal)})},h=()=>{const Z=Vv(this.options,o),J=(()=>{const te={client:b(this,Wn),queryKey:this.queryKey,meta:this.meta};return d(te),te})();return $(this,Pn,!1),this.options.persister?this.options.persister(Z,J,this):Z(J)},g=(()=>{const Z={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:b(this,Wn),state:this.state,fetchFn:h};return d(Z),Z})(),p=b(this,Jl)==="infinite"?qj(this.options.pages):this.options.behavior;p==null||p.onFetch(g,this),$(this,$l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((E=g.fetchOptions)==null?void 0:E.meta))&&me(this,Bt,ka).call(this,{type:"fetch",meta:(x=g.fetchOptions)==null?void 0:x.meta}),$(this,ut,$v({initialPromise:o==null?void 0:o.initialPromise,fn:g.fetchFn,onCancel:Z=>{Z instanceof Yo&&Z.revert&&this.setState({...b(this,$l),fetchStatus:"idle"}),c.abort()},onFail:(Z,W)=>{me(this,Bt,ka).call(this,{type:"failed",failureCount:Z,error:W})},onPause:()=>{me(this,Bt,ka).call(this,{type:"pause"})},onContinue:()=>{me(this,Bt,ka).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const Z=await b(this,ut).start();if(Z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Z),(O=(w=b(this,It).config).onSuccess)==null||O.call(w,Z,this),(z=(U=b(this,It).config).onSettled)==null||z.call(U,Z,this.state.error,this),Z}catch(Z){if(Z instanceof Yo){if(Z.silent)return b(this,ut).promise;if(Z.revert){if(this.state.data===void 0)throw Z;return this.state.data}}throw me(this,Bt,ka).call(this,{type:"error",error:Z}),(H=(q=b(this,It).config).onError)==null||H.call(q,Z,this),(K=(G=b(this,It).config).onSettled)==null||K.call(G,this.state.data,Z,this),Z}finally{this.scheduleGc()}}},Jl=new WeakMap,Fn=new WeakMap,$l=new WeakMap,It=new WeakMap,Wn=new WeakMap,ut=new WeakMap,fi=new WeakMap,Pn=new WeakMap,Bt=new WeakSet,Wv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ka=function(i){const o=c=>{switch(i.type){case"failed":return{...c,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Pv(c.data,this.options),fetchMeta:i.meta??null};case"success":const d={...c,...$p(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,$l,i.manual?d:void 0),d;case"error":const h=i.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=o(this.state),nt.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),b(this,It).notify({query:this,type:"updated",action:i})})},mv);function Pv(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jv(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function $p(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Fp(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,o=i!==void 0,c=o?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:o?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var wt,Se,di,gt,In,Fl,qa,bn,hi,Wl,Pl,el,tl,Sn,Il,Oe,si,Go,Xo,Ko,Zo,Vo,Jo,$o,Iv,pv,Lj=(pv=class extends us{constructor(i,o){super();ae(this,Oe);ae(this,wt);ae(this,Se);ae(this,di);ae(this,gt);ae(this,In);ae(this,Fl);ae(this,qa);ae(this,bn);ae(this,hi);ae(this,Wl);ae(this,Pl);ae(this,el);ae(this,tl);ae(this,Sn);ae(this,Il,new Set);this.options=o,$(this,wt,i),$(this,bn,null),$(this,qa,Qo()),this.bindMethods(),this.setOptions(o)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,Se).addObserver(this),Wp(b(this,Se),this.options)?me(this,Oe,si).call(this):this.updateResult(),me(this,Oe,Zo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fo(b(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fo(b(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,Oe,Vo).call(this),me(this,Oe,Jo).call(this),b(this,Se).removeObserver(this)}setOptions(i){const o=this.options,c=b(this,Se);if(this.options=b(this,wt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Lt(this.options.enabled,b(this,Se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,Oe,$o).call(this),b(this,Se).setOptions(this.options),o._defaulted&&!$u(this.options,o)&&b(this,wt).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,Se),observer:this});const d=this.hasListeners();d&&Pp(b(this,Se),c,this.options,o)&&me(this,Oe,si).call(this),this.updateResult(),d&&(b(this,Se)!==c||Lt(this.options.enabled,b(this,Se))!==Lt(o.enabled,b(this,Se))||wn(this.options.staleTime,b(this,Se))!==wn(o.staleTime,b(this,Se)))&&me(this,Oe,Go).call(this);const h=me(this,Oe,Xo).call(this);d&&(b(this,Se)!==c||Lt(this.options.enabled,b(this,Se))!==Lt(o.enabled,b(this,Se))||h!==b(this,Sn))&&me(this,Oe,Ko).call(this,h)}getOptimisticResult(i){const o=b(this,wt).getQueryCache().build(b(this,wt),i),c=this.createResult(o,i);return Yj(this,c)&&($(this,gt,c),$(this,Fl,this.options),$(this,In,b(this,Se).state)),c}getCurrentResult(){return b(this,gt)}trackResult(i,o){return new Proxy(i,{get:(c,d)=>(this.trackProp(d),o==null||o(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&b(this,qa).status==="pending"&&b(this,qa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(i){b(this,Il).add(i)}getCurrentQuery(){return b(this,Se)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const o=b(this,wt).defaultQueryOptions(i),c=b(this,wt).getQueryCache().build(b(this,wt),o);return c.fetch().then(()=>this.createResult(c,o))}fetch(i){return me(this,Oe,si).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,gt)))}createResult(i,o){var ce;const c=b(this,Se),d=this.options,h=b(this,gt),v=b(this,In),g=b(this,Fl),y=i!==c?i.state:b(this,di),{state:E}=i;let x={...E},w=!1,O;if(o._optimisticResults){const _e=this.hasListeners(),He=!_e&&Wp(i,o),X=_e&&Pp(i,c,o,d);(He||X)&&(x={...x,...Pv(E.data,i.options)}),o._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:U,errorUpdatedAt:z,status:q}=x;O=x.data;let H=!1;if(o.placeholderData!==void 0&&O===void 0&&q==="pending"){let _e;h!=null&&h.isPlaceholderData&&o.placeholderData===(g==null?void 0:g.placeholderData)?(_e=h.data,H=!0):_e=typeof o.placeholderData=="function"?o.placeholderData((ce=b(this,Pl))==null?void 0:ce.state.data,b(this,Pl)):o.placeholderData,_e!==void 0&&(q="success",O=Lo(h==null?void 0:h.data,_e,o),w=!0)}if(o.select&&O!==void 0&&!H)if(h&&O===(v==null?void 0:v.data)&&o.select===b(this,hi))O=b(this,Wl);else try{$(this,hi,o.select),O=o.select(O),O=Lo(h==null?void 0:h.data,O,o),$(this,Wl,O),$(this,bn,null)}catch(_e){$(this,bn,_e)}b(this,bn)&&(U=b(this,bn),O=b(this,Wl),z=Date.now(),q="error");const G=x.fetchStatus==="fetching",K=q==="pending",Z=q==="error",W=K&&G,J=O!==void 0,ne={status:q,fetchStatus:x.fetchStatus,isPending:K,isSuccess:q==="success",isError:Z,isInitialLoading:W,isLoading:W,data:O,dataUpdatedAt:x.dataUpdatedAt,error:U,errorUpdatedAt:z,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:x.dataUpdateCount>y.dataUpdateCount||x.errorUpdateCount>y.errorUpdateCount,isFetching:G,isRefetching:G&&!K,isLoadingError:Z&&!J,isPaused:x.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:Z&&J,isStale:gf(i,o),refetch:this.refetch,promise:b(this,qa),isEnabled:Lt(o.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const _e=ne.data!==void 0,He=ne.status==="error"&&!_e,X=se=>{He?se.reject(ne.error):_e&&se.resolve(ne.data)},de=()=>{const se=$(this,qa,ne.promise=Qo());X(se)},pe=b(this,qa);switch(pe.status){case"pending":i.queryHash===c.queryHash&&X(pe);break;case"fulfilled":(He||ne.data!==pe.value)&&de();break;case"rejected":(!He||ne.error!==pe.reason)&&de();break}}return ne}updateResult(){const i=b(this,gt),o=this.createResult(b(this,Se),this.options);if($(this,In,b(this,Se).state),$(this,Fl,this.options),b(this,In).data!==void 0&&$(this,Pl,b(this,Se)),$u(o,i))return;$(this,gt,o);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,h=typeof d=="function"?d():d;if(h==="all"||!h&&!b(this,Il).size)return!0;const v=new Set(h??b(this,Il));return this.options.throwOnError&&v.add("error"),Object.keys(b(this,gt)).some(g=>{const p=g;return b(this,gt)[p]!==i[p]&&v.has(p)})};me(this,Oe,Iv).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,Oe,Zo).call(this)}},wt=new WeakMap,Se=new WeakMap,di=new WeakMap,gt=new WeakMap,In=new WeakMap,Fl=new WeakMap,qa=new WeakMap,bn=new WeakMap,hi=new WeakMap,Wl=new WeakMap,Pl=new WeakMap,el=new WeakMap,tl=new WeakMap,Sn=new WeakMap,Il=new WeakMap,Oe=new WeakSet,si=function(i){me(this,Oe,$o).call(this);let o=b(this,Se).fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(xt)),o},Go=function(){me(this,Oe,Vo).call(this);const i=wn(this.options.staleTime,b(this,Se));if(oi.isServer()||b(this,gt).isStale||!Ho(i))return;const c=Kv(b(this,gt).dataUpdatedAt,i)+1;$(this,el,Vn.setTimeout(()=>{b(this,gt).isStale||this.updateResult()},c))},Xo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,Se)):this.options.refetchInterval)??!1},Ko=function(i){me(this,Oe,Jo).call(this),$(this,Sn,i),!(oi.isServer()||Lt(this.options.enabled,b(this,Se))===!1||!Ho(b(this,Sn))||b(this,Sn)===0)&&$(this,tl,Vn.setInterval(()=>{(this.options.refetchIntervalInBackground||mf.isFocused())&&me(this,Oe,si).call(this)},b(this,Sn)))},Zo=function(){me(this,Oe,Go).call(this),me(this,Oe,Ko).call(this,me(this,Oe,Xo).call(this))},Vo=function(){b(this,el)!==void 0&&(Vn.clearTimeout(b(this,el)),$(this,el,void 0))},Jo=function(){b(this,tl)!==void 0&&(Vn.clearInterval(b(this,tl)),$(this,tl,void 0))},$o=function(){const i=b(this,wt).getQueryCache().build(b(this,wt),this.options);if(i===b(this,Se))return;const o=b(this,Se);$(this,Se,i),$(this,di,i.state),this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))},Iv=function(i){nt.batch(()=>{i.listeners&&this.listeners.forEach(o=>{o(b(this,gt))}),b(this,wt).getQueryCache().notify({query:b(this,Se),type:"observerResultsUpdated"})})},pv);function Qj(l,i){return Lt(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&Lt(i.retryOnMount,l)===!1)}function Wp(l,i){return Qj(l,i)||l.state.data!==void 0&&Fo(l,i,i.refetchOnMount)}function Fo(l,i,o){if(Lt(i.enabled,l)!==!1&&wn(i.staleTime,l)!=="static"){const c=typeof o=="function"?o(l):o;return c==="always"||c!==!1&&gf(l,i)}return!1}function Pp(l,i,o,c){return(l!==i||Lt(c.enabled,l)===!1)&&(!o.suspense||l.state.status!=="error")&&gf(l,o)}function gf(l,i){return Lt(i.enabled,l)!==!1&&l.isStaleByTime(wn(i.staleTime,l))}function Yj(l,i){return!$u(l.getCurrentResult(),i)}var mi,ma,mt,al,pa,yn,vv,Gj=(vv=class extends Fv{constructor(i){super();ae(this,pa);ae(this,mi);ae(this,ma);ae(this,mt);ae(this,al);$(this,mi,i.client),this.mutationId=i.mutationId,$(this,mt,i.mutationCache),$(this,ma,[]),this.state=i.state||ey(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){b(this,ma).includes(i)||(b(this,ma).push(i),this.clearGcTimeout(),b(this,mt).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){$(this,ma,b(this,ma).filter(o=>o!==i)),this.scheduleGc(),b(this,mt).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){b(this,ma).length||(this.state.status==="pending"?this.scheduleGc():b(this,mt).remove(this))}continue(){var i;return((i=b(this,al))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var v,g,p,y,E,x,w,O,U,z,q,H,G,K,Z,W,J,te;const o=()=>{me(this,pa,yn).call(this,{type:"continue"})},c={client:b(this,mi),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,al,$v({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(ne,ce)=>{me(this,pa,yn).call(this,{type:"failed",failureCount:ne,error:ce})},onPause:()=>{me(this,pa,yn).call(this,{type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,mt).canRun(this)}));const d=this.state.status==="pending",h=!b(this,al).canStart();try{if(d)o();else{me(this,pa,yn).call(this,{type:"pending",variables:i,isPaused:h}),b(this,mt).config.onMutate&&await b(this,mt).config.onMutate(i,this,c);const ce=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,i,c));ce!==this.state.context&&me(this,pa,yn).call(this,{type:"pending",context:ce,variables:i,isPaused:h})}const ne=await b(this,al).start();return await((y=(p=b(this,mt).config).onSuccess)==null?void 0:y.call(p,ne,i,this.state.context,this,c)),await((x=(E=this.options).onSuccess)==null?void 0:x.call(E,ne,i,this.state.context,c)),await((O=(w=b(this,mt).config).onSettled)==null?void 0:O.call(w,ne,null,this.state.variables,this.state.context,this,c)),await((z=(U=this.options).onSettled)==null?void 0:z.call(U,ne,null,i,this.state.context,c)),me(this,pa,yn).call(this,{type:"success",data:ne}),ne}catch(ne){try{await((H=(q=b(this,mt).config).onError)==null?void 0:H.call(q,ne,i,this.state.context,this,c))}catch(ce){Promise.reject(ce)}try{await((K=(G=this.options).onError)==null?void 0:K.call(G,ne,i,this.state.context,c))}catch(ce){Promise.reject(ce)}try{await((W=(Z=b(this,mt).config).onSettled)==null?void 0:W.call(Z,void 0,ne,this.state.variables,this.state.context,this,c))}catch(ce){Promise.reject(ce)}try{await((te=(J=this.options).onSettled)==null?void 0:te.call(J,void 0,ne,i,this.state.context,c))}catch(ce){Promise.reject(ce)}throw me(this,pa,yn).call(this,{type:"error",error:ne}),ne}finally{b(this,mt).runNext(this)}}},mi=new WeakMap,ma=new WeakMap,mt=new WeakMap,al=new WeakMap,pa=new WeakSet,yn=function(i){const o=c=>{switch(i.type){case"failed":return{...c,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...c,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:i.error,failureCount:c.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=o(this.state),nt.batch(()=>{b(this,ma).forEach(c=>{c.onMutationUpdate(i)}),b(this,mt).notify({mutation:this,type:"updated",action:i})})},vv);function ey(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ha,ua,pi,yv,Xj=(yv=class extends us{constructor(i={}){super();ae(this,Ha);ae(this,ua);ae(this,pi);this.config=i,$(this,Ha,new Set),$(this,ua,new Map),$(this,pi,0)}build(i,o,c){const d=new Gj({client:i,mutationCache:this,mutationId:++qu(this,pi)._,options:i.defaultMutationOptions(o),state:c});return this.add(d),d}add(i){b(this,Ha).add(i);const o=Bu(i);if(typeof o=="string"){const c=b(this,ua).get(o);c?c.push(i):b(this,ua).set(o,[i])}this.notify({type:"added",mutation:i})}remove(i){if(b(this,Ha).delete(i)){const o=Bu(i);if(typeof o=="string"){const c=b(this,ua).get(o);if(c)if(c.length>1){const d=c.indexOf(i);d!==-1&&c.splice(d,1)}else c[0]===i&&b(this,ua).delete(o)}}this.notify({type:"removed",mutation:i})}canRun(i){const o=Bu(i);if(typeof o=="string"){const c=b(this,ua).get(o),d=c==null?void 0:c.find(h=>h.state.status==="pending");return!d||d===i}else return!0}runNext(i){var c;const o=Bu(i);if(typeof o=="string"){const d=(c=b(this,ua).get(o))==null?void 0:c.find(h=>h!==i&&h.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nt.batch(()=>{b(this,Ha).forEach(i=>{this.notify({type:"removed",mutation:i})}),b(this,Ha).clear(),b(this,ua).clear()})}getAll(){return Array.from(b(this,Ha))}find(i){const o={exact:!0,...i};return this.getAll().find(c=>Kp(o,c))}findAll(i={}){return this.getAll().filter(o=>Kp(i,o))}notify(i){nt.batch(()=>{this.listeners.forEach(o=>{o(i)})})}resumePausedMutations(){const i=this.getAll().filter(o=>o.state.isPaused);return nt.batch(()=>Promise.all(i.map(o=>o.continue().catch(xt))))}},Ha=new WeakMap,ua=new WeakMap,pi=new WeakMap,yv);function Bu(l){var i;return(i=l.options.scope)==null?void 0:i.id}var Ba,Nn,Ct,La,Qa,Ku,Wo,gv,Kj=(gv=class extends us{constructor(o,c){super();ae(this,Qa);ae(this,Ba);ae(this,Nn);ae(this,Ct);ae(this,La);$(this,Ba,o),this.setOptions(c),this.bindMethods(),me(this,Qa,Ku).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){var d;const c=this.options;this.options=b(this,Ba).defaultMutationOptions(o),$u(this.options,c)||b(this,Ba).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,Ct),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&nl(c.mutationKey)!==nl(this.options.mutationKey)?this.reset():((d=b(this,Ct))==null?void 0:d.state.status)==="pending"&&b(this,Ct).setOptions(this.options)}onUnsubscribe(){var o;this.hasListeners()||(o=b(this,Ct))==null||o.removeObserver(this)}onMutationUpdate(o){me(this,Qa,Ku).call(this),me(this,Qa,Wo).call(this,o)}getCurrentResult(){return b(this,Nn)}reset(){var o;(o=b(this,Ct))==null||o.removeObserver(this),$(this,Ct,void 0),me(this,Qa,Ku).call(this),me(this,Qa,Wo).call(this)}mutate(o,c){var d;return $(this,La,c),(d=b(this,Ct))==null||d.removeObserver(this),$(this,Ct,b(this,Ba).getMutationCache().build(b(this,Ba),this.options)),b(this,Ct).addObserver(this),b(this,Ct).execute(o)}},Ba=new WeakMap,Nn=new WeakMap,Ct=new WeakMap,La=new WeakMap,Qa=new WeakSet,Ku=function(){var c;const o=((c=b(this,Ct))==null?void 0:c.state)??ey();$(this,Nn,{...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset})},Wo=function(o){nt.batch(()=>{var c,d,h,v,g,p,y,E;if(b(this,La)&&this.hasListeners()){const x=b(this,Nn).variables,w=b(this,Nn).context,O={client:b(this,Ba),meta:this.options.meta,mutationKey:this.options.mutationKey};if((o==null?void 0:o.type)==="success"){try{(d=(c=b(this,La)).onSuccess)==null||d.call(c,o.data,x,w,O)}catch(U){Promise.reject(U)}try{(v=(h=b(this,La)).onSettled)==null||v.call(h,o.data,null,x,w,O)}catch(U){Promise.reject(U)}}else if((o==null?void 0:o.type)==="error"){try{(p=(g=b(this,La)).onError)==null||p.call(g,o.error,x,w,O)}catch(U){Promise.reject(U)}try{(E=(y=b(this,La)).onSettled)==null||E.call(y,void 0,o.error,x,w,O)}catch(U){Promise.reject(U)}}}this.listeners.forEach(x=>{x(b(this,Nn))})})},gv),va,xv,Zj=(xv=class extends us{constructor(i={}){super();ae(this,va);this.config=i,$(this,va,new Map)}build(i,o,c){const d=o.queryKey,h=o.queryHash??pf(d,o);let v=this.get(h);return v||(v=new Bj({client:i,queryKey:d,queryHash:h,options:i.defaultQueryOptions(o),state:c,defaultOptions:i.getQueryDefaults(d)}),this.add(v)),v}add(i){b(this,va).has(i.queryHash)||(b(this,va).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const o=b(this,va).get(i.queryHash);o&&(i.destroy(),o===i&&b(this,va).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){nt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return b(this,va).get(i)}getAll(){return[...b(this,va).values()]}find(i){const o={exact:!0,...i};return this.getAll().find(c=>Xp(o,c))}findAll(i={}){const o=this.getAll();return Object.keys(i).length>0?o.filter(c=>Xp(i,c)):o}notify(i){nt.batch(()=>{this.listeners.forEach(o=>{o(i)})})}onFocus(){nt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){nt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},va=new WeakMap,xv),Ve,En,Tn,es,ts,_n,as,ns,jv,Vj=(jv=class{constructor(l={}){ae(this,Ve);ae(this,En);ae(this,Tn);ae(this,es);ae(this,ts);ae(this,_n);ae(this,as);ae(this,ns);$(this,Ve,l.queryCache||new Zj),$(this,En,l.mutationCache||new Xj),$(this,Tn,l.defaultOptions||{}),$(this,es,new Map),$(this,ts,new Map),$(this,_n,0)}mount(){qu(this,_n)._++,b(this,_n)===1&&($(this,as,mf.subscribe(async l=>{l&&(await this.resumePausedMutations(),b(this,Ve).onFocus())})),$(this,ns,Fu.subscribe(async l=>{l&&(await this.resumePausedMutations(),b(this,Ve).onOnline())})))}unmount(){var l,i;qu(this,_n)._--,b(this,_n)===0&&((l=b(this,as))==null||l.call(this),$(this,as,void 0),(i=b(this,ns))==null||i.call(this),$(this,ns,void 0))}isFetching(l){return b(this,Ve).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return b(this,En).findAll({...l,status:"pending"}).length}getQueryData(l){var o;const i=this.defaultQueryOptions({queryKey:l});return(o=b(this,Ve).get(i.queryHash))==null?void 0:o.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),o=b(this,Ve).build(this,i),c=o.state.data;return c===void 0?this.fetchQuery(l):(l.revalidateIfStale&&o.isStaleByTime(wn(i.staleTime,o))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(l){return b(this,Ve).findAll(l).map(({queryKey:i,state:o})=>{const c=o.data;return[i,c]})}setQueryData(l,i,o){const c=this.defaultQueryOptions({queryKey:l}),d=b(this,Ve).get(c.queryHash),h=d==null?void 0:d.state.data,v=wj(i,h);if(v!==void 0)return b(this,Ve).build(this,c).setData(v,{...o,manual:!0})}setQueriesData(l,i,o){return nt.batch(()=>b(this,Ve).findAll(l).map(({queryKey:c})=>[c,this.setQueryData(c,i,o)]))}getQueryState(l){var o;const i=this.defaultQueryOptions({queryKey:l});return(o=b(this,Ve).get(i.queryHash))==null?void 0:o.state}removeQueries(l){const i=b(this,Ve);nt.batch(()=>{i.findAll(l).forEach(o=>{i.remove(o)})})}resetQueries(l,i){const o=b(this,Ve);return nt.batch(()=>(o.findAll(l).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const o={revert:!0,...i},c=nt.batch(()=>b(this,Ve).findAll(l).map(d=>d.cancel(o)));return Promise.all(c).then(xt).catch(xt)}invalidateQueries(l,i={}){return nt.batch(()=>(b(this,Ve).findAll(l).forEach(o=>{o.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},i)))}refetchQueries(l,i={}){const o={...i,cancelRefetch:i.cancelRefetch??!0},c=nt.batch(()=>b(this,Ve).findAll(l).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let h=d.fetch(void 0,o);return o.throwOnError||(h=h.catch(xt)),d.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(xt)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const o=b(this,Ve).build(this,i);return o.isStaleByTime(wn(i.staleTime,o))?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(xt).catch(xt)}fetchInfiniteQuery(l){return l._type="infinite",this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(xt).catch(xt)}ensureInfiniteQueryData(l){return l._type="infinite",this.ensureQueryData(l)}resumePausedMutations(){return Fu.isOnline()?b(this,En).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,Ve)}getMutationCache(){return b(this,En)}getDefaultOptions(){return b(this,Tn)}setDefaultOptions(l){$(this,Tn,l)}setQueryDefaults(l,i){b(this,es).set(nl(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...b(this,es).values()],o={};return i.forEach(c=>{ls(l,c.queryKey)&&Object.assign(o,c.defaultOptions)}),o}setMutationDefaults(l,i){b(this,ts).set(nl(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...b(this,ts).values()],o={};return i.forEach(c=>{ls(l,c.mutationKey)&&Object.assign(o,c.defaultOptions)}),o}defaultQueryOptions(l){if(l._defaulted)return l;const i={...b(this,Tn).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=pf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===vf&&(i.enabled=!1),i}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...b(this,Tn).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){b(this,Ve).clear(),b(this,En).clear()}},Ve=new WeakMap,En=new WeakMap,Tn=new WeakMap,es=new WeakMap,ts=new WeakMap,_n=new WeakMap,as=new WeakMap,ns=new WeakMap,jv),ty=S.createContext(void 0),nr=l=>{const i=S.useContext(ty);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Jj=({client:l,children:i})=>(S.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),s.jsx(ty.Provider,{value:l,children:i})),ay=S.createContext(!1),$j=()=>S.useContext(ay);ay.Provider;function Fj(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Wj=S.createContext(Fj()),Pj=()=>S.useContext(Wj),Ij=(l,i,o)=>{const c=o!=null&&o.state.error&&typeof l.throwOnError=="function"?yf(l.throwOnError,[o.state.error,o]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||c)&&(i.isReset()||(l.retryOnMount=!1))},eb=l=>{S.useEffect(()=>{l.clearReset()},[l])},tb=({result:l,errorResetBoundary:i,throwOnError:o,query:c,suspense:d})=>l.isError&&!i.isReset()&&!l.isFetching&&c&&(d&&l.data===void 0||yf(o,[l.error,c])),ab=l=>{if(l.suspense){const o=d=>d==="static"?d:Math.max(d??1e3,1e3),c=l.staleTime;l.staleTime=typeof c=="function"?(...d)=>o(c(...d)):o(c),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},nb=(l,i)=>l.isLoading&&l.isFetching&&!i,lb=(l,i)=>(l==null?void 0:l.suspense)&&i.isPending,Ip=(l,i,o)=>i.fetchOptimistic(l).catch(()=>{o.clearReset()});function sb(l,i,o){var O,U,z,q;const c=$j(),d=Pj(),h=nr(),v=h.defaultQueryOptions(l);(U=(O=h.getDefaultOptions().queries)==null?void 0:O._experimental_beforeQuery)==null||U.call(O,v);const g=h.getQueryCache().get(v.queryHash),p=l.subscribed!==!1;v._optimisticResults=c?"isRestoring":p?"optimistic":void 0,ab(v),Ij(v,d,g),eb(d);const y=!h.getQueryCache().get(v.queryHash),[E]=S.useState(()=>new i(h,v)),x=E.getOptimisticResult(v),w=!c&&p;if(S.useSyncExternalStore(S.useCallback(H=>{const G=w?E.subscribe(nt.batchCalls(H)):xt;return E.updateResult(),G},[E,w]),()=>E.getCurrentResult(),()=>E.getCurrentResult()),S.useEffect(()=>{E.setOptions(v)},[v,E]),lb(v,x))throw Ip(v,E,d);if(tb({result:x,errorResetBoundary:d,throwOnError:v.throwOnError,query:g,suspense:v.suspense}))throw x.error;if((q=(z=h.getDefaultOptions().queries)==null?void 0:z._experimental_afterQuery)==null||q.call(z,v,x),v.experimental_prefetchInRender&&!oi.isServer()&&nb(x,c)){const H=y?Ip(v,E,d):g==null?void 0:g.promise;H==null||H.catch(xt).finally(()=>{E.updateResult()})}return v.notifyOnChangeProps?x:E.trackResult(x)}function Qt(l,i){return sb(l,Lj)}function xf(l,i){const o=nr(),[c]=S.useState(()=>new Kj(o,l));S.useEffect(()=>{c.setOptions(l)},[c,l]);const d=S.useSyncExternalStore(S.useCallback(v=>c.subscribe(nt.batchCalls(v)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h=S.useCallback((v,g)=>{c.mutate(v,g).catch(xt)},[c]);if(d.error&&yf(c.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:h,mutateAsync:d.mutate}}function jf(l){l.status===401&&window.dispatchEvent(new Event("orchestra:unauthorized"))}async function rs(l){const i=(await l.text()).trim();return new Error(i||`${l.status} ${l.statusText}`)}function Po(l){if(typeof l=="string")return l.startsWith("0001-01-01")?void 0:l;if(Array.isArray(l))return l.map(Po);if(l&&typeof l=="object"){const i={};for(const[o,c]of Object.entries(l)){const d=Po(c);d!==void 0&&(i[o]=d)}return i}return l}async function vn(l,i){const o=await fetch(l,{credentials:"same-origin",...i,headers:i!=null&&i.body?{"Content-Type":"application/json",...i.headers}:i==null?void 0:i.headers});if(!o.ok)throw jf(o),await rs(o);return Po(await o.json())}async function ib(l){const i=await fetch(l,{credentials:"same-origin"});if(!i.ok)throw jf(i),await rs(i);return i.text()}async function ub(l){const i=await fetch("/v1/artifacts",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"text/markdown"},body:l});if(!i.ok)throw jf(i),await rs(i);return(await i.json()).ref}async function rb(){const l=await fetch("/v1/ui/session",{credentials:"same-origin"});if(l.status!==401){if(!l.ok)throw await rs(l);return l.json()}}async function cb(l,i){const o=await fetch("/v1/ui/session",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:l,password:i})});if(!o.ok)throw await rs(o);return o.json()}async function ob(){const l=await fetch("/v1/ui/session",{method:"DELETE",credentials:"same-origin"});if(!l.ok)throw await rs(l)}const lt={session:rb,login:cb,logout:ob,updateAccount:l=>vn("/v1/ui/account",{method:"PUT",body:JSON.stringify(l)}),overview:()=>vn("/v1/ui/overview"),detail:l=>vn(`/v1/ui/tasks/${l}`),artifact:l=>ib(`/v1/ui/artifacts/${l}`),upload:ub,create:l=>vn("/v1/ui/tasks",{method:"POST",body:JSON.stringify(l)}),workers:()=>vn("/v1/federation/workers"),events:(l=0)=>vn(`/v1/events?since=${l}`),debt:()=>vn("/v1/debt"),action:(l,i,o={})=>vn(`/v1/ui/tasks/${l}/actions/${i}`,{method:"POST",body:JSON.stringify(o)})};function Be({name:l,size:i=20}){return s.jsx("svg",{width:i,height:i,"aria-hidden":"true",focusable:"false",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("use",{href:`/ethos-icons.svg#i-${l}`})})}function fb({onClose:l,onNavigate:i}){const[o,c]=S.useState(""),[d,h]=S.useState(0),v=S.useRef(null);S.useEffect(()=>{var p;return(p=v.current)==null?void 0:p.focus()},[]);const g=S.useMemo(()=>{const p=o.trim().toLowerCase();return ny.filter(y=>!p||y.label.toLowerCase().includes(p))},[o]);return S.useEffect(()=>h(0),[o]),s.jsx("div",{className:"cmdk-scrim",onClick:l,role:"presentation",children:s.jsxs("div",{className:"cmdk-panel",onClick:p=>p.stopPropagation(),children:[s.jsx("input",{ref:v,className:"cmdk-input",placeholder:"Search tasks, decisions, workers…",value:o,onChange:p=>c(p.target.value),onKeyDown:p=>{p.key==="ArrowDown"&&h(y=>Math.min(y+1,g.length-1)),p.key==="ArrowUp"&&h(y=>Math.max(y-1,0)),p.key==="Enter"&&g[d]&&i(g[d].to)}}),s.jsxs("div",{className:"cmdk-list",children:[g.map((p,y)=>s.jsx("button",{className:"cmdk-row","data-active":y===d,onMouseEnter:()=>h(y),onClick:()=>i(p.to),children:p.label},p.to)),g.length===0&&s.jsx("p",{style:{padding:"14px 10px",color:"var(--text-mid)",margin:0},children:"Nothing matches that."})]})]})})}const ny=[{to:"/",icon:"home",label:"Dashboard",end:!0},{to:"/tasks",icon:"task",label:"Tasks"},{to:"/decisions",icon:"decision",label:"Decisions"},{to:"/workers",icon:"worker",label:"Workers"},{to:"/projects",icon:"project",label:"Projects"},{to:"/review",icon:"review",label:"Review"},{to:"/settings",icon:"settings",label:"Settings",secondary:!0}];function db(){const[l,i]=S.useState(()=>new Date);return S.useEffect(()=>{const o=setInterval(()=>i(new Date),1e3);return()=>clearInterval(o)},[]),s.jsxs("span",{children:[l.toISOString().slice(11,19)," UTC"]})}function hb({revision:l,live:i}){const[o,c]=S.useState(!1),d=qv();return S.useEffect(()=>{const h=v=>{(v.metaKey||v.ctrlKey)&&v.key.toLowerCase()==="k"&&(v.preventDefault(),c(g=>!g)),v.key==="Escape"&&c(!1)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[]),s.jsxs("div",{className:"console shell",children:[s.jsxs("nav",{className:"rail","aria-label":"Primary",children:[s.jsx("span",{className:"rail-mark",children:s.jsx(Be,{name:"fork",size:26})}),ny.map(h=>s.jsx(Gv,{to:h.to,end:h.end,className:"rail-item","data-secondary":h.secondary?"true":void 0,title:h.label,"aria-label":h.label,children:s.jsx(Be,{name:h.icon})},h.to)),s.jsx("span",{className:"rail-spacer"})]}),s.jsxs("div",{className:"main",children:[s.jsxs("header",{className:"topbar",children:[s.jsx("span",{className:"topbar-title",children:"orchestra"}),s.jsxs("button",{className:"cmdk-trigger",onClick:()=>c(!0),children:[s.jsx("kbd",{children:"⌘K"}),s.jsx("span",{children:"Search tasks, decisions, workers…"})]}),s.jsxs("div",{className:"topbar-readouts",children:[l&&s.jsx("span",{title:l,children:l.slice(0,7)}),s.jsxs("span",{children:[s.jsx("span",{className:"dot","data-health":i?"healthy":"unknown"})," ",i?"Live":"Unknown"]}),s.jsx(db,{})]})]}),s.jsx(Qx,{})]}),o&&s.jsx(fb,{onClose:()=>c(!1),onNavigate:h=>{c(!1),d(h)}})]})}function B({children:l}){return s.jsx("span",{className:"mono",children:l})}function Ne({title:l,count:i,trailing:o,children:c,bodied:d=!1}){return s.jsxs("section",{className:"panel",children:[l&&s.jsxs("header",{className:"panel-head",children:[s.jsx("h2",{children:l}),i!==void 0&&s.jsx("span",{className:"count",children:i}),o&&s.jsx("span",{className:"trailing",children:o})]}),d?s.jsx("div",{className:"panel-body",children:c}):c]})}function ll({health:l}){return s.jsx("span",{className:"dot","data-health":l})}function Ge({tone:l,children:i}){return s.jsx("span",{className:"chip","data-tone":l,children:i})}const Io=["frame","research","plan","implement","review","pr","merged"];function bf({current:l,labels:i=!0}){const o=Io.indexOf(l||"frame");return s.jsx("div",{className:"phases",children:Io.map((c,d)=>{const h=d<o?"done":d===o?"current":"todo";return s.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[d>0&&s.jsx("span",{className:"phase-link","data-state":d<=o?"done":"todo"}),s.jsxs("span",{className:"phase-step","data-state":h,children:[s.jsx("span",{className:"phase-node"}),i&&s.jsx("span",{className:"phase-name",children:c})]})]},c)})})}function ea({title:l,children:i}){return s.jsxs("div",{className:"empty",children:[s.jsx("span",{className:"motif",children:s.jsx(Be,{name:"fork",size:28})}),s.jsx("h3",{children:l}),i]})}function ta({path:l,what:i}){return s.jsxs("div",{className:"panel-body",children:[s.jsxs("p",{className:"gap-note",children:["no endpoint yet: ",l]}),s.jsx("p",{style:{color:"var(--text-mid)",marginBottom:0},children:i})]})}const Wu=l=>l.work_phase,ly=()=>Date.now();function Pu(l){if(!l||l.startsWith("0001-01-01"))return;const i=Math.max(0,Math.round((ly()-Date.parse(l))/1e3));if(Number.isFinite(i))return i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:i<86400?`${Math.floor(i/3600)}h ago`:`${Math.floor(i/86400)}d ago`}function sy(l){if(!l)return;const i=Math.round((Date.parse(l)-ly())/1e3);if(!Number.isFinite(i))return;if(i<=0)return"expired";const o=Math.floor(i/60);return`${String(o).padStart(2,"0")}:${String(i%60).padStart(2,"0")}`}const Sf=l=>l.length>14?`${l.slice(0,6)}${l.slice(-4)}`:l,ev={trajectory_gate:"A trajectory gate is waiting for your steering.",human_decision:"The agent asked for a decision it may not make itself.",operator_required:"Orchestra cannot proceed without an operator action.",approval:"A tool or edit approval is pending.",handoff_validation:"The handoff failed validation and was not accepted.",lease_failure:"The lease could not be established.",lease_expired:"The lease expired before the agent finished.",worker_offline:"The worker holding this task went offline.",system_error:"Orchestra hit an error it could not retry past.",operator_block:"You blocked this task.",unknown:"Blocked for a reason orchestra could not classify."},mb={in_review:"A pull request is waiting on review.",failed:"The task failed and will not retry on its own.",needs_attention:"Orchestra flagged this task for you.",blocked:"The task is blocked."};function pb(l){return l.block_reason&&ev[l.block_reason]?ev[l.block_reason]:mb[l.state]??"Waiting on you."}const vb=l=>l.state==="needs_attention"||l.state==="blocked"||l.state==="failed"||l.state==="in_review";function yb(l,i){return i.find(o=>{var c;return((c=o.capture)==null?void 0:c.task_id)===l.id||l.last_pane_id!==void 0&&o.pane_id===l.last_pane_id||l.lease!==void 0&&o.harness_id===l.lease.harness_id})}function gb(l){return l.state==="in_review"?"review":l.block_reason==="trajectory_gate"?"fork":l.block_reason==="human_decision"||l.block_reason==="approval"?"decision":"alert"}function xb({tasks:l}){return s.jsx(Ne,{title:"Needs your attention",count:l.length,trailing:s.jsx(We,{to:"/tasks",children:"View all"}),children:l.length===0?s.jsx(ea,{title:"Nothing is waiting on you",children:s.jsx("p",{children:"Blocked tasks, trajectory gates and open reviews land here."})}):s.jsx("div",{className:"rows",children:l.map(i=>s.jsxs(We,{className:"row",to:`/tasks/${i.id}`,children:[s.jsx("span",{className:"att-mark","data-kind":i.state==="in_review"?"review":"fault",children:s.jsx(Be,{name:gb(i),size:18})}),s.jsxs("span",{className:"row-main",children:[s.jsx("span",{className:"row-title",children:i.title||"Untitled task"}),s.jsx("span",{className:"row-sub",children:pb(i)})]}),s.jsxs("span",{className:"att-task",children:[s.jsx("span",{className:"row-title",children:i.title?i.project:i.id}),s.jsxs("span",{className:"row-sub",children:[s.jsx(B,{children:Sf(i.id)}),Wu(i)&&s.jsxs(s.Fragment,{children:[" · ",s.jsx(B,{children:Wu(i)})]})]})]}),i.blocked_at&&s.jsx("span",{className:"mono att-when",children:Pu(i.blocked_at)}),s.jsx(Ge,{tone:i.state==="in_review"?"accent":"warn",children:i.block_reason??i.state}),s.jsx(Be,{name:"chevron-right",size:16})]},i.id))})})}function jb({tasks:l,sessions:i}){return s.jsxs(Ne,{title:"Running tasks",count:l.length,trailing:s.jsx(We,{to:"/tasks",children:"View all tasks"}),children:[l.length===0?s.jsx(ea,{title:"No task holds a lease",children:s.jsx("p",{children:"Leased sessions appear here with their phase, worker and lease clock."})}):s.jsx("div",{className:"table-scroll",children:s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Task"}),s.jsx("th",{children:"Phase"}),s.jsx("th",{children:"Worker / harness"}),s.jsx("th",{children:"Last progress"}),s.jsx("th",{children:"Lease ends in"}),s.jsx("th",{children:"Attempt"}),s.jsx("th",{})]})}),s.jsx("tbody",{children:l.map(o=>{var h,v,g;const c=yb(o,i),d=sy((h=o.lease)==null?void 0:h.until);return s.jsxs("tr",{children:[s.jsx("td",{children:s.jsxs(We,{className:"cell-link",to:`/tasks/${o.id}`,children:[s.jsx("span",{className:"row-title",children:o.title||"Untitled task"}),s.jsx("span",{className:"row-sub",children:s.jsx(B,{children:Sf(o.id)})})]})}),s.jsx("td",{children:s.jsxs("div",{className:"phase-cell",children:[s.jsx(Ge,{tone:"accent",children:Wu(o)??"unknown"}),s.jsx(bf,{current:Wu(o)})]})}),s.jsxs("td",{children:[s.jsx("span",{className:"row-title mono",children:((v=o.lease)==null?void 0:v.harness_id)??"—"}),s.jsx("span",{className:"row-sub",children:s.jsx(B,{children:(c==null?void 0:c.pane_id)??o.last_pane_id??"pane unknown"})})]}),s.jsx("td",{children:(g=c==null?void 0:c.capture)!=null&&g.at?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"mono",children:Pu(c.capture.at)}),s.jsxs("span",{className:"row-sub",children:["capture ",s.jsxs(B,{children:["r",c.capture.revision]})]})]}):s.jsx("span",{className:"row-sub",children:"no capture yet"})}),s.jsxs("td",{children:[s.jsx("span",{className:"mono","data-expired":d==="expired"?"":void 0,children:d??"—"}),(c==null?void 0:c.agent_status)&&s.jsx("span",{className:"row-sub",children:c.agent_status})]}),s.jsx("td",{children:s.jsx(B,{children:o.attempt??1})}),s.jsx("td",{children:s.jsx(We,{className:"cell-link",to:`/tasks/${o.id}`,"aria-label":"Open task",children:s.jsx(Be,{name:"chevron-right",size:16})})})]},o.id)})})]})}),s.jsx(ta,{path:"GET /v1/ui/overview → session.context",what:"Context occupancy per session is measured by the herdr adapter but is not carried on the overview projection, so this table shows lease time instead of a context meter."})]})}function bb({workers:l,tasks:i}){const o=l.filter(p=>p.online).length,c=l.filter(p=>p.health.herdr_status==="reachable").length,d=l.filter(p=>p.health.herdr_status==="unreachable").length,h=i.filter(p=>p.lease),v=h.filter(p=>{var y;return sy((y=p.lease)==null?void 0:y.until)==="expired"}).length,g=l.filter(p=>p.health.last_error);return s.jsxs(Ne,{title:"System state and capacity",trailing:s.jsx(We,{to:"/workers",children:"View workers"}),children:[s.jsxs("div",{className:"panel-body",children:[s.jsxs("div",{className:"grid stats",children:[s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Workers online"}),s.jsxs("span",{className:"stat-value",children:[o," / ",l.length]}),s.jsxs("span",{className:"row-sub",children:[s.jsx(B,{children:l.reduce((p,y)=>p+y.capacity,0)})," total capacity"]})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Active leases"}),s.jsx("span",{className:"stat-value",children:h.length}),s.jsxs("span",{className:"row-sub",children:[s.jsx(B,{children:v})," past their lease end"]})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Herdr backends"}),s.jsxs("span",{className:"stat-value",children:[c," / ",l.length]}),s.jsxs("span",{className:"row-sub",children:[s.jsx(B,{children:d})," unreachable, from worker health"]})]})]}),s.jsx("div",{className:"worker-lines",children:l.length===0?s.jsx("p",{className:"row-sub",children:"No worker has ever registered."}):l.map(p=>{var y;return s.jsxs(We,{className:"worker-line",to:"/workers",children:[s.jsx(ll,{health:p.online?p.health.herdr_status==="reachable"?"healthy":p.health.herdr_status==="unreachable"?"degraded":"unknown":"error"}),s.jsx("span",{className:"mono",children:p.id}),s.jsx("span",{className:"row-sub",children:p.health.backend??"backend unknown"}),s.jsxs("span",{className:"mono worker-seen",children:["seen ",Pu(p.last_seen)??"—"]}),p.health.active_task_id&&s.jsx("span",{className:"mono",children:Sf(p.health.active_task_id)}),((y=p.build)==null?void 0:y.revision)&&s.jsx("span",{className:"mono",children:p.build.revision.slice(0,7)})]},p.id)})}),g.length>0&&s.jsx("div",{className:"worker-errors",children:g.map(p=>s.jsxs("p",{children:[s.jsx("span",{className:"mono",children:p.id})," ",s.jsx("span",{className:"row-sub",children:p.health.last_error})," ",s.jsx("span",{className:"mono",children:Pu(p.health.error_at)??""})]},p.id))})]}),s.jsx(ta,{path:"GET /v1/quota, GET /v1/router, GET /v1/sources",what:"Quota headroom, router queue depth and rejections, and source reconciliation state have no endpoint. Nothing here stands in for them."})]})}function Sb(){var h,v,g;const l=Qt({queryKey:["overview"],queryFn:lt.overview,refetchInterval:5e3}),i=Qt({queryKey:["workers"],queryFn:lt.workers,refetchInterval:5e3}),o=((h=l.data)==null?void 0:h.tasks)??[],c=((v=l.data)==null?void 0:v.sessions)??[],d=i.data??((g=l.data)==null?void 0:g.workers)??[];return s.jsxs("main",{className:"page",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Dashboard"}),s.jsx("p",{children:"What needs you, what is running, and whether the system is healthy."}),s.jsx("span",{className:"head-stamp",children:l.data?s.jsxs(s.Fragment,{children:["read ",s.jsxs(B,{children:[new Date(l.data.updated_at).toISOString().slice(11,19)," UTC"]})]}):l.isError?s.jsxs("span",{className:"stamp-fault",children:["overview unreachable — ",String(l.error)]}):"reading the first snapshot"})]}),s.jsx(xb,{tasks:o.filter(vb)}),s.jsx(jb,{tasks:o.filter(p=>p.state==="leased"),sessions:c}),s.jsx(bb,{workers:d,tasks:o})]})}const tv=[{key:"attention",title:"Needs attention",icon:"alert",open:!0},{key:"running",title:"Running",icon:"play",open:!0},{key:"waiting",title:"Waiting / queued",icon:"queue",open:!0},{key:"completed",title:"Completed",icon:"check",open:!1},{key:"failed",title:"Failed",icon:"x",open:!1}];function Lu(l){switch(l.state){case"needs_attention":case"blocked":return"attention";case"leased":return"running";case"completed":return"completed";case"failed":return"failed";default:return"waiting"}}function ef(l){var i;return((i=l.lease)==null?void 0:i.harness_id)||l.last_harness_id||""}function Nb(l){if(l.state==="failed"||l.state==="blocked")return"fault";if(l.state==="needs_attention")return"warn";if(l.state==="completed")return"done";if(l.state==="leased")return"accent"}function Eb(l){if(!l)return"";const i=Date.now()-Date.parse(l);return Number.isFinite(i)?`${Zu(i)} ago`:""}function Zu(l){const i=Math.max(0,Math.round(l/1e3));return i<60?`${i}s`:i<3600?`${Math.round(i/60)}m`:i<86400?`${Math.round(i/3600)}h`:`${Math.round(i/86400)}d`}function Tb(l){var i;if((i=l.lease)!=null&&i.until){const o=Date.parse(l.lease.until)-Date.now();return o>0?{label:"lease",value:`${Zu(o)} left`}:{label:"lease",value:`expired ${Zu(-o)} ago`}}if(l.blocked_at)return{label:"blocked",value:Eb(l.blocked_at)};if(l.next_retry_at){const o=Date.parse(l.next_retry_at)-Date.now();return{label:"retry",value:o>0?`in ${Zu(o)}`:"due"}}if(l.due)return{label:"due",value:l.due.slice(0,10)}}function zo(l){return[...new Set(l.filter(i=>!!i))].sort()}function Qu({label:l,value:i,options:o,onChange:c}){return s.jsxs("label",{className:"tasks-filter",children:[s.jsx("span",{className:"label",children:l}),s.jsxs("select",{value:i,onChange:d=>c(d.target.value),children:[s.jsx("option",{value:"",children:"any"}),o.map(d=>s.jsx("option",{value:d,children:d},d))]})]})}function _b({task:l,agentStatus:i}){const o=ef(l),c=Tb(l);return s.jsxs(We,{className:"row task-row",to:`/tasks/${l.id}`,children:[s.jsxs("span",{className:"task-row-main",children:[s.jsx("span",{className:"row-title",children:l.title||l.external_id||"untitled task"}),s.jsxs("span",{className:"row-sub",children:[l.project," · ",s.jsx(B,{children:l.external_id||l.id})]})]}),s.jsxs("span",{className:"task-row-phase tasks-phases",children:[s.jsx(bf,{current:l.lifecycle_phase,labels:!1}),s.jsx("span",{className:"task-row-phase-name mono",children:l.lifecycle_phase||"—"})]}),s.jsx("span",{className:"task-row-worker",children:o?s.jsxs(s.Fragment,{children:[s.jsx(B,{children:o}),l.last_pane_id&&s.jsx("span",{className:"row-sub mono",children:l.last_pane_id})]}):s.jsx("span",{className:"row-sub",children:"unassigned"})}),s.jsx("span",{className:"task-row-when",children:c&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"label",children:c.label}),s.jsx(B,{children:c.value})]})}),s.jsxs("span",{className:"task-row-status",children:[i&&s.jsx(Ge,{children:i}),s.jsx(Ge,{tone:Nb(l),children:l.block_reason||l.state})]}),s.jsx(Be,{name:"chevron-right",size:16})]})}function wb({title:l,icon:i,open:o,tasks:c,statusFor:d}){return s.jsxs("details",{className:"panel tasks-group",open:o&&c.length>0,children:[s.jsxs("summary",{className:"panel-head",children:[s.jsx(Be,{name:i,size:17}),s.jsx("h2",{children:l}),s.jsx("span",{className:"count",children:c.length}),s.jsx(Be,{name:"chevron-right",size:16})]}),c.length?s.jsx("div",{className:"rows",children:c.map(h=>s.jsx(_b,{task:h,agentStatus:d(h)},h.id))}):s.jsx(ea,{title:"Nothing here"})]})}function Cb(){const{data:l,isLoading:i,error:o}=Qt({queryKey:["overview"],queryFn:lt.overview,refetchInterval:5e3}),[c,d]=S.useState(""),[h,v]=S.useState(""),[g,p]=S.useState(""),[y,E]=S.useState(""),[x,w]=S.useState(""),O=S.useMemo(()=>(l==null?void 0:l.tasks)??[],[l]),U=S.useMemo(()=>{const G=new Map(((l==null?void 0:l.sessions)??[]).map(K=>[K.pane_id,K]));return K=>{var Z;return K.state==="leased"?(Z=G.get(K.last_pane_id))==null?void 0:Z.agent_status:void 0}},[l]),z=O.filter(G=>!(c&&G.project!==c||h&&G.lifecycle_phase!==h||g&&ef(G)!==g||y==="needs"&&Lu(G)!=="attention"||y==="clear"&&Lu(G)==="attention"||y&&y!=="needs"&&y!=="clear"&&G.block_reason!==y)),q=G=>z.filter(K=>Lu(K)===G).length,H=tv.filter(G=>!x||G.key===x);return s.jsxs("main",{className:"page",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Tasks"}),s.jsx("p",{children:"All work under orchestration."}),s.jsx("span",{className:"count mono",children:O.length})]}),s.jsxs("div",{className:"tasks-controls",children:[s.jsxs("div",{className:"tasks-tabs",role:"tablist",children:[s.jsxs("button",{type:"button",role:"tab","aria-selected":x==="",className:"tasks-tab",onClick:()=>w(""),children:["All ",s.jsx("span",{className:"mono",children:z.length})]}),tv.map(G=>s.jsxs("button",{type:"button",role:"tab","aria-selected":x===G.key,className:"tasks-tab",onClick:()=>w(x===G.key?"":G.key),children:[G.title," ",s.jsx("span",{className:"mono",children:q(G.key)})]},G.key))]}),s.jsxs("div",{className:"tasks-filters",children:[s.jsx(Qu,{label:"Project",value:c,options:zo(O.map(G=>G.project)),onChange:d}),s.jsx(Qu,{label:"Phase",value:h,options:[...Io],onChange:v}),s.jsx(Qu,{label:"Worker",value:g,options:zo(O.map(ef)),onChange:p}),s.jsx(Qu,{label:"Attention",value:y,options:["needs","clear",...zo(O.map(G=>G.block_reason))],onChange:E})]})]}),o&&s.jsx("div",{className:"panel panel-body",children:s.jsxs("p",{className:"gap-note",children:["/v1/ui/overview failed: ",o.message]})}),i&&!l&&s.jsx("div",{className:"panel panel-body",children:s.jsx("p",{className:"gap-note",children:"loading /v1/ui/overview…"})}),l&&!O.length&&s.jsx("div",{className:"panel",children:s.jsx(ea,{title:"No tasks yet",children:s.jsx("p",{children:"Orchestra has no work on record. Ingest a task to start."})})}),l&&O.length>0&&H.map(G=>s.jsx(wb,{title:G.title,icon:G.icon,open:G.open||!!x,tasks:z.filter(K=>Lu(K)===G.key),statusFor:U},G.key)),l&&O.length>0&&s.jsx("div",{className:"panel",children:s.jsx(ta,{path:"/v1/ui/overview carries no per-task progress, ETA or context occupancy",what:"Rows show lease, block and retry times because those are the only per-task clocks orchestra records. Progress bars and context meters are left out rather than estimated."})})]})}const Gl=l=>l?new Date(l).toISOString().slice(11,19):"—";function Ob(l){if(!l)return"—";const i=Math.max(0,Math.round((Date.now()-Date.parse(l))/1e3));return i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:`${Math.floor(i/3600)}h ago`}function Ab(l){if(!l)return;const i=Math.round((Date.parse(l)-Date.now())/1e3);return i<=0?"expired":`${String(Math.floor(i/60)).padStart(2,"0")}:${String(i%60).padStart(2,"0")}`}function Rb(l){var c;const i=[],o=new Set;for(const d of l){const h=d.payload??{};h.decision_id&&(d.type==="HumanDecisionRecorded"?(i.push({id:h.decision_id,kind:h.kind??"decision",subject:h.subject??"",value:h.value??"",at:d.at,standing:!0}),(c=h.supersedes)==null||c.forEach(v=>o.add(v))):d.type==="HumanDecisionSuperseded"&&o.add(h.decision_id))}return i.map(d=>({...d,standing:!o.has(d.id)}))}function Mb(l){return l.filter(i=>i.type==="WorkPhaseChanged").map(i=>{var o;return{phase:((o=i.payload)==null?void 0:o.phase)??"",at:i.at}}).filter(i=>i.phase)}function zb(l){const i=(l??"").split(`
`).map(o=>o.trimEnd()).filter(o=>o.trim());return i[i.length-1]}function Db(l){if(l.state==="blocked"||l.state==="failed"||l.state==="needs_attention")return"fault";if(l.state==="completed")return"done";if(l.state==="leased")return"accent"}function Ub(){var K,Z,W;const{id:l=""}=Hv(),i=nr(),o=Qt({queryKey:["task",l],queryFn:()=>lt.detail(l),refetchInterval:5e3}),c=xf({mutationFn:J=>lt.action(l,J),onSuccess:()=>i.invalidateQueries({queryKey:["task",l]})});if(o.isError)return s.jsxs("main",{className:"page",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"Task"})}),s.jsx(Ne,{children:s.jsx("div",{className:"panel-body",children:s.jsx("p",{className:"gap-note",children:String(o.error.message)})})})]});if(!o.data)return s.jsx("main",{className:"page",children:s.jsxs("p",{className:"mono",children:["reading /v1/ui/tasks/",l,"…"]})});const d=o.data,h=d.task,v=d.session,g=v==null?void 0:v.capture,p=v==null?void 0:v.pending_approval,y=Rb(d.events),E=y.filter(J=>J.standing),x=E.filter(J=>J.kind==="constraint"),w=E.filter(J=>J.kind!=="constraint"),O=y.filter(J=>!J.standing),U=h.acceptance??[],z=U.slice(0,4),q=(v==null?void 0:v.lease_until)??((K=h.lease)==null?void 0:K.until),H=zb(g==null?void 0:g.text),G=Mb(d.events);return s.jsxs("main",{className:"page",children:[s.jsxs("header",{className:"td-top",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:h.title||h.external_id||"untitled task"}),s.jsxs(Ge,{tone:"accent",children:[h.work_phase||"frame"," phase"]}),s.jsx(Ge,{tone:Db(h),children:h.state})]}),s.jsxs("div",{className:"td-actions",children:[s.jsx(kb,{actions:d.actions,pending:c.isPending,run:c.mutate}),s.jsxs("button",{className:"btn","data-variant":"primary",disabled:!0,title:"no endpoint yet",children:[s.jsx(Be,{name:"decision",size:16}),"Steer / Correct"]})]})]}),s.jsxs("div",{className:"td-ids",children:[s.jsx("span",{className:"label",children:"task id"}),s.jsx(B,{children:h.id}),s.jsx("span",{className:"label",children:"epoch"}),s.jsx(B,{children:((Z=h.lease)==null?void 0:Z.epoch)||h.last_lease_epoch||"—"}),s.jsx("span",{className:"label",children:"project"}),s.jsx(B,{children:h.project}),s.jsx("span",{className:"label",children:"version"}),s.jsx(B,{children:h.version})]}),c.isError&&s.jsx("p",{className:"gap-note",children:String(c.error.message)}),s.jsxs("div",{className:"td-columns",children:[s.jsx(Ne,{title:"What we're doing",children:s.jsxs("div",{className:"panel-body td-doing",children:[s.jsx("h3",{className:"label",children:"goal"}),s.jsx("p",{className:"td-prose",children:h.description||h.title||"No goal recorded."}),s.jsxs("h3",{className:"label",children:["acceptance ",s.jsx(B,{children:U.length})]}),U.length===0?s.jsx("p",{className:"td-muted",children:"No acceptance criteria on the contract."}):s.jsxs(s.Fragment,{children:[s.jsx("ul",{className:"td-list",children:z.map(J=>s.jsx("li",{children:J},J))}),U.length>z.length&&s.jsxs("details",{className:"td-more",children:[s.jsxs("summary",{children:[s.jsxs(B,{children:["+",U.length-z.length]})," more criteria"]}),s.jsx("ul",{className:"td-list",children:U.slice(z.length).map(J=>s.jsx("li",{children:J},J))})]})]}),h.quality_gate&&s.jsxs("p",{className:"td-muted",children:[s.jsx("span",{className:"label",children:"quality gate"})," ",s.jsx(B,{children:h.quality_gate})]}),w.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("h3",{className:"label",children:"effective human decisions"}),s.jsx("ul",{className:"td-decisions",children:w.map(J=>s.jsxs("li",{children:[s.jsx("span",{className:"td-kind",children:J.kind}),s.jsx("span",{className:"td-subject",children:J.subject}),s.jsx("span",{className:"td-value",children:J.value}),s.jsx(B,{children:Gl(J.at)})]},J.id))})]}),x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("h3",{className:"label",children:"active constraints"}),s.jsx("ul",{className:"td-decisions",children:x.map(J=>s.jsxs("li",{children:[s.jsx("span",{className:"td-kind",children:"constraint"}),s.jsx("span",{className:"td-subject",children:J.subject}),s.jsx("span",{className:"td-value",children:J.value}),s.jsx(B,{children:Gl(J.at)})]},J.id))})]}),O.length>0&&s.jsxs("details",{className:"td-more td-superseded",children:[s.jsxs("summary",{children:[s.jsx(B,{children:O.length})," superseded ",O.length===1?"decision":"decisions"]}),s.jsx("ul",{className:"td-decisions",children:O.map(J=>s.jsxs("li",{children:[s.jsx("span",{className:"td-kind",children:J.kind}),s.jsx("span",{className:"td-subject",children:J.subject}),s.jsx("span",{className:"td-value",children:J.value}),s.jsx(B,{children:Gl(J.at)})]},J.id))})]})]})}),s.jsx(Ne,{title:"Live execution",trailing:v!=null&&v.agent_status?s.jsx(Ge,{tone:v.agent_status==="blocked"?"fault":"accent",children:v.agent_status}):s.jsx("span",{className:"mono",children:"no session"}),children:s.jsxs("div",{className:"panel-body",children:[s.jsxs("div",{className:"td-exec",children:[s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"worker / harness"}),s.jsx(B,{children:(v==null?void 0:v.harness_id)||((W=h.lease)==null?void 0:W.harness_id)||h.last_harness_id||"—"})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"pane"}),s.jsx(B,{children:(v==null?void 0:v.pane_id)||h.last_pane_id||"—"}),s.jsx("span",{className:"td-muted",children:s.jsx(B,{children:h.pane_state||"unknown"})})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"lease remaining"}),s.jsx("span",{className:"stat-value",children:Ab(q)??"—"}),s.jsxs("span",{className:"td-muted",children:["until ",s.jsx(B,{children:Gl(q)})]})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"last progress"}),s.jsx("span",{className:"stat-value",children:Ob(g==null?void 0:g.at)}),s.jsxs("span",{className:"td-muted",children:["capture rev ",s.jsx(B,{children:(g==null?void 0:g.revision)??"—"})]})]})]}),s.jsx(ta,{path:"/v1/ui/tasks/:id (no context accounting on session)",what:"Context occupancy — tokens used against the harness window — has no field in the read model, so no meter is drawn."}),s.jsxs("h3",{className:"label td-claim-head",children:["current activity",s.jsxs("span",{className:"td-claim-tag",children:["agent-supplied · pane capture",g!=null&&g.source?` · ${g.source}`:""]})]}),H?s.jsxs("p",{className:"td-claim",children:[s.jsx(B,{children:H}),s.jsx("span",{className:"td-claim-at",children:s.jsx(B,{children:Gl(g==null?void 0:g.at)})})]}):s.jsx("p",{className:"td-muted",children:"No capture from the owning worker."}),p&&s.jsxs("div",{className:"td-approval",children:[s.jsx("span",{className:"label",children:"pending approval"}),s.jsx("p",{className:"td-prose",children:p.summary}),p.command&&s.jsx(B,{children:p.command}),s.jsxs("div",{className:"td-approval-row",children:[s.jsxs("span",{className:"mono",children:[p.pane_id," · rev ",p.capture_revision]}),s.jsx("button",{className:"btn","data-variant":"primary",disabled:c.isPending,onClick:()=>c.mutate("grant_approval"),children:"Grant"}),s.jsx("button",{className:"btn",disabled:c.isPending,onClick:()=>c.mutate("deny_approval"),children:"Deny"})]})]}),s.jsxs("div",{className:"td-links",children:[s.jsxs(We,{className:"btn",to:`/tasks/${h.id}/terminal`,children:[s.jsx(Be,{name:"terminal",size:16}),"Open live pane"]}),h.handoff_ref&&s.jsxs("a",{className:"btn",href:`/v1/ui/artifacts/${h.handoff_ref}`,children:[s.jsx(Be,{name:"file",size:16}),"Handoff"]}),d.report_ref&&s.jsxs("a",{className:"btn",href:`/v1/ui/artifacts/${d.report_ref}`,children:[s.jsx(Be,{name:"file",size:16}),"Report"]})]}),s.jsx(ta,{path:"/v1/ui/tasks/:id/{logs,launch_context,diff}",what:"Worker logs, launch context and git diff have no endpoint, so those links are not offered."})]})})]}),s.jsx(Ne,{title:"Workflow",trailing:s.jsx("span",{className:"mono",children:"ace-fca"}),children:s.jsxs("div",{className:"panel-body td-flow",children:[s.jsx(bf,{current:h.work_phase}),G.length>0?s.jsx("div",{className:"td-entries",children:G.map(J=>s.jsxs("span",{children:[s.jsx("span",{className:"td-entry-phase",children:J.phase})," entered ",s.jsx(B,{children:Gl(J.at)})]},`${J.phase}-${J.at}`))}):s.jsx("p",{className:"td-muted",children:"No WorkPhaseChanged event in this task's log — the path shows the current phase only."})]})})]})}function kb({actions:l,pending:i,run:o}){return s.jsxs("details",{className:"td-menu",children:[s.jsxs("summary",{className:"btn",children:["Actions ",s.jsx(Be,{name:"chevron-right",size:16})]}),s.jsx("div",{className:"td-menu-body",children:l.map(c=>{var h,v,g;const d=!c.enabled||(((h=c.needs)==null?void 0:h.length)??0)>0;return s.jsx("button",{className:"row",disabled:d||i,onClick:()=>o(c.id),title:(v=c.needs)!=null&&v.length?`needs ${c.needs.join(", ")}`:c.reason,children:s.jsxs("span",{className:"row-main",children:[s.jsx("span",{className:"row-title",children:c.id}),s.jsx("span",{className:"row-sub",children:(g=c.needs)!=null&&g.length?`needs ${c.needs.join(", ")}`:c.enabled?c.reason||"":c.reason||"unavailable"})]})},c.id)})})]})}function av(l){if(!l)return"—";const i=Math.max(0,Math.round((Date.now()-new Date(l).getTime())/1e3));return i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:`${Math.floor(i/3600)}h ago`}function Xl(l){return l?new Date(l).toISOString().slice(11,19):"—"}function qb(l){if(!l)return"—";const i=Math.round((new Date(l).getTime()-Date.now())/1e3);if(i<=0)return"expired";const o=Math.floor(i/60);return`${String(o).padStart(2,"0")}:${String(i%60).padStart(2,"0")}`}function yt({label:l,value:i}){return s.jsxs("div",{className:"term-field",children:[s.jsx("span",{className:"label",children:l}),s.jsx("span",{className:"term-field-value",children:i})]})}function Hb(){var Z,W,J,te,ne,ce,_e,He,X,de,pe;const{id:l=""}=Hv(),i=nr(),o=Qt({queryKey:["detail",l],queryFn:()=>lt.detail(l),refetchInterval:3e3}),[c,d]=S.useState(),[h,v]=S.useState(),[g,p]=S.useState(!1),[y,E]=S.useState(!0),x=S.useRef(null),w=(Z=o.data)==null?void 0:Z.task,O=(W=o.data)==null?void 0:W.session,U=O==null?void 0:O.capture;S.useEffect(()=>{if(U){d(U),v(void 0);return}o.isSuccess&&(w==null?void 0:w.state)==="leased"&&v(se=>se??new Date().toISOString())},[U,o.isSuccess,w==null?void 0:w.state]),S.useEffect(()=>{const se=x.current;se&&y&&(se.scrollTop=se.scrollHeight)},[c==null?void 0:c.revision,y]);const z=xf({mutationFn:()=>lt.action(l,"resubmit"),onSuccess:se=>i.setQueryData(["detail",l],se)}),q=((te=(J=o.data)==null?void 0:J.actions.find(se=>se.id==="resubmit"))==null?void 0:te.enabled)??!1,H=!!h&&!!c,G=(O==null?void 0:O.agent_status)||(w==null?void 0:w.pane_state)||"unknown",K=H?"error":G==="blocked"?"degraded":"healthy";return o.isLoading?s.jsxs("main",{className:"page",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"Terminal"})}),s.jsx(Ne,{children:s.jsx("div",{className:"panel-body",children:"Reading the pane…"})})]}):o.isError||!w?s.jsxs("main",{className:"page",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"Terminal"})}),s.jsx(Ne,{children:s.jsx(ea,{title:"No such task",children:s.jsxs("p",{children:[s.jsx(B,{children:l})," is not in the store, so there is no pane to show."]})})})]}):s.jsxs("main",{className:"page term",children:[s.jsxs("div",{className:"page-head term-head",children:[s.jsx("h1",{children:"Terminal — live pane"}),H?s.jsx(Ge,{tone:"fault",children:"Pane lost"}):U?s.jsx(Ge,{tone:"accent",children:"Live"}):s.jsx(Ge,{children:"No session"}),s.jsxs("span",{className:"term-identity",children:[s.jsx(B,{children:(O==null?void 0:O.harness_id)||w.last_harness_id||"no worker"}),s.jsx("span",{className:"term-sep",children:"/"}),s.jsx(B,{children:(O==null?void 0:O.pane_id)||w.last_pane_id||"no pane"})]}),s.jsxs("div",{className:"term-controls",children:[s.jsxs("span",{className:"chip term-mode","data-mode":"read-only",children:[s.jsx(Be,{name:"terminal",size:14})," Read-only"]}),s.jsx("button",{type:"button",className:"btn",disabled:!0,title:"Orchestra has no keystroke-forwarding endpoint",children:"Take control"}),s.jsx("button",{type:"button",className:"btn",disabled:!c,onClick:()=>{c&&navigator.clipboard.writeText(c.text).then(()=>{p(!0),setTimeout(()=>p(!1),1500)})},children:g?"Copied":"Copy frame"})]})]}),s.jsxs("div",{className:"term-layout",children:[s.jsxs("div",{className:"term-frame","data-lost":H,children:[s.jsxs("div",{className:"term-bar",children:[s.jsx(B,{children:(O==null?void 0:O.pane_id)||w.last_pane_id||"—"}),s.jsxs("span",{className:"term-bar-right",children:[s.jsxs(B,{children:["rev ",c?c.revision:"—"]}),s.jsx(B,{children:(c==null?void 0:c.source)||"—"}),s.jsx(B,{children:Xl(c==null?void 0:c.at)})]})]}),c?s.jsx("pre",{ref:x,className:"term-text",tabIndex:0,"aria-label":"Pane capture, read-only",onScroll:se=>{const D=se.currentTarget;E(D.scrollHeight-D.scrollTop-D.clientHeight<24)},children:c.text}):s.jsx(ea,{title:"No capture",children:s.jsxs("p",{children:["This task holds no leased session, so no worker is publishing pane text for"," ",s.jsx(B,{children:w.id}),"."]})}),s.jsxs("div",{className:"term-foot",children:[(c==null?void 0:c.truncated)&&s.jsx("span",{className:"term-warn",children:"frame truncated by the worker"}),!y&&s.jsxs("button",{type:"button",className:"btn term-jump",onClick:()=>{E(!0);const se=x.current;se&&(se.scrollTop=se.scrollHeight)},children:[s.jsx(Be,{name:"chevron-right",size:14})," Scrollback held — jump to live"]})]})]}),s.jsxs("div",{className:"term-side",children:[H&&s.jsx(Ne,{title:"Pane lost",children:s.jsxs("div",{className:"panel-body term-lost",children:[s.jsx("p",{children:"The frame above is the last one Orchestra received. It is history, not the present."}),s.jsx(yt,{label:"Frame captured",value:s.jsxs(B,{children:[Xl(c==null?void 0:c.at)," UTC"]})}),s.jsx(yt,{label:"Capture stopped",value:s.jsxs(B,{children:[Xl(h)," UTC"]})}),s.jsx(yt,{label:"Lease consequence",value:(ne=w.lease)!=null&&ne.until?s.jsxs("span",{children:["the lease still runs until ",s.jsxs(B,{children:[Xl(w.lease.until)," UTC"]}),"; nothing is rerouted before it expires"]}):s.jsx("span",{children:"no lease is held, so this task can be routed again immediately"})})]})}),s.jsx(Ne,{title:"Session",children:s.jsxs("div",{className:"panel-body term-fields",children:[s.jsx(yt,{label:"Task",value:s.jsx(We,{to:`/tasks/${w.id}`,className:"term-link",children:s.jsx(B,{children:w.id})})}),s.jsx(yt,{label:"Worker",value:s.jsx(B,{children:(O==null?void 0:O.harness_id)||w.last_harness_id||"—"})}),s.jsx(yt,{label:"Pane",value:s.jsx(B,{children:(O==null?void 0:O.pane_id)||w.last_pane_id||"—"})}),s.jsx(yt,{label:"Lease epoch",value:s.jsx(B,{children:((ce=w.lease)==null?void 0:ce.epoch)||"—"})}),s.jsx(yt,{label:"Lease",value:(_e=w.lease)!=null&&_e.until?s.jsxs("span",{children:[s.jsx(B,{children:qb(w.lease.until)})," left · until ",s.jsxs(B,{children:[Xl(w.lease.until)," UTC"]})]}):s.jsx(B,{children:"none"})}),s.jsx(yt,{label:"Capture source",value:s.jsx(B,{children:(c==null?void 0:c.source)||"—"})}),s.jsx(yt,{label:"Capture revision",value:s.jsx(B,{children:c?c.revision:"—"})}),s.jsx(yt,{label:"Last verified progress",value:s.jsx(B,{children:av(c==null?void 0:c.at)})}),s.jsx(yt,{label:"Mode",value:s.jsx(B,{children:"read-only"})})]})}),s.jsx(Ne,{title:"Health",children:s.jsxs("div",{className:"panel-body term-fields",children:[s.jsx(yt,{label:"Agent",value:s.jsxs("span",{className:"term-health",children:[s.jsx(ll,{health:K}),s.jsx(B,{children:G})]})}),s.jsx(yt,{label:"Checked",value:s.jsx(B,{children:av(((He=w.last_session)==null?void 0:He.checked_at)||(c==null?void 0:c.at))})}),((O==null?void 0:O.blocker)||w.blocker)&&s.jsx(yt,{label:"Blocker",value:s.jsx("span",{children:(O==null?void 0:O.blocker)||w.blocker})})]})}),s.jsxs(Ne,{title:"Keyboard forwarding",children:[s.jsx(ta,{path:"POST /v1/ui/tasks/:id/actions/send_keys",what:"Orchestra exposes no endpoint that forwards arbitrary keystrokes to a pane. The only operator input that reaches a live pane today is resubmit (a single Enter on text Orchestra itself submitted) and approval grant/deny. Take control stays disabled rather than opening a text box that goes nowhere."}),s.jsxs("div",{className:"panel-body term-resubmit",children:[s.jsx("button",{type:"button",className:"btn","data-variant":"primary",disabled:!q||z.isPending,onClick:()=>z.mutate(),children:z.isPending?"Sending…":"Resubmit (send Enter)"}),s.jsx("p",{children:"Presses Enter once on input Orchestra placed in this pane. It sends no other key and changes no lifecycle state."}),z.isError&&s.jsx("p",{className:"term-warn",children:z.error.message})]})]}),s.jsx(Ne,{title:"Recent events",count:(X=o.data)==null?void 0:X.events.length,children:s.jsxs("div",{className:"panel-body term-events",children:[(((de=o.data)==null?void 0:de.events)??[]).slice(-5).reverse().map(se=>s.jsxs("div",{className:"term-event",children:[s.jsx(B,{children:Xl(se.at)}),s.jsx("span",{children:se.type})]},se.id)),!((pe=o.data)!=null&&pe.events.length)&&s.jsx("p",{className:"term-muted",children:"No events recorded yet."})]})})]})]})]})}function Bb(l){return l.payload??{}}function Do(l){return l.replace("T"," ").slice(0,19)+" UTC"}function Uo(l){return l.length>8?l.slice(-6):l}function Lb(l){var h,v;const i=[],o=new Map,c=new Map,d=(g,p)=>{const y=c.get(g);y?y.push(p):c.set(g,[p])};for(const g of l){const p=Bb(g);if(p.decision_id)if(g.type==="HumanDecisionRecorded"){const y=p.supersedes??[];i.push({id:p.decision_id,taskId:g.task_id??"",kind:p.kind??"",subject:p.subject??"",value:p.value??"",supersedes:y,provider:((h=p.source)==null?void 0:h.provider)??"",externalId:((v=p.source)==null?void 0:v.external_id)??"",at:g.at,eventId:g.id,seq:g.seq}),d(p.decision_id,g);for(const E of y)o.set(E,p.decision_id),d(E,g)}else g.type==="HumanDecisionSuperseded"&&(o.has(p.decision_id)||o.set(p.decision_id,""),d(p.decision_id,g))}return i.sort((g,p)=>p.at.localeCompare(g.at)||p.id.localeCompare(g.id)),{decisions:i,retiredBy:o,events:c}}function Yu({label:l,value:i,options:o,onChange:c}){return s.jsxs("label",{className:"dec-filter",children:[s.jsx("span",{className:"label",children:l}),s.jsxs("select",{value:i,onChange:d=>c(d.target.value),children:[s.jsx("option",{value:"",children:"all"}),o.map(d=>s.jsx("option",{value:d,children:d},d))]})]})}function Qb(){const l=Qt({queryKey:["events"],queryFn:()=>lt.events(),refetchInterval:5e3}),i=Qt({queryKey:["overview"],queryFn:lt.overview,refetchInterval:5e3}),[o,c]=S.useState(""),[d,h]=S.useState(""),[v,g]=S.useState(""),[p,y]=S.useState(""),[E,x]=S.useState(""),[w,O]=S.useState(),U=S.useMemo(()=>{var de;const X=new Map;for(const pe of((de=i.data)==null?void 0:de.tasks)??[])X.set(pe.id,pe);return X},[i.data]),{decisions:z,retiredBy:q,events:H}=S.useMemo(()=>Lb(l.data??[]),[l.data]),G=S.useMemo(()=>[...U.values()].filter(X=>X.block_reason==="human_decision"&&X.decision_request).map(X=>{var de,pe;return{taskId:X.id,question:((de=X.decision_request)==null?void 0:de.question)??"",why:((pe=X.decision_request)==null?void 0:pe.why)??"",at:X.blocked_at??""}}),[U]),K=S.useMemo(()=>[...new Set(z.map(X=>X.kind).filter(Boolean))].sort(),[z]),Z=S.useMemo(()=>[...new Set(z.map(X=>X.provider).filter(Boolean))].sort(),[z]),W=S.useMemo(()=>[...new Set([...U.values()].map(X=>X.project).filter(Boolean))].sort(),[U]),J=E.trim().toLowerCase(),te=X=>{const de=U.get(X.taskId),pe=q.has(X.id);return!(o==="active"&&pe||o==="superseded"&&!pe||o==="waiting"||d&&X.kind!==d||p&&X.provider!==p||v&&(de==null?void 0:de.project)!==v||J&&![X.id,X.taskId,X.subject,X.value,(de==null?void 0:de.title)??""].join(" ").toLowerCase().includes(J))},ne=z.filter(te),ce=G.filter(X=>{var de;return o&&o!=="waiting"||d||p||v&&((de=U.get(X.taskId))==null?void 0:de.project)!==v?!1:J?[X.taskId,X.question,X.why].join(" ").toLowerCase().includes(J):!0}),_e=z.length-q.size,He=l.isLoading||i.isLoading;return s.jsxs("main",{className:"page",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Decisions"}),s.jsx("p",{children:"Durable human authority: what the operator decided, and what still stands."})]}),s.jsxs("div",{className:"grid stats",children:[s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Recorded"}),s.jsx("span",{className:"stat-value",children:z.length})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Standing"}),s.jsx("span",{className:"stat-value","data-accent":"true",children:_e})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Superseded"}),s.jsx("span",{className:"stat-value",children:q.size})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Waiting on you"}),s.jsx("span",{className:"stat-value",children:G.length})]})]}),s.jsxs(Ne,{title:"Decision log",count:ne.length+ce.length,trailing:l.isError||i.isError?"read failed":`reduced from ${(l.data??[]).length} events`,children:[s.jsxs("div",{className:"dec-filters",children:[s.jsx("input",{className:"dec-search",placeholder:"Search decisions…",value:E,onChange:X=>x(X.target.value)}),s.jsx(Yu,{label:"Status",value:o,options:["active","superseded","waiting"],onChange:c}),s.jsx(Yu,{label:"Kind",value:d,options:K,onChange:h}),s.jsx(Yu,{label:"Project",value:v,options:W,onChange:g}),s.jsx(Yu,{label:"Source",value:p,options:Z,onChange:y})]}),He?s.jsx("div",{className:"panel-body",children:s.jsx("p",{className:"gap-note",children:"reading /v1/events…"})}):ne.length+ce.length===0?s.jsx(ea,{title:"No decisions match",children:s.jsxs("p",{children:["The log holds ",s.jsx(B,{children:z.length})," recorded decisions. Clear the filters to see them."]})}):s.jsx("div",{className:"table-scroll",children:s.jsxs("table",{className:"table dec-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"ID"}),s.jsx("th",{children:"Decision"}),s.jsx("th",{children:"Task"}),s.jsx("th",{children:"Phase"}),s.jsx("th",{children:"Provenance"}),s.jsx("th",{children:"Recorded"}),s.jsx("th",{children:"Status"})]})}),s.jsxs("tbody",{children:[ce.map(X=>{var de,pe;return s.jsxs("tr",{"data-status":"waiting",children:[s.jsx("td",{className:"mono",children:"—"}),s.jsxs("td",{children:[s.jsx("div",{className:"row-title",children:X.question}),s.jsx("div",{className:"row-sub",children:X.why})]}),s.jsx("td",{children:s.jsxs(We,{className:"dec-task",to:`/tasks/${X.taskId}`,children:[s.jsx(B,{children:Uo(X.taskId)}),s.jsx("span",{className:"row-sub",children:((de=U.get(X.taskId))==null?void 0:de.title)??""})]})}),s.jsx("td",{className:"mono",children:((pe=U.get(X.taskId))==null?void 0:pe.work_phase)??"—"}),s.jsx("td",{className:"mono",children:"—"}),s.jsx("td",{className:"mono",children:X.at?Do(X.at):"—"}),s.jsx("td",{children:s.jsx(Ge,{tone:"warn",children:"waiting"})})]},`w-${X.taskId}`)}),ne.map(X=>{const de=q.has(X.id),pe=q.get(X.id),se=U.get(X.taskId),D=w===X.id;return s.jsxs(S.Fragment,{children:[s.jsxs("tr",{"data-status":de?"superseded":"active","data-open":D?"true":void 0,onClick:()=>O(D?void 0:X.id),children:[s.jsx("td",{className:"mono",title:X.id,children:Uo(X.id)}),s.jsxs("td",{children:[s.jsx("div",{className:"row-title",children:X.value}),s.jsx("div",{className:"row-sub",children:X.subject})]}),s.jsx("td",{children:s.jsxs(We,{className:"dec-task",to:`/tasks/${X.taskId}`,onClick:V=>V.stopPropagation(),children:[s.jsx(B,{children:Uo(X.taskId)}),s.jsx("span",{className:"row-sub",children:(se==null?void 0:se.title)??""})]})}),s.jsx("td",{className:"mono",children:(se==null?void 0:se.work_phase)??"—"}),s.jsx("td",{className:"mono",title:X.externalId,children:X.provider||"—"}),s.jsx("td",{className:"mono",children:Do(X.at)}),s.jsx("td",{children:de?s.jsx(Ge,{children:"superseded"}):s.jsx(Ge,{tone:"accent",children:X.kind||"active"})})]}),D&&s.jsx("tr",{className:"dec-detail-row",children:s.jsx("td",{colSpan:7,children:s.jsxs("div",{className:"dec-detail",children:[s.jsxs("div",{children:[s.jsx("span",{className:"label",children:"Value"}),s.jsx("p",{className:"dec-value",children:X.value}),s.jsx("span",{className:"label",children:"Subject"}),s.jsx("p",{className:"dec-subject",children:X.subject||"—"}),s.jsx("span",{className:"label",children:"Effective authority"}),s.jsx("p",{className:"dec-impact","data-retired":de?"true":void 0,children:de?pe?"Retired. It is out of the effective intent for this task.":"Retired by an explicit supersede. It no longer binds the agent.":"Standing. It is in the effective intent handed to every session of this task."})]}),s.jsxs("div",{className:"dec-facts",children:[s.jsx("span",{className:"label",children:"Decision id"}),s.jsx("div",{children:s.jsx(B,{children:X.id})}),s.jsx("span",{className:"label",children:"Kind"}),s.jsx("div",{children:s.jsx(B,{children:X.kind})}),s.jsx("span",{className:"label",children:"Task"}),s.jsx("div",{children:s.jsx(We,{to:`/tasks/${X.taskId}`,children:s.jsx(B,{children:X.taskId})})}),s.jsx("span",{className:"label",children:"Provenance"}),s.jsxs("div",{children:[s.jsx(B,{children:X.provider||"unknown"})," ",X.externalId&&s.jsxs(B,{children:["· ",X.externalId]})]}),s.jsx("span",{className:"label",children:"Supersedes"}),s.jsx("div",{children:X.supersedes.length===0?s.jsx(B,{children:"none"}):X.supersedes.map(V=>s.jsx("button",{className:"dec-link mono",onClick:()=>O(V),children:V},V))}),s.jsx("span",{className:"label",children:"Superseded by"}),s.jsx("div",{children:de?pe?s.jsx("button",{className:"dec-link mono",onClick:()=>O(pe),children:pe}):s.jsx(B,{children:"explicit supersede event"}):s.jsx(B,{children:"none"})})]}),s.jsxs("div",{className:"dec-trail",children:[s.jsx("span",{className:"label",children:"Event sequence"}),(H.get(X.id)??[]).map(V=>s.jsxs("div",{className:"dec-event",children:[s.jsx(B,{children:V.seq!==void 0?`#${V.seq}`:"—"}),s.jsx("span",{className:"dec-event-type",children:V.type}),s.jsx(B,{children:Do(V.at)}),s.jsx(B,{children:V.id})]},V.id))]})]})})})]},X.id)})]})]})}),s.jsx(ta,{path:"/v1/ui/decisions",what:"Recorded, superseded and waiting are reduced from the event log. Approved, rejected and auto are not: the domain has no approval state on a decision, so those statuses are omitted rather than guessed. The acting human is not recorded either — source.provider is the channel the decision arrived on, not the person. Phase is the task's current work phase, not the phase the decision was made in."})]})]})}function Nf(l){return!l||l.startsWith("0001-")}function Iu(l){if(Nf(l))return"—";const i=Math.max(0,(Date.now()-new Date(l).getTime())/1e3);return i<60?`${Math.floor(i)}s ago`:i<3600?`${Math.floor(i/60)}m ago`:i<86400?`${Math.floor(i/3600)}h ago`:`${Math.floor(i/86400)}d ago`}function ui(l){return Nf(l)?"—":new Date(l).toISOString().slice(11,19)+" UTC"}function ri(l){return l.online?l.health.herdr_status==="unreachable"?"error":l.health.herdr_status==="unknown"?"unknown":l.health.last_error?"degraded":"healthy":"unknown"}function iy(l){return l.online?l.health.herdr_status==="unreachable"?"Backend unreachable":l.health.active_task_id?"Busy":l.health.last_error?"Degraded":"Idle":"Offline"}function Yb({items:l}){return s.jsx("ul",{className:"obs",children:l.map(i=>s.jsxs("li",{className:"obs-item",children:[s.jsxs("div",{className:"obs-head",children:[s.jsxs("span",{className:"obs-count mono","data-repeat":i.count>1,title:`${i.count} occurrences`,children:["×",i.count]}),s.jsx("span",{className:"obs-msg mono",children:i.message})]}),s.jsxs("div",{className:"obs-when",children:[s.jsx("span",{className:"label",children:"first"}),s.jsx(B,{children:ui(i.first)}),s.jsx("span",{className:"label",children:"last"}),s.jsx(B,{children:ui(i.last)}),s.jsxs(B,{children:["(",Iu(i.last),")"]})]})]},i.message+i.first))})}function Pt({name:l,children:i}){return s.jsxs("div",{className:"field",children:[s.jsx("span",{className:"field-name",children:l}),s.jsx("span",{className:"field-value",children:i})]})}function Gb({worker:l,tasks:i}){var h,v,g,p;const o=l.health,c=o.observations??[],d=i.find(y=>y.id===o.active_task_id);return s.jsxs("div",{className:"grid",children:[s.jsxs(Ne,{children:[s.jsxs("header",{className:"panel-head",children:[s.jsx("h2",{className:"mono worker-id",children:l.id}),s.jsxs("span",{className:"trailing",children:[s.jsx(ll,{health:ri(l)})," ",iy(l)]})]}),s.jsxs("div",{className:"panel-body",children:[s.jsx(Pt,{name:"Backend",children:s.jsx(B,{children:o.backend||"unknown"})}),s.jsxs(Pt,{name:"Pane backend status",children:[s.jsx(ll,{health:ri(l)})," ",s.jsx(B,{children:o.herdr_status})]}),s.jsxs(Pt,{name:"Checked",children:[s.jsx(B,{children:ui(o.checked_at)})," ",s.jsxs("span",{className:"dim mono",children:["(",Iu(o.checked_at),")"]})]}),s.jsxs(Pt,{name:"Last seen",children:[s.jsx(B,{children:ui(l.last_seen)})," ",s.jsxs("span",{className:"dim mono",children:["(",Iu(l.last_seen),")"]})]}),s.jsx(Pt,{name:"Capacity",children:s.jsx(B,{children:l.capacity})}),l.address&&s.jsx(Pt,{name:"Address",children:s.jsx(B,{children:l.address})})]})]}),s.jsx(Ne,{title:"Current session",children:s.jsx("div",{className:"panel-body",children:o.active_task_id?s.jsxs(s.Fragment,{children:[s.jsx(Pt,{name:"Task",children:s.jsxs(We,{className:"task-link",to:`/tasks/${o.active_task_id}`,children:[s.jsx(B,{children:o.active_task_id}),(d==null?void 0:d.title)&&s.jsx("span",{className:"task-title",children:d.title})]})}),(d==null?void 0:d.lifecycle_phase)&&s.jsx(Pt,{name:"Phase",children:s.jsx(Ge,{tone:"accent",children:d.lifecycle_phase})}),s.jsx(Pt,{name:"Pane",children:s.jsx(B,{children:o.active_pane_id||"—"})})]}):s.jsx("p",{className:"dim",children:"No task leased to this worker."})})}),s.jsx(Ne,{title:"Build",children:s.jsxs("div",{className:"panel-body",children:[s.jsx(Pt,{name:"Revision",children:s.jsx(B,{children:((h=l.build)==null?void 0:h.revision)||"unknown"})}),s.jsx(Pt,{name:"Built",children:s.jsx(B,{children:((v=l.build)==null?void 0:v.time)||"unknown"})}),((g=l.build)==null?void 0:g.dirty)==="true"&&s.jsx(Pt,{name:"Tree",children:s.jsx(Ge,{tone:"warn",children:"dirty — built from uncommitted changes"})})]})}),s.jsx(Ne,{title:"Declared projects",trailing:s.jsx("span",{className:"dim",children:"reported by worker"}),children:s.jsxs("div",{className:"panel-body",children:[(p=l.supported_projects)!=null&&p.length?s.jsx("div",{className:"chips",children:l.supported_projects.map(y=>s.jsx(Ge,{children:s.jsx("span",{className:"mono",children:y})},y))}):s.jsx("p",{className:"dim",children:"The worker declared no projects, so nothing routes to it."}),s.jsx(ta,{path:"PATCH /v1/federation/workers/:id",what:"Projects and capabilities are set by the worker at registration. There is no endpoint to edit them from here, and a form that only looked like it worked would lie about who owns the value."})]})}),s.jsx(Ne,{title:"Observations",count:c.length,trailing:s.jsx("span",{className:"dim",children:"bounded ring of distinct failures"}),children:c.length?s.jsxs("div",{className:"panel-body",children:[o.last_error&&s.jsxs("p",{className:"gap-note obs-latest",children:["latest: ",o.last_error,!Nf(o.error_at)&&`${ui(o.error_at)}`]}),s.jsx(Yb,{items:c})]}):s.jsx(ea,{title:"No failures recorded",children:s.jsx("p",{children:"The worker has reported nothing to explain. Repeats would collapse here with a count."})})})]})}function Xb(){var E;const l=Qt({queryKey:["workers"],queryFn:lt.workers,refetchInterval:5e3}),i=Qt({queryKey:["overview"],queryFn:lt.overview,refetchInterval:5e3}),[o,c]=S.useState(),d=l.data??[],h=d.find(x=>x.id===o)??d[0],v=d.filter(x=>x.online),g=v.filter(x=>x.health.active_task_id),p=d.filter(x=>ri(x)==="error"||ri(x)==="degraded"),y=v.reduce((x,w)=>x+(w.capacity||0),0);return s.jsxs("main",{className:"page workers",children:[s.jsx("div",{className:"page-head",children:s.jsxs("div",{children:[s.jsx("h1",{children:"Workers"}),s.jsx("p",{children:"Where work can run, and whether that machinery is usable."})]})}),l.isError?s.jsx(Ne,{children:s.jsx(ea,{title:"Worker list unavailable",children:s.jsx("p",{className:"mono",children:"GET /v1/federation/workers failed. Nothing can be leased until it answers."})})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid stats",children:[s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Online"}),s.jsx("span",{className:"stat-value",children:v.length})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Busy"}),s.jsx("span",{className:"stat-value",children:g.length})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Offline"}),s.jsx("span",{className:"stat-value",children:d.length-v.length})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Faulted"}),s.jsx("span",{className:"stat-value",children:p.length})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Free capacity"}),s.jsx("span",{className:"stat-value",children:y-g.length})]})]}),s.jsxs("div",{className:"workers-split",children:[s.jsx(Ne,{title:"Fleet",count:d.length,children:d.length===0?s.jsx(ea,{title:"No workers registered",children:s.jsx("p",{children:"A worker registers itself: it starts with coordinator credentials, announces its id, revision, harnesses, projects and capacity, then keeps liveness with a heartbeat. Nothing here can create one."})}):s.jsx("div",{className:"table-scroll",children:s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Worker"}),s.jsx("th",{children:"Status"}),s.jsx("th",{children:"Backend"}),s.jsx("th",{children:"Current task"}),s.jsx("th",{children:"Pane"}),s.jsx("th",{children:"Last seen"})]})}),s.jsx("tbody",{children:d.map(x=>{const w=x.health;return s.jsxs("tr",{className:"worker-row","aria-selected":x.id===(h==null?void 0:h.id),onClick:()=>c(x.id),children:[s.jsx("td",{className:"mono",children:x.id}),s.jsx("td",{children:s.jsxs("span",{className:"status-cell",children:[s.jsx(ll,{health:ri(x)})," ",iy(x)]})}),s.jsx("td",{children:s.jsx(Ge,{children:s.jsx("span",{className:"mono",children:w.backend||"unknown"})})}),s.jsx("td",{children:w.active_task_id?s.jsx(We,{className:"task-link",to:`/tasks/${w.active_task_id}`,onClick:O=>O.stopPropagation(),children:s.jsx(B,{children:w.active_task_id})}):s.jsx("span",{className:"dim mono",children:"—"})}),s.jsx("td",{className:"mono",children:w.active_pane_id||"—"}),s.jsx("td",{className:"mono",children:Iu(x.last_seen)})]},x.id)})})]})})}),s.jsx("div",{className:"workers-detail",children:h&&s.jsx(Gb,{worker:h,tasks:((E=i.data)==null?void 0:E.tasks)??[]})})]}),s.jsx(Ne,{title:"Registration",children:s.jsxs("div",{className:"panel-body registration",children:[s.jsxs("p",{className:"reg-lead",children:[s.jsx(Be,{name:"worker",size:16})," Workers register themselves; the console only reads what they announce."]}),s.jsxs("ol",{className:"steps",children:[s.jsx("li",{children:"The worker starts with coordinator credentials."}),s.jsx("li",{children:"It announces id, revision, harnesses, projects and capacity."}),s.jsx("li",{children:"The coordinator records it; heartbeats keep liveness."})]}),s.jsx(ta,{path:"POST /v1/federation/workers",what:"There is no browser-side worker creation and no drain or unregister endpoint. Buttons for them would be decoration over machinery that does not exist."})]})})]})]})}const Ef=["needs_attention","blocked","failed"];function Kb(l){if(!l)return;const i=new Date(l);return Number.isNaN(i.getTime())?l:`${i.toISOString().slice(0,16).replace("T"," ")} UTC`}function nv(l,i){return l?i?l>i?l:i:l:i}function Zb(l,i){var c,d;const o=new Map;for(const h of l){const v=h.project||"(unset)";let g=o.get(v);g||(g={id:v,tasks:[],counts:{},attention:0,active:0,workers:i.filter(p=>(p.supported_projects||[]).includes(v))},o.set(v,g)),g.tasks.push(h),g.counts[h.state]=(g.counts[h.state]||0)+1,Ef.includes(h.state)&&g.attention++,h.state==="leased"&&g.active++,g.lastSeen=nv(g.lastSeen,nv((c=h.last_session)==null?void 0:c.captured_at,(d=h.last_session)==null?void 0:d.checked_at))}return[...o.values()].sort((h,v)=>v.attention-h.attention||v.active-h.active||h.id.localeCompare(v.id))}function Vb(l){return["leased","queued","in_review","needs_attention","blocked","failed","completed"].filter(o=>l[o]).map(o=>s.jsxs(Ge,{tone:o==="leased"?"accent":o==="completed"?"done":o==="needs_attention"?"warn":Ef.includes(o)?"fault":void 0,children:[o.replace("_"," ")," ",s.jsx(B,{children:l[o]})]},o))}function Jb(){const l=Qt({queryKey:["overview"],queryFn:lt.overview,refetchInterval:5e3}),[i,o]=S.useState(),c=S.useMemo(()=>{var h,v;return Zb(((h=l.data)==null?void 0:h.tasks)||[],((v=l.data)==null?void 0:v.workers)||[])},[l.data]),d=c.find(h=>h.id===i)||c[0];return s.jsxs("main",{className:"page",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Projects"}),s.jsx("p",{children:"Projects orchestra is holding work for, derived from the tasks it knows about. The coordinator does not serve its project registry."})]}),l.isError&&s.jsx(Ne,{children:s.jsx("div",{className:"panel-body",children:s.jsxs("p",{className:"gap-note",children:["/v1/ui/overview failed: ",String(l.error)]})})}),!l.data&&!l.isError&&s.jsx(Ne,{children:s.jsx("div",{className:"panel-body",children:s.jsx("p",{className:"gap-note",children:"reading /v1/ui/overview"})})}),l.data&&c.length===0&&s.jsx(Ne,{children:s.jsx(ea,{title:"No project has work",children:s.jsxs("p",{children:["Every project here comes from a task. Orchestra holds"," ",s.jsx(B,{children:l.data.tasks.length})," tasks, so nothing groups yet."]})})}),d&&s.jsxs("div",{className:"grid projects-split",children:[s.jsx(Ne,{title:"With work",count:c.length,children:s.jsx("div",{className:"table-scroll",children:s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Project"}),s.jsx("th",{children:"Tasks"}),s.jsx("th",{children:"Leased"}),s.jsx("th",{children:"Attention"}),s.jsx("th",{children:"Last session evidence"}),s.jsx("th",{children:"Workers"})]})}),s.jsx("tbody",{children:c.map(h=>s.jsxs("tr",{onClick:()=>o(h.id),style:{cursor:"pointer",background:h.id===d.id?"var(--bg-2)":void 0,boxShadow:h.id===d.id?"inset 3px 0 0 0 var(--accent)":void 0},children:[s.jsx("td",{children:s.jsx(B,{children:h.id})}),s.jsx("td",{children:s.jsx(B,{children:h.tasks.length})}),s.jsx("td",{children:s.jsx(B,{children:h.active})}),s.jsx("td",{children:h.attention?s.jsx(Ge,{tone:"fault",children:s.jsx(B,{children:h.attention})}):s.jsx(B,{children:"0"})}),s.jsx("td",{children:s.jsx(B,{children:Kb(h.lastSeen)||"—"})}),s.jsx("td",{children:s.jsx("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:h.workers.length===0?s.jsx(B,{children:"none"}):h.workers.map(v=>s.jsxs(Ge,{children:[s.jsx(ll,{health:v.online?"healthy":"error"}),s.jsx(B,{children:v.id})]},v.id))})})]},h.id))})]})})}),s.jsxs("div",{className:"grid",style:{alignContent:"start"},children:[s.jsx(Ne,{title:d.id,trailing:s.jsx(We,{to:`/tasks?project=${encodeURIComponent(d.id)}`,children:"Tasks →"}),children:s.jsxs("div",{className:"panel-body",style:{display:"grid",gap:12},children:[s.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:Vb(d.counts)}),s.jsxs("div",{children:[s.jsx("div",{className:"label",children:"Workers declaring this project"}),s.jsx("p",{style:{margin:"4px 0 0",color:"var(--text-mid)"},children:d.workers.length===0?"No registered worker accepts it. Orchestra does not treat an omitted declaration as a wildcard, so nothing can lease this work.":"Worker-declared, from the federation registry — not the coordinators project affinity."}),d.workers.map(h=>s.jsxs("div",{style:{marginTop:6},children:[s.jsx(ll,{health:h.online?"healthy":"error"})," ",s.jsx(B,{children:h.id})," ",s.jsx(B,{children:h.address||""})]},h.id))]})]})}),s.jsxs(Ne,{title:"Tasks",count:d.tasks.length,children:[s.jsx("div",{className:"rows",children:d.tasks.slice(0,8).map(h=>s.jsxs(We,{className:"row",to:`/tasks/${h.id}`,children:[s.jsxs("span",{className:"row-main",children:[s.jsx("span",{className:"row-title",children:h.title||h.external_id||"untitled"}),s.jsx("span",{className:"row-sub",children:s.jsx(B,{children:h.id})})]}),s.jsx(Ge,{tone:h.state==="leased"?"accent":h.state==="completed"?"done":h.state==="needs_attention"?"warn":Ef.includes(h.state)?"fault":void 0,children:h.state.replace("_"," ")})]},h.id))}),d.tasks.length>8&&s.jsx("div",{className:"panel-body",children:s.jsxs(We,{to:`/tasks?project=${encodeURIComponent(d.id)}`,children:["All ",s.jsx(B,{children:d.tasks.length})," tasks →"]})})]}),s.jsx(Ne,{title:"Project configuration",children:s.jsx(ta,{path:"/v1/ui/projects",what:"repo, remote, quality gate and verification policy live in the coordinator's config.jsonc and are not served over HTTP"})})]})]})]})}const $b=l=>l;function Fb(l){if(!l)return;const i=Math.round((Date.now()-Date.parse(l))/1e3);if(!(!Number.isFinite(i)||i<0))return i<60?`${i}s ago`:i<3600?`${Math.floor(i/60)}m ago`:i<86400?`${Math.floor(i/3600)}h ago`:`${Math.floor(i/86400)}d ago`}const Wb=l=>l.length>14?`${l.slice(0,6)}${l.slice(-4)}`:l,lv=l=>l?l.slice(0,7):void 0,tf=[{kind:"trajectory",label:"Trajectory",icon:"fork"},{kind:"decision",label:"Blocker",icon:"decision"},{kind:"operator",label:"Operator",icon:"alert"},{kind:"findings",label:"AI review",icon:"review"},{kind:"pr",label:"Code review",icon:"task"}],Pb=l=>tf.find(i=>i.kind===l),sv={operator_required:"Orchestra cannot proceed without an operator action.",approval:"A tool or edit approval is pending in the pane.",handoff_validation:"The handoff failed validation and was not accepted.",lease_failure:"The lease could not be established.",lease_expired:"The lease expired before the agent finished.",worker_offline:"The worker holding this task went offline.",system_error:"Orchestra hit an error it could not retry past.",operator_block:"You blocked this task.",unknown:"Blocked for a reason orchestra could not classify."};function Ib(l){var d,h,v,g,p,y;const i=$b(l),o=[],c=i.blocked_at;if(i.block_reason==="trajectory_gate"&&o.push({key:`${i.id}:trajectory`,kind:"trajectory",task:i,headline:((d=i.decision_request)==null?void 0:d.question)??"Trajectory gate is held",why:((h=i.decision_request)==null?void 0:h.why)??i.blocker??"A trajectory gate is waiting for your steering before work continues.",at:c}),(i.block_reason==="human_decision"||i.decision_request&&!o.length)&&o.push({key:`${i.id}:decision`,kind:"decision",task:i,headline:((v=i.decision_request)==null?void 0:v.question)??i.blocker??"A decision is required",why:((g=i.decision_request)==null?void 0:g.why)??i.blocker??"The agent asked for a decision it may not make on its own.",at:c}),i.state==="blocked"&&!o.length){const E=i.block_reason??"unknown";o.push({key:`${i.id}:operator`,kind:"operator",task:i,headline:i.blocker||`Blocked: ${E}`,why:sv[E]??sv.unknown,at:c})}if(i.state==="needs_attention"&&!o.length&&o.push({key:`${i.id}:operator`,kind:"operator",task:i,headline:i.blocker||i.last_error||"Flagged for you",why:"Orchestra flagged this task and will not move it without you.",at:c}),i.review&&i.review.blocking>0){const E=i.review.result_sha!==(((p=i.submission)==null?void 0:p.result_sha)??i.review.result_sha);o.push({key:`${i.id}:findings`,kind:"findings",task:i,headline:`${i.review.blocking} blocking finding${i.review.blocking===1?"":"s"}`,why:E?"A sealed review claims blocking findings against a commit the submission has moved past. Accept or override them.":"A sealed review claims blocking findings. They stand until you accept or override them.",at:c})}return(y=i.submission)!=null&&y.pr?o.push({key:`${i.id}:pr`,kind:"pr",task:i,headline:i.title||"Change submitted for review",why:"A pull request is open and waiting on human review.",at:c}):i.state==="in_review"&&!o.some(E=>E.kind==="findings")&&o.push({key:`${i.id}:pr`,kind:"pr",task:i,headline:i.title||"Awaiting review",why:"The task is in review with no submission recorded yet.",at:c}),o}function e1({artifactRef:l}){const i=Qt({queryKey:["artifact",l],queryFn:()=>lt.artifact(l),staleTime:1/0});return s.jsxs("div",{className:"rev-findings",children:[s.jsxs("p",{className:"claim-label",children:[s.jsx(Be,{name:"alert",size:14}),"agent-supplied · sealed review artifact ",s.jsx(B,{children:l})]}),i.isError?s.jsxs("p",{className:"rev-fault",children:["could not read artifact: ",String(i.error)]}):i.data===void 0?s.jsxs("p",{className:"row-sub",children:["reading ",s.jsx(B,{children:l})]}):s.jsx("pre",{children:i.data})]})}function t1({item:l}){var v,g,p,y,E,x,w,O;const[i,o]=S.useState(!1),c=l.task,d=Pb(l.kind),h=Fb(l.at);return s.jsxs("div",{className:"rev-item",children:[s.jsxs("div",{className:"rev-line",children:[s.jsxs(We,{className:"row rev-link",to:`/tasks/${c.id}`,children:[s.jsx("span",{className:"rev-mark","data-kind":l.kind,children:s.jsx(Be,{name:d.icon,size:18})}),s.jsx("span",{className:"rev-kind",children:d.label}),s.jsxs("span",{className:"row-main",children:[s.jsx("span",{className:"row-title",children:l.headline}),s.jsx("span",{className:"row-sub",children:l.why})]}),s.jsxs("span",{className:"rev-task",children:[s.jsx("span",{className:"row-title",children:c.project}),s.jsxs("span",{className:"row-sub",children:[s.jsx(B,{children:Wb(c.id)}),c.work_phase&&s.jsxs(s.Fragment,{children:[" · ",s.jsx(B,{children:c.work_phase})]})]})]}),s.jsxs("span",{className:"rev-meta",children:[s.jsx("span",{className:"label",children:"priority"}),s.jsx(B,{children:c.inherent_priority??0})]}),s.jsxs("span",{className:"rev-meta",children:[s.jsx("span",{className:"label",children:"age"}),h?s.jsx(B,{children:h}):s.jsx("span",{className:"row-sub",children:"not timestamped"})]}),l.kind==="findings"&&c.review&&s.jsxs(Ge,{tone:"fault",children:[s.jsx(B,{children:c.review.blocking})," blocking"]}),l.kind==="pr"&&((g=(v=c.submission)==null?void 0:v.pr)==null?void 0:g.id)&&s.jsx(Ge,{tone:"accent",children:s.jsx(B,{children:c.submission.pr.id})}),s.jsx(Be,{name:"chevron-right",size:16})]}),l.kind==="pr"&&((y=(p=c.submission)==null?void 0:p.pr)==null?void 0:y.url)&&s.jsxs("a",{className:"btn rev-out",href:c.submission.pr.url,target:"_blank",rel:"noreferrer",children:[s.jsx(Be,{name:"upload",size:14}),c.submission.pr.provider]}),l.kind==="findings"&&c.review&&s.jsx("button",{className:"btn rev-out",onClick:()=>o(!i),children:i?"Hide findings":"Read findings"})]}),(l.kind==="pr"||l.kind==="findings")&&s.jsxs("div",{className:"rev-refs",children:[c.review&&s.jsxs("span",{children:[s.jsx("span",{className:"label",children:"reviewed sha"})," ",s.jsx(B,{children:lv(c.review.result_sha)})]}),c.submission&&s.jsxs("span",{children:[s.jsx("span",{className:"label",children:"submitted sha"})," ",s.jsx(B,{children:lv(c.submission.result_sha)})]}),((E=c.submission)==null?void 0:E.gate_ref)&&s.jsxs("span",{children:[s.jsx("span",{className:"label",children:"gate"})," ",s.jsx(B,{children:c.submission.gate_ref})]}),((x=c.submission)==null?void 0:x.review_ref)&&s.jsxs("span",{children:[s.jsx("span",{className:"label",children:"review"})," ",s.jsx(B,{children:c.submission.review_ref})]})]}),l.kind==="trajectory"&&((O=(w=c.decision_request)==null?void 0:w.options)!=null&&O.length)?s.jsxs("div",{className:"rev-options",children:[s.jsxs("p",{className:"claim-label",children:[s.jsx(Be,{name:"alert",size:14}),"agent-supplied · proposed options"]}),c.decision_request.options.map(U=>s.jsxs("p",{children:[s.jsx(B,{children:U.id})," ",U.description,U.tradeoff&&s.jsxs("span",{className:"row-sub",children:[" — ",U.tradeoff]})]},U.id))]}):null,i&&l.kind==="findings"&&c.review&&s.jsx(e1,{artifactRef:c.review.artifact_ref})]})}function a1(){var p;const l=Qt({queryKey:["overview"],queryFn:lt.overview,refetchInterval:5e3}),[i,o]=S.useState("all"),c=(((p=l.data)==null?void 0:p.tasks)??[]).flatMap(Ib),d=tf.map(y=>y.kind);c.sort((y,E)=>(E.task.inherent_priority??0)-(y.task.inherent_priority??0)||Date.parse(y.at??"")-Date.parse(E.at??"")||d.indexOf(y.kind)-d.indexOf(E.kind));const h=i==="all"?c:c.filter(y=>y.kind===i),v=y=>c.filter(E=>E.kind===y).length,g=c.reduce((y,E)=>{var x;return y+(E.kind==="findings"?((x=E.task.review)==null?void 0:x.blocking)??0:0)},0);return s.jsxs("main",{className:"page",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Review"}),s.jsx("p",{children:"Items that need your attention and judgement."}),s.jsx("span",{className:"rev-stamp",children:l.data?s.jsxs(s.Fragment,{children:["read ",s.jsxs(B,{children:[new Date(l.data.updated_at).toISOString().slice(11,19)," UTC"]})]}):l.isError?s.jsxs("span",{className:"rev-fault",children:["overview unreachable — ",String(l.error)]}):"reading the first snapshot"})]}),s.jsxs("div",{className:"grid stats",children:[s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Needs you"}),s.jsx("span",{className:"stat-value",children:c.length}),s.jsxs("span",{className:"row-sub",children:["across ",s.jsx(B,{children:new Set(c.map(y=>y.task.id)).size})," tasks"]})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Blocking findings"}),s.jsx("span",{className:"stat-value",children:g}),s.jsx("span",{className:"row-sub",children:"claimed by sealed reviews, not yet accepted"})]}),s.jsxs("div",{className:"stat",children:[s.jsx("span",{className:"label",children:"Pull requests open"}),s.jsx("span",{className:"stat-value",children:v("pr")}),s.jsx("span",{className:"row-sub",children:"recorded on a submission"})]})]}),s.jsxs(Ne,{title:"Attention queue",count:h.length,children:[s.jsxs("div",{className:"rev-tabs",children:[s.jsxs("button",{className:"btn","data-active":i==="all",onClick:()=>o("all"),children:["All ",s.jsx(B,{children:c.length})]}),tf.map(y=>s.jsxs("button",{className:"btn","data-active":i===y.kind,onClick:()=>o(y.kind),children:[y.label," ",s.jsx(B,{children:v(y.kind)})]},y.kind))]}),h.length===0?s.jsx(ea,{title:c.length===0?"Nothing is waiting on you":"Nothing of this type",children:s.jsx("p",{children:"Trajectory gates, human decisions, operator-required blocks, blocking review findings and open pull requests land here."})}):s.jsx("div",{className:"rows",children:h.map(y=>s.jsx(t1,{item:y},y.key))})]}),s.jsx(ta,{path:"GET /v1/ui/submissions → pr.state, GET /v1/ui/review/snoozes",what:"Two item types the spec lists have no source. A closed-but-unmerged pull request cannot be derived: submission.pr carries provider, id and url but no forge state, and orchestra never polls the forge. Informational/FYI items and snooze or defer state have no endpoint and no event either, so no tab stands in for them."})]})}const iv=[{key:"account",label:"Account"},{key:"general",label:"General"},{key:"appearance",label:"Appearance"},{key:"notifications",label:"Notifications"},{key:"access",label:"Access & security"},{key:"integrations",label:"Integrations"},{key:"agents",label:"Agents & tools"},{key:"policies",label:"Policies"},{key:"advanced",label:"Advanced"}],uv={general:{path:"GET/PUT /v1/ui/settings/general",what:"Instance name and environment, time display, default task preferences, default workflow policy and event/artifact retention. The coordinator keeps these in config.jsonc and the container environment; nothing reads or writes them over the API."},appearance:{path:"GET/PUT /v1/ui/settings/appearance",what:"Theme and reduced motion are the only appearance choices ethos permits, and neither is stored server-side today. The console follows the operating system."},notifications:{path:"GET/PUT /v1/ui/settings/notifications",what:"Notification sinks and per-event routing. ntfy credentials live in the compose .env file and are never returned by the API."},access:{path:"GET /v1/ui/settings/access",what:"Web tokens and their status, trusted and ignored review actors, live operator sessions, agent-surface auth and the source each secret is loaded from. Only the operator credential below is exposed today."},integrations:{path:"GET /v1/ui/settings/integrations",what:"Gitea and Vikunja endpoints, notification sinks and source reconciliation state, each with its identity and last successful interaction. No endpoint reports integration health."},agents:{path:"GET /v1/ui/settings/harnesses",what:"Harness definitions, adapter runtime configuration, herdr and tmux ownership, default launch behaviour and context occupancy thresholds. The registry is read from config.jsonc at start-up and is not served."},policies:{path:"GET/PUT /v1/ui/settings/policies",what:"Work phase defaults, the trajectory gate, the bounded decision request budget, retry policy, reconcile failure handoff threshold and review/submission policy. These are compiled-in defaults, not stored settings."},advanced:{path:"GET /v1/ui/settings/diagnostics",what:"Event-store diagnostics, snapshots and replay, raw configuration, migration status and destructive operator actions. Destructive actions must not be built before the coordinator can report what they would touch."}};function rv(l){if(!l)return"—";const i=Date.parse(l);return Number.isFinite(i)?new Date(i).toISOString().replace("T"," ").slice(0,19)+" UTC":l}function n1(l){return l instanceof Error?l.message:String(l)}function l1({account:l,onLogout:i,onCredentialsChanged:o}){var h;const[c,d]=S.useState("account");return s.jsxs("main",{className:"page",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Settings"}),s.jsx("p",{children:"One operator credential is stored here. Everything else Orchestra runs on comes from config and environment."})]}),s.jsx("div",{className:"set-tabs",role:"tablist","aria-label":"Settings sections",children:iv.map(v=>s.jsx("button",{role:"tab",type:"button",className:"set-tab","aria-selected":c===v.key,onClick:()=>d(v.key),children:v.label},v.key))}),c==="account"?s.jsx(s1,{account:l,onLogout:i,onCredentialsChanged:o}):s.jsx(Ne,{title:(h=iv.find(v=>v.key===c))==null?void 0:h.label,children:s.jsx(ta,{path:uv[c].path,what:uv[c].what})})]})}function s1({account:l,onLogout:i,onCredentialsChanged:o}){const[c,d]=S.useState(l.username),[h,v]=S.useState(""),[g,p]=S.useState(""),[y,E]=S.useState(""),[x,w]=S.useState(!1),[O,U]=S.useState(""),z=xf({mutationFn:()=>lt.updateAccount({current_password:h,username:c.trim(),...g?{new_password:g}:{}}),onSuccess:W=>o(W.username)}),q=c.trim()!==l.username||!!g,H=g.length>=10,G=new TextEncoder().encode(g).length<=72,K=g===y,Z=W=>{if(W.preventDefault(),U(""),!c.trim())return U("Username cannot be empty.");if(!q)return U("Change the username or enter a new password first.");if(!h)return U("Enter your current password to authorize this change.");if(g&&(!H||!G||!K))return U(K?"Use a password between 10 and 72 bytes.":"The new passwords do not match.");z.mutate()};return s.jsxs("div",{className:"set-account",children:[s.jsx(Ne,{title:"Sign-in credentials",children:s.jsxs("form",{className:"panel-body set-form",onSubmit:Z,noValidate:!0,children:[s.jsx("p",{className:"set-note",children:"Changing either field signs out every browser using this account. Your current password authorizes the change and is never stored by the console."}),s.jsxs("div",{className:"set-field",children:[s.jsx("label",{className:"label",htmlFor:"set-username",children:"Username"}),s.jsx("input",{id:"set-username",className:"set-input",autoComplete:"username",value:c,onChange:W=>{d(W.target.value),U("")}})]}),s.jsxs("div",{className:"set-split",children:[s.jsxs("div",{className:"set-field",children:[s.jsx("label",{className:"label",htmlFor:"set-new",children:"New password"}),s.jsxs("div",{className:"set-reveal",children:[s.jsx("input",{id:"set-new",className:"set-input",type:x?"text":"password",autoComplete:"new-password",placeholder:"Leave blank to keep it",value:g,onChange:W=>{p(W.target.value),U("")}}),s.jsx("button",{type:"button",className:"set-reveal-btn",onClick:()=>w(W=>!W),children:x?"Hide":"Show"})]})]}),s.jsxs("div",{className:"set-field",children:[s.jsx("label",{className:"label",htmlFor:"set-confirm",children:"Confirm new password"}),s.jsx("input",{id:"set-confirm",className:"set-input",type:x?"text":"password",autoComplete:"new-password",placeholder:"Repeat new password",value:y,onChange:W=>{E(W.target.value),U("")}})]})]}),g&&s.jsxs("div",{className:"set-rules","aria-live":"polite",children:[s.jsxs("span",{"data-met":H,children:[s.jsx(Be,{name:"check",size:13})," 10 characters or more"]}),s.jsxs("span",{"data-met":G,children:[s.jsx(Be,{name:"check",size:13})," 72 bytes or fewer"]}),s.jsxs("span",{"data-met":K&&!!y,children:[s.jsx(Be,{name:"check",size:13})," Passwords match"]})]}),s.jsxs("div",{className:"set-field",children:[s.jsx("label",{className:"label",htmlFor:"set-current",children:"Current password"}),s.jsx("input",{id:"set-current",className:"set-input",type:"password",autoComplete:"current-password",value:h,onChange:W=>{v(W.target.value),U("")}})]}),(O||z.error)&&s.jsxs("p",{className:"set-error",role:"alert",children:[s.jsx(Be,{name:"alert",size:15})," ",O||n1(z.error)]}),s.jsxs("div",{className:"set-actions",children:[s.jsx("span",{className:"set-note",children:"You sign in again after saving."}),s.jsx("button",{className:"btn","data-variant":"primary",type:"submit",disabled:z.isPending||!q,children:z.isPending?"Saving":"Save credentials"})]})]})}),s.jsx(Ne,{title:"This account",trailing:s.jsx(Ge,{tone:"accent",children:"operator"}),children:s.jsxs("div",{className:"panel-body set-facts",children:[s.jsxs("div",{children:[s.jsx("span",{className:"label",children:"Username"}),s.jsx("span",{children:l.username})]}),s.jsxs("div",{children:[s.jsx("span",{className:"label",children:"Created"}),s.jsx(B,{children:rv(l.created_at)})]}),s.jsxs("div",{children:[s.jsx("span",{className:"label",children:"Credentials updated"}),s.jsx(B,{children:rv(l.updated_at)})]}),s.jsxs("div",{children:[s.jsx("span",{className:"label",children:"Credential store"}),s.jsx(B,{children:"bcrypt · orchestra data volume"})]}),s.jsx("button",{className:"btn set-signout",type:"button",onClick:i,children:"Sign out"})]})})]})}function i1({account:l,onLogout:i,onCredentialsChanged:o}){const c=Qt({queryKey:["overview"],queryFn:lt.overview,refetchInterval:5e3});return s.jsx(Gx,{children:s.jsxs(ia,{element:s.jsx(hb,{live:!c.isError}),children:[s.jsx(ia,{index:!0,element:s.jsx(Sb,{})}),s.jsx(ia,{path:"tasks",element:s.jsx(Cb,{})}),s.jsx(ia,{path:"tasks/:id",element:s.jsx(Ub,{})}),s.jsx(ia,{path:"tasks/:id/terminal",element:s.jsx(Hb,{})}),s.jsx(ia,{path:"decisions",element:s.jsx(Qb,{})}),s.jsx(ia,{path:"workers",element:s.jsx(Xb,{})}),s.jsx(ia,{path:"projects",element:s.jsx(Jb,{})}),s.jsx(ia,{path:"review",element:s.jsx(a1,{})}),s.jsx(ia,{path:"settings",element:s.jsx(l1,{account:l,onLogout:i,onCredentialsChanged:o})})]})})}const ii=new Vj({defaultOptions:{queries:{retry:1,staleTime:2e3}}});function cv({name:l,size:i=18}){const o={activity:s.jsx("path",{d:"M3 12h4l2.3-7 4.2 14L16 12h5"}),alert:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M10.3 3.7 2.8 17a2 2 0 0 0 1.7 3h15a2 2 0 0 0 1.7-3L13.7 3.7a2 2 0 0 0-3.4 0Z"}),s.jsx("path",{d:"M12 9v4M12 17h.01"})]}),"arrow-left":s.jsx("path",{d:"m15 18-6-6 6-6"}),check:s.jsx("path",{d:"m5 12 4 4L19 6"}),"chevron-right":s.jsx("path",{d:"m9 18 6-6-6-6"}),clock:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"12",cy:"12",r:"9"}),s.jsx("path",{d:"M12 7v5l3 2"})]}),command:s.jsx(s.Fragment,{children:s.jsx("path",{d:"M18 9a3 3 0 1 0-3-3v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3Z"})}),copy:s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:"8",y:"8",width:"11",height:"11",rx:"2"}),s.jsx("path",{d:"M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"})]}),grid:s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),s.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),s.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),s.jsx("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),layers:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"m12 2 9 5-9 5-9-5 9-5Z"}),s.jsx("path",{d:"m3 12 9 5 9-5M3 17l9 5 9-5"})]}),plus:s.jsx("path",{d:"M12 5v14M5 12h14"}),refresh:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M20 7v5h-5"}),s.jsx("path",{d:"M19 12a7 7 0 1 0-2 5"})]}),search:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"11",cy:"11",r:"7"}),s.jsx("path",{d:"m20 20-4-4"})]}),server:s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:"3",y:"4",width:"18",height:"6",rx:"2"}),s.jsx("rect",{x:"3",y:"14",width:"18",height:"6",rx:"2"}),s.jsx("path",{d:"M7 7h.01M7 17h.01"})]}),settings:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6v.2h-4V21a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1L4.2 17l.1-.1a1.7 1.7 0 0 0 .3-1.9A1.7 1.7 0 0 0 3 14H2.8v-4H3a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9L4.2 7 7 4.2l.1.1A1.7 1.7 0 0 0 9 4.6 1.7 1.7 0 0 0 10 3v-.2h4V3a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1L19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2v4H21a1.7 1.7 0 0 0-1.6 1Z"})]}),shield:s.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Zm-3-10 2 2 4-5"}),terminal:s.jsx(s.Fragment,{children:s.jsx("path",{d:"m4 6 5 5-5 5M11 18h9"})}),users:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),s.jsx("circle",{cx:"9",cy:"7",r:"4"}),s.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"})]}),x:s.jsx("path",{d:"M18 6 6 18M6 6l12 12"})};return s.jsx("svg",{className:"icon",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o[l]})}function af(){return s.jsxs("span",{className:"logo-symbol","aria-hidden":"true",children:[s.jsx("i",{}),s.jsx("i",{}),s.jsx("i",{})]})}function u1({onAuthenticated:l,message:i}){const o=S.useRef(null),[c,d]=S.useState(""),[h,v]=S.useState(""),[g,p]=S.useState(""),[y,E]=S.useState(!1),[x,w]=S.useState(!1),[O,U]=S.useState(!1);S.useEffect(()=>{var q;return(q=o.current)==null?void 0:q.focus()},[]);const z=async q=>{var H;if(q.preventDefault(),!c||!h){p("Enter your username and password to continue."),(H=c?document.getElementById("web-password"):o.current)==null||H.focus();return}p(""),E(!0);try{const G=await lt.login(c,h);v(""),l(G)}catch{p("That username or password was not accepted. Check both and try again.")}finally{E(!1)}};return s.jsxs("main",{className:"legacy login-page",children:[s.jsx("div",{className:"login-grid","aria-hidden":"true"}),s.jsxs("div",{className:"login-layout",children:[s.jsxs("section",{className:"login-showcase","aria-label":"Orchestra overview",children:[s.jsxs("div",{className:"showcase-brand",children:[s.jsx(af,{}),s.jsxs("span",{children:[s.jsx("b",{children:"Orchestra"}),s.jsx("small",{children:"Unattended work, under control"})]})]}),s.jsxs("div",{className:"showcase-copy",children:[s.jsx("span",{className:"eyebrow",children:"Operator console"}),s.jsxs("h2",{children:["Keep every agent",s.jsx("br",{}),"on the same score."]}),s.jsx("p",{children:"Dispatch work, inspect live sessions, resolve decisions, and retain the evidence that brought each task home."})]}),s.jsxs("div",{className:"showcase-flow","aria-hidden":"true",children:[s.jsxs("span",{children:[s.jsx("i",{className:"flow-dot queued"})," Queue"]}),s.jsx("b",{}),s.jsxs("span",{children:[s.jsx("i",{className:"flow-dot active"})," Agent"]}),s.jsx("b",{}),s.jsxs("span",{children:[s.jsx("i",{className:"flow-dot review"})," Review"]}),s.jsx("b",{}),s.jsxs("span",{children:[s.jsx("i",{className:"flow-dot done"})," Done"]})]}),s.jsxs("footer",{children:[s.jsx("span",{className:"signal online"})," Control plane ready"]})]}),s.jsxs("section",{className:"login-card","aria-labelledby":"login-title",children:[s.jsxs("header",{className:"login-brand",children:[s.jsx(af,{}),s.jsxs("span",{children:[s.jsx("b",{children:"Orchestra"}),s.jsx("small",{children:"Control plane"})]})]}),s.jsxs("div",{className:"login-heading",children:[s.jsx("span",{className:"eyebrow",children:"Operator access"}),s.jsx("h1",{id:"login-title",children:"Welcome back."}),s.jsx("p",{children:"Sign in to watch agents, resolve blockers, and keep work moving."})]}),i&&s.jsx("p",{className:"notice",role:"status",children:i}),s.jsxs("form",{onSubmit:z,noValidate:!0,children:[s.jsx("label",{htmlFor:"web-username",children:"Username"}),s.jsx("input",{ref:o,id:"web-username",autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:c,onChange:q=>{d(q.target.value),p("")},"aria-invalid":!!g,placeholder:"Operator username"}),s.jsx("label",{htmlFor:"web-password",children:"Password"}),s.jsxs("div",{className:"password-field",children:[s.jsx("input",{id:"web-password",type:x?"text":"password",autoComplete:"current-password",value:h,onChange:q=>{v(q.target.value),p("")},onKeyUp:q=>U(q.getModifierState("CapsLock")),onKeyDown:q=>U(q.getModifierState("CapsLock")),"aria-invalid":!!g,placeholder:"Password"}),s.jsx("button",{type:"button",onClick:()=>w(q=>!q),children:x?"Hide":"Show"})]}),O&&s.jsx("span",{className:"caps-lock",children:"Caps Lock is on"}),g&&s.jsxs("p",{className:"form-error",role:"alert",children:[s.jsx(cv,{name:"alert",size:15})," ",g]}),s.jsx("button",{className:"login-submit",type:"submit",disabled:y||!c||!h,children:y?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"spinner"})," Opening session…"]}):"Sign in"})]}),s.jsxs("footer",{className:"login-security",children:[s.jsx("span",{children:s.jsx(cv,{name:"shield",size:15})}),s.jsx("p",{children:"Your password is verified against Orchestras local operator database. The browser receives only a 12-hour HttpOnly session cookie."})]})]})]})]})}function r1(){const[l,i]=S.useState(),[o,c]=S.useState(!0),[d,h]=S.useState("");S.useEffect(()=>{const p=()=>{ii.clear(),h("Your browser session expired. Sign in again to continue."),i(void 0),c(!1)};return window.addEventListener("orchestra:unauthorized",p),lt.session().then(y=>i(y)).catch(()=>i(void 0)).finally(()=>c(!1)),()=>window.removeEventListener("orchestra:unauthorized",p)},[]);const v=async()=>{await lt.logout(),ii.clear(),h("You have signed out."),i(void 0)},g=p=>{ii.clear(),h(`Credentials for ${p} were saved. Sign in again to continue.`),i(void 0)};return o?s.jsx("main",{className:"legacy login-page",children:s.jsxs("section",{className:"session-check","aria-live":"polite",children:[s.jsx(af,{}),s.jsx("span",{className:"spinner"}),s.jsx("span",{children:"Checking your operator session…"})]})}):l?s.jsx(i1,{account:l,onLogout:v,onCredentialsChanged:g}):s.jsx(u1,{message:d,onAuthenticated:p=>{ii.clear(),h(""),i(p)}})}Q0.createRoot(document.getElementById("root")).render(s.jsx(D0.StrictMode,{children:s.jsx(Jj,{client:ii,children:s.jsx(hj,{children:s.jsx(r1,{})})})}));