lumen-app 0.4.2__py3-none-any.whl → 0.4.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lumen_app/core/server.py +3 -3
- lumen_app/utils/installation/micromamba_installer.py +66 -21
- lumen_app/web/api/config.py +85 -24
- lumen_app/web/api/install.py +124 -0
- lumen_app/web/api/tests/__init__.py +1 -0
- lumen_app/web/api/tests/test_install.py +148 -0
- lumen_app/web/core/state.py +12 -0
- lumen_app/web/models/install.py +21 -0
- lumen_app/web/static/assets/index-CMWOChkS.css +1 -0
- lumen_app/web/static/assets/index-D3p85GRV.js +56 -0
- lumen_app/web/static/index.html +2 -2
- lumen_app/web/websockets/logs.py +0 -1
- {lumen_app-0.4.2.dist-info → lumen_app-0.4.4.dist-info}/METADATA +1 -1
- {lumen_app-0.4.2.dist-info → lumen_app-0.4.4.dist-info}/RECORD +17 -15
- lumen_app/web/static/assets/index-CGuhGHC9.css +0 -1
- lumen_app/web/static/assets/index-DN6HmxWS.js +0 -56
- {lumen_app-0.4.2.dist-info → lumen_app-0.4.4.dist-info}/WHEEL +0 -0
- {lumen_app-0.4.2.dist-info → lumen_app-0.4.4.dist-info}/entry_points.txt +0 -0
- {lumen_app-0.4.2.dist-info → lumen_app-0.4.4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
function p1(n,i){for(var r=0;r<i.length;r++){const s=i[r];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function pg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Uu={exports:{}},ar={};var iv;function v1(){if(iv)return ar;iv=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:h,ref:u!==void 0?u:null,props:f}}return ar.Fragment=i,ar.jsx=r,ar.jsxs=r,ar}var rv;function g1(){return rv||(rv=1,Uu.exports=v1()),Uu.exports}var d=g1(),Hu={exports:{}},ye={};var sv;function y1(){if(sv)return ye;sv=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),E=Symbol.iterator;function C(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};function T(O,Q,F){this.props=O,this.context=Q,this.refs=N,this.updater=F||j}T.prototype.isReactComponent={},T.prototype.setState=function(O,Q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Q,"setState")},T.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function A(){}A.prototype=T.prototype;function z(O,Q,F){this.props=O,this.context=Q,this.refs=N,this.updater=F||j}var G=z.prototype=new A;G.constructor=z,S(G,T.prototype),G.isPureReactComponent=!0;var L=Array.isArray;function J(){}var V={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function I(O,Q,F){var W=F.ref;return{$$typeof:n,type:O,key:Q,ref:W!==void 0?W:null,props:F}}function se(O,Q){return I(O.type,Q,O.props)}function ue(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function oe(O){var Q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(F){return Q[F]})}var pe=/\/+/g;function he(O,Q){return typeof O=="object"&&O!==null&&O.key!=null?oe(""+O.key):Q.toString(36)}function ve(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(J,J):(O.status="pending",O.then(function(Q){O.status==="pending"&&(O.status="fulfilled",O.value=Q)},function(Q){O.status==="pending"&&(O.status="rejected",O.reason=Q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function D(O,Q,F,W,re){var de=typeof O;(de==="undefined"||de==="boolean")&&(O=null);var $=!1;if(O===null)$=!0;else switch(de){case"bigint":case"string":case"number":$=!0;break;case"object":switch(O.$$typeof){case n:case i:$=!0;break;case x:return $=O._init,D($(O._payload),Q,F,W,re)}}if($)return re=re(O),$=W===""?"."+he(O,0):W,L(re)?(F="",$!=null&&(F=$.replace(pe,"$&/")+"/"),D(re,Q,F,"",function(Ne){return Ne})):re!=null&&(ue(re)&&(re=se(re,F+(re.key==null||O&&O.key===re.key?"":(""+re.key).replace(pe,"$&/")+"/")+$)),Q.push(re)),1;$=0;var ie=W===""?".":W+":";if(L(O))for(var ge=0;ge<O.length;ge++)W=O[ge],de=ie+he(W,ge),$+=D(W,Q,F,de,re);else if(ge=C(O),typeof ge=="function")for(O=ge.call(O),ge=0;!(W=O.next()).done;)W=W.value,de=ie+he(W,ge++),$+=D(W,Q,F,de,re);else if(de==="object"){if(typeof O.then=="function")return D(ve(O),Q,F,W,re);throw Q=String(O),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return $}function K(O,Q,F){if(O==null)return O;var W=[],re=0;return D(O,W,"","",function(de){return Q.call(F,de,re++)}),W}function B(O){if(O._status===-1){var Q=O._result;Q=Q(),Q.then(function(F){(O._status===0||O._status===-1)&&(O._status=1,O._result=F)},function(F){(O._status===0||O._status===-1)&&(O._status=2,O._result=F)}),O._status===-1&&(O._status=0,O._result=Q)}if(O._status===1)return O._result.default;throw O._result}var le=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},me={map:K,forEach:function(O,Q,F){K(O,function(){Q.apply(this,arguments)},F)},count:function(O){var Q=0;return K(O,function(){Q++}),Q},toArray:function(O){return K(O,function(Q){return Q})||[]},only:function(O){if(!ue(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ye.Activity=b,ye.Children=me,ye.Component=T,ye.Fragment=r,ye.Profiler=u,ye.PureComponent=z,ye.StrictMode=s,ye.Suspense=v,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ye.__COMPILER_RUNTIME={__proto__:null,c:function(O){return V.H.useMemoCache(O)}},ye.cache=function(O){return function(){return O.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(O,Q,F){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var W=S({},O.props),re=O.key;if(Q!=null)for(de in Q.key!==void 0&&(re=""+Q.key),Q)!X.call(Q,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Q.ref===void 0||(W[de]=Q[de]);var de=arguments.length-2;if(de===1)W.children=F;else if(1<de){for(var $=Array(de),ie=0;ie<de;ie++)$[ie]=arguments[ie+2];W.children=$}return I(O.type,re,W)},ye.createContext=function(O){return O={$$typeof:h,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},ye.createElement=function(O,Q,F){var W,re={},de=null;if(Q!=null)for(W in Q.key!==void 0&&(de=""+Q.key),Q)X.call(Q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(re[W]=Q[W]);var $=arguments.length-2;if($===1)re.children=F;else if(1<$){for(var ie=Array($),ge=0;ge<$;ge++)ie[ge]=arguments[ge+2];re.children=ie}if(O&&O.defaultProps)for(W in $=O.defaultProps,$)re[W]===void 0&&(re[W]=$[W]);return I(O,de,re)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(O){return{$$typeof:m,render:O}},ye.isValidElement=ue,ye.lazy=function(O){return{$$typeof:x,_payload:{_status:-1,_result:O},_init:B}},ye.memo=function(O,Q){return{$$typeof:g,type:O,compare:Q===void 0?null:Q}},ye.startTransition=function(O){var Q=V.T,F={};V.T=F;try{var W=O(),re=V.S;re!==null&&re(F,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(J,le)}catch(de){le(de)}finally{Q!==null&&F.types!==null&&(Q.types=F.types),V.T=Q}},ye.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ye.use=function(O){return V.H.use(O)},ye.useActionState=function(O,Q,F){return V.H.useActionState(O,Q,F)},ye.useCallback=function(O,Q){return V.H.useCallback(O,Q)},ye.useContext=function(O){return V.H.useContext(O)},ye.useDebugValue=function(){},ye.useDeferredValue=function(O,Q){return V.H.useDeferredValue(O,Q)},ye.useEffect=function(O,Q){return V.H.useEffect(O,Q)},ye.useEffectEvent=function(O){return V.H.useEffectEvent(O)},ye.useId=function(){return V.H.useId()},ye.useImperativeHandle=function(O,Q,F){return V.H.useImperativeHandle(O,Q,F)},ye.useInsertionEffect=function(O,Q){return V.H.useInsertionEffect(O,Q)},ye.useLayoutEffect=function(O,Q){return V.H.useLayoutEffect(O,Q)},ye.useMemo=function(O,Q){return V.H.useMemo(O,Q)},ye.useOptimistic=function(O,Q){return V.H.useOptimistic(O,Q)},ye.useReducer=function(O,Q,F){return V.H.useReducer(O,Q,F)},ye.useRef=function(O){return V.H.useRef(O)},ye.useState=function(O){return V.H.useState(O)},ye.useSyncExternalStore=function(O,Q,F){return V.H.useSyncExternalStore(O,Q,F)},ye.useTransition=function(){return V.H.useTransition()},ye.version="19.2.4",ye}var ov;function Tf(){return ov||(ov=1,Hu.exports=y1()),Hu.exports}var y=Tf();const Ea=pg(y),Af=p1({__proto__:null,default:Ea},[y]);var ku={exports:{}},lr={},Bu={exports:{}},qu={};var cv;function x1(){return cv||(cv=1,(function(n){function i(D,K){var B=D.length;D.push(K);e:for(;0<B;){var le=B-1>>>1,me=D[le];if(0<u(me,K))D[le]=K,D[B]=me,B=le;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var K=D[0],B=D.pop();if(B!==K){D[0]=B;e:for(var le=0,me=D.length,O=me>>>1;le<O;){var Q=2*(le+1)-1,F=D[Q],W=Q+1,re=D[W];if(0>u(F,B))W<me&&0>u(re,F)?(D[le]=re,D[W]=B,le=W):(D[le]=F,D[Q]=B,le=Q);else if(W<me&&0>u(re,B))D[le]=re,D[W]=B,le=W;else break e}}return K}function u(D,K){var B=D.sortIndex-K.sortIndex;return B!==0?B:D.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var v=[],g=[],x=1,b=null,E=3,C=!1,j=!1,S=!1,N=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function G(D){for(var K=r(g);K!==null;){if(K.callback===null)s(g);else if(K.startTime<=D)s(g),K.sortIndex=K.expirationTime,i(v,K);else break;K=r(g)}}function L(D){if(S=!1,G(D),!j)if(r(v)!==null)j=!0,J||(J=!0,oe());else{var K=r(g);K!==null&&ve(L,K.startTime-D)}}var J=!1,V=-1,X=5,I=-1;function se(){return N?!0:!(n.unstable_now()-I<X)}function ue(){if(N=!1,J){var D=n.unstable_now();I=D;var K=!0;try{e:{j=!1,S&&(S=!1,A(V),V=-1),C=!0;var B=E;try{t:{for(G(D),b=r(v);b!==null&&!(b.expirationTime>D&&se());){var le=b.callback;if(typeof le=="function"){b.callback=null,E=b.priorityLevel;var me=le(b.expirationTime<=D);if(D=n.unstable_now(),typeof me=="function"){b.callback=me,G(D),K=!0;break t}b===r(v)&&s(v),G(D)}else s(v);b=r(v)}if(b!==null)K=!0;else{var O=r(g);O!==null&&ve(L,O.startTime-D),K=!1}}break e}finally{b=null,E=B,C=!1}K=void 0}}finally{K?oe():J=!1}}}var oe;if(typeof z=="function")oe=function(){z(ue)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,he=pe.port2;pe.port1.onmessage=ue,oe=function(){he.postMessage(null)}}else oe=function(){T(ue,0)};function ve(D,K){V=T(function(){D(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.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"):X=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(D){switch(E){case 1:case 2:case 3:var K=3;break;default:K=E}var B=E;E=K;try{return D()}finally{E=B}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(D,K){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var B=E;E=D;try{return K()}finally{E=B}},n.unstable_scheduleCallback=function(D,K,B){var le=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?le+B:le):B=le,D){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=B+me,D={id:x++,callback:K,priorityLevel:D,startTime:B,expirationTime:me,sortIndex:-1},B>le?(D.sortIndex=B,i(g,D),r(v)===null&&D===r(g)&&(S?(A(V),V=-1):S=!0,ve(L,B-le))):(D.sortIndex=me,i(v,D),j||C||(j=!0,J||(J=!0,oe()))),D},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(D){var K=E;return function(){var B=E;E=K;try{return D.apply(this,arguments)}finally{E=B}}}})(qu)),qu}var uv;function b1(){return uv||(uv=1,Bu.exports=x1()),Bu.exports}var Vu={exports:{}},xt={};var fv;function S1(){if(fv)return xt;fv=1;var n=Tf();function i(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,g,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:v,containerInfo:g,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,xt.createPortal=function(v,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return f(v,g,null,x)},xt.flushSync=function(v){var g=h.T,x=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=g,s.p=x,s.d.f()}},xt.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(v,g))},xt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},xt.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var x=g.as,b=m(x,g.crossOrigin),E=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?s.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:E,fetchPriority:C}):x==="script"&&s.d.X(v,{crossOrigin:b,integrity:E,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},xt.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);s.d.M(v,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(v)},xt.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,b=m(x,g.crossOrigin);s.d.L(v,x,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},xt.preloadModule=function(v,g){if(typeof v=="string")if(g){var x=m(g.as,g.crossOrigin);s.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(v)},xt.requestFormReset=function(v){s.d.r(v)},xt.unstable_batchedUpdates=function(v,g){return v(g)},xt.useFormState=function(v,g,x){return h.H.useFormState(v,g,x)},xt.useFormStatus=function(){return h.H.useHostTransitionStatus()},xt.version="19.2.4",xt}var dv;function vg(){if(dv)return Vu.exports;dv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Vu.exports=S1(),Vu.exports}var hv;function w1(){if(hv)return lr;hv=1;var n=b1(),i=Tf(),r=vg();function s(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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 h(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 m(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 v(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return v(o),e;if(c===l)return v(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=c;else{for(var p=!1,w=o.child;w;){if(w===a){p=!0,a=o,l=c;break}if(w===l){p=!0,l=o,a=c;break}w=w.sibling}if(!p){for(w=c.child;w;){if(w===a){p=!0,a=c,l=o;break}if(w===l){p=!0,l=c,a=o;break}w=w.sibling}if(!p)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),z=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case T:return"Profiler";case N:return"StrictMode";case L:return"Suspense";case J:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case z:return e.displayName||"Context";case A:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ve=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},le=[],me=-1;function O(e){return{current:e}}function Q(e){0>me||(e.current=le[me],le[me]=null,me--)}function F(e,t){me++,le[me]=e.current,e.current=t}var W=O(null),re=O(null),de=O(null),$=O(null);function ie(e,t){switch(F(de,t),F(re,e),F(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tp(t),e=Ap(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(W),F(W,e)}function ge(){Q(W),Q(re),Q(de)}function Ne(e){e.memoizedState!==null&&F($,e);var t=W.current,a=Ap(t,e.type);t!==a&&(F(re,e),F(W,a))}function Ae(e){re.current===e&&(Q(W),Q(re)),$.current===e&&(Q($),Ii._currentValue=B)}var ze,wt;function Et(e){if(ze===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",wt=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ze+e+wt}var _a=!1;function Ma(e,t){if(!e||_a)return"";_a=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(q){var k=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){k=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){k=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&k&&typeof q.stack=="string")return[q.stack,k.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),p=c[0],w=c[1];if(p&&w){var R=p.split(`
|
|
4
|
+
`),H=w.split(`
|
|
5
|
+
`);for(o=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;if(l===R.length||o===H.length)for(l=R.length-1,o=H.length-1;1<=l&&0<=o&&R[l]!==H[o];)o--;for(;1<=l&&0<=o;l--,o--)if(R[l]!==H[o]){if(l!==1||o!==1)do if(l--,o--,0>o||R[l]!==H[o]){var Y=`
|
|
6
|
+
`+R[l].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=l&&0<=o);break}}}finally{_a=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Et(a):""}function ui(e,t){switch(e.tag){case 26:case 27:case 5:return Et(e.type);case 16:return Et("Lazy");case 13:return e.child!==t&&t!==null?Et("Suspense Fallback"):Et("Suspense");case 19:return Et("SuspenseList");case 0:case 15:return Ma(e.type,!1);case 11:return Ma(e.type.render,!1);case 1:return Ma(e.type,!0);case 31:return Et("Activity");default:return""}}function id(e){try{var t="",a=null;do t+=ui(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var So=Object.prototype.hasOwnProperty,wo=n.unstable_scheduleCallback,Eo=n.unstable_cancelCallback,K0=n.unstable_shouldYield,Z0=n.unstable_requestPaint,Ut=n.unstable_now,F0=n.unstable_getCurrentPriorityLevel,rd=n.unstable_ImmediatePriority,sd=n.unstable_UserBlockingPriority,yr=n.unstable_NormalPriority,$0=n.unstable_LowPriority,od=n.unstable_IdlePriority,J0=n.log,W0=n.unstable_setDisableYieldValue,fi=null,Ht=null;function Jn(e){if(typeof J0=="function"&&W0(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(fi,e)}catch{}}var kt=Math.clz32?Math.clz32:tx,I0=Math.log,ex=Math.LN2;function tx(e){return e>>>=0,e===0?32:31-(I0(e)/ex|0)|0}var xr=256,br=262144,Sr=4194304;function za(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 wr(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var w=l&134217727;return w!==0?(l=w&~c,l!==0?o=za(l):(p&=w,p!==0?o=za(p):a||(a=w&~e,a!==0&&(o=za(a))))):(w=l&~c,w!==0?o=za(w):p!==0?o=za(p):a||(a=l&~e,a!==0&&(o=za(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function di(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nx(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 cd(){var e=Sr;return Sr<<=1,(Sr&62914560)===0&&(Sr=4194304),e}function Co(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ax(e,t,a,l,o,c){var p=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 w=e.entanglements,R=e.expirationTimes,H=e.hiddenUpdates;for(a=p&~a;0<a;){var Y=31-kt(a),Z=1<<Y;w[Y]=0,R[Y]=-1;var k=H[Y];if(k!==null)for(H[Y]=null,Y=0;Y<k.length;Y++){var q=k[Y];q!==null&&(q.lane&=-536870913)}a&=~Z}l!==0&&ud(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function ud(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-kt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function fd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-kt(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function dd(e,t){var a=t&-t;return a=(a&42)!==0?1:No(a),(a&(e.suspendedLanes|t))!==0?0:a}function No(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 Ro(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hd(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Wp(e.type))}function md(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var Wn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Wn,Rt="__reactProps$"+Wn,sl="__reactContainer$"+Wn,jo="__reactEvents$"+Wn,lx="__reactListeners$"+Wn,ix="__reactHandles$"+Wn,pd="__reactResources$"+Wn,mi="__reactMarker$"+Wn;function To(e){delete e[ht],delete e[Rt],delete e[jo],delete e[lx],delete e[ix]}function ol(e){var t=e[ht];if(t)return t;for(var a=e.parentNode;a;){if(t=a[sl]||a[ht]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Up(e);e!==null;){if(a=e[ht])return a;e=Up(e)}return t}e=a,a=e.parentNode}return null}function cl(e){if(e=e[ht]||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 pi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ul(e){var t=e[pd];return t||(t=e[pd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[mi]=!0}var vd=new Set,gd={};function Da(e,t){fl(e,t),fl(e+"Capture",t)}function fl(e,t){for(gd[e]=t,e=0;e<t.length;e++)vd.add(t[e])}var rx=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]*$"),yd={},xd={};function sx(e){return So.call(xd,e)?!0:So.call(yd,e)?!1:rx.test(e)?xd[e]=!0:(yd[e]=!0,!1)}function Er(e,t,a){if(sx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Cr(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 jn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ox(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ao(e){if(!e._valueTracker){var t=bd(e)?"checked":"value";e._valueTracker=ox(e,t,""+e[t])}}function Sd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=bd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Nr(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 cx=/[\n"\\]/g;function $t(e){return e.replace(cx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oo(e,t,a,l,o,c,p,w){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?_o(e,p,Ft(t)):a!=null?_o(e,p,Ft(a)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Ft(w):e.removeAttribute("name")}function wd(e,t,a,l,o,c,p,w){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ao(e);return}a=a!=null?""+Ft(a):"",t=t!=null?""+Ft(t):a,w||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=w?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Ao(e)}function _o(e,t,a){t==="number"&&Nr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function dl(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ft(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ed(e,t,a){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ft(a):""}function Cd(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Ft(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ao(e)}function hl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ux=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 Nd(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||ux.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Rd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&Nd(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&Nd(e,c,t[c])}function Mo(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 fx=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"]]),dx=/^[\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 Rr(e){return dx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tn(){}var zo=null;function Do(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,pl=null;function jd(e){var t=cl(e);if(t&&(e=t.stateNode)){var a=e[Rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oo(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="'+$t(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[Rt]||null;if(!o)throw Error(s(90));Oo(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Sd(l)}break e;case"textarea":Ed(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&dl(e,!!a.multiple,t,!1)}}}var Lo=!1;function Td(e,t,a){if(Lo)return e(t,a);Lo=!0;try{var l=e(t);return l}finally{if(Lo=!1,(ml!==null||pl!==null)&&(hs(),ml&&(t=ml,e=pl,pl=ml=null,jd(t),e)))for(t=0;t<e.length;t++)jd(e[t])}}function vi(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Rt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uo=!1;if(An)try{var gi={};Object.defineProperty(gi,"passive",{get:function(){Uo=!0}}),window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{Uo=!1}var In=null,Ho=null,jr=null;function Ad(){if(jr)return jr;var e,t=Ho,a=t.length,l,o="value"in In?In.value:In.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(l=1;l<=p&&t[a-l]===o[c-l];l++);return jr=o.slice(e,1<l?1-l:void 0)}function Tr(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 Ar(){return!0}function Od(){return!1}function jt(e){function t(a,l,o,c,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ar:Od,this.isPropagationStopped=Od,this}return b(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=Ar)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),t}var La={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Or=jt(La),yi=b({},La,{view:0,detail:0}),hx=jt(yi),ko,Bo,xi,_r=b({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vo,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!==xi&&(xi&&e.type==="mousemove"?(ko=e.screenX-xi.screenX,Bo=e.screenY-xi.screenY):Bo=ko=0,xi=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:Bo}}),_d=jt(_r),mx=b({},_r,{dataTransfer:0}),px=jt(mx),vx=b({},yi,{relatedTarget:0}),qo=jt(vx),gx=b({},La,{animationName:0,elapsedTime:0,pseudoElement:0}),yx=jt(gx),xx=b({},La,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bx=jt(xx),Sx=b({},La,{data:0}),Md=jt(Sx),wx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ex={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"},Cx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cx[e])?!!t[e]:!1}function Vo(){return Nx}var Rx=b({},yi,{key:function(e){if(e.key){var t=wx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ex[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vo,charCode:function(e){return e.type==="keypress"?Tr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jx=jt(Rx),Tx=b({},_r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zd=jt(Tx),Ax=b({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vo}),Ox=jt(Ax),_x=b({},La,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mx=jt(_x),zx=b({},_r,{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}),Dx=jt(zx),Lx=b({},La,{newState:0,oldState:0}),Ux=jt(Lx),Hx=[9,13,27,32],Go=An&&"CompositionEvent"in window,bi=null;An&&"documentMode"in document&&(bi=document.documentMode);var kx=An&&"TextEvent"in window&&!bi,Dd=An&&(!Go||bi&&8<bi&&11>=bi),Ld=" ",Ud=!1;function Hd(e,t){switch(e){case"keyup":return Hx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vl=!1;function Bx(e,t){switch(e){case"compositionend":return kd(t);case"keypress":return t.which!==32?null:(Ud=!0,Ld);case"textInput":return e=t.data,e===Ld&&Ud?null:e;default:return null}}function qx(e,t){if(vl)return e==="compositionend"||!Go&&Hd(e,t)?(e=Ad(),jr=Ho=In=null,vl=!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 Dd&&t.locale!=="ko"?null:t.data;default:return null}}var Vx={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 Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vx[e.type]:t==="textarea"}function qd(e,t,a,l){ml?pl?pl.push(l):pl=[l]:ml=l,t=bs(t,"onChange"),0<t.length&&(a=new Or("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Si=null,wi=null;function Gx(e){wp(e,0)}function Mr(e){var t=pi(e);if(Sd(t))return e}function Vd(e,t){if(e==="change")return t}var Gd=!1;if(An){var Yo;if(An){var Qo="oninput"in document;if(!Qo){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),Qo=typeof Yd.oninput=="function"}Yo=Qo}else Yo=!1;Gd=Yo&&(!document.documentMode||9<document.documentMode)}function Qd(){Si&&(Si.detachEvent("onpropertychange",Xd),wi=Si=null)}function Xd(e){if(e.propertyName==="value"&&Mr(wi)){var t=[];qd(t,wi,e,Do(e)),Td(Gx,t)}}function Yx(e,t,a){e==="focusin"?(Qd(),Si=t,wi=a,Si.attachEvent("onpropertychange",Xd)):e==="focusout"&&Qd()}function Qx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mr(wi)}function Xx(e,t){if(e==="click")return Mr(t)}function Px(e,t){if(e==="input"||e==="change")return Mr(t)}function Kx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:Kx;function Ei(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!So.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function Pd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kd(e,t){var a=Pd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Pd(a)}}function Zd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nr(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=Nr(e.document)}return t}function Xo(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 Zx=An&&"documentMode"in document&&11>=document.documentMode,gl=null,Po=null,Ci=null,Ko=!1;function $d(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ko||gl==null||gl!==Nr(l)||(l=gl,"selectionStart"in l&&Xo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ci&&Ei(Ci,l)||(Ci=l,l=bs(Po,"onSelect"),0<l.length&&(t=new Or("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=gl)))}function Ua(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var yl={animationend:Ua("Animation","AnimationEnd"),animationiteration:Ua("Animation","AnimationIteration"),animationstart:Ua("Animation","AnimationStart"),transitionrun:Ua("Transition","TransitionRun"),transitionstart:Ua("Transition","TransitionStart"),transitioncancel:Ua("Transition","TransitionCancel"),transitionend:Ua("Transition","TransitionEnd")},Zo={},Jd={};An&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete yl.animationend.animation,delete yl.animationiteration.animation,delete yl.animationstart.animation),"TransitionEvent"in window||delete yl.transitionend.transition);function Ha(e){if(Zo[e])return Zo[e];if(!yl[e])return e;var t=yl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Jd)return Zo[e]=t[a];return e}var Wd=Ha("animationend"),Id=Ha("animationiteration"),eh=Ha("animationstart"),Fx=Ha("transitionrun"),$x=Ha("transitionstart"),Jx=Ha("transitioncancel"),th=Ha("transitionend"),nh=new Map,Fo="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(" ");Fo.push("scrollEnd");function un(e,t){nh.set(e,t),Da(t,[e])}var zr=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)},Jt=[],xl=0,$o=0;function Dr(){for(var e=xl,t=$o=xl=0;t<e;){var a=Jt[t];Jt[t++]=null;var l=Jt[t];Jt[t++]=null;var o=Jt[t];Jt[t++]=null;var c=Jt[t];if(Jt[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&ah(a,o,c)}}function Lr(e,t,a,l){Jt[xl++]=e,Jt[xl++]=t,Jt[xl++]=a,Jt[xl++]=l,$o|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Jo(e,t,a,l){return Lr(e,t,a,l),Ur(e)}function ka(e,t){return Lr(e,null,null,t),Ur(e)}function ah(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-kt(a),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),c):null}function Ur(e){if(50<Pi)throw Pi=0,ru=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bl={};function Wx(e,t,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(e,t,a,l){return new Wx(e,t,a,l)}function Wo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function On(e,t){var a=e.alternate;return a===null?(a=qt(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 lh(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 Hr(e,t,a,l,o,c){var p=0;if(l=e,typeof e=="function")Wo(e)&&(p=1);else if(typeof e=="string")p=a1(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=qt(31,a,t,o),e.elementType=I,e.lanes=c,e;case S:return Ba(a.children,o,c,t);case N:p=8,o|=24;break;case T:return e=qt(12,a,t,o|2),e.elementType=T,e.lanes=c,e;case L:return e=qt(13,a,t,o),e.elementType=L,e.lanes=c,e;case J:return e=qt(19,a,t,o),e.elementType=J,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:p=10;break e;case A:p=9;break e;case G:p=11;break e;case V:p=14;break e;case X:p=16,l=null;break e}p=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=qt(p,a,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function Ba(e,t,a,l){return e=qt(7,e,l,t),e.lanes=a,e}function Io(e,t,a){return e=qt(6,e,null,t),e.lanes=a,e}function ih(e){var t=qt(18,null,null,0);return t.stateNode=e,t}function ec(e,t,a){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rh=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var a=rh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:id(t)},rh.set(e,t),t)}return{value:e,source:t,stack:id(t)}}var Sl=[],wl=0,kr=null,Ni=0,It=[],en=0,ea=null,vn=1,gn="";function _n(e,t){Sl[wl++]=Ni,Sl[wl++]=kr,kr=e,Ni=t}function sh(e,t,a){It[en++]=vn,It[en++]=gn,It[en++]=ea,ea=e;var l=vn;e=gn;var o=32-kt(l)-1;l&=~(1<<o),a+=1;var c=32-kt(t)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,vn=1<<32-kt(t)+o|a<<o|l,gn=c+e}else vn=1<<c|a<<o|l,gn=e}function tc(e){e.return!==null&&(_n(e,1),sh(e,1,0))}function nc(e){for(;e===kr;)kr=Sl[--wl],Sl[wl]=null,Ni=Sl[--wl],Sl[wl]=null;for(;e===ea;)ea=It[--en],It[en]=null,gn=It[--en],It[en]=null,vn=It[--en],It[en]=null}function oh(e,t){It[en++]=vn,It[en++]=gn,It[en++]=ea,vn=t.id,gn=t.overflow,ea=e}var mt=null,qe=null,Te=!1,ta=null,tn=!1,ac=Error(s(519));function na(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ri(Wt(t,e)),ac}function ch(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ht]=e,t[Rt]=l,a){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(a=0;a<Zi.length;a++)Ce(Zi[a],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),wd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),Cd(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Rp(t.textContent,a)?(l.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),l.onScroll!=null&&Ce("scroll",t),l.onScrollEnd!=null&&Ce("scrollend",t),l.onClick!=null&&(t.onclick=Tn),t=!0):t=!1,t||na(e,!0)}function uh(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:mt=mt.return}}function El(e){if(e!==mt)return!1;if(!Te)return uh(e),Te=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Su(e.type,e.memoizedProps)),a=!a),a&&qe&&na(e),uh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=Lp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=Lp(e)}else t===27?(t=qe,va(e.type)?(e=Ru,Ru=null,qe=e):qe=t):qe=mt?an(e.stateNode.nextSibling):null;return!0}function qa(){qe=mt=null,Te=!1}function lc(){var e=ta;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),ta=null),e}function Ri(e){ta===null?ta=[e]:ta.push(e)}var ic=O(null),Va=null,Mn=null;function aa(e,t,a){F(ic,t._currentValue),t._currentValue=a}function zn(e){e._currentValue=ic.current,Q(ic)}function rc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function sc(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var w=c;c=o;for(var R=0;R<t.length;R++)if(w.context===t[R]){c.lanes|=a,w=c.alternate,w!==null&&(w.lanes|=a),rc(c.return,a,e),l||(p=null);break e}c=w.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),rc(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Cl(e,t,a,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var w=o.type;Bt(o.pendingProps.value,p.value)||(e!==null?e.push(w):e=[w])}}else if(o===$.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ii):e=[Ii])}o=o.return}e!==null&&sc(t,e,a,l),t.flags|=262144}function Br(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ga(e){Va=e,Mn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return fh(Va,e)}function qr(e,t){return Va===null&&Ga(e),fh(e,t)}function fh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Mn===null){if(e===null)throw Error(s(308));Mn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Mn=Mn.next=t;return a}var Ix=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},eb=n.unstable_scheduleCallback,tb=n.unstable_NormalPriority,Je={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new Ix,data:new Map,refCount:0}}function ji(e){e.refCount--,e.refCount===0&&eb(tb,function(){e.controller.abort()})}var Ti=null,cc=0,Nl=0,Rl=null;function nb(e,t){if(Ti===null){var a=Ti=[];cc=0,Nl=du(),Rl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return cc++,t.then(dh,dh),t}function dh(){if(--cc===0&&Ti!==null){Rl!==null&&(Rl.status="fulfilled");var e=Ti;Ti=null,Nl=0,Rl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ab(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var hh=D.S;D.S=function(e,t){$m=Ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&nb(e,t),hh!==null&&hh(e,t)};var Ya=O(null);function uc(){var e=Ya.current;return e!==null?e:Be.pooledCache}function Vr(e,t){t===null?F(Ya,Ya.current):F(Ya,t.pool)}function mh(){var e=uc();return e===null?null:{parent:Je._currentValue,pool:e}}var jl=Error(s(460)),fc=Error(s(474)),Gr=Error(s(542)),Yr={then:function(){}};function ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Tn,Tn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yh(e),e;default:if(typeof t.status=="string")t.then(Tn,Tn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yh(e),e}throw Xa=t,jl}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Xa=a,jl):a}}var Xa=null;function gh(){if(Xa===null)throw Error(s(459));var e=Xa;return Xa=null,e}function yh(e){if(e===jl||e===Gr)throw Error(s(483))}var Tl=null,Ai=0;function Qr(e){var t=Ai;return Ai+=1,Tl===null&&(Tl=[]),vh(Tl,e,t)}function Oi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xr(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xh(e){function t(M,_){if(e){var U=M.deletions;U===null?(M.deletions=[_],M.flags|=16):U.push(_)}}function a(M,_){if(!e)return null;for(;_!==null;)t(M,_),_=_.sibling;return null}function l(M){for(var _=new Map;M!==null;)M.key!==null?_.set(M.key,M):_.set(M.index,M),M=M.sibling;return _}function o(M,_){return M=On(M,_),M.index=0,M.sibling=null,M}function c(M,_,U){return M.index=U,e?(U=M.alternate,U!==null?(U=U.index,U<_?(M.flags|=67108866,_):U):(M.flags|=67108866,_)):(M.flags|=1048576,_)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function w(M,_,U,P){return _===null||_.tag!==6?(_=Io(U,M.mode,P),_.return=M,_):(_=o(_,U),_.return=M,_)}function R(M,_,U,P){var ce=U.type;return ce===S?Y(M,_,U.props.children,P,U.key):_!==null&&(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===X&&Qa(ce)===_.type)?(_=o(_,U.props),Oi(_,U),_.return=M,_):(_=Hr(U.type,U.key,U.props,null,M.mode,P),Oi(_,U),_.return=M,_)}function H(M,_,U,P){return _===null||_.tag!==4||_.stateNode.containerInfo!==U.containerInfo||_.stateNode.implementation!==U.implementation?(_=ec(U,M.mode,P),_.return=M,_):(_=o(_,U.children||[]),_.return=M,_)}function Y(M,_,U,P,ce){return _===null||_.tag!==7?(_=Ba(U,M.mode,P,ce),_.return=M,_):(_=o(_,U),_.return=M,_)}function Z(M,_,U){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Io(""+_,M.mode,U),_.return=M,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case C:return U=Hr(_.type,_.key,_.props,null,M.mode,U),Oi(U,_),U.return=M,U;case j:return _=ec(_,M.mode,U),_.return=M,_;case X:return _=Qa(_),Z(M,_,U)}if(ve(_)||oe(_))return _=Ba(_,M.mode,U,null),_.return=M,_;if(typeof _.then=="function")return Z(M,Qr(_),U);if(_.$$typeof===z)return Z(M,qr(M,_),U);Xr(M,_)}return null}function k(M,_,U,P){var ce=_!==null?_.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ce!==null?null:w(M,_,""+U,P);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case C:return U.key===ce?R(M,_,U,P):null;case j:return U.key===ce?H(M,_,U,P):null;case X:return U=Qa(U),k(M,_,U,P)}if(ve(U)||oe(U))return ce!==null?null:Y(M,_,U,P,null);if(typeof U.then=="function")return k(M,_,Qr(U),P);if(U.$$typeof===z)return k(M,_,qr(M,U),P);Xr(M,U)}return null}function q(M,_,U,P,ce){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return M=M.get(U)||null,w(_,M,""+P,ce);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case C:return M=M.get(P.key===null?U:P.key)||null,R(_,M,P,ce);case j:return M=M.get(P.key===null?U:P.key)||null,H(_,M,P,ce);case X:return P=Qa(P),q(M,_,U,P,ce)}if(ve(P)||oe(P))return M=M.get(U)||null,Y(_,M,P,ce,null);if(typeof P.then=="function")return q(M,_,U,Qr(P),ce);if(P.$$typeof===z)return q(M,_,U,qr(_,P),ce);Xr(_,P)}return null}function ee(M,_,U,P){for(var ce=null,Oe=null,ae=_,be=_=0,je=null;ae!==null&&be<U.length;be++){ae.index>be?(je=ae,ae=null):je=ae.sibling;var _e=k(M,ae,U[be],P);if(_e===null){ae===null&&(ae=je);break}e&&ae&&_e.alternate===null&&t(M,ae),_=c(_e,_,be),Oe===null?ce=_e:Oe.sibling=_e,Oe=_e,ae=je}if(be===U.length)return a(M,ae),Te&&_n(M,be),ce;if(ae===null){for(;be<U.length;be++)ae=Z(M,U[be],P),ae!==null&&(_=c(ae,_,be),Oe===null?ce=ae:Oe.sibling=ae,Oe=ae);return Te&&_n(M,be),ce}for(ae=l(ae);be<U.length;be++)je=q(ae,M,be,U[be],P),je!==null&&(e&&je.alternate!==null&&ae.delete(je.key===null?be:je.key),_=c(je,_,be),Oe===null?ce=je:Oe.sibling=je,Oe=je);return e&&ae.forEach(function(Sa){return t(M,Sa)}),Te&&_n(M,be),ce}function fe(M,_,U,P){if(U==null)throw Error(s(151));for(var ce=null,Oe=null,ae=_,be=_=0,je=null,_e=U.next();ae!==null&&!_e.done;be++,_e=U.next()){ae.index>be?(je=ae,ae=null):je=ae.sibling;var Sa=k(M,ae,_e.value,P);if(Sa===null){ae===null&&(ae=je);break}e&&ae&&Sa.alternate===null&&t(M,ae),_=c(Sa,_,be),Oe===null?ce=Sa:Oe.sibling=Sa,Oe=Sa,ae=je}if(_e.done)return a(M,ae),Te&&_n(M,be),ce;if(ae===null){for(;!_e.done;be++,_e=U.next())_e=Z(M,_e.value,P),_e!==null&&(_=c(_e,_,be),Oe===null?ce=_e:Oe.sibling=_e,Oe=_e);return Te&&_n(M,be),ce}for(ae=l(ae);!_e.done;be++,_e=U.next())_e=q(ae,M,be,_e.value,P),_e!==null&&(e&&_e.alternate!==null&&ae.delete(_e.key===null?be:_e.key),_=c(_e,_,be),Oe===null?ce=_e:Oe.sibling=_e,Oe=_e);return e&&ae.forEach(function(m1){return t(M,m1)}),Te&&_n(M,be),ce}function ke(M,_,U,P){if(typeof U=="object"&&U!==null&&U.type===S&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case C:e:{for(var ce=U.key;_!==null;){if(_.key===ce){if(ce=U.type,ce===S){if(_.tag===7){a(M,_.sibling),P=o(_,U.props.children),P.return=M,M=P;break e}}else if(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===X&&Qa(ce)===_.type){a(M,_.sibling),P=o(_,U.props),Oi(P,U),P.return=M,M=P;break e}a(M,_);break}else t(M,_);_=_.sibling}U.type===S?(P=Ba(U.props.children,M.mode,P,U.key),P.return=M,M=P):(P=Hr(U.type,U.key,U.props,null,M.mode,P),Oi(P,U),P.return=M,M=P)}return p(M);case j:e:{for(ce=U.key;_!==null;){if(_.key===ce)if(_.tag===4&&_.stateNode.containerInfo===U.containerInfo&&_.stateNode.implementation===U.implementation){a(M,_.sibling),P=o(_,U.children||[]),P.return=M,M=P;break e}else{a(M,_);break}else t(M,_);_=_.sibling}P=ec(U,M.mode,P),P.return=M,M=P}return p(M);case X:return U=Qa(U),ke(M,_,U,P)}if(ve(U))return ee(M,_,U,P);if(oe(U)){if(ce=oe(U),typeof ce!="function")throw Error(s(150));return U=ce.call(U),fe(M,_,U,P)}if(typeof U.then=="function")return ke(M,_,Qr(U),P);if(U.$$typeof===z)return ke(M,_,qr(M,U),P);Xr(M,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,_!==null&&_.tag===6?(a(M,_.sibling),P=o(_,U),P.return=M,M=P):(a(M,_),P=Io(U,M.mode,P),P.return=M,M=P),p(M)):a(M,_)}return function(M,_,U,P){try{Ai=0;var ce=ke(M,_,U,P);return Tl=null,ce}catch(ae){if(ae===jl||ae===Gr)throw ae;var Oe=qt(29,ae,null,M.mode);return Oe.lanes=P,Oe.return=M,Oe}}}var Pa=xh(!0),bh=xh(!1),la=!1;function dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(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 ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ra(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Me&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Ur(e),ah(e,null,a),t}return Lr(e,l,t,a),Ur(e)}function _i(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,fd(e,a)}}function mc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var pc=!1;function Mi(){if(pc){var e=Rl;if(e!==null)throw e}}function zi(e,t,a,l){pc=!1;var o=e.updateQueue;la=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,w=o.shared.pending;if(w!==null){o.shared.pending=null;var R=w,H=R.next;R.next=null,p===null?c=H:p.next=H,p=R;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,w=Y.lastBaseUpdate,w!==p&&(w===null?Y.firstBaseUpdate=H:w.next=H,Y.lastBaseUpdate=R))}if(c!==null){var Z=o.baseState;p=0,Y=H=R=null,w=c;do{var k=w.lane&-536870913,q=k!==w.lane;if(q?(Re&k)===k:(l&k)===k){k!==0&&k===Nl&&(pc=!0),Y!==null&&(Y=Y.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var ee=e,fe=w;k=t;var ke=a;switch(fe.tag){case 1:if(ee=fe.payload,typeof ee=="function"){Z=ee.call(ke,Z,k);break e}Z=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=fe.payload,k=typeof ee=="function"?ee.call(ke,Z,k):ee,k==null)break e;Z=b({},Z,k);break e;case 2:la=!0}}k=w.callback,k!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[k]:q.push(k))}else q={lane:k,tag:w.tag,payload:w.payload,callback:w.callback,next:null},Y===null?(H=Y=q,R=Z):Y=Y.next=q,p|=k;if(w=w.next,w===null){if(w=o.shared.pending,w===null)break;q=w,w=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);Y===null&&(R=Z),o.baseState=R,o.firstBaseUpdate=H,o.lastBaseUpdate=Y,c===null&&(o.shared.lanes=0),fa|=p,e.lanes=p,e.memoizedState=Z}}function Sh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function wh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Sh(a[e],t)}var Al=O(null),Pr=O(0);function Eh(e,t){e=Gn,F(Pr,e),F(Al,t),Gn=e|t.baseLanes}function vc(){F(Pr,Gn),F(Al,Al.current)}function gc(){Gn=Pr.current,Q(Al),Q(Pr)}var Vt=O(null),nn=null;function sa(e){var t=e.alternate;F(Ze,Ze.current&1),F(Vt,e),nn===null&&(t===null||Al.current!==null||t.memoizedState!==null)&&(nn=e)}function yc(e){F(Ze,Ze.current),F(Vt,e),nn===null&&(nn=e)}function Ch(e){e.tag===22?(F(Ze,Ze.current),F(Vt,e),nn===null&&(nn=e)):oa()}function oa(){F(Ze,Ze.current),F(Vt,Vt.current)}function Gt(e){Q(Vt),nn===e&&(nn=null),Q(Ze)}var Ze=O(0);function Kr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Cu(a)||Nu(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 Dn=0,xe=null,Ue=null,We=null,Zr=!1,Ol=!1,Ka=!1,Fr=0,Di=0,_l=null,lb=0;function Qe(){throw Error(s(321))}function xc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Bt(e[a],t[a]))return!1;return!0}function bc(e,t,a,l,o,c){return Dn=c,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?sm:Lc,Ka=!1,c=a(l,o),Ka=!1,Ol&&(c=Rh(t,a,l,o)),Nh(e),c}function Nh(e){D.H=Hi;var t=Ue!==null&&Ue.next!==null;if(Dn=0,We=Ue=xe=null,Zr=!1,Di=0,_l=null,t)throw Error(s(300));e===null||Ie||(e=e.dependencies,e!==null&&Br(e)&&(Ie=!0))}function Rh(e,t,a,l){xe=e;var o=0;do{if(Ol&&(_l=null),Di=0,Ol=!1,25<=o)throw Error(s(301));if(o+=1,We=Ue=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=om,c=t(a,l)}while(Ol);return c}function ib(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Li(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(xe.flags|=1024),t}function Sc(){var e=Fr!==0;return Fr=0,e}function wc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ec(e){if(Zr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zr=!1}Dn=0,We=Ue=xe=null,Ol=!1,Di=Fr=0,_l=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?xe.memoizedState=We=e:We=We.next=e,We}function Fe(){if(Ue===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=We===null?xe.memoizedState:We.next;if(t!==null)We=t,Ue=e;else{if(e===null)throw xe.alternate===null?Error(s(467)):Error(s(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},We===null?xe.memoizedState=We=e:We=We.next=e}return We}function $r(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Li(e){var t=Di;return Di+=1,_l===null&&(_l=[]),e=vh(_l,e,t),t=xe,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?sm:Lc),e}function Jr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Li(e);if(e.$$typeof===z)return pt(e)}throw Error(s(438,String(e)))}function Cc(e){var t=null,a=xe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=xe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=$r(),xe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=se;return t.index++,a}function Ln(e,t){return typeof t=="function"?t(e):t}function Wr(e){var t=Fe();return Nc(t,Ue,e)}function Nc(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var w=p=null,R=null,H=t,Y=!1;do{var Z=H.lane&-536870913;if(Z!==H.lane?(Re&Z)===Z:(Dn&Z)===Z){var k=H.revertLane;if(k===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),Z===Nl&&(Y=!0);else if((Dn&k)===k){H=H.next,k===Nl&&(Y=!0);continue}else Z={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(w=R=Z,p=c):R=R.next=Z,xe.lanes|=k,fa|=k;Z=H.action,Ka&&a(c,Z),c=H.hasEagerState?H.eagerState:a(c,Z)}else k={lane:Z,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(w=R=k,p=c):R=R.next=k,xe.lanes|=Z,fa|=Z;H=H.next}while(H!==null&&H!==t);if(R===null?p=c:R.next=w,!Bt(c,e.memoizedState)&&(Ie=!0,Y&&(a=Rl,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=R,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Rc(e){var t=Fe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Bt(c,t.memoizedState)||(Ie=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function jh(e,t,a){var l=xe,o=Fe(),c=Te;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var p=!Bt((Ue||o).memoizedState,a);if(p&&(o.memoizedState=a,Ie=!0),o=o.queue,Ac(Oh.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||We!==null&&We.memoizedState.tag&1){if(l.flags|=2048,Ml(9,{destroy:void 0},Ah.bind(null,l,o,a,t),null),Be===null)throw Error(s(349));c||(Dn&127)!==0||Th(l,t,a)}return a}function Th(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=xe.updateQueue,t===null?(t=$r(),xe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ah(e,t,a,l){t.value=a,t.getSnapshot=l,_h(t)&&Mh(e)}function Oh(e,t,a){return a(function(){_h(t)&&Mh(e)})}function _h(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Bt(e,a)}catch{return!0}}function Mh(e){var t=ka(e,2);t!==null&&Mt(t,e,2)}function jc(e){var t=Ct();if(typeof e=="function"){var a=e;if(e=a(),Ka){Jn(!0);try{a()}finally{Jn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function zh(e,t,a,l){return e.baseState=a,Nc(e,Ue,typeof l=="function"?l:Ln)}function rb(e,t,a,l,o){if(ts(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};D.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Dh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Dh(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=D.T,p={};D.T=p;try{var w=a(o,l),R=D.S;R!==null&&R(p,w),Lh(e,t,w)}catch(H){Tc(e,t,H)}finally{c!==null&&p.types!==null&&(c.types=p.types),D.T=c}}else try{c=a(o,l),Lh(e,t,c)}catch(H){Tc(e,t,H)}}function Lh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Uh(e,t,l)},function(l){return Tc(e,t,l)}):Uh(e,t,a)}function Uh(e,t,a){t.status="fulfilled",t.value=a,Hh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Dh(e,a)))}function Tc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Hh(t),t=t.next;while(t!==l)}e.action=null}function Hh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kh(e,t){return t}function Bh(e,t){if(Te){var a=Be.formState;if(a!==null){e:{var l=xe;if(Te){if(qe){t:{for(var o=qe,c=tn;o.nodeType!==8;){if(!c){o=null;break t}if(o=an(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){qe=an(o.nextSibling),l=o.data==="F!";break e}}na(l)}l=!1}l&&(t=a[0])}}return a=Ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kh,lastRenderedState:t},a.queue=l,a=lm.bind(null,xe,l),l.dispatch=a,l=jc(!1),c=Dc.bind(null,xe,!1,l.queue),l=Ct(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=rb.bind(null,xe,o,c,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function qh(e){var t=Fe();return Vh(t,Ue,e)}function Vh(e,t,a){if(t=Nc(e,t,kh)[0],e=Wr(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Li(t)}catch(p){throw p===jl?Gr:p}else l=t;t=Fe();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(xe.flags|=2048,Ml(9,{destroy:void 0},sb.bind(null,o,a),null)),[l,c,e]}function sb(e,t){e.action=t}function Gh(e){var t=Fe(),a=Ue;if(a!==null)return Vh(t,a,e);Fe(),t=t.memoizedState,a=Fe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ml(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=xe.updateQueue,t===null&&(t=$r(),xe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Yh(){return Fe().memoizedState}function Ir(e,t,a,l){var o=Ct();xe.flags|=e,o.memoizedState=Ml(1|t,{destroy:void 0},a,l===void 0?null:l)}function es(e,t,a,l){var o=Fe();l=l===void 0?null:l;var c=o.memoizedState.inst;Ue!==null&&l!==null&&xc(l,Ue.memoizedState.deps)?o.memoizedState=Ml(t,c,a,l):(xe.flags|=e,o.memoizedState=Ml(1|t,c,a,l))}function Qh(e,t){Ir(8390656,8,e,t)}function Ac(e,t){es(2048,8,e,t)}function ob(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=$r(),xe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Xh(e){var t=Fe().memoizedState;return ob({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Ph(e,t){return es(4,2,e,t)}function Kh(e,t){return es(4,4,e,t)}function Zh(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 Fh(e,t,a){a=a!=null?a.concat([e]):null,es(4,4,Zh.bind(null,t,e),a)}function Oc(){}function $h(e,t){var a=Fe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&xc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Jh(e,t){var a=Fe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&xc(t,l[1]))return l[0];if(l=e(),Ka){Jn(!0);try{e()}finally{Jn(!1)}}return a.memoizedState=[l,t],l}function _c(e,t,a){return a===void 0||(Dn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Wm(),xe.lanes|=e,fa|=e,a)}function Wh(e,t,a,l){return Bt(a,t)?a:Al.current!==null?(e=_c(e,a,l),Bt(e,t)||(Ie=!0),e):(Dn&42)===0||(Dn&1073741824)!==0&&(Re&261930)===0?(Ie=!0,e.memoizedState=a):(e=Wm(),xe.lanes|=e,fa|=e,t)}function Ih(e,t,a,l,o){var c=K.p;K.p=c!==0&&8>c?c:8;var p=D.T,w={};D.T=w,Dc(e,!1,t,a);try{var R=o(),H=D.S;if(H!==null&&H(w,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Y=ab(R,l);Ui(e,t,Y,Xt(e))}else Ui(e,t,l,Xt(e))}catch(Z){Ui(e,t,{then:function(){},status:"rejected",reason:Z},Xt())}finally{K.p=c,p!==null&&w.types!==null&&(p.types=w.types),D.T=p}}function cb(){}function Mc(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=em(e).queue;Ih(e,o,t,B,a===null?cb:function(){return tm(e),a(l)})}function em(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:B},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tm(e){var t=em(e);t.next===null&&(t=e.alternate.memoizedState),Ui(e,t.next.queue,{},Xt())}function zc(){return pt(Ii)}function nm(){return Fe().memoizedState}function am(){return Fe().memoizedState}function ub(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Xt();e=ia(a);var l=ra(t,e,a);l!==null&&(Mt(l,t,a),_i(l,t,a)),t={cache:oc()},e.payload=t;return}t=t.return}}function fb(e,t,a){var l=Xt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ts(e)?im(t,a):(a=Jo(e,t,a,l),a!==null&&(Mt(a,e,l),rm(a,t,l)))}function lm(e,t,a){var l=Xt();Ui(e,t,a,l)}function Ui(e,t,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ts(e))im(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,w=c(p,a);if(o.hasEagerState=!0,o.eagerState=w,Bt(w,p))return Lr(e,t,o,0),Be===null&&Dr(),!1}catch{}if(a=Jo(e,t,o,l),a!==null)return Mt(a,e,l),rm(a,t,l),!0}return!1}function Dc(e,t,a,l){if(l={lane:2,revertLane:du(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ts(e)){if(t)throw Error(s(479))}else t=Jo(e,a,l,2),t!==null&&Mt(t,e,2)}function ts(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function im(e,t){Ol=Zr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function rm(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,fd(e,a)}}var Hi={readContext:pt,use:Jr,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Hi.useEffectEvent=Qe;var sm={readContext:pt,use:Jr,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Qh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ir(4194308,4,Zh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ir(4194308,4,e,t)},useInsertionEffect:function(e,t){Ir(4,2,e,t)},useMemo:function(e,t){var a=Ct();t=t===void 0?null:t;var l=e();if(Ka){Jn(!0);try{e()}finally{Jn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Ct();if(a!==void 0){var o=a(t);if(Ka){Jn(!0);try{a(t)}finally{Jn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=fb.bind(null,xe,e),[l.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:function(e){e=jc(e);var t=e.queue,a=lm.bind(null,xe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Ct();return _c(a,e,t)},useTransition:function(){var e=jc(!1);return e=Ih.bind(null,xe,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=xe,o=Ct();if(Te){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Be===null)throw Error(s(349));(Re&127)!==0||Th(l,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Qh(Oh.bind(null,l,c,e),[e]),l.flags|=2048,Ml(9,{destroy:void 0},Ah.bind(null,l,c,a,t),null),a},useId:function(){var e=Ct(),t=Be.identifierPrefix;if(Te){var a=gn,l=vn;a=(l&~(1<<32-kt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Fr++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=lb++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zc,useFormState:Bh,useActionState:Bh,useOptimistic:function(e){var t=Ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Dc.bind(null,xe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Cc,useCacheRefresh:function(){return Ct().memoizedState=ub.bind(null,xe)},useEffectEvent:function(e){var t=Ct(),a={impl:e};return t.memoizedState=a,function(){if((Me&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Lc={readContext:pt,use:Jr,useCallback:$h,useContext:pt,useEffect:Ac,useImperativeHandle:Fh,useInsertionEffect:Ph,useLayoutEffect:Kh,useMemo:Jh,useReducer:Wr,useRef:Yh,useState:function(){return Wr(Ln)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Fe();return Wh(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Wr(Ln)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Li(e),t]},useSyncExternalStore:jh,useId:nm,useHostTransitionStatus:zc,useFormState:qh,useActionState:qh,useOptimistic:function(e,t){var a=Fe();return zh(a,Ue,e,t)},useMemoCache:Cc,useCacheRefresh:am};Lc.useEffectEvent=Xh;var om={readContext:pt,use:Jr,useCallback:$h,useContext:pt,useEffect:Ac,useImperativeHandle:Fh,useInsertionEffect:Ph,useLayoutEffect:Kh,useMemo:Jh,useReducer:Rc,useRef:Yh,useState:function(){return Rc(Ln)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Fe();return Ue===null?_c(a,e,t):Wh(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Rc(Ln)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Li(e),t]},useSyncExternalStore:jh,useId:nm,useHostTransitionStatus:zc,useFormState:Gh,useActionState:Gh,useOptimistic:function(e,t){var a=Fe();return Ue!==null?zh(a,Ue,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Cc,useCacheRefresh:am};om.useEffectEvent=Xh;function Uc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Hc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Xt(),o=ia(l);o.payload=t,a!=null&&(o.callback=a),t=ra(e,o,l),t!==null&&(Mt(t,e,l),_i(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Xt(),o=ia(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=ra(e,o,l),t!==null&&(Mt(t,e,l),_i(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Xt(),l=ia(a);l.tag=2,t!=null&&(l.callback=t),t=ra(e,l,a),t!==null&&(Mt(t,e,a),_i(t,e,a))}};function cm(e,t,a,l,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,p):t.prototype&&t.prototype.isPureReactComponent?!Ei(a,l)||!Ei(o,c):!0}function um(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Hc.enqueueReplaceState(t,t.state,null)}function Za(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function fm(e){zr(e)}function dm(e){console.error(e)}function hm(e){zr(e)}function ns(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function mm(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function kc(e,t,a){return a=ia(a),a.tag=3,a.payload={element:null},a.callback=function(){ns(e,t)},a}function pm(e){return e=ia(e),e.tag=3,e}function vm(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){mm(t,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){mm(t,a,l),typeof o!="function"&&(da===null?da=new Set([this]):da.add(this));var w=l.stack;this.componentDidCatch(l.value,{componentStack:w!==null?w:""})})}function db(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Cl(t,a,o,!0),a=Vt.current,a!==null){switch(a.tag){case 31:case 13:return nn===null?ms():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Yr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),cu(e,l,o)),!1;case 22:return a.flags|=65536,l===Yr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),cu(e,l,o)),!1}throw Error(s(435,a.tag))}return cu(e,l,o),ms(),!1}if(Te)return t=Vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==ac&&(e=Error(s(422),{cause:l}),Ri(Wt(e,a)))):(l!==ac&&(t=Error(s(423),{cause:l}),Ri(Wt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Wt(l,a),o=kc(e.stateNode,l,o),mc(e,o),Xe!==4&&(Xe=2)),!1;var c=Error(s(520),{cause:l});if(c=Wt(c,a),Xi===null?Xi=[c]:Xi.push(c),Xe!==4&&(Xe=2),t===null)return!0;l=Wt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=kc(a.stateNode,l,e),mc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(da===null||!da.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=pm(o),vm(o,e,a,l),mc(a,o),!1}a=a.return}while(a!==null);return!1}var Bc=Error(s(461)),Ie=!1;function vt(e,t,a,l){t.child=e===null?bh(t,null,a,l):Pa(t,e.child,a,l)}function gm(e,t,a,l,o){a=a.render;var c=t.ref;if("ref"in l){var p={};for(var w in l)w!=="ref"&&(p[w]=l[w])}else p=l;return Ga(t),l=bc(e,t,a,p,c,o),w=Sc(),e!==null&&!Ie?(wc(e,t,o),Un(e,t,o)):(Te&&w&&tc(t),t.flags|=1,vt(e,t,l,o),t.child)}function ym(e,t,a,l,o){if(e===null){var c=a.type;return typeof c=="function"&&!Wo(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,xm(e,t,c,l,o)):(e=Hr(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Kc(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:Ei,a(p,l)&&e.ref===t.ref)return Un(e,t,o)}return t.flags|=1,e=On(c,l),e.ref=t.ref,e.return=t,t.child=e}function xm(e,t,a,l,o){if(e!==null){var c=e.memoizedProps;if(Ei(c,l)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=l=c,Kc(e,o))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,Un(e,t,o)}return qc(e,t,a,l,o)}function bm(e,t,a,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return Sm(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vr(t,c!==null?c.cachePool:null),c!==null?Eh(t,c):vc(),Ch(t);else return l=t.lanes=536870912,Sm(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(Vr(t,c.cachePool),Eh(t,c),oa(),t.memoizedState=null):(e!==null&&Vr(t,null),vc(),oa());return vt(e,t,o,a),t.child}function ki(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Sm(e,t,a,l,o){var c=uc();return c=c===null?null:{parent:Je._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Vr(t,null),vc(),Ch(t),e!==null&&Cl(e,t,l,!0),t.childLanes=o,null}function as(e,t){return t=is({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wm(e,t,a){return Pa(t,e.child,null,a),e=as(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function hb(e,t,a){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(l.mode==="hidden")return e=as(t,l),t.lanes=536870912,ki(null,e);if(yc(t),(e=qe)?(e=Dp(e,tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea!==null?{id:vn,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},a=ih(e),a.return=t,t.child=a,mt=t,qe=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return as(t,l)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(yc(t),o)if(t.flags&256)t.flags&=-257,t=wm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ie||Cl(e,t,a,!1),o=(a&e.childLanes)!==0,Ie||o){if(l=Be,l!==null&&(p=dd(l,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,ka(e,p),Mt(l,e,p),Bc;ms(),t=wm(e,t,a)}else e=c.treeContext,qe=an(p.nextSibling),mt=t,Te=!0,ta=null,tn=!1,e!==null&&oh(t,e),t=as(t,l),t.flags|=4096;return t}return e=On(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ls(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function qc(e,t,a,l,o){return Ga(t),a=bc(e,t,a,l,void 0,o),l=Sc(),e!==null&&!Ie?(wc(e,t,o),Un(e,t,o)):(Te&&l&&tc(t),t.flags|=1,vt(e,t,a,o),t.child)}function Em(e,t,a,l,o,c){return Ga(t),t.updateQueue=null,a=Rh(t,l,a,o),Nh(e),l=Sc(),e!==null&&!Ie?(wc(e,t,c),Un(e,t,c)):(Te&&l&&tc(t),t.flags|=1,vt(e,t,a,c),t.child)}function Cm(e,t,a,l,o){if(Ga(t),t.stateNode===null){var c=bl,p=a.contextType;typeof p=="object"&&p!==null&&(c=pt(p)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Hc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},dc(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?pt(p):bl,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Uc(t,a,p,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Hc.enqueueReplaceState(c,c.state,null),zi(t,l,c,o),Mi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var w=t.memoizedProps,R=Za(a,w);c.props=R;var H=c.context,Y=a.contextType;p=bl,typeof Y=="object"&&Y!==null&&(p=pt(Y));var Z=a.getDerivedStateFromProps;Y=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,Y||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(w||H!==p)&&um(t,c,l,p),la=!1;var k=t.memoizedState;c.state=k,zi(t,l,c,o),Mi(),H=t.memoizedState,w||k!==H||la?(typeof Z=="function"&&(Uc(t,a,Z,l),H=t.memoizedState),(R=la||cm(t,a,R,l,k,H,p))?(Y||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),c.props=l,c.state=H,c.context=p,l=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,hc(e,t),p=t.memoizedProps,Y=Za(a,p),c.props=Y,Z=t.pendingProps,k=c.context,H=a.contextType,R=bl,typeof H=="object"&&H!==null&&(R=pt(H)),w=a.getDerivedStateFromProps,(H=typeof w=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Z||k!==R)&&um(t,c,l,R),la=!1,k=t.memoizedState,c.state=k,zi(t,l,c,o),Mi();var q=t.memoizedState;p!==Z||k!==q||la||e!==null&&e.dependencies!==null&&Br(e.dependencies)?(typeof w=="function"&&(Uc(t,a,w,l),q=t.memoizedState),(Y=la||cm(t,a,Y,l,k,q,R)||e!==null&&e.dependencies!==null&&Br(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,q,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,q,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),c.props=l,c.state=q,c.context=R,l=Y):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,ls(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Pa(t,e.child,null,o),t.child=Pa(t,null,a,o)):vt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=Un(e,t,o),e}function Nm(e,t,a,l){return qa(),t.flags|=256,vt(e,t,a,l),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:mh()}}function Yc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Qt),e}function Rm(e,t,a){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(o?sa(t):oa(),(e=qe)?(e=Dp(e,tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea!==null?{id:vn,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},a=ih(e),a.return=t,t.child=a,mt=t,qe=null)):e=null,e===null)throw na(t);return Nu(e)?t.lanes=32:t.lanes=536870912,null}var w=l.children;return l=l.fallback,o?(oa(),o=t.mode,w=is({mode:"hidden",children:w},o),l=Ba(l,o,a,null),w.return=t,l.return=t,w.sibling=l,t.child=w,l=t.child,l.memoizedState=Gc(a),l.childLanes=Yc(e,p,a),t.memoizedState=Vc,ki(null,l)):(sa(t),Qc(t,w))}var R=e.memoizedState;if(R!==null&&(w=R.dehydrated,w!==null)){if(c)t.flags&256?(sa(t),t.flags&=-257,t=Xc(e,t,a)):t.memoizedState!==null?(oa(),t.child=e.child,t.flags|=128,t=null):(oa(),w=l.fallback,o=t.mode,l=is({mode:"visible",children:l.children},o),w=Ba(w,o,a,null),w.flags|=2,l.return=t,w.return=t,l.sibling=w,t.child=l,Pa(t,e.child,null,a),l=t.child,l.memoizedState=Gc(a),l.childLanes=Yc(e,p,a),t.memoizedState=Vc,t=ki(null,l));else if(sa(t),Nu(w)){if(p=w.nextSibling&&w.nextSibling.dataset,p)var H=p.dgst;p=H,l=Error(s(419)),l.stack="",l.digest=p,Ri({value:l,source:null,stack:null}),t=Xc(e,t,a)}else if(Ie||Cl(e,t,a,!1),p=(a&e.childLanes)!==0,Ie||p){if(p=Be,p!==null&&(l=dd(p,a),l!==0&&l!==R.retryLane))throw R.retryLane=l,ka(e,l),Mt(p,e,l),Bc;Cu(w)||ms(),t=Xc(e,t,a)}else Cu(w)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,qe=an(w.nextSibling),mt=t,Te=!0,ta=null,tn=!1,e!==null&&oh(t,e),t=Qc(t,l.children),t.flags|=4096);return t}return o?(oa(),w=l.fallback,o=t.mode,R=e.child,H=R.sibling,l=On(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,H!==null?w=On(H,w):(w=Ba(w,o,a,null),w.flags|=2),w.return=t,l.return=t,l.sibling=w,t.child=l,ki(null,l),l=t.child,w=e.child.memoizedState,w===null?w=Gc(a):(o=w.cachePool,o!==null?(R=Je._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=mh(),w={baseLanes:w.baseLanes|a,cachePool:o}),l.memoizedState=w,l.childLanes=Yc(e,p,a),t.memoizedState=Vc,ki(e.child,l)):(sa(t),a=e.child,e=a.sibling,a=On(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Qc(e,t){return t=is({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function is(e,t){return e=qt(22,e,null,t),e.lanes=0,e}function Xc(e,t,a){return Pa(t,e.child,null,a),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jm(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),rc(e.return,t,a)}function Pc(e,t,a,l,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=a,p.tailMode=o,p.treeForkCount=c)}function Tm(e,t,a){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=Ze.current,w=(p&2)!==0;if(w?(p=p&1|2,t.flags|=128):p&=1,F(Ze,p),vt(e,t,l,a),l=Te?Ni:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jm(e,a,t);else if(e.tag===19)jm(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(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Kr(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Pc(t,!1,o,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Kr(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Pc(t,!0,a,null,c,l);break;case"together":Pc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Un(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),fa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Cl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=On(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=On(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Br(e)))}function mb(e,t,a){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),aa(t,Je,e.memoizedState.cache),qa();break;case 27:case 5:Ne(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(sa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Rm(e,t,a):(sa(t),e=Un(e,t,a),e!==null?e.sibling:null);sa(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Cl(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return Tm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),F(Ze,Ze.current),l)break;return null;case 22:return t.lanes=0,bm(e,t,a,t.pendingProps);case 24:aa(t,Je,e.memoizedState.cache)}return Un(e,t,a)}function Am(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!Kc(e,a)&&(t.flags&128)===0)return Ie=!1,mb(e,t,a);Ie=(e.flags&131072)!==0}else Ie=!1,Te&&(t.flags&1048576)!==0&&sh(t,Ni,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e=="function")Wo(e)?(l=Za(e,l),t.tag=1,t=Cm(null,t,e,l,a)):(t.tag=0,t=qc(null,t,e,l,a));else{if(e!=null){var o=e.$$typeof;if(o===G){t.tag=11,t=gm(null,t,e,l,a);break e}else if(o===V){t.tag=14,t=ym(null,t,e,l,a);break e}}throw t=he(e)||e,Error(s(306,t,""))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=Za(l,t.pendingProps),Cm(e,t,l,o,a);case 3:e:{if(ie(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,hc(e,t),zi(t,l,null,a);var p=t.memoizedState;if(l=p.cache,aa(t,Je,l),l!==c.cache&&sc(t,[Je],a,!0),Mi(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Nm(e,t,l,a);break e}else if(l!==o){o=Wt(Error(s(424)),t),Ri(o),t=Nm(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=an(e.firstChild),mt=t,Te=!0,ta=null,tn=!0,a=bh(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(qa(),l===o){t=Un(e,t,a);break e}vt(e,t,l,a)}t=t.child}return t;case 26:return ls(e,t),e===null?(a=qp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Te||(a=t.type,e=t.pendingProps,l=Ss(de.current).createElement(a),l[ht]=t,l[Rt]=e,gt(l,a,e),ft(l),t.stateNode=l):t.memoizedState=qp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&Te&&(l=t.stateNode=Hp(t.type,t.pendingProps,de.current),mt=t,tn=!0,o=qe,va(t.type)?(Ru=o,qe=an(l.firstChild)):qe=o),vt(e,t,t.pendingProps.children,a),ls(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((o=l=qe)&&(l=Qb(l,t.type,t.pendingProps,tn),l!==null?(t.stateNode=l,mt=t,qe=an(l.firstChild),tn=!1,o=!0):o=!1),o||na(t)),Ne(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,l=c.children,Su(o,c)?l=null:p!==null&&Su(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=bc(e,t,ib,null,null,a),Ii._currentValue=o),ls(e,t),vt(e,t,l,a),t.child;case 6:return e===null&&Te&&((e=a=qe)&&(a=Xb(a,t.pendingProps,tn),a!==null?(t.stateNode=a,mt=t,qe=null,e=!0):e=!1),e||na(t)),null;case 13:return Rm(e,t,a);case 4:return ie(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Pa(t,null,l,a):vt(e,t,l,a),t.child;case 11:return gm(e,t,t.type,t.pendingProps,a);case 7:return vt(e,t,t.pendingProps,a),t.child;case 8:return vt(e,t,t.pendingProps.children,a),t.child;case 12:return vt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,aa(t,t.type,l.value),vt(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Ga(t),o=pt(o),l=l(o),t.flags|=1,vt(e,t,l,a),t.child;case 14:return ym(e,t,t.type,t.pendingProps,a);case 15:return xm(e,t,t.type,t.pendingProps,a);case 19:return Tm(e,t,a);case 31:return hb(e,t,a);case 22:return bm(e,t,a,t.pendingProps);case 24:return Ga(t),l=pt(Je),e===null?(o=uc(),o===null&&(o=Be,c=oc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:l,cache:o},dc(t),aa(t,Je,o)):((e.lanes&a)!==0&&(hc(e,t),zi(t,null,null,a),Mi()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),aa(t,Je,l)):(l=c.cache,aa(t,Je,l),l!==o.cache&&sc(t,[Je],a,!0))),vt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Hn(e){e.flags|=4}function Zc(e,t,a,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(np())e.flags|=8192;else throw Xa=Yr,fc}else e.flags&=-16777217}function Om(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xp(t))if(np())e.flags|=8192;else throw Xa=Yr,fc}function rs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cd():536870912,e.lanes|=t,Ul|=t)}function Bi(e,t){if(!Te)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function pb(e,t,a){var l=t.pendingProps;switch(nc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),zn(Je),ge(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(El(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lc())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Hn(t),c!==null?(Ve(t),Om(t,c)):(Ve(t),Zc(t,o,null,l,a))):c?c!==e.memoizedState?(Hn(t),Ve(t),Om(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Hn(t),Ve(t),Zc(t,o,e,l,a)),null;case 27:if(Ae(t),a=de.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Hn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=W.current,El(t)?ch(t):(e=Hp(o,l,a),t.stateNode=e,Hn(t))}return Ve(t),null;case 5:if(Ae(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Hn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(c=W.current,El(t))ch(t);else{var p=Ss(de.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[ht]=t,c[Rt]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(gt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Hn(t)}}return Ve(t),Zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Hn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=de.current,El(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=mt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ht]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Rp(e.nodeValue,a)),e||na(t,!0)}else e=Ss(e).createTextNode(l),e[ht]=t,t.stateNode=e}return Ve(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=El(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ht]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else a=lc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=El(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ht]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=lc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),rs(t,t.updateQueue),Ve(t),null);case 4:return ge(),e===null&&vu(t.stateNode.containerInfo),Ve(t),null;case 10:return zn(t.type),Ve(t),null;case 19:if(Q(Ze),l=t.memoizedState,l===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)Bi(l,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Kr(e),c!==null){for(t.flags|=128,Bi(l,!1),e=c.updateQueue,t.updateQueue=e,rs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)lh(a,e),a=a.sibling;return F(Ze,Ze.current&1|2),Te&&_n(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ut()>fs&&(t.flags|=128,o=!0,Bi(l,!1),t.lanes=4194304)}else{if(!o)if(e=Kr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,rs(t,e),Bi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Te)return Ve(t),null}else 2*Ut()-l.renderingStartTime>fs&&a!==536870912&&(t.flags|=128,o=!0,Bi(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ut(),e.sibling=null,a=Ze.current,F(Ze,o?a&1|2:a&1),Te&&_n(t,l.treeForkCount),e):(Ve(t),null);case 22:case 23:return Gt(t),gc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),a=t.updateQueue,a!==null&&rs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Q(Ya),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),zn(Je),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function vb(e,t){switch(nc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(Je),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(s(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ze),null;case 4:return ge(),null;case 10:return zn(t.type),null;case 22:case 23:return Gt(t),gc(),e!==null&&Q(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(Je),null;case 25:return null;default:return null}}function _m(e,t){switch(nc(t),t.tag){case 3:zn(Je),ge();break;case 26:case 27:case 5:Ae(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:Q(Ze);break;case 10:zn(t.type);break;case 22:case 23:Gt(t),gc(),e!==null&&Q(Ya);break;case 24:zn(Je)}}function qi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var c=a.create,p=a.inst;l=c(),p.destroy=l}a=a.next}while(a!==o)}}catch(w){Le(t,t.return,w)}}function ca(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var p=l.inst,w=p.destroy;if(w!==void 0){p.destroy=void 0,o=t;var R=a,H=w;try{H()}catch(Y){Le(o,R,Y)}}}l=l.next}while(l!==c)}}catch(Y){Le(t,t.return,Y)}}function Mm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{wh(t,a)}catch(l){Le(e,e.return,l)}}}function zm(e,t,a){a.props=Za(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Le(e,t,l)}}function Vi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){Le(e,t,o)}}function yn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Le(e,t,o)}else a.current=null}function Dm(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Le(e,e.return,o)}}function Fc(e,t,a){try{var l=e.stateNode;kb(l,e.type,a,t),l[Rt]=t}catch(o){Le(e,e.return,o)}}function Lm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&va(e.type)||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lm(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&&va(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 Jc(e,t,a){var l=e.tag;if(l===5||l===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=Tn));else if(l!==4&&(l===27&&va(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,a),e=e.sibling;e!==null;)Jc(e,t,a),e=e.sibling}function ss(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&va(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ss(e,t,a),e=e.sibling;e!==null;)ss(e,t,a),e=e.sibling}function Um(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);gt(t,l,a),t[ht]=e,t[Rt]=a}catch(c){Le(e,e.return,c)}}var kn=!1,et=!1,Wc=!1,Hm=typeof WeakSet=="function"?WeakSet:Set,dt=null;function gb(e,t){if(e=e.containerInfo,xu=Ts,e=Fd(e),Xo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,w=-1,R=-1,H=0,Y=0,Z=e,k=null;t:for(;;){for(var q;Z!==a||o!==0&&Z.nodeType!==3||(w=p+o),Z!==c||l!==0&&Z.nodeType!==3||(R=p+l),Z.nodeType===3&&(p+=Z.nodeValue.length),(q=Z.firstChild)!==null;)k=Z,Z=q;for(;;){if(Z===e)break t;if(k===a&&++H===o&&(w=p),k===c&&++Y===l&&(R=p),(q=Z.nextSibling)!==null)break;Z=k,k=Z.parentNode}Z=q}a=w===-1||R===-1?null:{start:w,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(bu={focusedElem:e,selectionRange:a},Ts=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,c=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++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var ee=Za(a.type,o);e=l.getSnapshotBeforeUpdate(ee,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Le(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Eu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Eu(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function km(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:qn(e,a),l&4&&qi(5,a);break;case 1:if(qn(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Le(a,a.return,p)}else{var o=Za(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Le(a,a.return,p)}}l&64&&Mm(a),l&512&&Vi(a,a.return);break;case 3:if(qn(e,a),l&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{wh(e,t)}catch(p){Le(a,a.return,p)}}break;case 27:t===null&&l&4&&Um(a);case 26:case 5:qn(e,a),t===null&&l&4&&Dm(a),l&512&&Vi(a,a.return);break;case 12:qn(e,a);break;case 31:qn(e,a),l&4&&Vm(e,a);break;case 13:qn(e,a),l&4&&Gm(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Rb.bind(null,a),Pb(e,a))));break;case 22:if(l=a.memoizedState!==null||kn,!l){t=t!==null&&t.memoizedState!==null||et,o=kn;var c=et;kn=l,(et=t)&&!c?Vn(e,a,(a.subtreeFlags&8772)!==0):qn(e,a),kn=o,et=c}break;case 30:break;default:qn(e,a)}}function Bm(e){var t=e.alternate;t!==null&&(e.alternate=null,Bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&To(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 Ge=null,Tt=!1;function Bn(e,t,a){for(a=a.child;a!==null;)qm(e,t,a),a=a.sibling}function qm(e,t,a){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(fi,a)}catch{}switch(a.tag){case 26:et||yn(a,t),Bn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:et||yn(a,t);var l=Ge,o=Tt;va(a.type)&&(Ge=a.stateNode,Tt=!1),Bn(e,t,a),$i(a.stateNode),Ge=l,Tt=o;break;case 5:et||yn(a,t);case 6:if(l=Ge,o=Tt,Ge=null,Bn(e,t,a),Ge=l,Tt=o,Ge!==null)if(Tt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(a.stateNode)}catch(c){Le(a,t,c)}else try{Ge.removeChild(a.stateNode)}catch(c){Le(a,t,c)}break;case 18:Ge!==null&&(Tt?(e=Ge,Mp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ql(e)):Mp(Ge,a.stateNode));break;case 4:l=Ge,o=Tt,Ge=a.stateNode.containerInfo,Tt=!0,Bn(e,t,a),Ge=l,Tt=o;break;case 0:case 11:case 14:case 15:ca(2,a,t),et||ca(4,a,t),Bn(e,t,a);break;case 1:et||(yn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&zm(a,t,l)),Bn(e,t,a);break;case 21:Bn(e,t,a);break;case 22:et=(l=et)||a.memoizedState!==null,Bn(e,t,a),et=l;break;default:Bn(e,t,a)}}function Vm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ql(e)}catch(a){Le(t,t.return,a)}}}function Gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ql(e)}catch(a){Le(t,t.return,a)}}function yb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hm),t;default:throw Error(s(435,e.tag))}}function os(e,t){var a=yb(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var o=jb.bind(null,e,l);l.then(o,o)}})}function At(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=e,p=t,w=p;e:for(;w!==null;){switch(w.tag){case 27:if(va(w.type)){Ge=w.stateNode,Tt=!1;break e}break;case 5:Ge=w.stateNode,Tt=!1;break e;case 3:case 4:Ge=w.stateNode.containerInfo,Tt=!0;break e}w=w.return}if(Ge===null)throw Error(s(160));qm(c,p,o),Ge=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ym(t,e),t=t.sibling}var fn=null;function Ym(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),Ot(e),l&4&&(ca(3,e,e.return),qi(3,e),ca(5,e,e.return));break;case 1:At(t,e),Ot(e),l&512&&(et||a===null||yn(a,a.return)),l&64&&kn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=fn;if(At(t,e),Ot(e),l&512&&(et||a===null||yn(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[mi]||c[ht]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),gt(c,l,a),c[ht]=e,ft(c),l=c;break e;case"link":var p=Yp("link","href",o).get(l+(a.href||""));if(p){for(var w=0;w<p.length;w++)if(c=p[w],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(w,1);break t}}c=o.createElement(l),gt(c,l,a),o.head.appendChild(c);break;case"meta":if(p=Yp("meta","content",o).get(l+(a.content||""))){for(w=0;w<p.length;w++)if(c=p[w],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(w,1);break t}}c=o.createElement(l),gt(c,l,a),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[ht]=e,ft(c),l=c}e.stateNode=l}else Qp(o,e.type,e.stateNode);else e.stateNode=Gp(o,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?Qp(o,e.type,e.stateNode):Gp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fc(e,e.memoizedProps,a.memoizedProps)}break;case 27:At(t,e),Ot(e),l&512&&(et||a===null||yn(a,a.return)),a!==null&&l&4&&Fc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(At(t,e),Ot(e),l&512&&(et||a===null||yn(a,a.return)),e.flags&32){o=e.stateNode;try{hl(o,"")}catch(ee){Le(e,e.return,ee)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Fc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Wc=!0);break;case 6:if(At(t,e),Ot(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ee){Le(e,e.return,ee)}}break;case 3:if(Cs=null,o=fn,fn=ws(t.containerInfo),At(t,e),fn=o,Ot(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ql(t.containerInfo)}catch(ee){Le(e,e.return,ee)}Wc&&(Wc=!1,Qm(e));break;case 4:l=fn,fn=ws(e.stateNode.containerInfo),At(t,e),Ot(e),fn=l;break;case 12:At(t,e),Ot(e);break;case 31:At(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,os(e,l)));break;case 13:At(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(us=Ut()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,os(e,l)));break;case 22:o=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,H=kn,Y=et;if(kn=H||o,et=Y||R,At(t,e),et=Y,kn=H,Ot(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||R||kn||et||Fa(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(c=R.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{w=R.stateNode;var Z=R.memoizedProps.style,k=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;w.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(ee){Le(R,R.return,ee)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(ee){Le(R,R.return,ee)}}}else if(t.tag===18){if(a===null){R=t;try{var q=R.stateNode;o?zp(q,!0):zp(R.stateNode,!1)}catch(ee){Le(R,R.return,ee)}}}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}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,os(e,a))));break;case 19:At(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,os(e,l)));break;case 30:break;case 21:break;default:At(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Lm(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=$c(e);ss(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(hl(p,""),a.flags&=-33);var w=$c(e);ss(e,w,p);break;case 3:case 4:var R=a.stateNode.containerInfo,H=$c(e);Jc(e,H,R);break;default:throw Error(s(161))}}catch(Y){Le(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)km(e,t.alternate,t),t=t.sibling}function Fa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ca(4,t,t.return),Fa(t);break;case 1:yn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&zm(t,t.return,a),Fa(t);break;case 27:$i(t.stateNode);case 26:case 5:yn(t,t.return),Fa(t);break;case 22:t.memoizedState===null&&Fa(t);break;case 30:Fa(t);break;default:Fa(t)}e=e.sibling}}function Vn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Vn(o,c,a),qi(4,c);break;case 1:if(Vn(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(H){Le(l,l.return,H)}if(l=c,o=l.updateQueue,o!==null){var w=l.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Sh(R[o],w)}catch(H){Le(l,l.return,H)}}a&&p&64&&Mm(c),Vi(c,c.return);break;case 27:Um(c);case 26:case 5:Vn(o,c,a),a&&l===null&&p&4&&Dm(c),Vi(c,c.return);break;case 12:Vn(o,c,a);break;case 31:Vn(o,c,a),a&&p&4&&Vm(o,c);break;case 13:Vn(o,c,a),a&&p&4&&Gm(o,c);break;case 22:c.memoizedState===null&&Vn(o,c,a),Vi(c,c.return);break;case 30:break;default:Vn(o,c,a)}t=t.sibling}}function Ic(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&&ji(a))}function eu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ji(e))}function dn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xm(e,t,a,l),t=t.sibling}function Xm(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,a,l),o&2048&&qi(9,t);break;case 1:dn(e,t,a,l);break;case 3:dn(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ji(e)));break;case 12:if(o&2048){dn(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,w=c.onPostCommit;typeof w=="function"&&w(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Le(t,t.return,R)}}else dn(e,t,a,l);break;case 31:dn(e,t,a,l);break;case 13:dn(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?dn(e,t,a,l):Gi(e,t):c._visibility&2?dn(e,t,a,l):(c._visibility|=2,zl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ic(p,t);break;case 24:dn(e,t,a,l),o&2048&&eu(t.alternate,t);break;default:dn(e,t,a,l)}}function zl(e,t,a,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,w=a,R=l,H=p.flags;switch(p.tag){case 0:case 11:case 15:zl(c,p,w,R,o),qi(8,p);break;case 23:break;case 22:var Y=p.stateNode;p.memoizedState!==null?Y._visibility&2?zl(c,p,w,R,o):Gi(c,p):(Y._visibility|=2,zl(c,p,w,R,o)),o&&H&2048&&Ic(p.alternate,p);break;case 24:zl(c,p,w,R,o),o&&H&2048&&eu(p.alternate,p);break;default:zl(c,p,w,R,o)}t=t.sibling}}function Gi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:Gi(a,l),o&2048&&Ic(l.alternate,l);break;case 24:Gi(a,l),o&2048&&eu(l.alternate,l);break;default:Gi(a,l)}t=t.sibling}}var Yi=8192;function Dl(e,t,a){if(e.subtreeFlags&Yi)for(e=e.child;e!==null;)Pm(e,t,a),e=e.sibling}function Pm(e,t,a){switch(e.tag){case 26:Dl(e,t,a),e.flags&Yi&&e.memoizedState!==null&&l1(a,fn,e.memoizedState,e.memoizedProps);break;case 5:Dl(e,t,a);break;case 3:case 4:var l=fn;fn=ws(e.stateNode.containerInfo),Dl(e,t,a),fn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Yi,Yi=16777216,Dl(e,t,a),Yi=l):Dl(e,t,a));break;default:Dl(e,t,a)}}function Km(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 Qi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];dt=l,Fm(l,e)}Km(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zm(e),e=e.sibling}function Zm(e){switch(e.tag){case 0:case 11:case 15:Qi(e),e.flags&2048&&ca(9,e,e.return);break;case 3:Qi(e);break;case 12:Qi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cs(e)):Qi(e);break;default:Qi(e)}}function cs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];dt=l,Fm(l,e)}Km(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ca(8,t,t.return),cs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cs(t));break;default:cs(t)}e=e.sibling}}function Fm(e,t){for(;dt!==null;){var a=dt;switch(a.tag){case 0:case 11:case 15:ca(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ji(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,dt=l;else e:for(a=e;dt!==null;){l=dt;var o=l.sibling,c=l.return;if(Bm(l),l===a){dt=null;break e}if(o!==null){o.return=c,dt=o;break e}dt=c}}}var xb={getCacheForType:function(e){var t=pt(Je),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return pt(Je).controller.signal}},bb=typeof WeakMap=="function"?WeakMap:Map,Me=0,Be=null,Ee=null,Re=0,De=0,Yt=null,ua=!1,Ll=!1,tu=!1,Gn=0,Xe=0,fa=0,$a=0,nu=0,Qt=0,Ul=0,Xi=null,_t=null,au=!1,us=0,$m=0,fs=1/0,ds=null,da=null,nt=0,ha=null,Hl=null,Yn=0,lu=0,iu=null,Jm=null,Pi=0,ru=null;function Xt(){return(Me&2)!==0&&Re!==0?Re&-Re:D.T!==null?du():hd()}function Wm(){if(Qt===0)if((Re&536870912)===0||Te){var e=br;br<<=1,(br&3932160)===0&&(br=262144),Qt=e}else Qt=536870912;return e=Vt.current,e!==null&&(e.flags|=32),Qt}function Mt(e,t,a){(e===Be&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(kl(e,0),ma(e,Re,Qt,!1)),hi(e,a),((Me&2)===0||e!==Be)&&(e===Be&&((Me&2)===0&&($a|=a),Xe===4&&ma(e,Re,Qt,!1)),xn(e))}function Im(e,t,a){if((Me&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||di(e,t),o=l?Eb(e,t):ou(e,t,!0),c=l;do{if(o===0){Ll&&!l&&ma(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!Sb(a)){o=ou(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var w=e;o=Xi;var R=w.current.memoizedState.isDehydrated;if(R&&(kl(w,p).flags|=256),p=ou(w,p,!1),p!==2){if(tu&&!R){w.errorRecoveryDisabledLanes|=c,$a|=c,o=4;break e}c=_t,_t=o,c!==null&&(_t===null?_t=c:_t.push.apply(_t,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){kl(e,0),ma(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ma(l,t,Qt,!ua);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=us+300-Ut(),10<o)){if(ma(l,t,Qt,!ua),wr(l,0,!0)!==0)break e;Yn=t,l.timeoutHandle=Op(ep.bind(null,l,a,_t,ds,au,t,Qt,$a,Ul,ua,c,"Throttled",-0,0),o);break e}ep(l,a,_t,ds,au,t,Qt,$a,Ul,ua,c,null,-0,0)}}break}while(!0);xn(e)}function ep(e,t,a,l,o,c,p,w,R,H,Y,Z,k,q){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},Pm(t,c,Z);var ee=(c&62914560)===c?us-Ut():(c&4194048)===c?$m-Ut():0;if(ee=i1(Z,ee),ee!==null){Yn=c,e.cancelPendingCommit=ee(op.bind(null,e,t,c,a,l,o,p,w,R,Y,Z,null,k,q)),ma(e,c,p,!H);return}}op(e,t,c,a,l,o,p,w,R)}function Sb(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 l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!Bt(c(),o))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 ma(e,t,a,l){t&=~nu,t&=~$a,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-kt(o),p=1<<c;l[c]=-1,o&=~p}a!==0&&ud(e,a,t)}function hs(){return(Me&6)===0?(Ki(0),!1):!0}function su(){if(Ee!==null){if(De===0)var e=Ee.return;else e=Ee,Mn=Va=null,Ec(e),Tl=null,Ai=0,e=Ee;for(;e!==null;)_m(e.alternate,e),e=e.return;Ee=null}}function kl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Vb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Yn=0,su(),Be=e,Ee=a=On(e.current,null),Re=t,De=0,Yt=null,ua=!1,Ll=di(e,t),tu=!1,Ul=Qt=nu=$a=fa=Xe=0,_t=Xi=null,au=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-kt(l),c=1<<o;t|=e[o],l&=~c}return Gn=t,Dr(),a}function tp(e,t){xe=null,D.H=Hi,t===jl||t===Gr?(t=gh(),De=3):t===fc?(t=gh(),De=4):De=t===Bc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,Ee===null&&(Xe=1,ns(e,Wt(t,e.current)))}function np(){var e=Vt.current;return e===null?!0:(Re&4194048)===Re?nn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===nn:!1}function ap(){var e=D.H;return D.H=Hi,e===null?Hi:e}function lp(){var e=D.A;return D.A=xb,e}function ms(){Xe=4,ua||(Re&4194048)!==Re&&Vt.current!==null||(Ll=!0),(fa&134217727)===0&&($a&134217727)===0||Be===null||ma(Be,Re,Qt,!1)}function ou(e,t,a){var l=Me;Me|=2;var o=ap(),c=lp();(Be!==e||Re!==t)&&(ds=null,kl(e,t)),t=!1;var p=Xe;e:do try{if(De!==0&&Ee!==null){var w=Ee,R=Yt;switch(De){case 8:su(),p=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(t=!0);var H=De;if(De=0,Yt=null,Bl(e,w,R,H),a&&Ll){p=0;break e}break;default:H=De,De=0,Yt=null,Bl(e,w,R,H)}}wb(),p=Xe;break}catch(Y){tp(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Mn=Va=null,Me=l,D.H=o,D.A=c,Ee===null&&(Be=null,Re=0,Dr()),p}function wb(){for(;Ee!==null;)ip(Ee)}function Eb(e,t){var a=Me;Me|=2;var l=ap(),o=lp();Be!==e||Re!==t?(ds=null,fs=Ut()+500,kl(e,t)):Ll=di(e,t);e:do try{if(De!==0&&Ee!==null){t=Ee;var c=Yt;t:switch(De){case 1:De=0,Yt=null,Bl(e,t,c,1);break;case 2:case 9:if(ph(c)){De=0,Yt=null,rp(t);break}t=function(){De!==2&&De!==9||Be!==e||(De=7),xn(e)},c.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:ph(c)?(De=0,Yt=null,rp(t)):(De=0,Yt=null,Bl(e,t,c,7));break;case 5:var p=null;switch(Ee.tag){case 26:p=Ee.memoizedState;case 5:case 27:var w=Ee;if(p?Xp(p):w.stateNode.complete){De=0,Yt=null;var R=w.sibling;if(R!==null)Ee=R;else{var H=w.return;H!==null?(Ee=H,ps(H)):Ee=null}break t}}De=0,Yt=null,Bl(e,t,c,5);break;case 6:De=0,Yt=null,Bl(e,t,c,6);break;case 8:su(),Xe=6;break e;default:throw Error(s(462))}}Cb();break}catch(Y){tp(e,Y)}while(!0);return Mn=Va=null,D.H=l,D.A=o,Me=a,Ee!==null?0:(Be=null,Re=0,Dr(),Xe)}function Cb(){for(;Ee!==null&&!K0();)ip(Ee)}function ip(e){var t=Am(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?ps(e):Ee=t}function rp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Em(a,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=Em(a,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Ec(t);default:_m(a,t),t=Ee=lh(t,Gn),t=Am(a,t,Gn)}e.memoizedProps=e.pendingProps,t===null?ps(e):Ee=t}function Bl(e,t,a,l){Mn=Va=null,Ec(t),Tl=null,Ai=0;var o=t.return;try{if(db(e,o,t,a,Re)){Xe=1,ns(e,Wt(a,e.current)),Ee=null;return}}catch(c){if(o!==null)throw Ee=o,c;Xe=1,ns(e,Wt(a,e.current)),Ee=null;return}t.flags&32768?(Te||l===1?e=!0:Ll||(Re&536870912)!==0?e=!1:(ua=e=!0,(l===2||l===9||l===3||l===6)&&(l=Vt.current,l!==null&&l.tag===13&&(l.flags|=16384))),sp(t,e)):ps(t)}function ps(e){var t=e;do{if((t.flags&32768)!==0){sp(t,ua);return}e=t.return;var a=pb(t.alternate,t,Gn);if(a!==null){Ee=a;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Xe===0&&(Xe=5)}function sp(e,t){do{var a=vb(e.alternate,e);if(a!==null){a.flags&=32767,Ee=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=a}while(e!==null);Xe=6,Ee=null}function op(e,t,a,l,o,c,p,w,R){e.cancelPendingCommit=null;do vs();while(nt!==0);if((Me&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=$o,ax(e,a,c,p,w,R),e===Be&&(Ee=Be=null,Re=0),Hl=t,ha=e,Yn=a,lu=c,iu=o,Jm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tb(yr,function(){return hp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,o=K.p,K.p=2,p=Me,Me|=4;try{gb(e,t,a)}finally{Me=p,K.p=o,D.T=l}}nt=1,cp(),up(),fp()}}function cp(){if(nt===1){nt=0;var e=ha,t=Hl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=K.p;K.p=2;var o=Me;Me|=4;try{Ym(t,e);var c=bu,p=Fd(e.containerInfo),w=c.focusedElem,R=c.selectionRange;if(p!==w&&w&&w.ownerDocument&&Zd(w.ownerDocument.documentElement,w)){if(R!==null&&Xo(w)){var H=R.start,Y=R.end;if(Y===void 0&&(Y=H),"selectionStart"in w)w.selectionStart=H,w.selectionEnd=Math.min(Y,w.value.length);else{var Z=w.ownerDocument||document,k=Z&&Z.defaultView||window;if(k.getSelection){var q=k.getSelection(),ee=w.textContent.length,fe=Math.min(R.start,ee),ke=R.end===void 0?fe:Math.min(R.end,ee);!q.extend&&fe>ke&&(p=ke,ke=fe,fe=p);var M=Kd(w,fe),_=Kd(w,ke);if(M&&_&&(q.rangeCount!==1||q.anchorNode!==M.node||q.anchorOffset!==M.offset||q.focusNode!==_.node||q.focusOffset!==_.offset)){var U=Z.createRange();U.setStart(M.node,M.offset),q.removeAllRanges(),fe>ke?(q.addRange(U),q.extend(_.node,_.offset)):(U.setEnd(_.node,_.offset),q.addRange(U))}}}}for(Z=[],q=w;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Z.length;w++){var P=Z[w];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Ts=!!xu,bu=xu=null}finally{Me=o,K.p=l,D.T=a}}e.current=t,nt=2}}function up(){if(nt===2){nt=0;var e=ha,t=Hl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=K.p;K.p=2;var o=Me;Me|=4;try{km(e,t.alternate,t)}finally{Me=o,K.p=l,D.T=a}}nt=3}}function fp(){if(nt===4||nt===3){nt=0,Z0();var e=ha,t=Hl,a=Yn,l=Jm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Hl=ha=null,dp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(da=null),Ro(a),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(fi,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,o=K.p,K.p=2,D.T=null;try{for(var c=e.onRecoverableError,p=0;p<l.length;p++){var w=l[p];c(w.value,{componentStack:w.stack})}}finally{D.T=t,K.p=o}}(Yn&3)!==0&&vs(),xn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===ru?Pi++:(Pi=0,ru=e):Pi=0,Ki(0)}}function dp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ji(t)))}function vs(){return cp(),up(),fp(),hp()}function hp(){if(nt!==5)return!1;var e=ha,t=lu;lu=0;var a=Ro(Yn),l=D.T,o=K.p;try{K.p=32>a?32:a,D.T=null,a=iu,iu=null;var c=ha,p=Yn;if(nt=0,Hl=ha=null,Yn=0,(Me&6)!==0)throw Error(s(331));var w=Me;if(Me|=4,Zm(c.current),Xm(c,c.current,p,a),Me=w,Ki(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(fi,c)}catch{}return!0}finally{K.p=o,D.T=l,dp(e,t)}}function mp(e,t,a){t=Wt(a,t),t=kc(e.stateNode,t,2),e=ra(e,t,2),e!==null&&(hi(e,2),xn(e))}function Le(e,t,a){if(e.tag===3)mp(e,e,a);else for(;t!==null;){if(t.tag===3){mp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(da===null||!da.has(l))){e=Wt(a,e),a=pm(2),l=ra(t,a,2),l!==null&&(vm(a,l,t,e),hi(l,2),xn(l));break}}t=t.return}}function cu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new bb;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(tu=!0,o.add(a),e=Nb.bind(null,e,t,a),t.then(e,e))}function Nb(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Be===e&&(Re&a)===a&&(Xe===4||Xe===3&&(Re&62914560)===Re&&300>Ut()-us?(Me&2)===0&&kl(e,0):nu|=a,Ul===Re&&(Ul=0)),xn(e)}function pp(e,t){t===0&&(t=cd()),e=ka(e,t),e!==null&&(hi(e,t),xn(e))}function Rb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),pp(e,a)}function jb(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),pp(e,a)}function Tb(e,t){return wo(e,t)}var gs=null,ql=null,uu=!1,ys=!1,fu=!1,pa=0;function xn(e){e!==ql&&e.next===null&&(ql===null?gs=ql=e:ql=ql.next=e),ys=!0,uu||(uu=!0,Ob())}function Ki(e,t){if(!fu&&ys){fu=!0;do for(var a=!1,l=gs;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,w=l.pingedLanes;c=(1<<31-kt(42|e)+1)-1,c&=o&~(p&~w),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,xp(l,c))}else c=Re,c=wr(l,l===Be?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||di(l,c)||(a=!0,xp(l,c));l=l.next}while(a);fu=!1}}function Ab(){vp()}function vp(){ys=uu=!1;var e=0;pa!==0&&qb()&&(e=pa);for(var t=Ut(),a=null,l=gs;l!==null;){var o=l.next,c=gp(l,t);c===0?(l.next=null,a===null?gs=o:a.next=o,o===null&&(ql=a)):(a=l,(e!==0||(c&3)!==0)&&(ys=!0)),l=o}nt!==0&&nt!==5||Ki(e),pa!==0&&(pa=0)}function gp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-kt(c),w=1<<p,R=o[p];R===-1?((w&a)===0||(w&l)!==0)&&(o[p]=nx(w,t)):R<=t&&(e.expiredLanes|=w),c&=~w}if(t=Be,a=Re,a=wr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Eo(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||di(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Eo(l),Ro(a)){case 2:case 8:a=sd;break;case 32:a=yr;break;case 268435456:a=od;break;default:a=yr}return l=yp.bind(null,e),a=wo(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Eo(l),e.callbackPriority=2,e.callbackNode=null,2}function yp(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vs()&&e.callbackNode!==a)return null;var l=Re;return l=wr(e,e===Be?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Im(e,l,t),gp(e,Ut()),e.callbackNode!=null&&e.callbackNode===a?yp.bind(null,e):null)}function xp(e,t){if(vs())return null;Im(e,t,!0)}function Ob(){Gb(function(){(Me&6)!==0?wo(rd,Ab):vp()})}function du(){if(pa===0){var e=Nl;e===0&&(e=xr,xr<<=1,(xr&261888)===0&&(xr=256)),pa=e}return pa}function bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rr(""+e)}function Sp(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 _b(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var c=bp((o[Rt]||null).action),p=l.submitter;p&&(t=(t=p[Rt]||null)?bp(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var w=new Or("action","action",null,l,o);e.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(pa!==0){var R=p?Sp(o,p):new FormData(o);Mc(a,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(w.preventDefault(),R=p?Sp(o,p):new FormData(o),Mc(a,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var hu=0;hu<Fo.length;hu++){var mu=Fo[hu],Mb=mu.toLowerCase(),zb=mu[0].toUpperCase()+mu.slice(1);un(Mb,"on"+zb)}un(Wd,"onAnimationEnd"),un(Id,"onAnimationIteration"),un(eh,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(Fx,"onTransitionRun"),un($x,"onTransitionStart"),un(Jx,"onTransitionCancel"),un(th,"onTransitionEnd"),fl("onMouseEnter",["mouseout","mouseover"]),fl("onMouseLeave",["mouseout","mouseover"]),fl("onPointerEnter",["pointerout","pointerover"]),fl("onPointerLeave",["pointerout","pointerover"]),Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Da("onBeforeInput",["compositionend","keypress","textInput","paste"]),Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zi="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(" "),Db=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zi));function wp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var p=l.length-1;0<=p;p--){var w=l[p],R=w.instance,H=w.currentTarget;if(w=w.listener,R!==c&&o.isPropagationStopped())break e;c=w,o.currentTarget=H;try{c(o)}catch(Y){zr(Y)}o.currentTarget=null,c=R}else for(p=0;p<l.length;p++){if(w=l[p],R=w.instance,H=w.currentTarget,w=w.listener,R!==c&&o.isPropagationStopped())break e;c=w,o.currentTarget=H;try{c(o)}catch(Y){zr(Y)}o.currentTarget=null,c=R}}}}function Ce(e,t){var a=t[jo];a===void 0&&(a=t[jo]=new Set);var l=e+"__bubble";a.has(l)||(Ep(t,e,2,!1),a.add(l))}function pu(e,t,a){var l=0;t&&(l|=4),Ep(a,e,l,t)}var xs="_reactListening"+Math.random().toString(36).slice(2);function vu(e){if(!e[xs]){e[xs]=!0,vd.forEach(function(a){a!=="selectionchange"&&(Db.has(a)||pu(a,!1,e),pu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xs]||(t[xs]=!0,pu("selectionchange",!1,t))}}function Ep(e,t,a,l){switch(Wp(t)){case 2:var o=o1;break;case 8:o=c1;break;default:o=_u}a=o.bind(null,t,a,e),o=void 0,!Uo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function gu(e,t,a,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var w=l.stateNode.containerInfo;if(w===o)break;if(p===4)for(p=l.return;p!==null;){var R=p.tag;if((R===3||R===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;w!==null;){if(p=ol(w),p===null)return;if(R=p.tag,R===5||R===6||R===26||R===27){l=c=p;continue e}w=w.parentNode}}l=l.return}Td(function(){var H=c,Y=Do(a),Z=[];e:{var k=nh.get(e);if(k!==void 0){var q=Or,ee=e;switch(e){case"keypress":if(Tr(a)===0)break e;case"keydown":case"keyup":q=jx;break;case"focusin":ee="focus",q=qo;break;case"focusout":ee="blur",q=qo;break;case"beforeblur":case"afterblur":q=qo;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":q=_d;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=px;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Ox;break;case Wd:case Id:case eh:q=yx;break;case th:q=Mx;break;case"scroll":case"scrollend":q=hx;break;case"wheel":q=Dx;break;case"copy":case"cut":case"paste":q=bx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=zd;break;case"toggle":case"beforetoggle":q=Ux}var fe=(t&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?k!==null?k+"Capture":null:k;fe=[];for(var _=H,U;_!==null;){var P=_;if(U=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||U===null||M===null||(P=vi(_,M),P!=null&&fe.push(Fi(_,P,U))),ke)break;_=_.return}0<fe.length&&(k=new q(k,ee,null,a,Y),Z.push({event:k,listeners:fe}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",k&&a!==zo&&(ee=a.relatedTarget||a.fromElement)&&(ol(ee)||ee[sl]))break e;if((q||k)&&(k=Y.window===Y?Y:(k=Y.ownerDocument)?k.defaultView||k.parentWindow:window,q?(ee=a.relatedTarget||a.toElement,q=H,ee=ee?ol(ee):null,ee!==null&&(ke=f(ee),fe=ee.tag,ee!==ke||fe!==5&&fe!==27&&fe!==6)&&(ee=null)):(q=null,ee=H),q!==ee)){if(fe=_d,P="onMouseLeave",M="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(fe=zd,P="onPointerLeave",M="onPointerEnter",_="pointer"),ke=q==null?k:pi(q),U=ee==null?k:pi(ee),k=new fe(P,_+"leave",q,a,Y),k.target=ke,k.relatedTarget=U,P=null,ol(Y)===H&&(fe=new fe(M,_+"enter",ee,a,Y),fe.target=U,fe.relatedTarget=ke,P=fe),ke=P,q&&ee)t:{for(fe=Lb,M=q,_=ee,U=0,P=M;P;P=fe(P))U++;P=0;for(var ce=_;ce;ce=fe(ce))P++;for(;0<U-P;)M=fe(M),U--;for(;0<P-U;)_=fe(_),P--;for(;U--;){if(M===_||_!==null&&M===_.alternate){fe=M;break t}M=fe(M),_=fe(_)}fe=null}else fe=null;q!==null&&Cp(Z,k,q,fe,!1),ee!==null&&ke!==null&&Cp(Z,ke,ee,fe,!0)}}e:{if(k=H?pi(H):window,q=k.nodeName&&k.nodeName.toLowerCase(),q==="select"||q==="input"&&k.type==="file")var Oe=Vd;else if(Bd(k))if(Gd)Oe=Px;else{Oe=Qx;var ae=Yx}else q=k.nodeName,!q||q.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?H&&Mo(H.elementType)&&(Oe=Vd):Oe=Xx;if(Oe&&(Oe=Oe(e,H))){qd(Z,Oe,a,Y);break e}ae&&ae(e,k,H),e==="focusout"&&H&&k.type==="number"&&H.memoizedProps.value!=null&&_o(k,"number",k.value)}switch(ae=H?pi(H):window,e){case"focusin":(Bd(ae)||ae.contentEditable==="true")&&(gl=ae,Po=H,Ci=null);break;case"focusout":Ci=Po=gl=null;break;case"mousedown":Ko=!0;break;case"contextmenu":case"mouseup":case"dragend":Ko=!1,$d(Z,a,Y);break;case"selectionchange":if(Zx)break;case"keydown":case"keyup":$d(Z,a,Y)}var be;if(Go)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 vl?Hd(e,a)&&(je="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(je="onCompositionStart");je&&(Dd&&a.locale!=="ko"&&(vl||je!=="onCompositionStart"?je==="onCompositionEnd"&&vl&&(be=Ad()):(In=Y,Ho="value"in In?In.value:In.textContent,vl=!0)),ae=bs(H,je),0<ae.length&&(je=new Md(je,e,null,a,Y),Z.push({event:je,listeners:ae}),be?je.data=be:(be=kd(a),be!==null&&(je.data=be)))),(be=kx?Bx(e,a):qx(e,a))&&(je=bs(H,"onBeforeInput"),0<je.length&&(ae=new Md("onBeforeInput","beforeinput",null,a,Y),Z.push({event:ae,listeners:je}),ae.data=be)),_b(Z,e,H,a,Y)}wp(Z,t)})}function Fi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function bs(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=vi(e,a),o!=null&&l.unshift(Fi(e,o,c)),o=vi(e,t),o!=null&&l.push(Fi(e,o,c))),e.tag===3)return l;e=e.return}return[]}function Lb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cp(e,t,a,l,o){for(var c=t._reactName,p=[];a!==null&&a!==l;){var w=a,R=w.alternate,H=w.stateNode;if(w=w.tag,R!==null&&R===l)break;w!==5&&w!==26&&w!==27||H===null||(R=H,o?(H=vi(a,c),H!=null&&p.unshift(Fi(a,H,R))):o||(H=vi(a,c),H!=null&&p.push(Fi(a,H,R)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var Ub=/\r\n?/g,Hb=/\u0000|\uFFFD/g;function Np(e){return(typeof e=="string"?e:""+e).replace(Ub,`
|
|
9
|
+
`).replace(Hb,"")}function Rp(e,t){return t=Np(t),Np(e)===t}function He(e,t,a,l,o,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||hl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&hl(e,""+l);break;case"className":Cr(e,"class",l);break;case"tabIndex":Cr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Cr(e,a,l);break;case"style":Rd(e,l,c);break;case"data":if(t!=="object"){Cr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Rr(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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 c=="function"&&(a==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Rr(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Tn);break;case"onScroll":l!=null&&Ce("scroll",e);break;case"onScrollEnd":l!=null&&Ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Rr(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),Er(e,"popover",l);break;case"xlinkActuate":jn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":jn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":jn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":jn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":jn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":jn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":jn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":jn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":jn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Er(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=fx.get(a)||a,Er(e,a,l))}}function yu(e,t,a,l,o,c){switch(a){case"style":Rd(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?hl(e,l):(typeof l=="number"||typeof l=="bigint")&&hl(e,""+l);break;case"onScroll":l!=null&&Ce("scroll",e);break;case"onScrollEnd":l!=null&&Ce("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[Rt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Er(e,a,l)}}}function gt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,c,p,a,null)}}o&&He(e,t,"srcSet",a.srcSet,a,null),l&&He(e,t,"src",a.src,a,null);return;case"input":Ce("invalid",e);var w=c=p=o=null,R=null,H=null;for(l in a)if(a.hasOwnProperty(l)){var Y=a[l];if(Y!=null)switch(l){case"name":o=Y;break;case"type":p=Y;break;case"checked":R=Y;break;case"defaultChecked":H=Y;break;case"value":c=Y;break;case"defaultValue":w=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,t));break;default:He(e,t,l,Y,a,null)}}wd(e,c,w,R,H,p,o,!1);return;case"select":Ce("invalid",e),l=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(w=a[o],w!=null))switch(o){case"value":c=w;break;case"defaultValue":p=w;break;case"multiple":l=w;default:He(e,t,o,w,a,null)}t=c,a=p,e.multiple=!!l,t!=null?dl(e,!!l,t,!1):a!=null&&dl(e,!!l,a,!0);return;case"textarea":Ce("invalid",e),c=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(w=a[p],w!=null))switch(p){case"value":l=w;break;case"defaultValue":o=w;break;case"children":c=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:He(e,t,p,w,a,null)}Cd(e,l,o,c);return;case"option":for(R in a)a.hasOwnProperty(R)&&(l=a[R],l!=null)&&(R==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":He(e,t,R,l,a,null));return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(l=0;l<Zi.length;l++)Ce(Zi[l],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(H in a)if(a.hasOwnProperty(H)&&(l=a[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,H,l,a,null)}return;default:if(Mo(t)){for(Y in a)a.hasOwnProperty(Y)&&(l=a[Y],l!==void 0&&yu(e,t,Y,l,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!=null&&He(e,t,w,l,a,null))}function kb(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,w=null,R=null,H=null,Y=null;for(q in a){var Z=a[q];if(a.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":R=Z;default:l.hasOwnProperty(q)||He(e,t,q,null,l,Z)}}for(var k in l){var q=l[k];if(Z=a[k],l.hasOwnProperty(k)&&(q!=null||Z!=null))switch(k){case"type":c=q;break;case"name":o=q;break;case"checked":H=q;break;case"defaultChecked":Y=q;break;case"value":p=q;break;case"defaultValue":w=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:q!==Z&&He(e,t,k,q,l,Z)}}Oo(e,p,w,R,H,Y,c,o);return;case"select":q=p=w=k=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":q=R;default:l.hasOwnProperty(c)||He(e,t,c,null,l,R)}for(o in l)if(c=l[o],R=a[o],l.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":k=c;break;case"defaultValue":w=c;break;case"multiple":p=c;default:c!==R&&He(e,t,o,c,l,R)}t=w,a=p,l=q,k!=null?dl(e,!!a,k,!1):!!l!=!!a&&(t!=null?dl(e,!!a,t,!0):dl(e,!!a,a?[]:"",!1));return;case"textarea":q=k=null;for(w in a)if(o=a[w],a.hasOwnProperty(w)&&o!=null&&!l.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:He(e,t,w,null,l,o)}for(p in l)if(o=l[p],c=a[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":k=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&He(e,t,p,o,l,c)}Ed(e,k,q);return;case"option":for(var ee in a)k=a[ee],a.hasOwnProperty(ee)&&k!=null&&!l.hasOwnProperty(ee)&&(ee==="selected"?e.selected=!1:He(e,t,ee,null,l,k));for(R in l)k=l[R],q=a[R],l.hasOwnProperty(R)&&k!==q&&(k!=null||q!=null)&&(R==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":He(e,t,R,k,l,q));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 fe in a)k=a[fe],a.hasOwnProperty(fe)&&k!=null&&!l.hasOwnProperty(fe)&&He(e,t,fe,null,l,k);for(H in l)if(k=l[H],q=a[H],l.hasOwnProperty(H)&&k!==q&&(k!=null||q!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:He(e,t,H,k,l,q)}return;default:if(Mo(t)){for(var ke in a)k=a[ke],a.hasOwnProperty(ke)&&k!==void 0&&!l.hasOwnProperty(ke)&&yu(e,t,ke,void 0,l,k);for(Y in l)k=l[Y],q=a[Y],!l.hasOwnProperty(Y)||k===q||k===void 0&&q===void 0||yu(e,t,Y,k,l,q);return}}for(var M in a)k=a[M],a.hasOwnProperty(M)&&k!=null&&!l.hasOwnProperty(M)&&He(e,t,M,null,l,k);for(Z in l)k=l[Z],q=a[Z],!l.hasOwnProperty(Z)||k===q||k==null&&q==null||He(e,t,Z,k,l,q)}function jp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],c=o.transferSize,p=o.initiatorType,w=o.duration;if(c&&w&&jp(p)){for(p=0,w=o.responseEnd,l+=1;l<a.length;l++){var R=a[l],H=R.startTime;if(H>w)break;var Y=R.transferSize,Z=R.initiatorType;Y&&jp(Z)&&(R=R.responseEnd,p+=Y*(R<w?1:(w-H)/(R-H)))}if(--l,t+=8*(c+p)/(o.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 xu=null,bu=null;function Ss(e){return e.nodeType===9?e:e.ownerDocument}function Tp(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 Ap(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 Su(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 wu=null;function qb(){var e=window.event;return e&&e.type==="popstate"?e===wu?!1:(wu=e,!0):(wu=null,!1)}var Op=typeof setTimeout=="function"?setTimeout:void 0,Vb=typeof clearTimeout=="function"?clearTimeout:void 0,_p=typeof Promise=="function"?Promise:void 0,Gb=typeof queueMicrotask=="function"?queueMicrotask:typeof _p<"u"?function(e){return _p.resolve(null).then(e).catch(Yb)}:Op;function Yb(e){setTimeout(function(){throw e})}function va(e){return e==="head"}function Mp(e,t){var a=t,l=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(o),Ql(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")$i(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$i(a);for(var c=a.firstChild;c;){var p=c.nextSibling,w=c.nodeName;c[mi]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&$i(e.ownerDocument.body);a=o}while(a);Ql(t)}function zp(e,t){var a=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Eu(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":Eu(a),To(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Qb(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[mi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function Xb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=an(e.nextSibling),e===null))return null;return e}function Dp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function Cu(e){return e.data==="$?"||e.data==="$~"}function Nu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Pb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function an(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 Ru=null;function Lp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return an(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Up(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 Hp(e,t,a){switch(t=Ss(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function $i(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);To(e)}var ln=new Map,kp=new Set;function ws(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qn=K.d;K.d={f:Kb,r:Zb,D:Fb,C:$b,L:Jb,m:Wb,X:e1,S:Ib,M:t1};function Kb(){var e=Qn.f(),t=hs();return e||t}function Zb(e){var t=cl(e);t!==null&&t.tag===5&&t.type==="form"?tm(t):Qn.r(e)}var Vl=typeof document>"u"?null:document;function Bp(e,t,a){var l=Vl;if(l&&typeof t=="string"&&t){var o=$t(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),kp.has(o)||(kp.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),gt(t,"link",e),ft(t),l.head.appendChild(t)))}}function Fb(e){Qn.D(e),Bp("dns-prefetch",e,null)}function $b(e,t){Qn.C(e,t),Bp("preconnect",e,t)}function Jb(e,t,a){Qn.L(e,t,a);var l=Vl;if(l&&e&&t){var o='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+$t(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+$t(a.imageSizes)+'"]')):o+='[href="'+$t(e)+'"]';var c=o;switch(t){case"style":c=Gl(e);break;case"script":c=Yl(e)}ln.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ln.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Ji(c))||t==="script"&&l.querySelector(Wi(c))||(t=l.createElement("link"),gt(t,"link",e),ft(t),l.head.appendChild(t)))}}function Wb(e,t){Qn.m(e,t);var a=Vl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+$t(l)+'"][href="'+$t(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Yl(e)}if(!ln.has(c)&&(e=b({rel:"modulepreload",href:e},t),ln.set(c,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wi(c)))return}l=a.createElement("link"),gt(l,"link",e),ft(l),a.head.appendChild(l)}}}function Ib(e,t,a){Qn.S(e,t,a);var l=Vl;if(l&&e){var o=ul(l).hoistableStyles,c=Gl(e);t=t||"default";var p=o.get(c);if(!p){var w={loading:0,preload:null};if(p=l.querySelector(Ji(c)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ln.get(c))&&ju(e,a);var R=p=l.createElement("link");ft(R),gt(R,"link",e),R._p=new Promise(function(H,Y){R.onload=H,R.onerror=Y}),R.addEventListener("load",function(){w.loading|=1}),R.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Es(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:w},o.set(c,p)}}}function e1(e,t){Qn.X(e,t);var a=Vl;if(a&&e){var l=ul(a).hoistableScripts,o=Yl(e),c=l.get(o);c||(c=a.querySelector(Wi(o)),c||(e=b({src:e,async:!0},t),(t=ln.get(o))&&Tu(e,t),c=a.createElement("script"),ft(c),gt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function t1(e,t){Qn.M(e,t);var a=Vl;if(a&&e){var l=ul(a).hoistableScripts,o=Yl(e),c=l.get(o);c||(c=a.querySelector(Wi(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=ln.get(o))&&Tu(e,t),c=a.createElement("script"),ft(c),gt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function qp(e,t,a,l){var o=(o=de.current)?ws(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Gl(a.href),a=ul(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Gl(a.href);var c=ul(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(Ji(e)))&&!c._p&&(p.instance=c,p.state.loading=5),ln.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},ln.set(e,a),c||n1(o,e,a,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yl(a),a=ul(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Gl(e){return'href="'+$t(e)+'"'}function Ji(e){return'link[rel="stylesheet"]['+e+"]"}function Vp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function n1(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),gt(t,"link",a),ft(t),e.head.appendChild(t))}function Yl(e){return'[src="'+$t(e)+'"]'}function Wi(e){return"script[async]"+e}function Gp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+$t(a.href)+'"]');if(l)return t.instance=l,ft(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ft(l),gt(l,"style",o),Es(l,a.precedence,e),t.instance=l;case"stylesheet":o=Gl(a.href);var c=e.querySelector(Ji(o));if(c)return t.state.loading|=4,t.instance=c,ft(c),c;l=Vp(a),(o=ln.get(o))&&ju(l,o),c=(e.ownerDocument||e).createElement("link"),ft(c);var p=c;return p._p=new Promise(function(w,R){p.onload=w,p.onerror=R}),gt(c,"link",l),t.state.loading|=4,Es(c,a.precedence,e),t.instance=c;case"script":return c=Yl(a.src),(o=e.querySelector(Wi(c)))?(t.instance=o,ft(o),o):(l=a,(o=ln.get(c))&&(l=b({},a),Tu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ft(o),gt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Es(l,a.precedence,e));return t.instance}function Es(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var w=l[p];if(w.dataset.precedence===t)c=w;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Tu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cs=null;function Yp(e,t,a){if(Cs===null){var l=new Map,o=Cs=new Map;o.set(a,l)}else o=Cs,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[mi]||c[ht]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var w=l.get(p);w?w.push(c):l.set(p,[c])}}return l}function Qp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function a1(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 Xp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function l1(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Gl(l.href),c=t.querySelector(Ji(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ns.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ft(c);return}c=t.ownerDocument||t,l=Vp(l),(o=ln.get(o))&&ju(l,o),c=c.createElement("link"),ft(c);var p=c;p._p=new Promise(function(w,R){p.onload=w,p.onerror=R}),gt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ns.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Au=0;function i1(e,t){return e.stylesheets&&e.count===0&&js(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&js(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Au===0&&(Au=62500*Bb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&js(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Au?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Ns(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)js(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rs=null;function js(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rs=new Map,t.forEach(r1,e),Rs=null,Ns.call(e))}function r1(e,t){if(!(t.state.loading&4)){var a=Rs.get(e);if(a)var l=a.get(null);else{a=new Map,Rs.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||l,c===l&&a.set(null,o),a.set(p,o),this.count++,l=Ns.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ii={$$typeof:z,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function s1(e,t,a,l,o,c,p,w,R){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=Co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.hiddenUpdates=Co(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Pp(e,t,a,l,o,c,p,w,R,H,Y,Z){return e=new s1(e,t,a,p,R,H,Y,Z,w),t=1,c===!0&&(t|=24),c=qt(3,null,null,t),e.current=c,c.stateNode=e,t=oc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},dc(c),e}function Kp(e){return e?(e=bl,e):bl}function Zp(e,t,a,l,o,c){o=Kp(o),l.context===null?l.context=o:l.pendingContext=o,l=ia(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=ra(e,l,t),a!==null&&(Mt(a,e,t),_i(a,e,t))}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ou(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function $p(e){if(e.tag===13||e.tag===31){var t=ka(e,67108864);t!==null&&Mt(t,e,67108864),Ou(e,67108864)}}function Jp(e){if(e.tag===13||e.tag===31){var t=Xt();t=No(t);var a=ka(e,t);a!==null&&Mt(a,e,t),Ou(e,t)}}var Ts=!0;function o1(e,t,a,l){var o=D.T;D.T=null;var c=K.p;try{K.p=2,_u(e,t,a,l)}finally{K.p=c,D.T=o}}function c1(e,t,a,l){var o=D.T;D.T=null;var c=K.p;try{K.p=8,_u(e,t,a,l)}finally{K.p=c,D.T=o}}function _u(e,t,a,l){if(Ts){var o=Mu(l);if(o===null)gu(e,t,l,As,a),Ip(e,l);else if(f1(o,e,t,a,l))l.stopPropagation();else if(Ip(e,l),t&4&&-1<u1.indexOf(e)){for(;o!==null;){var c=cl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=za(c.pendingLanes);if(p!==0){var w=c;for(w.pendingLanes|=2,w.entangledLanes|=2;p;){var R=1<<31-kt(p);w.entanglements[1]|=R,p&=~R}xn(c),(Me&6)===0&&(fs=Ut()+500,Ki(0))}}break;case 31:case 13:w=ka(c,2),w!==null&&Mt(w,c,2),hs(),Ou(c,2)}if(c=Mu(l),c===null&&gu(e,t,l,As,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else gu(e,t,l,null,a)}}function Mu(e){return e=Do(e),zu(e)}var As=null;function zu(e){if(As=null,e=ol(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=m(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 As=e,null}function Wp(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(F0()){case rd:return 2;case sd:return 8;case yr:case $0:return 32;case od:return 268435456;default:return 32}default:return 32}}var Du=!1,ga=null,ya=null,xa=null,er=new Map,tr=new Map,ba=[],u1="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 Ip(e,t){switch(e){case"focusin":case"focusout":ga=null;break;case"dragenter":case"dragleave":ya=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":er.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tr.delete(t.pointerId)}}function nr(e,t,a,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=cl(t),t!==null&&$p(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function f1(e,t,a,l,o){switch(t){case"focusin":return ga=nr(ga,e,t,a,l,o),!0;case"dragenter":return ya=nr(ya,e,t,a,l,o),!0;case"mouseover":return xa=nr(xa,e,t,a,l,o),!0;case"pointerover":var c=o.pointerId;return er.set(c,nr(er.get(c)||null,e,t,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,tr.set(c,nr(tr.get(c)||null,e,t,a,l,o)),!0}return!1}function ev(e){var t=ol(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,md(e.priority,function(){Jp(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,md(e.priority,function(){Jp(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 Os(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Mu(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);zo=l,a.target.dispatchEvent(l),zo=null}else return t=cl(a),t!==null&&$p(t),e.blockedOn=a,!1;t.shift()}return!0}function tv(e,t,a){Os(e)&&a.delete(t)}function d1(){Du=!1,ga!==null&&Os(ga)&&(ga=null),ya!==null&&Os(ya)&&(ya=null),xa!==null&&Os(xa)&&(xa=null),er.forEach(tv),tr.forEach(tv)}function _s(e,t){e.blockedOn===t&&(e.blockedOn=null,Du||(Du=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,d1)))}var Ms=null;function nv(e){Ms!==e&&(Ms=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ms===e&&(Ms=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(zu(l||a)===null)continue;break}var c=cl(a);c!==null&&(e.splice(t,3),t-=3,Mc(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ql(e){function t(R){return _s(R,e)}ga!==null&&_s(ga,e),ya!==null&&_s(ya,e),xa!==null&&_s(xa,e),er.forEach(t),tr.forEach(t);for(var a=0;a<ba.length;a++){var l=ba[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ba.length&&(a=ba[0],a.blockedOn===null);)ev(a),a.blockedOn===null&&ba.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],p=o[Rt]||null;if(typeof c=="function")p||nv(a);else if(p){var w=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Rt]||null)w=p.formAction;else if(zu(o)!==null)continue}else w=p.action;typeof w=="function"?a[l+1]=w:(a.splice(l,3),l-=3),nv(a)}}}function av(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Lu(e){this._internalRoot=e}zs.prototype.render=Lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Xt();Zp(a,l,e,t,null,null)},zs.prototype.unmount=Lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zp(e.current,2,null,e,null,null),hs(),t[sl]=null}};function zs(e){this._internalRoot=e}zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=hd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ba.length&&t!==0&&t<ba[a].priority;a++);ba.splice(a,0,e),a===0&&ev(e)}};var lv=i.version;if(lv!=="19.2.4")throw Error(s(527,lv,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var h1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ds.isDisabled&&Ds.supportsFiber)try{fi=Ds.inject(h1),Ht=Ds}catch{}}return lr.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,l="",o=fm,c=dm,p=hm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Pp(e,1,!1,null,null,a,l,null,o,c,p,av),e[sl]=t.current,vu(e),new Lu(t)},lr.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var l=!1,o="",c=fm,p=dm,w=hm,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=Pp(e,1,!0,t,a??null,l,o,R,c,p,w,av),t.context=Kp(null),a=t.current,l=Xt(),l=No(l),o=ia(l),o.callback=null,ra(a,o,l),a=l,t.current.lanes=a,hi(t,a),xn(t),e[sl]=t.current,vu(e),new zs(t)},lr.version="19.2.4",lr}var mv;function E1(){if(mv)return ku.exports;mv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),ku.exports=w1(),ku.exports}var C1=E1();var pv="popstate";function N1(n={}){function i(s,u){let{pathname:f,search:h,hash:m}=s.location;return lf("",{pathname:f,search:h,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(s,u){return typeof u=="string"?u:ur(u)}return j1(i,r,null,n)}function Ye(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function cn(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function R1(){return Math.random().toString(36).substring(2,10)}function vv(n,i){return{usr:n.state,key:n.key,idx:i}}function lf(n,i,r=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?ti(i):i,state:r,key:i&&i.key||s||R1()}}function ur({pathname:n="/",search:i="",hash:r=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function ti(n){let i={};if(n){let r=n.indexOf("#");r>=0&&(i.hash=n.substring(r),n=n.substring(0,r));let s=n.indexOf("?");s>=0&&(i.search=n.substring(s),n=n.substring(0,s)),n&&(i.pathname=n)}return i}function j1(n,i,r,s={}){let{window:u=document.defaultView,v5Compat:f=!1}=s,h=u.history,m="POP",v=null,g=x();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function x(){return(h.state||{idx:null}).idx}function b(){m="POP";let N=x(),T=N==null?null:N-g;g=N,v&&v({action:m,location:S.location,delta:T})}function E(N,T){m="PUSH";let A=lf(S.location,N,T);g=x()+1;let z=vv(A,g),G=S.createHref(A);try{h.pushState(z,"",G)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;u.location.assign(G)}f&&v&&v({action:m,location:S.location,delta:1})}function C(N,T){m="REPLACE";let A=lf(S.location,N,T);g=x();let z=vv(A,g),G=S.createHref(A);h.replaceState(z,"",G),f&&v&&v({action:m,location:S.location,delta:0})}function j(N){return T1(N)}let S={get action(){return m},get location(){return n(u,h)},listen(N){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(pv,b),v=N,()=>{u.removeEventListener(pv,b),v=null}},createHref(N){return i(u,N)},createURL:j,encodeLocation(N){let T=j(N);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:E,replace:C,go(N){return h.go(N)}};return S}function T1(n,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(r,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:ur(n);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function gg(n,i,r="/"){return A1(n,i,r,!1)}function A1(n,i,r,s){let u=typeof i=="string"?ti(i):i,f=Zn(u.pathname||"/",r);if(f==null)return null;let h=yg(n);O1(h);let m=null;for(let v=0;m==null&&v<h.length;++v){let g=V1(f);m=B1(h[v],g,s)}return m}function yg(n,i=[],r=[],s="",u=!1){let f=(h,m,v=u,g)=>{let x={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&v)return;Ye(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let b=Kn([s,x.relativePath]),E=r.concat(x);h.children&&h.children.length>0&&(Ye(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),yg(h.children,i,E,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:H1(b,h.index),routesMeta:E})};return n.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))f(h,m);else for(let v of xg(h.path))f(h,m,!0,v)}),i}function xg(n){let i=n.split("/");if(i.length===0)return[];let[r,...s]=i,u=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return u?[f,""]:[f];let h=xg(s.join("/")),m=[];return m.push(...h.map(v=>v===""?f:[f,v].join("/"))),u&&m.push(...h),m.map(v=>n.startsWith("/")&&v===""?"/":v)}function O1(n){n.sort((i,r)=>i.score!==r.score?r.score-i.score:k1(i.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var _1=/^:[\w-]+$/,M1=3,z1=2,D1=1,L1=10,U1=-2,gv=n=>n==="*";function H1(n,i){let r=n.split("/"),s=r.length;return r.some(gv)&&(s+=U1),i&&(s+=z1),r.filter(u=>!gv(u)).reduce((u,f)=>u+(_1.test(f)?M1:f===""?D1:L1),s)}function k1(n,i){return n.length===i.length&&n.slice(0,-1).every((s,u)=>s===i[u])?n[n.length-1]-i[i.length-1]:0}function B1(n,i,r=!1){let{routesMeta:s}=n,u={},f="/",h=[];for(let m=0;m<s.length;++m){let v=s[m],g=m===s.length-1,x=f==="/"?i:i.slice(f.length)||"/",b=Js({path:v.relativePath,caseSensitive:v.caseSensitive,end:g},x),E=v.route;if(!b&&g&&r&&!s[s.length-1].route.index&&(b=Js({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!b)return null;Object.assign(u,b.params),h.push({params:u,pathname:Kn([f,b.pathname]),pathnameBase:X1(Kn([f,b.pathnameBase])),route:E}),b.pathnameBase!=="/"&&(f=Kn([f,b.pathnameBase]))}return h}function Js(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,s]=q1(n.path,n.caseSensitive,n.end),u=i.match(r);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:s.reduce((g,{paramName:x,isOptional:b},E)=>{if(x==="*"){let j=m[E]||"";h=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const C=m[E];return b&&!C?g[x]=void 0:g[x]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:n}}function q1(n,i=!1,r=!0){cn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,v)=>(s.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),s]}function V1(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return cn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Zn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,s=n.charAt(r);return s&&s!=="/"?null:n.slice(r)||"/"}var G1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Y1(n,i="/"){let{pathname:r,search:s="",hash:u=""}=typeof n=="string"?ti(n):n,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=yv(r.substring(1),"/"):f=yv(r,i)):f=i,{pathname:f,search:P1(s),hash:K1(u)}}function yv(n,i){let r=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function Gu(n,i,r,s){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Q1(n){return n.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Of(n){let i=Q1(n);return i.map((r,s)=>s===i.length-1?r.pathname:r.pathnameBase)}function _f(n,i,r,s=!1){let u;typeof n=="string"?u=ti(n):(u={...n},Ye(!u.pathname||!u.pathname.includes("?"),Gu("?","pathname","search",u)),Ye(!u.pathname||!u.pathname.includes("#"),Gu("#","pathname","hash",u)),Ye(!u.search||!u.search.includes("#"),Gu("#","search","hash",u)));let f=n===""||u.pathname==="",h=f?"/":u.pathname,m;if(h==null)m=r;else{let b=i.length-1;if(!s&&h.startsWith("..")){let E=h.split("/");for(;E[0]==="..";)E.shift(),b-=1;u.pathname=E.join("/")}m=b>=0?i[b]:"/"}let v=Y1(u,m),g=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(g||x)&&(v.pathname+="/"),v}var Kn=n=>n.join("/").replace(/\/\/+/g,"/"),X1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),P1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,K1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Z1=class{constructor(n,i,r,s=!1){this.status=n,this.statusText=i||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function F1(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function $1(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var bg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sg(n,i){let r=n;if(typeof r!="string"||!G1.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,u=!1;if(bg)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=Zn(h.pathname,i);h.origin===f.origin&&m!=null?r=m+h.search+h.hash:u=!0}catch{cn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wg=["POST","PUT","PATCH","DELETE"];new Set(wg);var J1=["GET",...wg];new Set(J1);var ni=y.createContext(null);ni.displayName="DataRouter";var co=y.createContext(null);co.displayName="DataRouterState";var W1=y.createContext(!1),Eg=y.createContext({isTransitioning:!1});Eg.displayName="ViewTransition";var I1=y.createContext(new Map);I1.displayName="Fetchers";var eS=y.createContext(null);eS.displayName="Await";var Zt=y.createContext(null);Zt.displayName="Navigation";var hr=y.createContext(null);hr.displayName="Location";var Cn=y.createContext({outlet:null,matches:[],isDataRoute:!1});Cn.displayName="Route";var Mf=y.createContext(null);Mf.displayName="RouteError";var Cg="REACT_ROUTER_ERROR",tS="REDIRECT",nS="ROUTE_ERROR_RESPONSE";function aS(n){if(n.startsWith(`${Cg}:${tS}:{`))try{let i=JSON.parse(n.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 lS(n){if(n.startsWith(`${Cg}:${nS}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Z1(i.status,i.statusText,i.data)}catch{}}function iS(n,{relative:i}={}){Ye(ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=y.useContext(Zt),{hash:u,pathname:f,search:h}=mr(n,{relative:i}),m=f;return r!=="/"&&(m=f==="/"?r:Kn([r,f])),s.createHref({pathname:m,search:h,hash:u})}function ai(){return y.useContext(hr)!=null}function Nn(){return Ye(ai(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(hr).location}var Ng="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Rg(n){y.useContext(Zt).static||y.useLayoutEffect(n)}function rl(){let{isDataRoute:n}=y.useContext(Cn);return n?yS():rS()}function rS(){Ye(ai(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(ni),{basename:i,navigator:r}=y.useContext(Zt),{matches:s}=y.useContext(Cn),{pathname:u}=Nn(),f=JSON.stringify(Of(s)),h=y.useRef(!1);return Rg(()=>{h.current=!0}),y.useCallback((v,g={})=>{if(cn(h.current,Ng),!h.current)return;if(typeof v=="number"){r.go(v);return}let x=_f(v,JSON.parse(f),u,g.relative==="path");n==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:Kn([i,x.pathname])),(g.replace?r.replace:r.push)(x,g.state,g)},[i,r,f,u,n])}y.createContext(null);function mr(n,{relative:i}={}){let{matches:r}=y.useContext(Cn),{pathname:s}=Nn(),u=JSON.stringify(Of(r));return y.useMemo(()=>_f(n,JSON.parse(u),s,i==="path"),[n,u,s,i])}function sS(n,i){return jg(n,i)}function jg(n,i,r,s,u){Ye(ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=y.useContext(Zt),{matches:h}=y.useContext(Cn),m=h[h.length-1],v=m?m.params:{},g=m?m.pathname:"/",x=m?m.pathnameBase:"/",b=m&&m.route;{let A=b&&b.path||"";Ag(g,!b||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${A}">) 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.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let E=Nn(),C;if(i){let A=typeof i=="string"?ti(i):i;Ye(x==="/"||A.pathname?.startsWith(x),`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 "${x}" but pathname "${A.pathname}" was given in the \`location\` prop.`),C=A}else C=E;let j=C.pathname||"/",S=j;if(x!=="/"){let A=x.replace(/^\//,"").split("/");S="/"+j.replace(/^\//,"").split("/").slice(A.length).join("/")}let N=gg(n,{pathname:S});cn(b||N!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),cn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.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 T=dS(N&&N.map(A=>Object.assign({},A,{params:Object.assign({},v,A.params),pathname:Kn([x,f.encodeLocation?f.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?x:Kn([x,f.encodeLocation?f.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),h,r,s,u);return i&&T?y.createElement(hr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...C},navigationType:"POP"}},T):T}function oS(){let n=gS(),i=F1(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:f},"ErrorBoundary")," or"," ",y.createElement("code",{style:f},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},i),r?y.createElement("pre",{style:u},r):null,h)}var cS=y.createElement(oS,null),Tg=class extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=lS(n.digest);r&&(n=r)}let i=n!==void 0?y.createElement(Cn.Provider,{value:this.props.routeContext},y.createElement(Mf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?y.createElement(uS,{error:n},i):i}};Tg.contextType=W1;var Yu=new WeakMap;function uS({children:n,error:i}){let{basename:r}=y.useContext(Zt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=aS(i.digest);if(s){let u=Yu.get(i);if(u)throw u;let f=Sg(s.location,r);if(bg&&!Yu.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw Yu.set(i,h),h}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function fS({routeContext:n,match:i,children:r}){let s=y.useContext(ni);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),y.createElement(Cn.Provider,{value:n},r)}function dS(n,i=[],r=null,s=null,u=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let f=n,h=r?.errors;if(h!=null){let x=f.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);Ye(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,x+1))}let m=!1,v=-1;if(r)for(let x=0;x<f.length;x++){let b=f[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(v=x),b.route.id){let{loaderData:E,errors:C}=r,j=b.route.loader&&!E.hasOwnProperty(b.route.id)&&(!C||C[b.route.id]===void 0);if(b.route.lazy||j){m=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}let g=r&&s?(x,b)=>{s(x,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:$1(r.matches),errorInfo:b})}:void 0;return f.reduceRight((x,b,E)=>{let C,j=!1,S=null,N=null;r&&(C=h&&b.route.id?h[b.route.id]:void 0,S=b.route.errorElement||cS,m&&(v<0&&E===0?(Ag("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,N=null):v===E&&(j=!0,N=b.route.hydrateFallbackElement||null)));let T=i.concat(f.slice(0,E+1)),A=()=>{let z;return C?z=S:j?z=N:b.route.Component?z=y.createElement(b.route.Component,null):b.route.element?z=b.route.element:z=x,y.createElement(fS,{match:b,routeContext:{outlet:x,matches:T,isDataRoute:r!=null},children:z})};return r&&(b.route.ErrorBoundary||b.route.errorElement||E===0)?y.createElement(Tg,{location:r.location,revalidation:r.revalidation,component:S,error:C,children:A(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:g}):A()},null)}function zf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hS(n){let i=y.useContext(ni);return Ye(i,zf(n)),i}function mS(n){let i=y.useContext(co);return Ye(i,zf(n)),i}function pS(n){let i=y.useContext(Cn);return Ye(i,zf(n)),i}function Df(n){let i=pS(n),r=i.matches[i.matches.length-1];return Ye(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function vS(){return Df("useRouteId")}function gS(){let n=y.useContext(Mf),i=mS("useRouteError"),r=Df("useRouteError");return n!==void 0?n:i.errors?.[r]}function yS(){let{router:n}=hS("useNavigate"),i=Df("useNavigate"),r=y.useRef(!1);return Rg(()=>{r.current=!0}),y.useCallback(async(u,f={})=>{cn(r.current,Ng),r.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:i,...f}))},[n,i])}var xv={};function Ag(n,i,r){!i&&!xv[n]&&(xv[n]=!0,cn(!1,r))}y.memo(xS);function xS({routes:n,future:i,state:r,onError:s}){return jg(n,void 0,r,s,i)}function bS({to:n,replace:i,state:r,relative:s}){Ye(ai(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=y.useContext(Zt);cn(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=y.useContext(Cn),{pathname:h}=Nn(),m=rl(),v=_f(n,Of(f),h,s==="path"),g=JSON.stringify(v);return y.useEffect(()=>{m(JSON.parse(g),{replace:i,state:r,relative:s})},[m,g,s,i,r]),null}function Wa(n){Ye(!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 SS({basename:n="/",children:i=null,location:r,navigationType:s="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){Ye(!ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),v=y.useMemo(()=>({basename:m,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[m,u,f,h]);typeof r=="string"&&(r=ti(r));let{pathname:g="/",search:x="",hash:b="",state:E=null,key:C="default"}=r,j=y.useMemo(()=>{let S=Zn(g,m);return S==null?null:{location:{pathname:S,search:x,hash:b,state:E,key:C},navigationType:s}},[m,g,x,b,E,C,s]);return cn(j!=null,`<Router basename="${m}"> is not able to match the URL "${g}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:y.createElement(Zt.Provider,{value:v},y.createElement(hr.Provider,{children:i,value:j}))}function wS({children:n,location:i}){return sS(rf(n),i)}function rf(n,i=[]){let r=[];return y.Children.forEach(n,(s,u)=>{if(!y.isValidElement(s))return;let f=[...i,u];if(s.type===y.Fragment){r.push.apply(r,rf(s.props.children,f));return}Ye(s.type===Wa,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=rf(s.props.children,f)),r.push(h)}),r}var Xs="get",Ps="application/x-www-form-urlencoded";function uo(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function ES(n){return uo(n)&&n.tagName.toLowerCase()==="button"}function CS(n){return uo(n)&&n.tagName.toLowerCase()==="form"}function NS(n){return uo(n)&&n.tagName.toLowerCase()==="input"}function RS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function jS(n,i){return n.button===0&&(!i||i==="_self")&&!RS(n)}function sf(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((i,r)=>{let s=n[r];return i.concat(Array.isArray(s)?s.map(u=>[r,u]):[[r,s]])},[]))}function TS(n,i){let r=sf(n);return i&&i.forEach((s,u)=>{r.has(u)||i.getAll(u).forEach(f=>{r.append(u,f)})}),r}var Ls=null;function AS(){if(Ls===null)try{new FormData(document.createElement("form"),0),Ls=!1}catch{Ls=!0}return Ls}var OS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qu(n){return n!=null&&!OS.has(n)?(cn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ps}"`),null):n}function _S(n,i){let r,s,u,f,h;if(CS(n)){let m=n.getAttribute("action");s=m?Zn(m,i):null,r=n.getAttribute("method")||Xs,u=Qu(n.getAttribute("enctype"))||Ps,f=new FormData(n)}else if(ES(n)||NS(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||m.getAttribute("action");if(s=v?Zn(v,i):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Xs,u=Qu(n.getAttribute("formenctype"))||Qu(m.getAttribute("enctype"))||Ps,f=new FormData(m,n),!AS()){let{name:g,type:x,value:b}=n;if(x==="image"){let E=g?`${g}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else g&&f.append(g,b)}}else{if(uo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Xs,s=null,u=Ps,h=n}return f&&u==="text/plain"&&(h=f,f=void 0),{action:s,method:r.toLowerCase(),encType:u,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Lf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function MS(n,i,r,s){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${s}`:u.pathname=`${u.pathname}.${s}`:u.pathname==="/"?u.pathname=`_root.${s}`:i&&Zn(u.pathname,i)==="/"?u.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${s}`,u}async function zS(n,i){if(n.id in i)return i[n.id];try{let r=await import(n.module);return i[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function DS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function LS(n,i,r){let s=await Promise.all(n.map(async u=>{let f=i.routes[u.route.id];if(f){let h=await zS(f,r);return h.links?h.links():[]}return[]}));return BS(s.flat(1).filter(DS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function bv(n,i,r,s,u,f){let h=(v,g)=>r[g]?v.route.id!==r[g].route.id:!0,m=(v,g)=>r[g].pathname!==v.pathname||r[g].route.path?.endsWith("*")&&r[g].params["*"]!==v.params["*"];return f==="assets"?i.filter((v,g)=>h(v,g)||m(v,g)):f==="data"?i.filter((v,g)=>{let x=s.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(h(v,g)||m(v,g))return!0;if(v.route.shouldRevalidate){let b=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function US(n,i,{includeHydrateFallback:r}={}){return HS(n.map(s=>{let u=i.routes[s.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function HS(n){return[...new Set(n)]}function kS(n){let i={},r=Object.keys(n).sort();for(let s of r)i[s]=n[s];return i}function BS(n,i){let r=new Set;return new Set(i),n.reduce((s,u)=>{let f=JSON.stringify(kS(u));return r.has(f)||(r.add(f),s.push({key:f,link:u})),s},[])}function Og(){let n=y.useContext(ni);return Lf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function qS(){let n=y.useContext(co);return Lf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Uf=y.createContext(void 0);Uf.displayName="FrameworkContext";function _g(){let n=y.useContext(Uf);return Lf(n,"You must render this element inside a <HydratedRouter> element"),n}function VS(n,i){let r=y.useContext(Uf),[s,u]=y.useState(!1),[f,h]=y.useState(!1),{onFocus:m,onBlur:v,onMouseEnter:g,onMouseLeave:x,onTouchStart:b}=i,E=y.useRef(null);y.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=T=>{T.forEach(A=>{h(A.isIntersecting)})},N=new IntersectionObserver(S,{threshold:.5});return E.current&&N.observe(E.current),()=>{N.disconnect()}}},[n]),y.useEffect(()=>{if(s){let S=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(S)}}},[s]);let C=()=>{u(!0)},j=()=>{u(!1),h(!1)};return r?n!=="intent"?[f,E,{}]:[f,E,{onFocus:ir(m,C),onBlur:ir(v,j),onMouseEnter:ir(g,C),onMouseLeave:ir(x,j),onTouchStart:ir(b,C)}]:[!1,E,{}]}function ir(n,i){return r=>{n&&n(r),r.defaultPrevented||i(r)}}function GS({page:n,...i}){let{router:r}=Og(),s=y.useMemo(()=>gg(r.routes,n,r.basename),[r.routes,n,r.basename]);return s?y.createElement(QS,{page:n,matches:s,...i}):null}function YS(n){let{manifest:i,routeModules:r}=_g(),[s,u]=y.useState([]);return y.useEffect(()=>{let f=!1;return LS(n,i,r).then(h=>{f||u(h)}),()=>{f=!0}},[n,i,r]),s}function QS({page:n,matches:i,...r}){let s=Nn(),{future:u,manifest:f,routeModules:h}=_g(),{basename:m}=Og(),{loaderData:v,matches:g}=qS(),x=y.useMemo(()=>bv(n,i,g,f,s,"data"),[n,i,g,f,s]),b=y.useMemo(()=>bv(n,i,g,f,s,"assets"),[n,i,g,f,s]),E=y.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let S=new Set,N=!1;if(i.forEach(A=>{let z=f.routes[A.route.id];!z||!z.hasLoader||(!x.some(G=>G.route.id===A.route.id)&&A.route.id in v&&h[A.route.id]?.shouldRevalidate||z.hasClientLoader?N=!0:S.add(A.route.id))}),S.size===0)return[];let T=MS(n,m,u.unstable_trailingSlashAwareDataRequests,"data");return N&&S.size>0&&T.searchParams.set("_routes",i.filter(A=>S.has(A.route.id)).map(A=>A.route.id).join(",")),[T.pathname+T.search]},[m,u.unstable_trailingSlashAwareDataRequests,v,s,f,x,i,n,h]),C=y.useMemo(()=>US(b,f),[b,f]),j=YS(b);return y.createElement(y.Fragment,null,E.map(S=>y.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),C.map(S=>y.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),j.map(({key:S,link:N})=>y.createElement("link",{key:S,nonce:r.nonce,...N,crossOrigin:N.crossOrigin??r.crossOrigin})))}function XS(...n){return i=>{n.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var PS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{PS&&(window.__reactRouterVersion="7.13.0")}catch{}function KS({basename:n,children:i,unstable_useTransitions:r,window:s}){let u=y.useRef();u.current==null&&(u.current=N1({window:s,v5Compat:!0}));let f=u.current,[h,m]=y.useState({action:f.action,location:f.location}),v=y.useCallback(g=>{r===!1?m(g):y.startTransition(()=>m(g))},[r]);return y.useLayoutEffect(()=>f.listen(v),[f,v]),y.createElement(SS,{basename:n,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:r})}var Mg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zg=y.forwardRef(function({onClick:i,discover:r="render",prefetch:s="none",relative:u,reloadDocument:f,replace:h,state:m,target:v,to:g,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:E,...C},j){let{basename:S,unstable_useTransitions:N}=y.useContext(Zt),T=typeof g=="string"&&Mg.test(g),A=Sg(g,S);g=A.to;let z=iS(g,{relative:u}),[G,L,J]=VS(s,C),V=JS(g,{replace:h,state:m,target:v,preventScrollReset:x,relative:u,viewTransition:b,unstable_defaultShouldRevalidate:E,unstable_useTransitions:N});function X(se){i&&i(se),se.defaultPrevented||V(se)}let I=y.createElement("a",{...C,...J,href:A.absoluteURL||z,onClick:A.isExternal||f?i:X,ref:XS(j,L),target:v,"data-discover":!T&&r==="render"?"true":void 0});return G&&!T?y.createElement(y.Fragment,null,I,y.createElement(GS,{page:z})):I});zg.displayName="Link";var ZS=y.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:s="",end:u=!1,style:f,to:h,viewTransition:m,children:v,...g},x){let b=mr(h,{relative:g.relative}),E=Nn(),C=y.useContext(co),{navigator:j,basename:S}=y.useContext(Zt),N=C!=null&&a2(b)&&m===!0,T=j.encodeLocation?j.encodeLocation(b).pathname:b.pathname,A=E.pathname,z=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(A=A.toLowerCase(),z=z?z.toLowerCase():null,T=T.toLowerCase()),z&&S&&(z=Zn(z,S)||z);const G=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let L=A===T||!u&&A.startsWith(T)&&A.charAt(G)==="/",J=z!=null&&(z===T||!u&&z.startsWith(T)&&z.charAt(T.length)==="/"),V={isActive:L,isPending:J,isTransitioning:N},X=L?i:void 0,I;typeof s=="function"?I=s(V):I=[s,L?"active":null,J?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let se=typeof f=="function"?f(V):f;return y.createElement(zg,{...g,"aria-current":X,className:I,ref:x,style:se,to:h,viewTransition:m},typeof v=="function"?v(V):v)});ZS.displayName="NavLink";var FS=y.forwardRef(({discover:n="render",fetcherKey:i,navigate:r,reloadDocument:s,replace:u,state:f,method:h=Xs,action:m,onSubmit:v,relative:g,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:E,...C},j)=>{let{unstable_useTransitions:S}=y.useContext(Zt),N=t2(),T=n2(m,{relative:g}),A=h.toLowerCase()==="get"?"get":"post",z=typeof m=="string"&&Mg.test(m),G=L=>{if(v&&v(L),L.defaultPrevented)return;L.preventDefault();let J=L.nativeEvent.submitter,V=J?.getAttribute("formmethod")||h,X=()=>N(J||L.currentTarget,{fetcherKey:i,method:V,navigate:r,replace:u,state:f,relative:g,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:E});S&&r!==!1?y.startTransition(()=>X()):X()};return y.createElement("form",{ref:j,method:A,action:T,onSubmit:s?v:G,...C,"data-discover":!z&&n==="render"?"true":void 0})});FS.displayName="Form";function $S(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dg(n){let i=y.useContext(ni);return Ye(i,$S(n)),i}function JS(n,{target:i,replace:r,state:s,preventScrollReset:u,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:v}={}){let g=rl(),x=Nn(),b=mr(n,{relative:f});return y.useCallback(E=>{if(jS(E,i)){E.preventDefault();let C=r!==void 0?r:ur(x)===ur(b),j=()=>g(n,{replace:C,state:s,preventScrollReset:u,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m});v?y.startTransition(()=>j()):j()}},[x,g,b,r,s,i,n,u,f,h,m,v])}function WS(n){cn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=y.useRef(sf(n)),r=y.useRef(!1),s=Nn(),u=y.useMemo(()=>TS(s.search,r.current?null:i.current),[s.search]),f=rl(),h=y.useCallback((m,v)=>{const g=sf(typeof m=="function"?m(new URLSearchParams(u)):m);r.current=!0,f("?"+g,v)},[f,u]);return[u,h]}var IS=0,e2=()=>`__${String(++IS)}__`;function t2(){let{router:n}=Dg("useSubmit"),{basename:i}=y.useContext(Zt),r=vS(),s=n.fetch,u=n.navigate;return y.useCallback(async(f,h={})=>{let{action:m,method:v,encType:g,formData:x,body:b}=_S(f,i);if(h.navigate===!1){let E=h.fetcherKey||e2();await s(E,r,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||v,formEncType:h.encType||g,flushSync:h.flushSync})}else await u(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||v,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,u,i,r])}function n2(n,{relative:i}={}){let{basename:r}=y.useContext(Zt),s=y.useContext(Cn);Ye(s,"useFormAction must be used inside a RouteContext");let[u]=s.matches.slice(-1),f={...mr(n||".",{relative:i})},h=Nn();if(n==null){f.search=h.search;let m=new URLSearchParams(f.search),v=m.getAll("index");if(v.some(x=>x==="")){m.delete("index"),v.filter(b=>b).forEach(b=>m.append("index",b));let x=m.toString();f.search=x?`?${x}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Kn([r,f.pathname])),ur(f)}function a2(n,{relative:i}={}){let r=y.useContext(Eg);Ye(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Dg("useViewTransitionState"),u=mr(n,{relative:i});if(!r.isTransitioning)return!1;let f=Zn(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=Zn(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Js(u.pathname,h)!=null||Js(u.pathname,f)!=null}var pr=vg();const l2=pg(pr),sn=[{id:"welcome",name:"欢迎",path:"/welcome"},{id:"hardware",name:"硬件配置",path:"/hardware"},{id:"config",name:"服务配置",path:"/config"},{id:"install",name:"安装下载",path:"/install"}],Lg=y.createContext(void 0),i2={installPath:"",region:"cn",serviceName:"lumen-server",port:50051,hardwarePreset:null,runtime:null,onnxProviders:null,rknnDevice:null,servicePreset:null,selectedServices:["ocr"],configGenerated:!1,configPath:void 0,installationComplete:!1,serverRunning:!1};function rr({children:n}){const i=Nn(),r=rl(),[s,u]=y.useState(i2),f=y.useMemo(()=>{const E=sn.findIndex(C=>C.path===i.pathname);return E!==-1?E:0},[i.pathname]),h=y.useCallback(E=>{u(C=>({...C,...E}))},[]),m=y.useCallback(E=>{E>=0&&E<sn.length&&r(sn[E].path)},[r]),v=y.useCallback(()=>{f<sn.length-1&&r(sn[f+1].path)},[f,r]),g=y.useCallback(()=>{f>0&&r(sn[f-1].path)},[f,r]),x=y.useCallback(()=>{switch(f){case 0:return s.installPath.trim()!=="";case 1:return s.hardwarePreset!==null;case 2:return s.selectedServices.length>0&&s.configGenerated;case 3:return s.installationComplete;case 4:return!0;default:return!0}},[f,s]),b=y.useCallback(()=>f>0,[f]);return d.jsx(Lg.Provider,{value:{currentStep:f,wizardData:s,updateWizardData:h,goToStep:m,nextStep:v,prevStep:g,canGoNext:x,canGoPrev:b},children:n})}const Ug=(...n)=>n.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).join(" ").trim();const r2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const s2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,s)=>s?s.toUpperCase():r.toLowerCase());const Sv=n=>{const i=s2(n);return i.charAt(0).toUpperCase()+i.slice(1)};var o2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const c2=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const u2=y.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:h,...m},v)=>y.createElement("svg",{ref:v,...o2,width:i,height:i,stroke:n,strokeWidth:s?Number(r)*24/Number(i):r,className:Ug("lucide",u),...!f&&!c2(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,x])=>y.createElement(g,x)),...Array.isArray(f)?f:[f]]));const we=(n,i)=>{const r=y.forwardRef(({className:s,...u},f)=>y.createElement(u2,{ref:f,iconNode:i,className:Ug(`lucide-${r2(Sv(n))}`,`lucide-${n}`,s),...u}));return r.displayName=Sv(n),r};const f2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],d2=we("arrow-left",f2);const h2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],m2=we("arrow-right",h2);const p2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Hg=we("bot",p2);const v2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Hf=we("check",v2);const g2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kg=we("chevron-down",g2);const y2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],x2=we("chevron-left",y2);const b2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],S2=we("chevron-right",b2);const w2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],E2=we("chevron-up",w2);const C2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],on=we("circle-alert",C2);const N2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Us=we("circle-check-big",N2);const R2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bg=we("circle-check",R2);const j2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],T2=we("circle",j2);const A2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],O2=we("copy",A2);const _2=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],of=we("cpu",_2);const M2=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],z2=we("download",M2);const D2=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],L2=we("feather",D2);const U2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],wv=we("file-text",U2);const H2=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],k2=we("folder-open",H2);const B2=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],q2=we("gamepad-2",B2);const V2=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],G2=we("hexagon",V2);const Y2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Q2=we("image",Y2);const X2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Fl=we("info",X2);const P2=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],K2=we("laptop",P2);const Z2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pn=we("loader-circle",Z2);const F2=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],$2=we("mountain",F2);const J2=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],qg=we("package",J2);const W2=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Vg=we("play",W2);const I2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ew=we("refresh-cw",I2);const tw=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Gg=we("rocket",tw);const nw=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]],aw=we("scan-face",nw);const lw=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]],iw=we("scan-text",lw);const rw=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],sw=we("server",rw);const ow=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Yg=we("settings",ow);const cw=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],uw=we("sparkles",cw);const fw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],dw=we("square",fw);const hw=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],mw=we("sticky-note",hw);const pw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vw=we("x",pw);const gw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],yw=we("zap",gw);function Qg(n){var i,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(r=Qg(n[i]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function Xg(){for(var n,i,r=0,s="",u=arguments.length;r<u;r++)(n=arguments[r])&&(i=Qg(n))&&(s&&(s+=" "),s+=i);return s}const xw=(n,i)=>{const r=new Array(n.length+i.length);for(let s=0;s<n.length;s++)r[s]=n[s];for(let s=0;s<i.length;s++)r[n.length+s]=i[s];return r},bw=(n,i)=>({classGroupId:n,validator:i}),Pg=(n=new Map,i=null,r)=>({nextPart:n,validators:i,classGroupId:r}),Ws="-",Ev=[],Sw="arbitrary..",ww=n=>{const i=Cw(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return Ew(h);const m=h.split(Ws),v=m[0]===""&&m.length>1?1:0;return Kg(m,v,i)},getConflictingClassGroupIds:(h,m)=>{if(m){const v=s[h],g=r[h];return v?g?xw(g,v):v:g||Ev}return r[h]||Ev}}},Kg=(n,i,r)=>{if(n.length-i===0)return r.classGroupId;const u=n[i],f=r.nextPart.get(u);if(f){const g=Kg(n,i+1,f);if(g)return g}const h=r.validators;if(h===null)return;const m=i===0?n.join(Ws):n.slice(i).join(Ws),v=h.length;for(let g=0;g<v;g++){const x=h[g];if(x.validator(m))return x.classGroupId}},Ew=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),r=i.indexOf(":"),s=i.slice(0,r);return s?Sw+s:void 0})(),Cw=n=>{const{theme:i,classGroups:r}=n;return Nw(r,i)},Nw=(n,i)=>{const r=Pg();for(const s in n){const u=n[s];kf(u,r,s,i)}return r},kf=(n,i,r,s)=>{const u=n.length;for(let f=0;f<u;f++){const h=n[f];Rw(h,i,r,s)}},Rw=(n,i,r,s)=>{if(typeof n=="string"){jw(n,i,r);return}if(typeof n=="function"){Tw(n,i,r,s);return}Aw(n,i,r,s)},jw=(n,i,r)=>{const s=n===""?i:Zg(i,n);s.classGroupId=r},Tw=(n,i,r,s)=>{if(Ow(n)){kf(n(s),i,r,s);return}i.validators===null&&(i.validators=[]),i.validators.push(bw(r,n))},Aw=(n,i,r,s)=>{const u=Object.entries(n),f=u.length;for(let h=0;h<f;h++){const[m,v]=u[h];kf(v,Zg(i,m),r,s)}},Zg=(n,i)=>{let r=n;const s=i.split(Ws),u=s.length;for(let f=0;f<u;f++){const h=s[f];let m=r.nextPart.get(h);m||(m=Pg(),r.nextPart.set(h,m)),r=m}return r},Ow=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,_w=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,r=Object.create(null),s=Object.create(null);const u=(f,h)=>{r[f]=h,i++,i>n&&(i=0,s=r,r=Object.create(null))};return{get(f){let h=r[f];if(h!==void 0)return h;if((h=s[f])!==void 0)return u(f,h),h},set(f,h){f in r?r[f]=h:u(f,h)}}},cf="!",Cv=":",Mw=[],Nv=(n,i,r,s,u)=>({modifiers:n,hasImportantModifier:i,baseClassName:r,maybePostfixModifierPosition:s,isExternal:u}),zw=n=>{const{prefix:i,experimentalParseClassName:r}=n;let s=u=>{const f=[];let h=0,m=0,v=0,g;const x=u.length;for(let S=0;S<x;S++){const N=u[S];if(h===0&&m===0){if(N===Cv){f.push(u.slice(v,S)),v=S+1;continue}if(N==="/"){g=S;continue}}N==="["?h++:N==="]"?h--:N==="("?m++:N===")"&&m--}const b=f.length===0?u:u.slice(v);let E=b,C=!1;b.endsWith(cf)?(E=b.slice(0,-1),C=!0):b.startsWith(cf)&&(E=b.slice(1),C=!0);const j=g&&g>v?g-v:void 0;return Nv(f,C,E,j)};if(i){const u=i+Cv,f=s;s=h=>h.startsWith(u)?f(h.slice(u.length)):Nv(Mw,!1,h,void 0,!0)}if(r){const u=s;s=f=>r({className:f,parseClassName:u})}return s},Dw=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((r,s)=>{i.set(r,1e6+s)}),r=>{const s=[];let u=[];for(let f=0;f<r.length;f++){const h=r[f],m=h[0]==="[",v=i.has(h);m||v?(u.length>0&&(u.sort(),s.push(...u),u=[]),s.push(h)):u.push(h)}return u.length>0&&(u.sort(),s.push(...u)),s}},Lw=n=>({cache:_w(n.cacheSize),parseClassName:zw(n),sortModifiers:Dw(n),...ww(n)}),Uw=/\s+/,Hw=(n,i)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:u,sortModifiers:f}=i,h=[],m=n.trim().split(Uw);let v="";for(let g=m.length-1;g>=0;g-=1){const x=m[g],{isExternal:b,modifiers:E,hasImportantModifier:C,baseClassName:j,maybePostfixModifierPosition:S}=r(x);if(b){v=x+(v.length>0?" "+v:v);continue}let N=!!S,T=s(N?j.substring(0,S):j);if(!T){if(!N){v=x+(v.length>0?" "+v:v);continue}if(T=s(j),!T){v=x+(v.length>0?" "+v:v);continue}N=!1}const A=E.length===0?"":E.length===1?E[0]:f(E).join(":"),z=C?A+cf:A,G=z+T;if(h.indexOf(G)>-1)continue;h.push(G);const L=u(T,N);for(let J=0;J<L.length;++J){const V=L[J];h.push(z+V)}v=x+(v.length>0?" "+v:v)}return v},kw=(...n)=>{let i=0,r,s,u="";for(;i<n.length;)(r=n[i++])&&(s=Fg(r))&&(u&&(u+=" "),u+=s);return u},Fg=n=>{if(typeof n=="string")return n;let i,r="";for(let s=0;s<n.length;s++)n[s]&&(i=Fg(n[s]))&&(r&&(r+=" "),r+=i);return r},Bw=(n,...i)=>{let r,s,u,f;const h=v=>{const g=i.reduce((x,b)=>b(x),n());return r=Lw(g),s=r.cache.get,u=r.cache.set,f=m,m(v)},m=v=>{const g=s(v);if(g)return g;const x=Hw(v,r);return u(v,x),x};return f=h,(...v)=>f(kw(...v))},qw=[],at=n=>{const i=r=>r[n]||qw;return i.isThemeGetter=!0,i},$g=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vw=/^\d+\/\d+$/,Gw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xl=n=>Vw.test(n),Se=n=>!!n&&!Number.isNaN(Number(n)),wa=n=>!!n&&Number.isInteger(Number(n)),Xu=n=>n.endsWith("%")&&Se(n.slice(0,-1)),Xn=n=>Gw.test(n),Kw=()=>!0,Zw=n=>Yw.test(n)&&!Qw.test(n),Wg=()=>!1,Fw=n=>Xw.test(n),$w=n=>Pw.test(n),Jw=n=>!te(n)&&!ne(n),Ww=n=>li(n,ty,Wg),te=n=>$g.test(n),Ja=n=>li(n,ny,Zw),Pu=n=>li(n,aE,Se),Rv=n=>li(n,Ig,Wg),Iw=n=>li(n,ey,$w),Hs=n=>li(n,ay,Fw),ne=n=>Jg.test(n),sr=n=>ii(n,ny),eE=n=>ii(n,lE),jv=n=>ii(n,Ig),tE=n=>ii(n,ty),nE=n=>ii(n,ey),ks=n=>ii(n,ay,!0),li=(n,i,r)=>{const s=$g.exec(n);return s?s[1]?i(s[1]):r(s[2]):!1},ii=(n,i,r=!1)=>{const s=Jg.exec(n);return s?s[1]?i(s[1]):r:!1},Ig=n=>n==="position"||n==="percentage",ey=n=>n==="image"||n==="url",ty=n=>n==="length"||n==="size"||n==="bg-size",ny=n=>n==="length",aE=n=>n==="number",lE=n=>n==="family-name",ay=n=>n==="shadow",iE=()=>{const n=at("color"),i=at("font"),r=at("text"),s=at("font-weight"),u=at("tracking"),f=at("leading"),h=at("breakpoint"),m=at("container"),v=at("spacing"),g=at("radius"),x=at("shadow"),b=at("inset-shadow"),E=at("text-shadow"),C=at("drop-shadow"),j=at("blur"),S=at("perspective"),N=at("aspect"),T=at("ease"),A=at("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...G(),ne,te],J=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],X=()=>[ne,te,v],I=()=>[Xl,"full","auto",...X()],se=()=>[wa,"none","subgrid",ne,te],ue=()=>["auto",{span:["full",wa,ne,te]},wa,ne,te],oe=()=>[wa,"auto",ne,te],pe=()=>["auto","min","max","fr",ne,te],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...X()],K=()=>[Xl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...X()],B=()=>[n,ne,te],le=()=>[...G(),jv,Rv,{position:[ne,te]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",tE,Ww,{size:[ne,te]}],Q=()=>[Xu,sr,Ja],F=()=>["","none","full",g,ne,te],W=()=>["",Se,sr,Ja],re=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[Se,Xu,jv,Rv],ie=()=>["","none",j,ne,te],ge=()=>["none",Se,ne,te],Ne=()=>["none",Se,ne,te],Ae=()=>[Se,ne,te],ze=()=>[Xl,"full",...X()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[Kw],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[Jw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",Se],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xl,te,ne,N]}],container:["container"],columns:[{columns:[Se,te,ne,m]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[wa,"auto",ne,te]}],basis:[{basis:[Xl,"full","auto",m,...X()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,Xl,"auto","initial","none",te]}],grow:[{grow:["",Se,ne,te]}],shrink:[{shrink:["",Se,ne,te]}],order:[{order:[wa,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:X()}],"gap-x":[{"gap-x":X()}],"gap-y":[{"gap-y":X()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:X()}],px:[{px:X()}],py:[{py:X()}],ps:[{ps:X()}],pe:[{pe:X()}],pt:[{pt:X()}],pr:[{pr:X()}],pb:[{pb:X()}],pl:[{pl:X()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":X()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":X()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[m,"screen",...K()]}],"min-w":[{"min-w":[m,"screen","none",...K()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,sr,Ja]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ne,Pu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xu,te]}],"font-family":[{font:[eE,te,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,ne,te]}],"line-clamp":[{"line-clamp":[Se,"none",ne,Pu]}],leading:[{leading:[f,...X()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ne,Ja]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Se,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wa,ne,te],radial:["",ne,te],conic:[wa,ne,te]},nE,Iw]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ne,te]}],"outline-w":[{outline:["",Se,sr,Ja]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",x,ks,Hs]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",b,ks,Hs]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Se,Ja]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",E,ks,Hs]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Se,ne,te]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:ie()}],brightness:[{brightness:[Se,ne,te]}],contrast:[{contrast:[Se,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",C,ks,Hs]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Se,ne,te]}],"hue-rotate":[{"hue-rotate":[Se,ne,te]}],invert:[{invert:["",Se,ne,te]}],saturate:[{saturate:[Se,ne,te]}],sepia:[{sepia:["",Se,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",Se,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":X()}],"border-spacing-x":[{"border-spacing-x":X()}],"border-spacing-y":[{"border-spacing-y":X()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ne,te]}],ease:[{ease:["linear","initial",T,ne,te]}],delay:[{delay:[Se,ne,te]}],animate:[{animate:["none",A,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ne,te]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,te]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Se,sr,Ja,Pu]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rE=Bw(iE);function Ke(...n){return rE(Xg(n))}const st=y.forwardRef(({className:n,...i},r)=>d.jsx("div",{ref:r,className:Ke("rounded-xl border bg-card text-card-foreground shadow",n),...i}));st.displayName="Card";const ot=y.forwardRef(({className:n,...i},r)=>d.jsx("div",{ref:r,className:Ke("flex flex-col space-y-1.5 p-6",n),...i}));ot.displayName="CardHeader";const ct=y.forwardRef(({className:n,...i},r)=>d.jsx("div",{ref:r,className:Ke("font-semibold leading-none tracking-tight",n),...i}));ct.displayName="CardTitle";const Dt=y.forwardRef(({className:n,...i},r)=>d.jsx("div",{ref:r,className:Ke("text-sm text-muted-foreground",n),...i}));Dt.displayName="CardDescription";const ut=y.forwardRef(({className:n,...i},r)=>d.jsx("div",{ref:r,className:Ke("p-6 pt-0",n),...i}));ut.displayName="CardContent";const sE=y.forwardRef(({className:n,...i},r)=>d.jsx("div",{ref:r,className:Ke("flex items-center p-6 pt-0",n),...i}));sE.displayName="CardFooter";const Ks=y.forwardRef(({className:n,type:i,...r},s)=>d.jsx("input",{type:i,className:Ke("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...r}));Ks.displayName="Input";function Tv(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Bf(...n){return i=>{let r=!1;const s=n.map(u=>{const f=Tv(u,i);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let u=0;u<s.length;u++){const f=s[u];typeof f=="function"?f():Tv(n[u],null)}}}}function yt(...n){return y.useCallback(Bf(...n),n)}var oE=Symbol.for("react.lazy"),Is=Af[" use ".trim().toString()];function cE(n){return typeof n=="object"&&n!==null&&"then"in n}function ly(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===oE&&"_payload"in n&&cE(n._payload)}function iy(n){const i=fE(n),r=y.forwardRef((s,u)=>{let{children:f,...h}=s;ly(f)&&typeof Is=="function"&&(f=Is(f._payload));const m=y.Children.toArray(f),v=m.find(hE);if(v){const g=v.props.children,x=m.map(b=>b===v?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:b);return d.jsx(i,{...h,ref:u,children:y.isValidElement(g)?y.cloneElement(g,void 0,x):null})}return d.jsx(i,{...h,ref:u,children:f})});return r.displayName=`${n}.Slot`,r}var uE=iy("Slot");function fE(n){const i=y.forwardRef((r,s)=>{let{children:u,...f}=r;if(ly(u)&&typeof Is=="function"&&(u=Is(u._payload)),y.isValidElement(u)){const h=pE(u),m=mE(f,u.props);return u.type!==y.Fragment&&(m.ref=s?Bf(s,h):h),y.cloneElement(u,m)}return y.Children.count(u)>1?y.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var dE=Symbol("radix.slottable");function hE(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===dE}function mE(n,i){const r={...i};for(const s in i){const u=n[s],f=i[s];/^on[A-Z]/.test(s)?u&&f?r[s]=(...m)=>{const v=f(...m);return u(...m),v}:u&&(r[s]=u):s==="style"?r[s]={...u,...f}:s==="className"&&(r[s]=[u,f].filter(Boolean).join(" "))}return{...n,...r}}function pE(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var vE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qf=vE.reduce((n,i)=>{const r=iy(`Primitive.${i}`),s=y.forwardRef((u,f)=>{const{asChild:h,...m}=u,v=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${i}`,{...n,[i]:s}},{}),gE="Label",ry=y.forwardRef((n,i)=>d.jsx(qf.label,{...n,ref:i,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(n.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ry.displayName=gE;var sy=ry;const Av=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Ov=Xg,fo=(n,i)=>r=>{var s;if(i?.variants==null)return Ov(n,r?.class,r?.className);const{variants:u,defaultVariants:f}=i,h=Object.keys(u).map(g=>{const x=r?.[g],b=f?.[g];if(x===null)return null;const E=Av(x)||Av(b);return u[g][E]}),m=r&&Object.entries(r).reduce((g,x)=>{let[b,E]=x;return E===void 0||(g[b]=E),g},{}),v=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((g,x)=>{let{class:b,className:E,...C}=x;return Object.entries(C).every(j=>{let[S,N]=j;return Array.isArray(N)?N.includes({...f,...m}[S]):{...f,...m}[S]===N})?[...g,b,E]:g},[]);return Ov(n,h,v,r?.class,r?.className)},yE=fo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),or=y.forwardRef(({className:n,...i},r)=>d.jsx(sy,{ref:r,className:Ke(yE(),n),...i}));or.displayName=sy.displayName;function _v(n,[i,r]){return Math.min(r,Math.max(i,n))}function tt(n,i,{checkForDefaultPrevented:r=!0}={}){return function(u){if(n?.(u),r===!1||!u.defaultPrevented)return i?.(u)}}function Vf(n,i=[]){let r=[];function s(f,h){const m=y.createContext(h),v=r.length;r=[...r,h];const g=b=>{const{scope:E,children:C,...j}=b,S=E?.[n]?.[v]||m,N=y.useMemo(()=>j,Object.values(j));return d.jsx(S.Provider,{value:N,children:C})};g.displayName=f+"Provider";function x(b,E){const C=E?.[n]?.[v]||m,j=y.useContext(C);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[g,x]}const u=()=>{const f=r.map(h=>y.createContext(h));return function(m){const v=m?.[n]||f;return y.useMemo(()=>({[`__scope${n}`]:{...m,[n]:v}}),[m,v])}};return u.scopeName=n,[s,xE(u,...i)]}function xE(...n){const i=n[0];if(n.length===1)return i;const r=()=>{const s=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const h=s.reduce((m,{useScope:v,scopeName:g})=>{const b=v(f)[`__scope${g}`];return{...m,...b}},{});return y.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}function eo(n){const i=bE(n),r=y.forwardRef((s,u)=>{const{children:f,...h}=s,m=y.Children.toArray(f),v=m.find(wE);if(v){const g=v.props.children,x=m.map(b=>b===v?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:b);return d.jsx(i,{...h,ref:u,children:y.isValidElement(g)?y.cloneElement(g,void 0,x):null})}return d.jsx(i,{...h,ref:u,children:f})});return r.displayName=`${n}.Slot`,r}function bE(n){const i=y.forwardRef((r,s)=>{const{children:u,...f}=r;if(y.isValidElement(u)){const h=CE(u),m=EE(f,u.props);return u.type!==y.Fragment&&(m.ref=s?Bf(s,h):h),y.cloneElement(u,m)}return y.Children.count(u)>1?y.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var SE=Symbol("radix.slottable");function wE(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===SE}function EE(n,i){const r={...i};for(const s in i){const u=n[s],f=i[s];/^on[A-Z]/.test(s)?u&&f?r[s]=(...m)=>{const v=f(...m);return u(...m),v}:u&&(r[s]=u):s==="style"?r[s]={...u,...f}:s==="className"&&(r[s]=[u,f].filter(Boolean).join(" "))}return{...n,...r}}function CE(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}function NE(n){const i=n+"CollectionProvider",[r,s]=Vf(i),[u,f]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:N,children:T}=S,A=Ea.useRef(null),z=Ea.useRef(new Map).current;return d.jsx(u,{scope:N,itemMap:z,collectionRef:A,children:T})};h.displayName=i;const m=n+"CollectionSlot",v=eo(m),g=Ea.forwardRef((S,N)=>{const{scope:T,children:A}=S,z=f(m,T),G=yt(N,z.collectionRef);return d.jsx(v,{ref:G,children:A})});g.displayName=m;const x=n+"CollectionItemSlot",b="data-radix-collection-item",E=eo(x),C=Ea.forwardRef((S,N)=>{const{scope:T,children:A,...z}=S,G=Ea.useRef(null),L=yt(N,G),J=f(x,T);return Ea.useEffect(()=>(J.itemMap.set(G,{ref:G,...z}),()=>{J.itemMap.delete(G)})),d.jsx(E,{[b]:"",ref:L,children:A})});C.displayName=x;function j(S){const N=f(n+"CollectionConsumer",S);return Ea.useCallback(()=>{const A=N.collectionRef.current;if(!A)return[];const z=Array.from(A.querySelectorAll(`[${b}]`));return Array.from(N.itemMap.values()).sort((J,V)=>z.indexOf(J.ref.current)-z.indexOf(V.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:h,Slot:g,ItemSlot:C},j,s]}var RE=y.createContext(void 0);function jE(n){const i=y.useContext(RE);return n||i||"ltr"}var TE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=TE.reduce((n,i)=>{const r=eo(`Primitive.${i}`),s=y.forwardRef((u,f)=>{const{asChild:h,...m}=u,v=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${i}`,{...n,[i]:s}},{});function AE(n,i){n&&pr.flushSync(()=>n.dispatchEvent(i))}function el(n){const i=y.useRef(n);return y.useEffect(()=>{i.current=n}),y.useMemo(()=>(...r)=>i.current?.(...r),[])}function OE(n,i=globalThis?.document){const r=el(n);y.useEffect(()=>{const s=u=>{u.key==="Escape"&&r(u)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[r,i])}var _E="DismissableLayer",uf="dismissableLayer.update",ME="dismissableLayer.pointerDownOutside",zE="dismissableLayer.focusOutside",Mv,oy=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cy=y.forwardRef((n,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...v}=n,g=y.useContext(oy),[x,b]=y.useState(null),E=x?.ownerDocument??globalThis?.document,[,C]=y.useState({}),j=yt(i,V=>b(V)),S=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(N),A=x?S.indexOf(x):-1,z=g.layersWithOutsidePointerEventsDisabled.size>0,G=A>=T,L=UE(V=>{const X=V.target,I=[...g.branches].some(se=>se.contains(X));!G||I||(u?.(V),h?.(V),V.defaultPrevented||m?.())},E),J=HE(V=>{const X=V.target;[...g.branches].some(se=>se.contains(X))||(f?.(V),h?.(V),V.defaultPrevented||m?.())},E);return OE(V=>{A===g.layers.size-1&&(s?.(V),!V.defaultPrevented&&m&&(V.preventDefault(),m()))},E),y.useEffect(()=>{if(x)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Mv=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),zv(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=Mv)}},[x,E,r,g]),y.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),zv())},[x,g]),y.useEffect(()=>{const V=()=>C({});return document.addEventListener(uf,V),()=>document.removeEventListener(uf,V)},[]),d.jsx($e.div,{...v,ref:j,style:{pointerEvents:z?G?"auto":"none":void 0,...n.style},onFocusCapture:tt(n.onFocusCapture,J.onFocusCapture),onBlurCapture:tt(n.onBlurCapture,J.onBlurCapture),onPointerDownCapture:tt(n.onPointerDownCapture,L.onPointerDownCapture)})});cy.displayName=_E;var DE="DismissableLayerBranch",LE=y.forwardRef((n,i)=>{const r=y.useContext(oy),s=y.useRef(null),u=yt(i,s);return y.useEffect(()=>{const f=s.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),d.jsx($e.div,{...n,ref:u})});LE.displayName=DE;function UE(n,i=globalThis?.document){const r=el(n),s=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const f=m=>{if(m.target&&!s.current){let v=function(){uy(ME,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(i.removeEventListener("click",u.current),u.current=v,i.addEventListener("click",u.current,{once:!0})):v()}else i.removeEventListener("click",u.current);s.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",f),i.removeEventListener("click",u.current)}},[i,r]),{onPointerDownCapture:()=>s.current=!0}}function HE(n,i=globalThis?.document){const r=el(n),s=y.useRef(!1);return y.useEffect(()=>{const u=f=>{f.target&&!s.current&&uy(zE,r,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",u),()=>i.removeEventListener("focusin",u)},[i,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function zv(){const n=new CustomEvent(uf);document.dispatchEvent(n)}function uy(n,i,r,{discrete:s}){const u=r.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});i&&u.addEventListener(n,i,{once:!0}),s?AE(u,f):u.dispatchEvent(f)}var Ku=0;function kE(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Dv()),document.body.insertAdjacentElement("beforeend",n[1]??Dv()),Ku++,()=>{Ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Ku--}},[])}function Dv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Zu="focusScope.autoFocusOnMount",Fu="focusScope.autoFocusOnUnmount",Lv={bubbles:!1,cancelable:!0},BE="FocusScope",fy=y.forwardRef((n,i)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...h}=n,[m,v]=y.useState(null),g=el(u),x=el(f),b=y.useRef(null),E=yt(i,S=>v(S)),C=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(s){let S=function(z){if(C.paused||!m)return;const G=z.target;m.contains(G)?b.current=G:Ca(b.current,{select:!0})},N=function(z){if(C.paused||!m)return;const G=z.relatedTarget;G!==null&&(m.contains(G)||Ca(b.current,{select:!0}))},T=function(z){if(document.activeElement===document.body)for(const L of z)L.removedNodes.length>0&&Ca(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",N);const A=new MutationObserver(T);return m&&A.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",N),A.disconnect()}}},[s,m,C.paused]),y.useEffect(()=>{if(m){Hv.add(C);const S=document.activeElement;if(!m.contains(S)){const T=new CustomEvent(Zu,Lv);m.addEventListener(Zu,g),m.dispatchEvent(T),T.defaultPrevented||(qE(XE(dy(m)),{select:!0}),document.activeElement===S&&Ca(m))}return()=>{m.removeEventListener(Zu,g),setTimeout(()=>{const T=new CustomEvent(Fu,Lv);m.addEventListener(Fu,x),m.dispatchEvent(T),T.defaultPrevented||Ca(S??document.body,{select:!0}),m.removeEventListener(Fu,x),Hv.remove(C)},0)}}},[m,g,x,C]);const j=y.useCallback(S=>{if(!r&&!s||C.paused)return;const N=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(N&&T){const A=S.currentTarget,[z,G]=VE(A);z&&G?!S.shiftKey&&T===G?(S.preventDefault(),r&&Ca(z,{select:!0})):S.shiftKey&&T===z&&(S.preventDefault(),r&&Ca(G,{select:!0})):T===A&&S.preventDefault()}},[r,s,C.paused]);return d.jsx($e.div,{tabIndex:-1,...h,ref:E,onKeyDown:j})});fy.displayName=BE;function qE(n,{select:i=!1}={}){const r=document.activeElement;for(const s of n)if(Ca(s,{select:i}),document.activeElement!==r)return}function VE(n){const i=dy(n),r=Uv(i,n),s=Uv(i.reverse(),n);return[r,s]}function dy(n){const i=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function Uv(n,i){for(const r of n)if(!GE(r,{upTo:i}))return r}function GE(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function YE(n){return n instanceof HTMLInputElement&&"select"in n}function Ca(n,{select:i=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&YE(n)&&i&&n.select()}}var Hv=QE();function QE(){let n=[];return{add(i){const r=n[0];i!==r&&r?.pause(),n=kv(n,i),n.unshift(i)},remove(i){n=kv(n,i),n[0]?.resume()}}}function kv(n,i){const r=[...n],s=r.indexOf(i);return s!==-1&&r.splice(s,1),r}function XE(n){return n.filter(i=>i.tagName!=="A")}var Lt=globalThis?.document?y.useLayoutEffect:()=>{},PE=Af[" useId ".trim().toString()]||(()=>{}),KE=0;function Gf(n){const[i,r]=y.useState(PE());return Lt(()=>{r(s=>s??String(KE++))},[n]),i?`radix-${i}`:""}const ZE=["top","right","bottom","left"],ja=Math.min,Pt=Math.max,to=Math.round,Bs=Math.floor,wn=n=>({x:n,y:n}),FE={left:"right",right:"left",bottom:"top",top:"bottom"},$E={start:"end",end:"start"};function ff(n,i,r){return Pt(n,ja(i,r))}function Fn(n,i){return typeof n=="function"?n(i):n}function $n(n){return n.split("-")[0]}function ri(n){return n.split("-")[1]}function Yf(n){return n==="x"?"y":"x"}function Qf(n){return n==="y"?"height":"width"}const JE=new Set(["top","bottom"]);function Sn(n){return JE.has($n(n))?"y":"x"}function Xf(n){return Yf(Sn(n))}function WE(n,i,r){r===void 0&&(r=!1);const s=ri(n),u=Xf(n),f=Qf(u);let h=u==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(h=no(h)),[h,no(h)]}function IE(n){const i=no(n);return[df(n),i,df(i)]}function df(n){return n.replace(/start|end/g,i=>$E[i])}const Bv=["left","right"],qv=["right","left"],eC=["top","bottom"],tC=["bottom","top"];function nC(n,i,r){switch(n){case"top":case"bottom":return r?i?qv:Bv:i?Bv:qv;case"left":case"right":return i?eC:tC;default:return[]}}function aC(n,i,r,s){const u=ri(n);let f=nC($n(n),r==="start",s);return u&&(f=f.map(h=>h+"-"+u),i&&(f=f.concat(f.map(df)))),f}function no(n){return n.replace(/left|right|bottom|top/g,i=>FE[i])}function lC(n){return{top:0,right:0,bottom:0,left:0,...n}}function hy(n){return typeof n!="number"?lC(n):{top:n,right:n,bottom:n,left:n}}function ao(n){const{x:i,y:r,width:s,height:u}=n;return{width:s,height:u,top:r,left:i,right:i+s,bottom:r+u,x:i,y:r}}function Vv(n,i,r){let{reference:s,floating:u}=n;const f=Sn(i),h=Xf(i),m=Qf(h),v=$n(i),g=f==="y",x=s.x+s.width/2-u.width/2,b=s.y+s.height/2-u.height/2,E=s[m]/2-u[m]/2;let C;switch(v){case"top":C={x,y:s.y-u.height};break;case"bottom":C={x,y:s.y+s.height};break;case"right":C={x:s.x+s.width,y:b};break;case"left":C={x:s.x-u.width,y:b};break;default:C={x:s.x,y:s.y}}switch(ri(i)){case"start":C[h]-=E*(r&&g?-1:1);break;case"end":C[h]+=E*(r&&g?-1:1);break}return C}async function iC(n,i){var r;i===void 0&&(i={});const{x:s,y:u,platform:f,rects:h,elements:m,strategy:v}=n,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:b="floating",altBoundary:E=!1,padding:C=0}=Fn(i,n),j=hy(C),N=m[E?b==="floating"?"reference":"floating":b],T=ao(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(N)))==null||r?N:N.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:g,rootBoundary:x,strategy:v})),A=b==="floating"?{x:s,y:u,width:h.floating.width,height:h.floating.height}:h.reference,z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),G=await(f.isElement==null?void 0:f.isElement(z))?await(f.getScale==null?void 0:f.getScale(z))||{x:1,y:1}:{x:1,y:1},L=ao(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:A,offsetParent:z,strategy:v}):A);return{top:(T.top-L.top+j.top)/G.y,bottom:(L.bottom-T.bottom+j.bottom)/G.y,left:(T.left-L.left+j.left)/G.x,right:(L.right-T.right+j.right)/G.x}}const rC=async(n,i,r)=>{const{placement:s="bottom",strategy:u="absolute",middleware:f=[],platform:h}=r,m=f.filter(Boolean),v=await(h.isRTL==null?void 0:h.isRTL(i));let g=await h.getElementRects({reference:n,floating:i,strategy:u}),{x,y:b}=Vv(g,s,v),E=s,C={},j=0;for(let N=0;N<m.length;N++){var S;const{name:T,fn:A}=m[N],{x:z,y:G,data:L,reset:J}=await A({x,y:b,initialPlacement:s,placement:E,strategy:u,middlewareData:C,rects:g,platform:{...h,detectOverflow:(S=h.detectOverflow)!=null?S:iC},elements:{reference:n,floating:i}});x=z??x,b=G??b,C={...C,[T]:{...C[T],...L}},J&&j<=50&&(j++,typeof J=="object"&&(J.placement&&(E=J.placement),J.rects&&(g=J.rects===!0?await h.getElementRects({reference:n,floating:i,strategy:u}):J.rects),{x,y:b}=Vv(g,E,v)),N=-1)}return{x,y:b,placement:E,strategy:u,middlewareData:C}},sC=n=>({name:"arrow",options:n,async fn(i){const{x:r,y:s,placement:u,rects:f,platform:h,elements:m,middlewareData:v}=i,{element:g,padding:x=0}=Fn(n,i)||{};if(g==null)return{};const b=hy(x),E={x:r,y:s},C=Xf(u),j=Qf(C),S=await h.getDimensions(g),N=C==="y",T=N?"top":"left",A=N?"bottom":"right",z=N?"clientHeight":"clientWidth",G=f.reference[j]+f.reference[C]-E[C]-f.floating[j],L=E[C]-f.reference[C],J=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let V=J?J[z]:0;(!V||!await(h.isElement==null?void 0:h.isElement(J)))&&(V=m.floating[z]||f.floating[j]);const X=G/2-L/2,I=V/2-S[j]/2-1,se=ja(b[T],I),ue=ja(b[A],I),oe=se,pe=V-S[j]-ue,he=V/2-S[j]/2+X,ve=ff(oe,he,pe),D=!v.arrow&&ri(u)!=null&&he!==ve&&f.reference[j]/2-(he<oe?se:ue)-S[j]/2<0,K=D?he<oe?he-oe:he-pe:0;return{[C]:E[C]+K,data:{[C]:ve,centerOffset:he-ve-K,...D&&{alignmentOffset:K}},reset:D}}}),oC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var r,s;const{placement:u,middlewareData:f,rects:h,initialPlacement:m,platform:v,elements:g}=i,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:E,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:S=!0,...N}=Fn(n,i);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const T=$n(u),A=Sn(m),z=$n(m)===m,G=await(v.isRTL==null?void 0:v.isRTL(g.floating)),L=E||(z||!S?[no(m)]:IE(m)),J=j!=="none";!E&&J&&L.push(...aC(m,S,j,G));const V=[m,...L],X=await v.detectOverflow(i,N),I=[];let se=((s=f.flip)==null?void 0:s.overflows)||[];if(x&&I.push(X[T]),b){const he=WE(u,h,G);I.push(X[he[0]],X[he[1]])}if(se=[...se,{placement:u,overflows:I}],!I.every(he=>he<=0)){var ue,oe;const he=(((ue=f.flip)==null?void 0:ue.index)||0)+1,ve=V[he];if(ve&&(!(b==="alignment"?A!==Sn(ve):!1)||se.every(B=>Sn(B.placement)===A?B.overflows[0]>0:!0)))return{data:{index:he,overflows:se},reset:{placement:ve}};let D=(oe=se.filter(K=>K.overflows[0]<=0).sort((K,B)=>K.overflows[1]-B.overflows[1])[0])==null?void 0:oe.placement;if(!D)switch(C){case"bestFit":{var pe;const K=(pe=se.filter(B=>{if(J){const le=Sn(B.placement);return le===A||le==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(le=>le>0).reduce((le,me)=>le+me,0)]).sort((B,le)=>B[1]-le[1])[0])==null?void 0:pe[0];K&&(D=K);break}case"initialPlacement":D=m;break}if(u!==D)return{reset:{placement:D}}}return{}}}};function Gv(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function Yv(n){return ZE.some(i=>n[i]>=0)}const cC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:r,platform:s}=i,{strategy:u="referenceHidden",...f}=Fn(n,i);switch(u){case"referenceHidden":{const h=await s.detectOverflow(i,{...f,elementContext:"reference"}),m=Gv(h,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Yv(m)}}}case"escaped":{const h=await s.detectOverflow(i,{...f,altBoundary:!0}),m=Gv(h,r.floating);return{data:{escapedOffsets:m,escaped:Yv(m)}}}default:return{}}}}},my=new Set(["left","top"]);async function uC(n,i){const{placement:r,platform:s,elements:u}=n,f=await(s.isRTL==null?void 0:s.isRTL(u.floating)),h=$n(r),m=ri(r),v=Sn(r)==="y",g=my.has(h)?-1:1,x=f&&v?-1:1,b=Fn(i,n);let{mainAxis:E,crossAxis:C,alignmentAxis:j}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof j=="number"&&(C=m==="end"?j*-1:j),v?{x:C*x,y:E*g}:{x:E*g,y:C*x}}const fC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var r,s;const{x:u,y:f,placement:h,middlewareData:m}=i,v=await uC(i,n);return h===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:h}}}}},dC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:r,y:s,placement:u,platform:f}=i,{mainAxis:h=!0,crossAxis:m=!1,limiter:v={fn:T=>{let{x:A,y:z}=T;return{x:A,y:z}}},...g}=Fn(n,i),x={x:r,y:s},b=await f.detectOverflow(i,g),E=Sn($n(u)),C=Yf(E);let j=x[C],S=x[E];if(h){const T=C==="y"?"top":"left",A=C==="y"?"bottom":"right",z=j+b[T],G=j-b[A];j=ff(z,j,G)}if(m){const T=E==="y"?"top":"left",A=E==="y"?"bottom":"right",z=S+b[T],G=S-b[A];S=ff(z,S,G)}const N=v.fn({...i,[C]:j,[E]:S});return{...N,data:{x:N.x-r,y:N.y-s,enabled:{[C]:h,[E]:m}}}}}},hC=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:r,y:s,placement:u,rects:f,middlewareData:h}=i,{offset:m=0,mainAxis:v=!0,crossAxis:g=!0}=Fn(n,i),x={x:r,y:s},b=Sn(u),E=Yf(b);let C=x[E],j=x[b];const S=Fn(m,i),N=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(v){const z=E==="y"?"height":"width",G=f.reference[E]-f.floating[z]+N.mainAxis,L=f.reference[E]+f.reference[z]-N.mainAxis;C<G?C=G:C>L&&(C=L)}if(g){var T,A;const z=E==="y"?"width":"height",G=my.has($n(u)),L=f.reference[b]-f.floating[z]+(G&&((T=h.offset)==null?void 0:T[b])||0)+(G?0:N.crossAxis),J=f.reference[b]+f.reference[z]+(G?0:((A=h.offset)==null?void 0:A[b])||0)-(G?N.crossAxis:0);j<L?j=L:j>J&&(j=J)}return{[E]:C,[b]:j}}}},mC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var r,s;const{placement:u,rects:f,platform:h,elements:m}=i,{apply:v=()=>{},...g}=Fn(n,i),x=await h.detectOverflow(i,g),b=$n(u),E=ri(u),C=Sn(u)==="y",{width:j,height:S}=f.floating;let N,T;b==="top"||b==="bottom"?(N=b,T=E===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(T=b,N=E==="end"?"top":"bottom");const A=S-x.top-x.bottom,z=j-x.left-x.right,G=ja(S-x[N],A),L=ja(j-x[T],z),J=!i.middlewareData.shift;let V=G,X=L;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(X=z),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(V=A),J&&!E){const se=Pt(x.left,0),ue=Pt(x.right,0),oe=Pt(x.top,0),pe=Pt(x.bottom,0);C?X=j-2*(se!==0||ue!==0?se+ue:Pt(x.left,x.right)):V=S-2*(oe!==0||pe!==0?oe+pe:Pt(x.top,x.bottom))}await v({...i,availableWidth:X,availableHeight:V});const I=await h.getDimensions(m.floating);return j!==I.width||S!==I.height?{reset:{rects:!0}}:{}}}};function ho(){return typeof window<"u"}function si(n){return py(n)?(n.nodeName||"").toLowerCase():"#document"}function Kt(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function Rn(n){var i;return(i=(py(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function py(n){return ho()?n instanceof Node||n instanceof Kt(n).Node:!1}function mn(n){return ho()?n instanceof Element||n instanceof Kt(n).Element:!1}function En(n){return ho()?n instanceof HTMLElement||n instanceof Kt(n).HTMLElement:!1}function Qv(n){return!ho()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Kt(n).ShadowRoot}const pC=new Set(["inline","contents"]);function vr(n){const{overflow:i,overflowX:r,overflowY:s,display:u}=pn(n);return/auto|scroll|overlay|hidden|clip/.test(i+s+r)&&!pC.has(u)}const vC=new Set(["table","td","th"]);function gC(n){return vC.has(si(n))}const yC=[":popover-open",":modal"];function mo(n){return yC.some(i=>{try{return n.matches(i)}catch{return!1}})}const xC=["transform","translate","scale","rotate","perspective"],bC=["transform","translate","scale","rotate","perspective","filter"],SC=["paint","layout","strict","content"];function Pf(n){const i=Kf(),r=mn(n)?pn(n):n;return xC.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||bC.some(s=>(r.willChange||"").includes(s))||SC.some(s=>(r.contain||"").includes(s))}function wC(n){let i=Ta(n);for(;En(i)&&!ei(i);){if(Pf(i))return i;if(mo(i))return null;i=Ta(i)}return null}function Kf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EC=new Set(["html","body","#document"]);function ei(n){return EC.has(si(n))}function pn(n){return Kt(n).getComputedStyle(n)}function po(n){return mn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ta(n){if(si(n)==="html")return n;const i=n.assignedSlot||n.parentNode||Qv(n)&&n.host||Rn(n);return Qv(i)?i.host:i}function vy(n){const i=Ta(n);return ei(i)?n.ownerDocument?n.ownerDocument.body:n.body:En(i)&&vr(i)?i:vy(i)}function fr(n,i,r){var s;i===void 0&&(i=[]),r===void 0&&(r=!0);const u=vy(n),f=u===((s=n.ownerDocument)==null?void 0:s.body),h=Kt(u);if(f){const m=hf(h);return i.concat(h,h.visualViewport||[],vr(u)?u:[],m&&r?fr(m):[])}return i.concat(u,fr(u,[],r))}function hf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function gy(n){const i=pn(n);let r=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const u=En(n),f=u?n.offsetWidth:r,h=u?n.offsetHeight:s,m=to(r)!==f||to(s)!==h;return m&&(r=f,s=h),{width:r,height:s,$:m}}function Zf(n){return mn(n)?n:n.contextElement}function $l(n){const i=Zf(n);if(!En(i))return wn(1);const r=i.getBoundingClientRect(),{width:s,height:u,$:f}=gy(i);let h=(f?to(r.width):r.width)/s,m=(f?to(r.height):r.height)/u;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const CC=wn(0);function yy(n){const i=Kt(n);return!Kf()||!i.visualViewport?CC:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function NC(n,i,r){return i===void 0&&(i=!1),!r||i&&r!==Kt(n)?!1:i}function tl(n,i,r,s){i===void 0&&(i=!1),r===void 0&&(r=!1);const u=n.getBoundingClientRect(),f=Zf(n);let h=wn(1);i&&(s?mn(s)&&(h=$l(s)):h=$l(n));const m=NC(f,r,s)?yy(f):wn(0);let v=(u.left+m.x)/h.x,g=(u.top+m.y)/h.y,x=u.width/h.x,b=u.height/h.y;if(f){const E=Kt(f),C=s&&mn(s)?Kt(s):s;let j=E,S=hf(j);for(;S&&s&&C!==j;){const N=$l(S),T=S.getBoundingClientRect(),A=pn(S),z=T.left+(S.clientLeft+parseFloat(A.paddingLeft))*N.x,G=T.top+(S.clientTop+parseFloat(A.paddingTop))*N.y;v*=N.x,g*=N.y,x*=N.x,b*=N.y,v+=z,g+=G,j=Kt(S),S=hf(j)}}return ao({width:x,height:b,x:v,y:g})}function vo(n,i){const r=po(n).scrollLeft;return i?i.left+r:tl(Rn(n)).left+r}function xy(n,i){const r=n.getBoundingClientRect(),s=r.left+i.scrollLeft-vo(n,r),u=r.top+i.scrollTop;return{x:s,y:u}}function RC(n){let{elements:i,rect:r,offsetParent:s,strategy:u}=n;const f=u==="fixed",h=Rn(s),m=i?mo(i.floating):!1;if(s===h||m&&f)return r;let v={scrollLeft:0,scrollTop:0},g=wn(1);const x=wn(0),b=En(s);if((b||!b&&!f)&&((si(s)!=="body"||vr(h))&&(v=po(s)),En(s))){const C=tl(s);g=$l(s),x.x=C.x+s.clientLeft,x.y=C.y+s.clientTop}const E=h&&!b&&!f?xy(h,v):wn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-v.scrollLeft*g.x+x.x+E.x,y:r.y*g.y-v.scrollTop*g.y+x.y+E.y}}function jC(n){return Array.from(n.getClientRects())}function TC(n){const i=Rn(n),r=po(n),s=n.ownerDocument.body,u=Pt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),f=Pt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let h=-r.scrollLeft+vo(n);const m=-r.scrollTop;return pn(s).direction==="rtl"&&(h+=Pt(i.clientWidth,s.clientWidth)-u),{width:u,height:f,x:h,y:m}}const Xv=25;function AC(n,i){const r=Kt(n),s=Rn(n),u=r.visualViewport;let f=s.clientWidth,h=s.clientHeight,m=0,v=0;if(u){f=u.width,h=u.height;const x=Kf();(!x||x&&i==="fixed")&&(m=u.offsetLeft,v=u.offsetTop)}const g=vo(s);if(g<=0){const x=s.ownerDocument,b=x.body,E=getComputedStyle(b),C=x.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,j=Math.abs(s.clientWidth-b.clientWidth-C);j<=Xv&&(f-=j)}else g<=Xv&&(f+=g);return{width:f,height:h,x:m,y:v}}const OC=new Set(["absolute","fixed"]);function _C(n,i){const r=tl(n,!0,i==="fixed"),s=r.top+n.clientTop,u=r.left+n.clientLeft,f=En(n)?$l(n):wn(1),h=n.clientWidth*f.x,m=n.clientHeight*f.y,v=u*f.x,g=s*f.y;return{width:h,height:m,x:v,y:g}}function Pv(n,i,r){let s;if(i==="viewport")s=AC(n,r);else if(i==="document")s=TC(Rn(n));else if(mn(i))s=_C(i,r);else{const u=yy(n);s={x:i.x-u.x,y:i.y-u.y,width:i.width,height:i.height}}return ao(s)}function by(n,i){const r=Ta(n);return r===i||!mn(r)||ei(r)?!1:pn(r).position==="fixed"||by(r,i)}function MC(n,i){const r=i.get(n);if(r)return r;let s=fr(n,[],!1).filter(m=>mn(m)&&si(m)!=="body"),u=null;const f=pn(n).position==="fixed";let h=f?Ta(n):n;for(;mn(h)&&!ei(h);){const m=pn(h),v=Pf(h);!v&&m.position==="fixed"&&(u=null),(f?!v&&!u:!v&&m.position==="static"&&!!u&&OC.has(u.position)||vr(h)&&!v&&by(n,h))?s=s.filter(x=>x!==h):u=m,h=Ta(h)}return i.set(n,s),s}function zC(n){let{element:i,boundary:r,rootBoundary:s,strategy:u}=n;const h=[...r==="clippingAncestors"?mo(i)?[]:MC(i,this._c):[].concat(r),s],m=h[0],v=h.reduce((g,x)=>{const b=Pv(i,x,u);return g.top=Pt(b.top,g.top),g.right=ja(b.right,g.right),g.bottom=ja(b.bottom,g.bottom),g.left=Pt(b.left,g.left),g},Pv(i,m,u));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function DC(n){const{width:i,height:r}=gy(n);return{width:i,height:r}}function LC(n,i,r){const s=En(i),u=Rn(i),f=r==="fixed",h=tl(n,!0,f,i);let m={scrollLeft:0,scrollTop:0};const v=wn(0);function g(){v.x=vo(u)}if(s||!s&&!f)if((si(i)!=="body"||vr(u))&&(m=po(i)),s){const C=tl(i,!0,f,i);v.x=C.x+i.clientLeft,v.y=C.y+i.clientTop}else u&&g();f&&!s&&u&&g();const x=u&&!s&&!f?xy(u,m):wn(0),b=h.left+m.scrollLeft-v.x-x.x,E=h.top+m.scrollTop-v.y-x.y;return{x:b,y:E,width:h.width,height:h.height}}function $u(n){return pn(n).position==="static"}function Kv(n,i){if(!En(n)||pn(n).position==="fixed")return null;if(i)return i(n);let r=n.offsetParent;return Rn(n)===r&&(r=r.ownerDocument.body),r}function Sy(n,i){const r=Kt(n);if(mo(n))return r;if(!En(n)){let u=Ta(n);for(;u&&!ei(u);){if(mn(u)&&!$u(u))return u;u=Ta(u)}return r}let s=Kv(n,i);for(;s&&gC(s)&&$u(s);)s=Kv(s,i);return s&&ei(s)&&$u(s)&&!Pf(s)?r:s||wC(n)||r}const UC=async function(n){const i=this.getOffsetParent||Sy,r=this.getDimensions,s=await r(n.floating);return{reference:LC(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function HC(n){return pn(n).direction==="rtl"}const kC={convertOffsetParentRelativeRectToViewportRelativeRect:RC,getDocumentElement:Rn,getClippingRect:zC,getOffsetParent:Sy,getElementRects:UC,getClientRects:jC,getDimensions:DC,getScale:$l,isElement:mn,isRTL:HC};function wy(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function BC(n,i){let r=null,s;const u=Rn(n);function f(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function h(m,v){m===void 0&&(m=!1),v===void 0&&(v=1),f();const g=n.getBoundingClientRect(),{left:x,top:b,width:E,height:C}=g;if(m||i(),!E||!C)return;const j=Bs(b),S=Bs(u.clientWidth-(x+E)),N=Bs(u.clientHeight-(b+C)),T=Bs(x),z={rootMargin:-j+"px "+-S+"px "+-N+"px "+-T+"px",threshold:Pt(0,ja(1,v))||1};let G=!0;function L(J){const V=J[0].intersectionRatio;if(V!==v){if(!G)return h();V?h(!1,V):s=setTimeout(()=>{h(!1,1e-7)},1e3)}V===1&&!wy(g,n.getBoundingClientRect())&&h(),G=!1}try{r=new IntersectionObserver(L,{...z,root:u.ownerDocument})}catch{r=new IntersectionObserver(L,z)}r.observe(n)}return h(!0),f}function qC(n,i,r,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,g=Zf(n),x=u||f?[...g?fr(g):[],...fr(i)]:[];x.forEach(T=>{u&&T.addEventListener("scroll",r,{passive:!0}),f&&T.addEventListener("resize",r)});const b=g&&m?BC(g,r):null;let E=-1,C=null;h&&(C=new ResizeObserver(T=>{let[A]=T;A&&A.target===g&&C&&(C.unobserve(i),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var z;(z=C)==null||z.observe(i)})),r()}),g&&!v&&C.observe(g),C.observe(i));let j,S=v?tl(n):null;v&&N();function N(){const T=tl(n);S&&!wy(S,T)&&r(),S=T,j=requestAnimationFrame(N)}return r(),()=>{var T;x.forEach(A=>{u&&A.removeEventListener("scroll",r),f&&A.removeEventListener("resize",r)}),b?.(),(T=C)==null||T.disconnect(),C=null,v&&cancelAnimationFrame(j)}}const VC=fC,GC=dC,YC=oC,QC=mC,XC=cC,Zv=sC,PC=hC,KC=(n,i,r)=>{const s=new Map,u={platform:kC,...r},f={...u.platform,_c:s};return rC(n,i,{...u,platform:f})};var ZC=typeof document<"u",FC=function(){},Zs=ZC?y.useLayoutEffect:FC;function lo(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let r,s,u;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==i.length)return!1;for(s=r;s--!==0;)if(!lo(n[s],i[s]))return!1;return!0}if(u=Object.keys(n),r=u.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(i,u[s]))return!1;for(s=r;s--!==0;){const f=u[s];if(!(f==="_owner"&&n.$$typeof)&&!lo(n[f],i[f]))return!1}return!0}return n!==n&&i!==i}function Ey(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Fv(n,i){const r=Ey(n);return Math.round(i*r)/r}function Ju(n){const i=y.useRef(n);return Zs(()=>{i.current=n}),i}function $C(n){n===void 0&&(n={});const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:u,elements:{reference:f,floating:h}={},transform:m=!0,whileElementsMounted:v,open:g}=n,[x,b]=y.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[E,C]=y.useState(s);lo(E,s)||C(s);const[j,S]=y.useState(null),[N,T]=y.useState(null),A=y.useCallback(B=>{B!==J.current&&(J.current=B,S(B))},[]),z=y.useCallback(B=>{B!==V.current&&(V.current=B,T(B))},[]),G=f||j,L=h||N,J=y.useRef(null),V=y.useRef(null),X=y.useRef(x),I=v!=null,se=Ju(v),ue=Ju(u),oe=Ju(g),pe=y.useCallback(()=>{if(!J.current||!V.current)return;const B={placement:i,strategy:r,middleware:E};ue.current&&(B.platform=ue.current),KC(J.current,V.current,B).then(le=>{const me={...le,isPositioned:oe.current!==!1};he.current&&!lo(X.current,me)&&(X.current=me,pr.flushSync(()=>{b(me)}))})},[E,i,r,ue,oe]);Zs(()=>{g===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,b(B=>({...B,isPositioned:!1})))},[g]);const he=y.useRef(!1);Zs(()=>(he.current=!0,()=>{he.current=!1}),[]),Zs(()=>{if(G&&(J.current=G),L&&(V.current=L),G&&L){if(se.current)return se.current(G,L,pe);pe()}},[G,L,pe,se,I]);const ve=y.useMemo(()=>({reference:J,floating:V,setReference:A,setFloating:z}),[A,z]),D=y.useMemo(()=>({reference:G,floating:L}),[G,L]),K=y.useMemo(()=>{const B={position:r,left:0,top:0};if(!D.floating)return B;const le=Fv(D.floating,x.x),me=Fv(D.floating,x.y);return m?{...B,transform:"translate("+le+"px, "+me+"px)",...Ey(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:le,top:me}},[r,m,D.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:pe,refs:ve,elements:D,floatingStyles:K}),[x,pe,ve,D,K])}const JC=n=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:s,padding:u}=typeof n=="function"?n(r):n;return s&&i(s)?s.current!=null?Zv({element:s.current,padding:u}).fn(r):{}:s?Zv({element:s,padding:u}).fn(r):{}}}},WC=(n,i)=>({...VC(n),options:[n,i]}),IC=(n,i)=>({...GC(n),options:[n,i]}),eN=(n,i)=>({...PC(n),options:[n,i]}),tN=(n,i)=>({...YC(n),options:[n,i]}),nN=(n,i)=>({...QC(n),options:[n,i]}),aN=(n,i)=>({...XC(n),options:[n,i]}),lN=(n,i)=>({...JC(n),options:[n,i]});var iN="Arrow",Cy=y.forwardRef((n,i)=>{const{children:r,width:s=10,height:u=5,...f}=n;return d.jsx($e.svg,{...f,ref:i,width:s,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cy.displayName=iN;var rN=Cy;function sN(n){const[i,r]=y.useState(void 0);return Lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let h,m;if("borderBoxSize"in f){const v=f.borderBoxSize,g=Array.isArray(v)?v[0]:v;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else r(void 0)},[n]),i}var Ff="Popper",[Ny,Ry]=Vf(Ff),[oN,jy]=Ny(Ff),Ty=n=>{const{__scopePopper:i,children:r}=n,[s,u]=y.useState(null);return d.jsx(oN,{scope:i,anchor:s,onAnchorChange:u,children:r})};Ty.displayName=Ff;var Ay="PopperAnchor",Oy=y.forwardRef((n,i)=>{const{__scopePopper:r,virtualRef:s,...u}=n,f=jy(Ay,r),h=y.useRef(null),m=yt(i,h),v=y.useRef(null);return y.useEffect(()=>{const g=v.current;v.current=s?.current||h.current,g!==v.current&&f.onAnchorChange(v.current)}),s?null:d.jsx($e.div,{...u,ref:m})});Oy.displayName=Ay;var $f="PopperContent",[cN,uN]=Ny($f),_y=y.forwardRef((n,i)=>{const{__scopePopper:r,side:s="bottom",sideOffset:u=0,align:f="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:j,...S}=n,N=jy($f,r),[T,A]=y.useState(null),z=yt(i,$=>A($)),[G,L]=y.useState(null),J=sN(G),V=J?.width??0,X=J?.height??0,I=s+(f!=="center"?"-"+f:""),se=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ue=Array.isArray(g)?g:[g],oe=ue.length>0,pe={padding:se,boundary:ue.filter(dN),altBoundary:oe},{refs:he,floatingStyles:ve,placement:D,isPositioned:K,middlewareData:B}=$C({strategy:"fixed",placement:I,whileElementsMounted:(...$)=>qC(...$,{animationFrame:C==="always"}),elements:{reference:N.anchor},middleware:[WC({mainAxis:u+X,alignmentAxis:h}),v&&IC({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?eN():void 0,...pe}),v&&tN({...pe}),nN({...pe,apply:({elements:$,rects:ie,availableWidth:ge,availableHeight:Ne})=>{const{width:Ae,height:ze}=ie.reference,wt=$.floating.style;wt.setProperty("--radix-popper-available-width",`${ge}px`),wt.setProperty("--radix-popper-available-height",`${Ne}px`),wt.setProperty("--radix-popper-anchor-width",`${Ae}px`),wt.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),G&&lN({element:G,padding:m}),hN({arrowWidth:V,arrowHeight:X}),E&&aN({strategy:"referenceHidden",...pe})]}),[le,me]=Dy(D),O=el(j);Lt(()=>{K&&O?.()},[K,O]);const Q=B.arrow?.x,F=B.arrow?.y,W=B.arrow?.centerOffset!==0,[re,de]=y.useState();return Lt(()=>{T&&de(window.getComputedStyle(T).zIndex)},[T]),d.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...ve,transform:K?ve.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:d.jsx(cN,{scope:r,placedSide:le,onArrowChange:L,arrowX:Q,arrowY:F,shouldHideArrow:W,children:d.jsx($e.div,{"data-side":le,"data-align":me,...S,ref:z,style:{...S.style,animation:K?void 0:"none"}})})})});_y.displayName=$f;var My="PopperArrow",fN={top:"bottom",right:"left",bottom:"top",left:"right"},zy=y.forwardRef(function(i,r){const{__scopePopper:s,...u}=i,f=uN(My,s),h=fN[f.placedSide];return d.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:d.jsx(rN,{...u,ref:r,style:{...u.style,display:"block"}})})});zy.displayName=My;function dN(n){return n!==null}var hN=n=>({name:"transformOrigin",options:n,fn(i){const{placement:r,rects:s,middlewareData:u}=i,h=u.arrow?.centerOffset!==0,m=h?0:n.arrowWidth,v=h?0:n.arrowHeight,[g,x]=Dy(r),b={start:"0%",center:"50%",end:"100%"}[x],E=(u.arrow?.x??0)+m/2,C=(u.arrow?.y??0)+v/2;let j="",S="";return g==="bottom"?(j=h?b:`${E}px`,S=`${-v}px`):g==="top"?(j=h?b:`${E}px`,S=`${s.floating.height+v}px`):g==="right"?(j=`${-v}px`,S=h?b:`${C}px`):g==="left"&&(j=`${s.floating.width+v}px`,S=h?b:`${C}px`),{data:{x:j,y:S}}}});function Dy(n){const[i,r="center"]=n.split("-");return[i,r]}var mN=Ty,pN=Oy,vN=_y,gN=zy,yN="Portal",Ly=y.forwardRef((n,i)=>{const{container:r,...s}=n,[u,f]=y.useState(!1);Lt(()=>f(!0),[]);const h=r||u&&globalThis?.document?.body;return h?l2.createPortal(d.jsx($e.div,{...s,ref:i}),h):null});Ly.displayName=yN;var xN=Af[" useInsertionEffect ".trim().toString()]||Lt;function $v({prop:n,defaultProp:i,onChange:r=()=>{},caller:s}){const[u,f,h]=bN({defaultProp:i,onChange:r}),m=n!==void 0,v=m?n:u;{const x=y.useRef(n!==void 0);y.useEffect(()=>{const b=x.current;b!==m&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,s])}const g=y.useCallback(x=>{if(m){const b=SN(x)?x(n):x;b!==n&&h.current?.(b)}else f(x)},[m,n,f,h]);return[v,g]}function bN({defaultProp:n,onChange:i}){const[r,s]=y.useState(n),u=y.useRef(r),f=y.useRef(i);return xN(()=>{f.current=i},[i]),y.useEffect(()=>{u.current!==r&&(f.current?.(r),u.current=r)},[r,u]),[r,s,f]}function SN(n){return typeof n=="function"}function wN(n){const i=y.useRef({value:n,previous:n});return y.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}var Uy=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),EN="VisuallyHidden",CN=y.forwardRef((n,i)=>d.jsx($e.span,{...n,ref:i,style:{...Uy,...n.style}}));CN.displayName=EN;var NN=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},Pl=new WeakMap,qs=new WeakMap,Vs={},Wu=0,Hy=function(n){return n&&(n.host||Hy(n.parentNode))},RN=function(n,i){return i.map(function(r){if(n.contains(r))return r;var s=Hy(r);return s&&n.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},jN=function(n,i,r,s){var u=RN(i,Array.isArray(n)?n:[n]);Vs[r]||(Vs[r]=new WeakMap);var f=Vs[r],h=[],m=new Set,v=new Set(u),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};u.forEach(g);var x=function(b){!b||v.has(b)||Array.prototype.forEach.call(b.children,function(E){if(m.has(E))x(E);else try{var C=E.getAttribute(s),j=C!==null&&C!=="false",S=(Pl.get(E)||0)+1,N=(f.get(E)||0)+1;Pl.set(E,S),f.set(E,N),h.push(E),S===1&&j&&qs.set(E,!0),N===1&&E.setAttribute(r,"true"),j||E.setAttribute(s,"true")}catch(T){console.error("aria-hidden: cannot operate on ",E,T)}})};return x(i),m.clear(),Wu++,function(){h.forEach(function(b){var E=Pl.get(b)-1,C=f.get(b)-1;Pl.set(b,E),f.set(b,C),E||(qs.has(b)||b.removeAttribute(s),qs.delete(b)),C||b.removeAttribute(r)}),Wu--,Wu||(Pl=new WeakMap,Pl=new WeakMap,qs=new WeakMap,Vs={})}},TN=function(n,i,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),u=NN(n);return u?(s.push.apply(s,Array.from(u.querySelectorAll("[aria-live], script"))),jN(s,u,r,"aria-hidden")):function(){return null}},bn=function(){return bn=Object.assign||function(i){for(var r,s=1,u=arguments.length;s<u;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(i[f]=r[f])}return i},bn.apply(this,arguments)};function ky(n,i){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)i.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(r[s[u]]=n[s[u]]);return r}function AN(n,i,r){if(r||arguments.length===2)for(var s=0,u=i.length,f;s<u;s++)(f||!(s in i))&&(f||(f=Array.prototype.slice.call(i,0,s)),f[s]=i[s]);return n.concat(f||Array.prototype.slice.call(i))}var Fs="right-scroll-bar-position",$s="width-before-scroll-bar",ON="with-scroll-bars-hidden",_N="--removed-body-scroll-bar-size";function Iu(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function MN(n,i){var r=y.useState(function(){return{value:n,callback:i,facade:{get current(){return r.value},set current(s){var u=r.value;u!==s&&(r.value=s,r.callback(s,u))}}}})[0];return r.callback=i,r.facade}var zN=typeof window<"u"?y.useLayoutEffect:y.useEffect,Jv=new WeakMap;function DN(n,i){var r=MN(null,function(s){return n.forEach(function(u){return Iu(u,s)})});return zN(function(){var s=Jv.get(r);if(s){var u=new Set(s),f=new Set(n),h=r.current;u.forEach(function(m){f.has(m)||Iu(m,null)}),f.forEach(function(m){u.has(m)||Iu(m,h)})}Jv.set(r,n)},[n]),r}function LN(n){return n}function UN(n,i){i===void 0&&(i=LN);var r=[],s=!1,u={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(f){var h=i(f,s);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(s=!0;r.length;){var h=r;r=[],h.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){s=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(f),h=r}var v=function(){var x=h;h=[],x.forEach(f)},g=function(){return Promise.resolve().then(v)};g(),r={push:function(x){h.push(x),g()},filter:function(x){return h=h.filter(x),r}}}};return u}function HN(n){n===void 0&&(n={});var i=UN(null);return i.options=bn({async:!0,ssr:!1},n),i}var By=function(n){var i=n.sideCar,r=ky(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return y.createElement(s,bn({},r))};By.isSideCarExport=!0;function kN(n,i){return n.useMedium(i),By}var qy=HN(),ef=function(){},go=y.forwardRef(function(n,i){var r=y.useRef(null),s=y.useState({onScrollCapture:ef,onWheelCapture:ef,onTouchMoveCapture:ef}),u=s[0],f=s[1],h=n.forwardProps,m=n.children,v=n.className,g=n.removeScrollBar,x=n.enabled,b=n.shards,E=n.sideCar,C=n.noRelative,j=n.noIsolation,S=n.inert,N=n.allowPinchZoom,T=n.as,A=T===void 0?"div":T,z=n.gapMode,G=ky(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=E,J=DN([r,i]),V=bn(bn({},G),u);return y.createElement(y.Fragment,null,x&&y.createElement(L,{sideCar:qy,removeScrollBar:g,shards:b,noRelative:C,noIsolation:j,inert:S,setCallbacks:f,allowPinchZoom:!!N,lockRef:r,gapMode:z}),h?y.cloneElement(y.Children.only(m),bn(bn({},V),{ref:J})):y.createElement(A,bn({},V,{className:v,ref:J}),m))});go.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};go.classNames={fullWidth:$s,zeroRight:Fs};var BN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qN(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=BN();return i&&n.setAttribute("nonce",i),n}function VN(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function GN(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var YN=function(){var n=0,i=null;return{add:function(r){n==0&&(i=qN())&&(VN(i,r),GN(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},QN=function(){var n=YN();return function(i,r){y.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&r])}},Vy=function(){var n=QN(),i=function(r){var s=r.styles,u=r.dynamic;return n(s,u),null};return i},XN={left:0,top:0,right:0,gap:0},tf=function(n){return parseInt(n||"",10)||0},PN=function(n){var i=window.getComputedStyle(document.body),r=i[n==="padding"?"paddingLeft":"marginLeft"],s=i[n==="padding"?"paddingTop":"marginTop"],u=i[n==="padding"?"paddingRight":"marginRight"];return[tf(r),tf(s),tf(u)]},KN=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return XN;var i=PN(n),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-r+i[2]-i[0])}},ZN=Vy(),Jl="data-scroll-locked",FN=function(n,i,r,s){var u=n.left,f=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
12
|
+
.`.concat(ON,` {
|
|
13
|
+
overflow: hidden `).concat(s,`;
|
|
14
|
+
padding-right: `).concat(m,"px ").concat(s,`;
|
|
15
|
+
}
|
|
16
|
+
body[`).concat(Jl,`] {
|
|
17
|
+
overflow: hidden `).concat(s,`;
|
|
18
|
+
overscroll-behavior: contain;
|
|
19
|
+
`).concat([i&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
20
|
+
padding-left: `.concat(u,`px;
|
|
21
|
+
padding-top: `).concat(f,`px;
|
|
22
|
+
padding-right: `).concat(h,`px;
|
|
23
|
+
margin-left:0;
|
|
24
|
+
margin-top:0;
|
|
25
|
+
margin-right: `).concat(m,"px ").concat(s,`;
|
|
26
|
+
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.`).concat(Fs,` {
|
|
30
|
+
right: `).concat(m,"px ").concat(s,`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.`).concat($s,` {
|
|
34
|
+
margin-right: `).concat(m,"px ").concat(s,`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.`).concat(Fs," .").concat(Fs,` {
|
|
38
|
+
right: 0 `).concat(s,`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.`).concat($s," .").concat($s,` {
|
|
42
|
+
margin-right: 0 `).concat(s,`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body[`).concat(Jl,`] {
|
|
46
|
+
`).concat(_N,": ").concat(m,`px;
|
|
47
|
+
}
|
|
48
|
+
`)},Wv=function(){var n=parseInt(document.body.getAttribute(Jl)||"0",10);return isFinite(n)?n:0},$N=function(){y.useEffect(function(){return document.body.setAttribute(Jl,(Wv()+1).toString()),function(){var n=Wv()-1;n<=0?document.body.removeAttribute(Jl):document.body.setAttribute(Jl,n.toString())}},[])},JN=function(n){var i=n.noRelative,r=n.noImportant,s=n.gapMode,u=s===void 0?"margin":s;$N();var f=y.useMemo(function(){return KN(u)},[u]);return y.createElement(ZN,{styles:FN(f,!i,u,r?"":"!important")})},mf=!1;if(typeof window<"u")try{var Gs=Object.defineProperty({},"passive",{get:function(){return mf=!0,!0}});window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{mf=!1}var Kl=mf?{passive:!1}:!1,WN=function(n){return n.tagName==="TEXTAREA"},Gy=function(n,i){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!WN(n)&&r[i]==="visible")},IN=function(n){return Gy(n,"overflowY")},eR=function(n){return Gy(n,"overflowX")},Iv=function(n,i){var r=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var u=Yy(n,s);if(u){var f=Qy(n,s),h=f[1],m=f[2];if(h>m)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},tR=function(n){var i=n.scrollTop,r=n.scrollHeight,s=n.clientHeight;return[i,r,s]},nR=function(n){var i=n.scrollLeft,r=n.scrollWidth,s=n.clientWidth;return[i,r,s]},Yy=function(n,i){return n==="v"?IN(i):eR(i)},Qy=function(n,i){return n==="v"?tR(i):nR(i)},aR=function(n,i){return n==="h"&&i==="rtl"?-1:1},lR=function(n,i,r,s,u){var f=aR(n,window.getComputedStyle(i).direction),h=f*s,m=r.target,v=i.contains(m),g=!1,x=h>0,b=0,E=0;do{if(!m)break;var C=Qy(n,m),j=C[0],S=C[1],N=C[2],T=S-N-f*j;(j||T)&&Yy(n,m)&&(b+=T,E+=j);var A=m.parentNode;m=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!v&&m!==document.body||v&&(i.contains(m)||i===m));return(x&&Math.abs(b)<1||!x&&Math.abs(E)<1)&&(g=!0),g},Ys=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},eg=function(n){return[n.deltaX,n.deltaY]},tg=function(n){return n&&"current"in n?n.current:n},iR=function(n,i){return n[0]===i[0]&&n[1]===i[1]},rR=function(n){return`
|
|
49
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
50
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
51
|
+
`)},sR=0,Zl=[];function oR(n){var i=y.useRef([]),r=y.useRef([0,0]),s=y.useRef(),u=y.useState(sR++)[0],f=y.useState(Vy)[0],h=y.useRef(n);y.useEffect(function(){h.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var S=AN([n.lockRef.current],(n.shards||[]).map(tg),!0).filter(Boolean);return S.forEach(function(N){return N.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),S.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var m=y.useCallback(function(S,N){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var T=Ys(S),A=r.current,z="deltaX"in S?S.deltaX:A[0]-T[0],G="deltaY"in S?S.deltaY:A[1]-T[1],L,J=S.target,V=Math.abs(z)>Math.abs(G)?"h":"v";if("touches"in S&&V==="h"&&J.type==="range")return!1;var X=window.getSelection(),I=X&&X.anchorNode,se=I?I===J||I.contains(J):!1;if(se)return!1;var ue=Iv(V,J);if(!ue)return!0;if(ue?L=V:(L=V==="v"?"h":"v",ue=Iv(V,J)),!ue)return!1;if(!s.current&&"changedTouches"in S&&(z||G)&&(s.current=L),!L)return!0;var oe=s.current||L;return lR(oe,N,S,oe==="h"?z:G)},[]),v=y.useCallback(function(S){var N=S;if(!(!Zl.length||Zl[Zl.length-1]!==f)){var T="deltaY"in N?eg(N):Ys(N),A=i.current.filter(function(L){return L.name===N.type&&(L.target===N.target||N.target===L.shadowParent)&&iR(L.delta,T)})[0];if(A&&A.should){N.cancelable&&N.preventDefault();return}if(!A){var z=(h.current.shards||[]).map(tg).filter(Boolean).filter(function(L){return L.contains(N.target)}),G=z.length>0?m(N,z[0]):!h.current.noIsolation;G&&N.cancelable&&N.preventDefault()}}},[]),g=y.useCallback(function(S,N,T,A){var z={name:S,delta:N,target:T,should:A,shadowParent:cR(T)};i.current.push(z),setTimeout(function(){i.current=i.current.filter(function(G){return G!==z})},1)},[]),x=y.useCallback(function(S){r.current=Ys(S),s.current=void 0},[]),b=y.useCallback(function(S){g(S.type,eg(S),S.target,m(S,n.lockRef.current))},[]),E=y.useCallback(function(S){g(S.type,Ys(S),S.target,m(S,n.lockRef.current))},[]);y.useEffect(function(){return Zl.push(f),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:E}),document.addEventListener("wheel",v,Kl),document.addEventListener("touchmove",v,Kl),document.addEventListener("touchstart",x,Kl),function(){Zl=Zl.filter(function(S){return S!==f}),document.removeEventListener("wheel",v,Kl),document.removeEventListener("touchmove",v,Kl),document.removeEventListener("touchstart",x,Kl)}},[]);var C=n.removeScrollBar,j=n.inert;return y.createElement(y.Fragment,null,j?y.createElement(f,{styles:rR(u)}):null,C?y.createElement(JN,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function cR(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const uR=kN(qy,oR);var Xy=y.forwardRef(function(n,i){return y.createElement(go,bn({},n,{ref:i,sideCar:uR}))});Xy.classNames=go.classNames;var fR=[" ","Enter","ArrowUp","ArrowDown"],dR=[" ","Enter"],nl="Select",[yo,xo,hR]=NE(nl),[oi]=Vf(nl,[hR,Ry]),bo=Ry(),[mR,Aa]=oi(nl),[pR,vR]=oi(nl),Py=n=>{const{__scopeSelect:i,children:r,open:s,defaultOpen:u,onOpenChange:f,value:h,defaultValue:m,onValueChange:v,dir:g,name:x,autoComplete:b,disabled:E,required:C,form:j}=n,S=bo(i),[N,T]=y.useState(null),[A,z]=y.useState(null),[G,L]=y.useState(!1),J=jE(g),[V,X]=$v({prop:s,defaultProp:u??!1,onChange:f,caller:nl}),[I,se]=$v({prop:h,defaultProp:m,onChange:v,caller:nl}),ue=y.useRef(null),oe=N?j||!!N.closest("form"):!0,[pe,he]=y.useState(new Set),ve=Array.from(pe).map(D=>D.props.value).join(";");return d.jsx(mN,{...S,children:d.jsxs(mR,{required:C,scope:i,trigger:N,onTriggerChange:T,valueNode:A,onValueNodeChange:z,valueNodeHasChildren:G,onValueNodeHasChildrenChange:L,contentId:Gf(),value:I,onValueChange:se,open:V,onOpenChange:X,dir:J,triggerPointerDownPosRef:ue,disabled:E,children:[d.jsx(yo.Provider,{scope:i,children:d.jsx(pR,{scope:n.__scopeSelect,onNativeOptionAdd:y.useCallback(D=>{he(K=>new Set(K).add(D))},[]),onNativeOptionRemove:y.useCallback(D=>{he(K=>{const B=new Set(K);return B.delete(D),B})},[]),children:r})}),oe?d.jsxs(v0,{"aria-hidden":!0,required:C,tabIndex:-1,name:x,autoComplete:b,value:I,onChange:D=>se(D.target.value),disabled:E,form:j,children:[I===void 0?d.jsx("option",{value:""}):null,Array.from(pe)]},ve):null]})})};Py.displayName=nl;var Ky="SelectTrigger",Zy=y.forwardRef((n,i)=>{const{__scopeSelect:r,disabled:s=!1,...u}=n,f=bo(r),h=Aa(Ky,r),m=h.disabled||s,v=yt(i,h.onTriggerChange),g=xo(r),x=y.useRef("touch"),[b,E,C]=y0(S=>{const N=g().filter(z=>!z.disabled),T=N.find(z=>z.value===h.value),A=x0(N,S,T);A!==void 0&&h.onValueChange(A.value)}),j=S=>{m||(h.onOpenChange(!0),C()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return d.jsx(pN,{asChild:!0,...f,children:d.jsx($e.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":g0(h.value)?"":void 0,...u,ref:v,onClick:tt(u.onClick,S=>{S.currentTarget.focus(),x.current!=="mouse"&&j(S)}),onPointerDown:tt(u.onPointerDown,S=>{x.current=S.pointerType;const N=S.target;N.hasPointerCapture(S.pointerId)&&N.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(j(S),S.preventDefault())}),onKeyDown:tt(u.onKeyDown,S=>{const N=b.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&E(S.key),!(N&&S.key===" ")&&fR.includes(S.key)&&(j(),S.preventDefault())})})})});Zy.displayName=Ky;var Fy="SelectValue",$y=y.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:u,children:f,placeholder:h="",...m}=n,v=Aa(Fy,r),{onValueNodeHasChildrenChange:g}=v,x=f!==void 0,b=yt(i,v.onValueNodeChange);return Lt(()=>{g(x)},[g,x]),d.jsx($e.span,{...m,ref:b,style:{pointerEvents:"none"},children:g0(v.value)?d.jsx(d.Fragment,{children:h}):f})});$y.displayName=Fy;var gR="SelectIcon",Jy=y.forwardRef((n,i)=>{const{__scopeSelect:r,children:s,...u}=n;return d.jsx($e.span,{"aria-hidden":!0,...u,ref:i,children:s||"▼"})});Jy.displayName=gR;var yR="SelectPortal",Wy=n=>d.jsx(Ly,{asChild:!0,...n});Wy.displayName=yR;var al="SelectContent",Iy=y.forwardRef((n,i)=>{const r=Aa(al,n.__scopeSelect),[s,u]=y.useState();if(Lt(()=>{u(new DocumentFragment)},[]),!r.open){const f=s;return f?pr.createPortal(d.jsx(e0,{scope:n.__scopeSelect,children:d.jsx(yo.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),f):null}return d.jsx(t0,{...n,ref:i})});Iy.displayName=al;var hn=10,[e0,Oa]=oi(al),xR="SelectContentImpl",bR=eo("SelectContent.RemoveScroll"),t0=y.forwardRef((n,i)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:h,side:m,sideOffset:v,align:g,alignOffset:x,arrowPadding:b,collisionBoundary:E,collisionPadding:C,sticky:j,hideWhenDetached:S,avoidCollisions:N,...T}=n,A=Aa(al,r),[z,G]=y.useState(null),[L,J]=y.useState(null),V=yt(i,$=>G($)),[X,I]=y.useState(null),[se,ue]=y.useState(null),oe=xo(r),[pe,he]=y.useState(!1),ve=y.useRef(!1);y.useEffect(()=>{if(z)return TN(z)},[z]),kE();const D=y.useCallback($=>{const[ie,...ge]=oe().map(ze=>ze.ref.current),[Ne]=ge.slice(-1),Ae=document.activeElement;for(const ze of $)if(ze===Ae||(ze?.scrollIntoView({block:"nearest"}),ze===ie&&L&&(L.scrollTop=0),ze===Ne&&L&&(L.scrollTop=L.scrollHeight),ze?.focus(),document.activeElement!==Ae))return},[oe,L]),K=y.useCallback(()=>D([X,z]),[D,X,z]);y.useEffect(()=>{pe&&K()},[pe,K]);const{onOpenChange:B,triggerPointerDownPosRef:le}=A;y.useEffect(()=>{if(z){let $={x:0,y:0};const ie=Ne=>{$={x:Math.abs(Math.round(Ne.pageX)-(le.current?.x??0)),y:Math.abs(Math.round(Ne.pageY)-(le.current?.y??0))}},ge=Ne=>{$.x<=10&&$.y<=10?Ne.preventDefault():z.contains(Ne.target)||B(!1),document.removeEventListener("pointermove",ie),le.current=null};return le.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",ge,{capture:!0})}}},[z,B,le]),y.useEffect(()=>{const $=()=>B(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[B]);const[me,O]=y0($=>{const ie=oe().filter(Ae=>!Ae.disabled),ge=ie.find(Ae=>Ae.ref.current===document.activeElement),Ne=x0(ie,$,ge);Ne&&setTimeout(()=>Ne.ref.current.focus())}),Q=y.useCallback(($,ie,ge)=>{const Ne=!ve.current&&!ge;(A.value!==void 0&&A.value===ie||Ne)&&(I($),Ne&&(ve.current=!0))},[A.value]),F=y.useCallback(()=>z?.focus(),[z]),W=y.useCallback(($,ie,ge)=>{const Ne=!ve.current&&!ge;(A.value!==void 0&&A.value===ie||Ne)&&ue($)},[A.value]),re=s==="popper"?pf:n0,de=re===pf?{side:m,sideOffset:v,align:g,alignOffset:x,arrowPadding:b,collisionBoundary:E,collisionPadding:C,sticky:j,hideWhenDetached:S,avoidCollisions:N}:{};return d.jsx(e0,{scope:r,content:z,viewport:L,onViewportChange:J,itemRefCallback:Q,selectedItem:X,onItemLeave:F,itemTextRefCallback:W,focusSelectedItem:K,selectedItemText:se,position:s,isPositioned:pe,searchRef:me,children:d.jsx(Xy,{as:bR,allowPinchZoom:!0,children:d.jsx(fy,{asChild:!0,trapped:A.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:tt(u,$=>{A.trigger?.focus({preventScroll:!0}),$.preventDefault()}),children:d.jsx(cy,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:d.jsx(re,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:$=>$.preventDefault(),...T,...de,onPlaced:()=>he(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:tt(T.onKeyDown,$=>{const ie=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!ie&&$.key.length===1&&O($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let Ne=oe().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);if(["ArrowUp","End"].includes($.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const Ae=$.target,ze=Ne.indexOf(Ae);Ne=Ne.slice(ze+1)}setTimeout(()=>D(Ne)),$.preventDefault()}})})})})})})});t0.displayName=xR;var SR="SelectItemAlignedPosition",n0=y.forwardRef((n,i)=>{const{__scopeSelect:r,onPlaced:s,...u}=n,f=Aa(al,r),h=Oa(al,r),[m,v]=y.useState(null),[g,x]=y.useState(null),b=yt(i,V=>x(V)),E=xo(r),C=y.useRef(!1),j=y.useRef(!0),{viewport:S,selectedItem:N,selectedItemText:T,focusSelectedItem:A}=h,z=y.useCallback(()=>{if(f.trigger&&f.valueNode&&m&&g&&S&&N&&T){const V=f.trigger.getBoundingClientRect(),X=g.getBoundingClientRect(),I=f.valueNode.getBoundingClientRect(),se=T.getBoundingClientRect();if(f.dir!=="rtl"){const Ae=se.left-X.left,ze=I.left-Ae,wt=V.left-ze,Et=V.width+wt,_a=Math.max(Et,X.width),Ma=window.innerWidth-hn,ui=_v(ze,[hn,Math.max(hn,Ma-_a)]);m.style.minWidth=Et+"px",m.style.left=ui+"px"}else{const Ae=X.right-se.right,ze=window.innerWidth-I.right-Ae,wt=window.innerWidth-V.right-ze,Et=V.width+wt,_a=Math.max(Et,X.width),Ma=window.innerWidth-hn,ui=_v(ze,[hn,Math.max(hn,Ma-_a)]);m.style.minWidth=Et+"px",m.style.right=ui+"px"}const ue=E(),oe=window.innerHeight-hn*2,pe=S.scrollHeight,he=window.getComputedStyle(g),ve=parseInt(he.borderTopWidth,10),D=parseInt(he.paddingTop,10),K=parseInt(he.borderBottomWidth,10),B=parseInt(he.paddingBottom,10),le=ve+D+pe+B+K,me=Math.min(N.offsetHeight*5,le),O=window.getComputedStyle(S),Q=parseInt(O.paddingTop,10),F=parseInt(O.paddingBottom,10),W=V.top+V.height/2-hn,re=oe-W,de=N.offsetHeight/2,$=N.offsetTop+de,ie=ve+D+$,ge=le-ie;if(ie<=W){const Ae=ue.length>0&&N===ue[ue.length-1].ref.current;m.style.bottom="0px";const ze=g.clientHeight-S.offsetTop-S.offsetHeight,wt=Math.max(re,de+(Ae?F:0)+ze+K),Et=ie+wt;m.style.height=Et+"px"}else{const Ae=ue.length>0&&N===ue[0].ref.current;m.style.top="0px";const wt=Math.max(W,ve+S.offsetTop+(Ae?Q:0)+de)+ge;m.style.height=wt+"px",S.scrollTop=ie-W+S.offsetTop}m.style.margin=`${hn}px 0`,m.style.minHeight=me+"px",m.style.maxHeight=oe+"px",s?.(),requestAnimationFrame(()=>C.current=!0)}},[E,f.trigger,f.valueNode,m,g,S,N,T,f.dir,s]);Lt(()=>z(),[z]);const[G,L]=y.useState();Lt(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const J=y.useCallback(V=>{V&&j.current===!0&&(z(),A?.(),j.current=!1)},[z,A]);return d.jsx(ER,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:C,onScrollButtonChange:J,children:d.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:G},children:d.jsx($e.div,{...u,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});n0.displayName=SR;var wR="SelectPopperPosition",pf=y.forwardRef((n,i)=>{const{__scopeSelect:r,align:s="start",collisionPadding:u=hn,...f}=n,h=bo(r);return d.jsx(vN,{...h,...f,ref:i,align:s,collisionPadding:u,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});pf.displayName=wR;var[ER,Jf]=oi(al,{}),vf="SelectViewport",a0=y.forwardRef((n,i)=>{const{__scopeSelect:r,nonce:s,...u}=n,f=Oa(vf,r),h=Jf(vf,r),m=yt(i,f.onViewportChange),v=y.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(yo.Slot,{scope:r,children:d.jsx($e.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:tt(u.onScroll,g=>{const x=g.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:E}=h;if(E?.current&&b){const C=Math.abs(v.current-x.scrollTop);if(C>0){const j=window.innerHeight-hn*2,S=parseFloat(b.style.minHeight),N=parseFloat(b.style.height),T=Math.max(S,N);if(T<j){const A=T+C,z=Math.min(j,A),G=A-z;b.style.height=z+"px",b.style.bottom==="0px"&&(x.scrollTop=G>0?G:0,b.style.justifyContent="flex-end")}}}v.current=x.scrollTop})})})]})});a0.displayName=vf;var l0="SelectGroup",[CR,NR]=oi(l0),RR=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,u=Gf();return d.jsx(CR,{scope:r,id:u,children:d.jsx($e.div,{role:"group","aria-labelledby":u,...s,ref:i})})});RR.displayName=l0;var i0="SelectLabel",r0=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,u=NR(i0,r);return d.jsx($e.div,{id:u.id,...s,ref:i})});r0.displayName=i0;var io="SelectItem",[jR,s0]=oi(io),o0=y.forwardRef((n,i)=>{const{__scopeSelect:r,value:s,disabled:u=!1,textValue:f,...h}=n,m=Aa(io,r),v=Oa(io,r),g=m.value===s,[x,b]=y.useState(f??""),[E,C]=y.useState(!1),j=yt(i,A=>v.itemRefCallback?.(A,s,u)),S=Gf(),N=y.useRef("touch"),T=()=>{u||(m.onValueChange(s),m.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(jR,{scope:r,value:s,disabled:u,textId:S,isSelected:g,onItemTextChange:y.useCallback(A=>{b(z=>z||(A?.textContent??"").trim())},[]),children:d.jsx(yo.ItemSlot,{scope:r,value:s,disabled:u,textValue:x,children:d.jsx($e.div,{role:"option","aria-labelledby":S,"data-highlighted":E?"":void 0,"aria-selected":g&&E,"data-state":g?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...h,ref:j,onFocus:tt(h.onFocus,()=>C(!0)),onBlur:tt(h.onBlur,()=>C(!1)),onClick:tt(h.onClick,()=>{N.current!=="mouse"&&T()}),onPointerUp:tt(h.onPointerUp,()=>{N.current==="mouse"&&T()}),onPointerDown:tt(h.onPointerDown,A=>{N.current=A.pointerType}),onPointerMove:tt(h.onPointerMove,A=>{N.current=A.pointerType,u?v.onItemLeave?.():N.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(h.onPointerLeave,A=>{A.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:tt(h.onKeyDown,A=>{v.searchRef?.current!==""&&A.key===" "||(dR.includes(A.key)&&T(),A.key===" "&&A.preventDefault())})})})})});o0.displayName=io;var cr="SelectItemText",c0=y.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:u,...f}=n,h=Aa(cr,r),m=Oa(cr,r),v=s0(cr,r),g=vR(cr,r),[x,b]=y.useState(null),E=yt(i,T=>b(T),v.onItemTextChange,T=>m.itemTextRefCallback?.(T,v.value,v.disabled)),C=x?.textContent,j=y.useMemo(()=>d.jsx("option",{value:v.value,disabled:v.disabled,children:C},v.value),[v.disabled,v.value,C]),{onNativeOptionAdd:S,onNativeOptionRemove:N}=g;return Lt(()=>(S(j),()=>N(j)),[S,N,j]),d.jsxs(d.Fragment,{children:[d.jsx($e.span,{id:v.textId,...f,ref:E}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?pr.createPortal(f.children,h.valueNode):null]})});c0.displayName=cr;var u0="SelectItemIndicator",f0=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return s0(u0,r).isSelected?d.jsx($e.span,{"aria-hidden":!0,...s,ref:i}):null});f0.displayName=u0;var gf="SelectScrollUpButton",d0=y.forwardRef((n,i)=>{const r=Oa(gf,n.__scopeSelect),s=Jf(gf,n.__scopeSelect),[u,f]=y.useState(!1),h=yt(i,s.onScrollButtonChange);return Lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=v.scrollTop>0;f(g)};const v=r.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?d.jsx(m0,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=r;m&&v&&(m.scrollTop=m.scrollTop-v.offsetHeight)}}):null});d0.displayName=gf;var yf="SelectScrollDownButton",h0=y.forwardRef((n,i)=>{const r=Oa(yf,n.__scopeSelect),s=Jf(yf,n.__scopeSelect),[u,f]=y.useState(!1),h=yt(i,s.onScrollButtonChange);return Lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=v.scrollHeight-v.clientHeight,x=Math.ceil(v.scrollTop)<g;f(x)};const v=r.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?d.jsx(m0,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=r;m&&v&&(m.scrollTop=m.scrollTop+v.offsetHeight)}}):null});h0.displayName=yf;var m0=y.forwardRef((n,i)=>{const{__scopeSelect:r,onAutoScroll:s,...u}=n,f=Oa("SelectScrollButton",r),h=y.useRef(null),m=xo(r),v=y.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return y.useEffect(()=>()=>v(),[v]),Lt(()=>{m().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),d.jsx($e.div,{"aria-hidden":!0,...u,ref:i,style:{flexShrink:0,...u.style},onPointerDown:tt(u.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(s,50))}),onPointerMove:tt(u.onPointerMove,()=>{f.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(s,50))}),onPointerLeave:tt(u.onPointerLeave,()=>{v()})})}),TR="SelectSeparator",p0=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return d.jsx($e.div,{"aria-hidden":!0,...s,ref:i})});p0.displayName=TR;var xf="SelectArrow",AR=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,u=bo(r),f=Aa(xf,r),h=Oa(xf,r);return f.open&&h.position==="popper"?d.jsx(gN,{...u,...s,ref:i}):null});AR.displayName=xf;var OR="SelectBubbleInput",v0=y.forwardRef(({__scopeSelect:n,value:i,...r},s)=>{const u=y.useRef(null),f=yt(s,u),h=wN(i);return y.useEffect(()=>{const m=u.current;if(!m)return;const v=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(v,"value").set;if(h!==i&&x){const b=new Event("change",{bubbles:!0});x.call(m,i),m.dispatchEvent(b)}},[h,i]),d.jsx($e.select,{...r,style:{...Uy,...r.style},ref:f,defaultValue:i})});v0.displayName=OR;function g0(n){return n===""||n===void 0}function y0(n){const i=el(n),r=y.useRef(""),s=y.useRef(0),u=y.useCallback(h=>{const m=r.current+h;i(m),(function v(g){r.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(m)},[i]),f=y.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,u,f]}function x0(n,i,r){const u=i.length>1&&Array.from(i).every(g=>g===i[0])?i[0]:i,f=r?n.indexOf(r):-1;let h=_R(n,Math.max(f,0));u.length===1&&(h=h.filter(g=>g!==r));const v=h.find(g=>g.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==r?v:void 0}function _R(n,i){return n.map((r,s)=>n[(i+s)%n.length])}var MR=Py,b0=Zy,zR=$y,DR=Jy,LR=Wy,S0=Iy,UR=a0,w0=r0,E0=o0,HR=c0,kR=f0,C0=d0,N0=h0,R0=p0;const BR=MR,qR=zR,j0=y.forwardRef(({className:n,children:i,...r},s)=>d.jsxs(b0,{ref:s,className:Ke("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...r,children:[i,d.jsx(DR,{asChild:!0,children:d.jsx(kg,{className:"h-4 w-4 opacity-50"})})]}));j0.displayName=b0.displayName;const T0=y.forwardRef(({className:n,...i},r)=>d.jsx(C0,{ref:r,className:Ke("flex cursor-default items-center justify-center py-1",n),...i,children:d.jsx(E2,{className:"h-4 w-4"})}));T0.displayName=C0.displayName;const A0=y.forwardRef(({className:n,...i},r)=>d.jsx(N0,{ref:r,className:Ke("flex cursor-default items-center justify-center py-1",n),...i,children:d.jsx(kg,{className:"h-4 w-4"})}));A0.displayName=N0.displayName;const O0=y.forwardRef(({className:n,children:i,position:r="popper",...s},u)=>d.jsx(LR,{children:d.jsxs(S0,{ref:u,className:Ke("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:r,...s,children:[d.jsx(T0,{}),d.jsx(UR,{className:Ke("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),d.jsx(A0,{})]})}));O0.displayName=S0.displayName;const VR=y.forwardRef(({className:n,...i},r)=>d.jsx(w0,{ref:r,className:Ke("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...i}));VR.displayName=w0.displayName;const bf=y.forwardRef(({className:n,children:i,...r},s)=>d.jsxs(E0,{ref:s,className:Ke("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(kR,{children:d.jsx(Hf,{className:"h-4 w-4"})})}),d.jsx(HR,{children:i})]}));bf.displayName=E0.displayName;const GR=y.forwardRef(({className:n,...i},r)=>d.jsx(R0,{ref:r,className:Ke("-mx-1 my-1 h-px bg-muted",n),...i}));GR.displayName=R0.displayName;const YR=fo("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),lt=y.forwardRef(({className:n,variant:i,...r},s)=>d.jsx("div",{ref:s,role:"alert",className:Ke(YR({variant:i}),n),...r}));lt.displayName="Alert";const QR=y.forwardRef(({className:n,...i},r)=>d.jsx("h5",{ref:r,className:Ke("mb-1 font-medium leading-none tracking-tight",n),...i}));QR.displayName="AlertTitle";const it=y.forwardRef(({className:n,...i},r)=>d.jsx("div",{ref:r,className:Ke("text-sm [&_p]:leading-relaxed",n),...i}));it.displayName="AlertDescription";const XR=fo("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),zt=y.forwardRef(({className:n,variant:i,size:r,asChild:s=!1,...u},f)=>{const h=s?uE:"button";return d.jsx(h,{className:Ke(XR({variant:i,size:r,className:n})),ref:f,...u})});zt.displayName="Button";function PR({currentStep:n}){return d.jsx("div",{className:"w-full py-8",children:d.jsx("div",{className:"flex items-center justify-between max-w-4xl mx-auto",children:sn.map((i,r)=>d.jsxs("div",{className:"flex items-center flex-1",children:[d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-full border-2 font-semibold transition-colors ${r<n?"bg-primary border-primary text-primary-foreground":r===n?"border-primary bg-primary text-primary-foreground":"border-muted bg-background text-muted-foreground"}`,children:r<n?d.jsx(Hf,{className:"h-5 w-5"}):d.jsx("span",{children:r+1})}),d.jsx("span",{className:`mt-2 text-xs font-medium ${r<=n?"text-foreground":"text-muted-foreground"}`,children:i.name})]}),r<sn.length-1&&d.jsx("div",{className:"flex-1 mx-2",children:d.jsx("div",{className:`h-0.5 transition-colors ${r<n?"bg-primary":"bg-muted"}`})})]},i.id))})})}function gr(){const n=y.useContext(Lg);if(n===void 0)throw new Error("useWizard must be used within a WizardProvider");return n}function Wl({children:n,title:i,description:r,onNext:s,onPrev:u,hideNextButton:f=!1,hidePrevButton:h=!1,nextButtonText:m="下一步",nextButtonDisabled:v=!1}){const{currentStep:g,nextStep:x,prevStep:b,canGoNext:E,canGoPrev:C}=gr(),j=rl(),S=async()=>{s&&await s(),g<sn.length-1&&(x(),j(sn[g+1].path))},N=async()=>{u&&await u(),g>0&&(b(),j(sn[g-1].path))},T=g===sn.length-1;return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx("div",{className:"border-b bg-card",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"py-6",children:[d.jsx("h1",{className:"text-2xl font-bold",children:"Lumen 配置向导"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"分布式推理系统配置工具"})]}),d.jsx(PR,{currentStep:g})]})}),d.jsx("div",{className:"container mx-auto px-4 py-8",children:d.jsxs("div",{className:"max-w-4xl mx-auto",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-3xl font-bold",children:i}),r&&d.jsx("p",{className:"text-muted-foreground mt-2",children:r})]}),d.jsx("div",{className:"mb-8",children:n}),d.jsxs("div",{className:"flex justify-between items-center pt-6 border-t",children:[d.jsx("div",{children:!h&&C()&&d.jsxs(zt,{variant:"outline",onClick:N,children:[d.jsx(x2,{className:"mr-2 h-4 w-4"}),"上一步"]})}),d.jsx("div",{children:!f&&d.jsxs(zt,{onClick:S,disabled:!E()||v,children:[T?"完成":m,!T&&d.jsx(S2,{className:"ml-2 h-4 w-4"})]})})]})]})})]})}var ci=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KR={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},ZR=class{#e=KR;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},Ia=new ZR;function FR(n){setTimeout(n,0)}var ll=typeof window>"u"||"Deno"in globalThis;function Nt(){}function $R(n,i){return typeof n=="function"?n(i):n}function Sf(n){return typeof n=="number"&&n>=0&&n!==1/0}function _0(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Ra(n,i){return typeof n=="function"?n(i):n}function rn(n,i){return typeof n=="function"?n(i):n}function ng(n,i){const{type:r="all",exact:s,fetchStatus:u,predicate:f,queryKey:h,stale:m}=n;if(h){if(s){if(i.queryHash!==Wf(h,i.options))return!1}else if(!dr(i.queryKey,h))return!1}if(r!=="all"){const v=i.isActive();if(r==="active"&&!v||r==="inactive"&&v)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||u&&u!==i.state.fetchStatus||f&&!f(i))}function ag(n,i){const{exact:r,status:s,predicate:u,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(r){if(il(i.options.mutationKey)!==il(f))return!1}else if(!dr(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||u&&!u(i))}function Wf(n,i){return(i?.queryKeyHashFn||il)(n)}function il(n){return JSON.stringify(n,(i,r)=>wf(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function dr(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(r=>dr(n[r],i[r])):!1}var JR=Object.prototype.hasOwnProperty;function M0(n,i,r=0){if(n===i)return n;if(r>500)return i;const s=lg(n)&&lg(i);if(!s&&!(wf(n)&&wf(i)))return i;const f=(s?n:Object.keys(n)).length,h=s?i:Object.keys(i),m=h.length,v=s?new Array(m):{};let g=0;for(let x=0;x<m;x++){const b=s?x:h[x],E=n[b],C=i[b];if(E===C){v[b]=E,(s?x<f:JR.call(n,b))&&g++;continue}if(E===null||C===null||typeof E!="object"||typeof C!="object"){v[b]=C;continue}const j=M0(E,C,r+1);v[b]=j,j===E&&g++}return f===m&&g===f?n:v}function ro(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function lg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function wf(n){if(!ig(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!ig(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function ig(n){return Object.prototype.toString.call(n)==="[object Object]"}function WR(n){return new Promise(i=>{Ia.setTimeout(i,n)})}function Ef(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?M0(n,i):i}function IR(n,i,r=0){const s=[...n,i];return r&&s.length>r?s.slice(1):s}function ej(n,i,r=0){const s=[i,...n];return r&&s.length>r?s.slice(0,-1):s}var If=Symbol();function z0(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===If?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function ed(n,i){return typeof n=="function"?n(...i):!!n}function tj(n,i,r){let s=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=i(),s||(s=!0,u.aborted?r():u.addEventListener("abort",r,{once:!0})),u)}),n}var nj=class extends ci{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!ll&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},td=new nj;function Cf(){let n,i;const r=new Promise((u,f)=>{n=u,i=f});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),n(u)},r.reject=u=>{s({status:"rejected",reason:u}),i(u)},r}var aj=FR;function lj(){let n=[],i=0,r=m=>{m()},s=m=>{m()},u=aj;const f=m=>{i?n.push(m):u(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&u(()=>{s(()=>{m.forEach(v=>{r(v)})})})};return{batch:m=>{let v;i++;try{v=m()}finally{i--,i||h()}return v},batchCalls:m=>(...v)=>{f(()=>{m(...v)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{u=m}}}var rt=lj(),ij=class extends ci{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!ll&&window.addEventListener){const i=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(r=>{r(n)}))}isOnline(){return this.#e}},so=new ij;function rj(n){return Math.min(1e3*2**n,3e4)}function D0(n){return(n??"online")==="online"?so.isOnline():!0}var Nf=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function L0(n){let i=!1,r=0,s;const u=Cf(),f=()=>u.status!=="pending",h=S=>{if(!f()){const N=new Nf(S);E(N),n.onCancel?.(N)}},m=()=>{i=!0},v=()=>{i=!1},g=()=>td.isFocused()&&(n.networkMode==="always"||so.isOnline())&&n.canRun(),x=()=>D0(n.networkMode)&&n.canRun(),b=S=>{f()||(s?.(),u.resolve(S))},E=S=>{f()||(s?.(),u.reject(S))},C=()=>new Promise(S=>{s=N=>{(f()||g())&&S(N)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),j=()=>{if(f())return;let S;const N=r===0?n.initialPromise:void 0;try{S=N??n.fn()}catch(T){S=Promise.reject(T)}Promise.resolve(S).then(b).catch(T=>{if(f())return;const A=n.retry??(ll?0:3),z=n.retryDelay??rj,G=typeof z=="function"?z(r,T):z,L=A===!0||typeof A=="number"&&r<A||typeof A=="function"&&A(r,T);if(i||!L){E(T);return}r++,n.onFail?.(r,T),WR(G).then(()=>g()?void 0:C()).then(()=>{i?E(T):j()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(s?.(),u),cancelRetry:m,continueRetry:v,canStart:x,start:()=>(x()?j():C().then(j),u)}}var U0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sf(this.gcTime)&&(this.#e=Ia.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ll?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Ia.clearTimeout(this.#e),this.#e=void 0)}},sj=class extends U0{#e;#t;#n;#l;#a;#r;#s;constructor(n){super(),this.#s=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#n=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=sg(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=sg(this.options);i.data!==void 0&&(this.setState(rg(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const r=Ef(this.state.data,n,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(n,i){this.#i({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>rn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===If||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Ra(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!_0(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},u=()=>{const m=z0(this.options,i),g=(()=>{const x={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(x),x})();return this.#s=!1,this.options.persister?this.options.persister(m,g,this):m(g)},h=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:u};return s(m),m})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=L0({initialPromise:i?.initialPromise,fn:h.fetchFn,onCancel:m=>{m instanceof Nf&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(m,v)=>{this.#i({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Nf){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(n){const i=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...H0(r.data,this.options),fetchMeta:n.meta??null};case"success":const s={...r,...rg(n.data,n.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const u=n.error;return{...r,error:u,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=i(this.state),rt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function H0(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:D0(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function rg(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function sg(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,s=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var oj=class extends ci{constructor(n,i){super(),this.options=i,this.#e=n,this.#i=null,this.#s=Cf(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#l=void 0;#a;#r;#s;#i;#p;#d;#h;#c;#u;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),og(this.#t,this.options)?this.#f():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),i._defaulted&&!ro(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&cg(this.#t,r,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==r||rn(this.options.enabled,this.#t)!==rn(i.enabled,this.#t)||Ra(this.options.staleTime,this.#t)!==Ra(i.staleTime,this.#t))&&this.#v();const u=this.#g();s&&(this.#t!==r||rn(this.options.enabled,this.#t)!==rn(i.enabled,this.#t)||u!==this.#o)&&this.#y(u)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),r=this.createResult(i,n);return uj(this,r)&&(this.#l=r,this.#r=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#l}trackResult(n,i){return new Proxy(n,{get:(r,s)=>(this.trackProp(s),i?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),r=this.#e.getQueryCache().build(this.#e,i);return r.fetch().then(()=>this.createResult(r,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(n){this.#w();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(Nt)),i}#v(){this.#b();const n=Ra(this.options.staleTime,this.#t);if(ll||this.#l.isStale||!Sf(n))return;const r=_0(this.#l.dataUpdatedAt,n)+1;this.#c=Ia.setTimeout(()=>{this.#l.isStale||this.updateResult()},r)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(ll||rn(this.options.enabled,this.#t)===!1||!Sf(this.#o)||this.#o===0)&&(this.#u=Ia.setInterval(()=>{(this.options.refetchIntervalInBackground||td.isFocused())&&this.#f()},this.#o))}#x(){this.#v(),this.#y(this.#g())}#b(){this.#c&&(Ia.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(Ia.clearInterval(this.#u),this.#u=void 0)}createResult(n,i){const r=this.#t,s=this.options,u=this.#l,f=this.#a,h=this.#r,v=n!==r?n.state:this.#n,{state:g}=n;let x={...g},b=!1,E;if(i._optimisticResults){const X=this.hasListeners(),I=!X&&og(n,i),se=X&&cg(n,r,i,s);(I||se)&&(x={...x,...H0(g.data,n.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:C,errorUpdatedAt:j,status:S}=x;E=x.data;let N=!1;if(i.placeholderData!==void 0&&E===void 0&&S==="pending"){let X;u?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(X=u.data,N=!0):X=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,X!==void 0&&(S="success",E=Ef(u?.data,X,i),b=!0)}if(i.select&&E!==void 0&&!N)if(u&&E===f?.data&&i.select===this.#p)E=this.#d;else try{this.#p=i.select,E=i.select(E),E=Ef(u?.data,E,i),this.#d=E,this.#i=null}catch(X){this.#i=X}this.#i&&(C=this.#i,E=this.#d,j=Date.now(),S="error");const T=x.fetchStatus==="fetching",A=S==="pending",z=S==="error",G=A&&T,L=E!==void 0,V={status:S,fetchStatus:x.fetchStatus,isPending:A,isSuccess:S==="success",isError:z,isInitialLoading:G,isLoading:G,data:E,dataUpdatedAt:x.dataUpdatedAt,error:C,errorUpdatedAt:j,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>v.dataUpdateCount||x.errorUpdateCount>v.errorUpdateCount,isFetching:T,isRefetching:T&&!A,isLoadingError:z&&!L,isPaused:x.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:z&&L,isStale:nd(n,i),refetch:this.refetch,promise:this.#s,isEnabled:rn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const X=V.data!==void 0,I=V.status==="error"&&!X,se=pe=>{I?pe.reject(V.error):X&&pe.resolve(V.data)},ue=()=>{const pe=this.#s=V.promise=Cf();se(pe)},oe=this.#s;switch(oe.status){case"pending":n.queryHash===r.queryHash&&se(oe);break;case"fulfilled":(I||V.data!==oe.value)&&ue();break;case"rejected":(!I||V.error!==oe.reason)&&ue();break}}return V}updateResult(){const n=this.#l,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#r=this.options,this.#a.data!==void 0&&(this.#h=this.#t),ro(i,n))return;this.#l=i;const r=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.#m.size)return!0;const f=new Set(u??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#l).some(h=>{const m=h;return this.#l[m]!==n[m]&&f.has(m)})};this.#E({listeners:r()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#E(n){rt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cj(n,i){return rn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function og(n,i){return cj(n,i)||n.state.data!==void 0&&Rf(n,i,i.refetchOnMount)}function Rf(n,i,r){if(rn(i.enabled,n)!==!1&&Ra(i.staleTime,n)!=="static"){const s=typeof r=="function"?r(n):r;return s==="always"||s!==!1&&nd(n,i)}return!1}function cg(n,i,r,s){return(n!==i||rn(s.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&nd(n,r)}function nd(n,i){return rn(i.enabled,n)!==!1&&n.isStaleByTime(Ra(i.staleTime,n))}function uj(n,i){return!ro(n.getCurrentResult(),i)}function ug(n){return{onFetch:(i,r)=>{const s=i.options,u=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const g=async()=>{let x=!1;const b=j=>{tj(j,()=>i.signal,()=>x=!0)},E=z0(i.options,i.fetchOptions),C=async(j,S,N)=>{if(x)return Promise.reject();if(S==null&&j.pages.length)return Promise.resolve(j);const A=(()=>{const J={client:i.client,queryKey:i.queryKey,pageParam:S,direction:N?"backward":"forward",meta:i.options.meta};return b(J),J})(),z=await E(A),{maxPages:G}=i.options,L=N?ej:IR;return{pages:L(j.pages,z,G),pageParams:L(j.pageParams,S,G)}};if(u&&f.length){const j=u==="backward",S=j?fj:fg,N={pages:f,pageParams:h},T=S(s,N);m=await C(N,T,j)}else{const j=n??f.length;do{const S=v===0?h[0]??s.initialPageParam:fg(s,m);if(v>0&&S==null)break;m=await C(m,S),v++}while(v<j)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(g,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=g}}}function fg(n,{pages:i,pageParams:r}){const s=i.length-1;return i.length>0?n.getNextPageParam(i[s],i,r[s],r):void 0}function fj(n,{pages:i,pageParams:r}){return i.length>0?n.getPreviousPageParam?.(i[0],i,r[0],r):void 0}var dj=class extends U0{#e;#t;#n;#l;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||k0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=L0({fn:()=>this.options.mutationFn?this.options.mutationFn(n,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",u=!this.#l.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:u}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,r);const h=await this.options.onMutate?.(n,r);h!==this.state.context&&this.#a({type:"pending",context:h,variables:n,isPaused:u})}const f=await this.#l.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,r),await this.options.onSuccess?.(f,n,this.state.context,r),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,n,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,n,this.state.context,r)}catch(h){Promise.reject(h)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,r)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const i=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),rt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function k0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hj=class extends ci{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,r){const s=new dj({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:r});return this.add(s),s}add(n){this.#e.add(n);const i=Qs(n);if(typeof i=="string"){const r=this.#t.get(i);r?r.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=Qs(n);if(typeof i=="string"){const r=this.#t.get(i);if(r)if(r.length>1){const s=r.indexOf(n);s!==-1&&r.splice(s,1)}else r[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Qs(n);if(typeof i=="string"){const s=this.#t.get(i)?.find(u=>u.state.status==="pending");return!s||s===n}else return!0}runNext(n){const i=Qs(n);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){rt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(r=>ag(i,r))}findAll(n={}){return this.getAll().filter(i=>ag(n,i))}notify(n){rt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return rt.batch(()=>Promise.all(n.map(i=>i.continue().catch(Nt))))}};function Qs(n){return n.options.scope?.id}var mj=class extends ci{#e;#t=void 0;#n;#l;constructor(i,r){super(),this.#e=i,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const r=this.options;this.options=this.#e.defaultMutationOptions(i),ro(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&il(r.mutationKey)!==il(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#r(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#r()}mutate(i,r){return this.#l=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??k0();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#r(i){rt.batch(()=>{if(this.#l&&this.hasListeners()){const r=this.#t.variables,s=this.#t.context,u={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#l.onSuccess?.(i.data,r,s,u)}catch(f){Promise.reject(f)}try{this.#l.onSettled?.(i.data,null,r,s,u)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#l.onError?.(i.error,r,s,u)}catch(f){Promise.reject(f)}try{this.#l.onSettled?.(void 0,i.error,r,s,u)}catch(f){Promise.reject(f)}}}this.listeners.forEach(r=>{r(this.#t)})})}},pj=class extends ci{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,r){const s=i.queryKey,u=i.queryHash??Wf(s,i);let f=this.get(u);return f||(f=new sj({client:n,queryKey:s,queryHash:u,options:n.defaultQueryOptions(i),state:r,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){rt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(r=>ng(i,r))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(r=>ng(n,r)):i}notify(n){rt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},vj=class{#e;#t;#n;#l;#a;#r;#s;#i;constructor(n={}){this.#e=n.queryCache||new pj,this.#t=n.mutationCache||new hj,this.#n=n.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=td.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=so.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),r=this.#e.build(this,i),s=r.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Ra(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:r})=>{const s=r.data;return[i,s]})}setQueryData(n,i,r){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,h=$R(i,f);if(h!==void 0)return this.#e.build(this,s).setData(h,{...r,manual:!0})}setQueriesData(n,i,r){return rt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,i,r)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;rt.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(n,i){const r=this.#e;return rt.batch(()=>(r.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const r={revert:!0,...i},s=rt.batch(()=>this.#e.findAll(n).map(u=>u.cancel(r)));return Promise.all(s).then(Nt).catch(Nt)}invalidateQueries(n,i={}){return rt.batch(()=>(this.#e.findAll(n).forEach(r=>{r.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},s=rt.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,r);return r.throwOnError||(f=f.catch(Nt)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(Nt)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(Ra(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Nt).catch(Nt)}fetchInfiniteQuery(n){return n.behavior=ug(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Nt).catch(Nt)}ensureInfiniteQueryData(n){return n.behavior=ug(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return so.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#l.set(il(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#l.values()],r={};return i.forEach(s=>{dr(n,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(n,i){this.#a.set(il(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],r={};return i.forEach(s=>{dr(n,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Wf(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===If&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},B0=y.createContext(void 0),q0=n=>{const i=y.useContext(B0);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},gj=({client:n,children:i})=>(y.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(B0.Provider,{value:n,children:i})),V0=y.createContext(!1),yj=()=>y.useContext(V0);V0.Provider;function xj(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var bj=y.createContext(xj()),Sj=()=>y.useContext(bj),wj=(n,i,r)=>{const s=r?.state.error&&typeof n.throwOnError=="function"?ed(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(i.isReset()||(n.retryOnMount=!1))},Ej=n=>{y.useEffect(()=>{n.clearReset()},[n])},Cj=({result:n,errorResetBoundary:i,throwOnError:r,query:s,suspense:u})=>n.isError&&!i.isReset()&&!n.isFetching&&s&&(u&&n.data===void 0||ed(r,[n.error,s])),Nj=n=>{if(n.suspense){const r=u=>u==="static"?u:Math.max(u??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...u)=>r(s(...u)):r(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Rj=(n,i)=>n.isLoading&&n.isFetching&&!i,jj=(n,i)=>n?.suspense&&i.isPending,dg=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function Tj(n,i,r){const s=yj(),u=Sj(),f=q0(),h=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h);const m=f.getQueryCache().get(h.queryHash);h._optimisticResults=s?"isRestoring":"optimistic",Nj(h),wj(h,u,m),Ej(u);const v=!f.getQueryCache().get(h.queryHash),[g]=y.useState(()=>new i(f,h)),x=g.getOptimisticResult(h),b=!s&&n.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(E=>{const C=b?g.subscribe(rt.batchCalls(E)):Nt;return g.updateResult(),C},[g,b]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),y.useEffect(()=>{g.setOptions(h)},[h,g]),jj(h,x))throw dg(h,g,u);if(Cj({result:x,errorResetBoundary:u,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw x.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(h,x),h.experimental_prefetchInRender&&!ll&&Rj(x,s)&&(v?dg(h,g,u):m?.promise)?.catch(Nt).finally(()=>{g.updateResult()}),h.notifyOnChangeProps?x:g.trackResult(x)}function Il(n,i){return Tj(n,oj)}function Na(n,i){const r=q0(),[s]=y.useState(()=>new mj(r,n));y.useEffect(()=>{s.setOptions(n)},[s,n]);const u=y.useSyncExternalStore(y.useCallback(h=>s.subscribe(rt.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=y.useCallback((h,m)=>{s.mutate(h,m).catch(Nt)},[s]);if(u.error&&ed(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}const Aj="http://localhost:8000";function bt(n,i){const r=new URL(n,Aj);return i&&Object.entries(i).forEach(([s,u])=>{u!=null&&r.searchParams.set(s,String(u))}),r.toString()}async function St(n,i){const r=await fetch(n,{headers:{"Content-Type":"application/json",...i?.headers},...i});if(!r.ok){const s=await r.json().catch(()=>({message:`HTTP ${r.status}: ${r.statusText}`}));throw new Error(s.message||`HTTP ${r.status}`)}if(r.status!==204)return r.json()}async function Oj(n){return St(bt("/api/v1/config/generate"),{method:"POST",body:JSON.stringify(n)})}async function _j(){return St(bt("/api/v1/config/current"),{method:"GET"})}async function Mj(n){return St(bt("/api/v1/config/load",{config_path:n}),{method:"POST"})}async function zj(){return St(bt("/api/v1/config/yaml"),{method:"GET"})}async function Dj(n){return St(bt("/api/v1/config/validate-path"),{method:"POST",body:JSON.stringify(n)})}async function Lj(){return St(bt("/api/v1/hardware/info"),{method:"GET"})}async function Uj(){return St(bt("/api/v1/install/status"),{method:"GET"})}async function Hj(n){return St(bt("/api/v1/install/check-path",{path:n}),{method:"GET"})}async function kj(n){return St(bt("/api/v1/install/setup"),{method:"POST",body:JSON.stringify(n)})}async function Bj(n){return St(bt(`/api/v1/install/tasks/${encodeURIComponent(n)}`),{method:"GET"})}async function qj(n,i){return St(bt(`/api/v1/install/tasks/${encodeURIComponent(n)}/logs`,i),{method:"GET"})}async function Vj(){return St(bt("/api/v1/server/status"),{method:"GET"})}async function Gj(n){return St(bt("/api/v1/server/start"),{method:"POST",body:JSON.stringify(n)})}async function Yj(n){return St(bt("/api/v1/server/stop"),{method:"POST",body:JSON.stringify(n)})}async function Qj(n){return St(bt("/api/v1/server/restart"),{method:"POST",body:JSON.stringify(n)})}async function Xj(n){return St(bt("/api/v1/server/logs",n),{method:"GET"})}function Pj(){const{wizardData:n,updateWizardData:i}=gr(),r=rl(),[s,u]=y.useState(n.installPath),[f,h]=y.useState(n.region),[m,v]=y.useState(n.serviceName),[g,x]=y.useState(n.port.toString()),[b,E]=y.useState({status:"idle"}),C=Na({mutationFn:Dj}),j=Na({mutationFn:Hj}),S=async()=>{if(!s.trim()){E({status:"error",message:"请输入安装路径"});return}E({status:"validating"});try{const L=await C.mutateAsync({path:s});if(!L.valid){E({status:"validated",pathResult:L});return}const J=await j.mutateAsync(s);if(i({installPath:s,region:f,serviceName:m,port:parseInt(g)||50051}),J.ready_to_start&&J.recommended_action==="start_existing"){r(`/server?path=${encodeURIComponent(s)}`);return}E({status:"validated",pathResult:L,installResult:J})}catch(L){E({status:"error",message:L instanceof Error?L.message:"验证失败,请重试"})}},N=L=>{L.region!==void 0&&h(L.region),L.serviceName!==void 0&&v(L.serviceName),L.port!==void 0&&x(L.port),i({installPath:s,region:L.region??f,serviceName:L.serviceName??m,port:parseInt(L.port??g)||50051})},T=b.status==="validating",A=b.status==="validated",G=A&&b.pathResult.valid===!0;return d.jsx(Wl,{title:"欢迎使用 Lumen",description:"让我们开始配置您的分布式推理系统",hidePrevButton:!0,children:d.jsxs("div",{className:"space-y-6",children:[d.jsxs(lt,{children:[d.jsx(Fl,{className:"h-4 w-4"}),d.jsx(it,{children:"请填写服务器上的安装路径。Lumen 将在此目录下创建环境并下载模型文件。"})]}),d.jsxs(st,{children:[d.jsxs(ot,{children:[d.jsxs(ct,{className:"flex items-center gap-2",children:[d.jsx(k2,{className:"h-5 w-5"}),"安装路径"]}),d.jsx(Dt,{children:"指定 Lumen 的工作目录,用于存储模型、缓存和配置文件"})]}),d.jsx(ut,{className:"space-y-4",children:d.jsxs("div",{className:"space-y-2",children:[d.jsx(or,{htmlFor:"installPath",children:"安装路径 *"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(Ks,{id:"installPath",placeholder:"~/.lumen 或 /opt/lumen",value:s,onChange:L=>{u(L.target.value),b.status!=="idle"&&E({status:"idle"})},onKeyDown:L=>{L.key==="Enter"&&S()},className:`font-mono flex-1 ${A&&b.pathResult.valid?"border-green-500":A&&b.pathResult.error||b.status==="error"?"border-red-500":""}`,disabled:T}),d.jsx(zt,{onClick:S,disabled:T||!s.trim(),className:"shrink-0",children:T?d.jsx(Pn,{className:"h-4 w-4 animate-spin"}):d.jsx(m2,{className:"h-4 w-4"})})]}),b.status==="error"&&d.jsxs(lt,{variant:"destructive",className:"mt-2",children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:b.message})]}),A&&b.pathResult.error&&d.jsxs(lt,{variant:"destructive",className:"mt-2",children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:b.pathResult.error})]}),A&&b.pathResult.warning&&d.jsxs(lt,{className:"mt-2 border-yellow-500 bg-yellow-50",children:[d.jsx(Fl,{className:"h-4 w-4 text-yellow-600"}),d.jsx(it,{className:"text-yellow-800",children:b.pathResult.warning})]}),A&&b.pathResult.valid&&d.jsxs(lt,{className:"mt-2 border-green-500 bg-green-50",children:[d.jsx(Bg,{className:"h-4 w-4 text-green-600"}),d.jsxs(it,{className:"text-green-800",children:["路径有效 • 可用空间:"," ",b.pathResult.free_space_gb?.toFixed(1)," GB",b.pathResult.exists?" • 目录已存在":" • 将创建新目录"]})]}),A&&b.installResult?.message&&d.jsxs(lt,{className:"mt-2 border-gray-200",children:[d.jsx(Fl,{className:"h-4 w-4 text-gray-500"}),d.jsx(it,{children:b.installResult.message})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"建议使用绝对路径,确保有足够的磁盘空间(至少 10GB)"})]})})]}),G&&d.jsxs(st,{children:[d.jsxs(ot,{children:[d.jsxs(ct,{className:"flex items-center gap-2",children:[d.jsx(Yg,{className:"h-5 w-5"}),"服务器配置"]}),d.jsx(Dt,{children:"配置 gRPC 服务器的基本参数"})]}),d.jsxs(ut,{className:"space-y-4",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(or,{htmlFor:"region",children:"区域 *"}),d.jsxs(BR,{value:f,onValueChange:L=>N({region:L}),children:[d.jsx(j0,{id:"region",children:d.jsx(qR,{})}),d.jsxs(O0,{children:[d.jsx(bf,{value:"cn",children:"中国 (CN)"}),d.jsx(bf,{value:"other",children:"国际 (International)"})]})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"影响模型下载源和优化策略"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(or,{htmlFor:"port",children:"端口号 *"}),d.jsx(Ks,{id:"port",type:"number",min:"1024",max:"65535",value:g,onChange:L=>N({port:L.target.value})}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"gRPC 服务监听端口(默认 50051)"})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(or,{htmlFor:"serviceName",children:"服务名称 *"}),d.jsx(Ks,{id:"serviceName",placeholder:"lumen-server",value:m,onChange:L=>N({serviceName:L.target.value})}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"用于 mDNS 服务发现的名称"})]})]})]}),G&&d.jsxs(st,{className:"bg-muted/50",children:[d.jsx(ot,{children:d.jsx(ct,{className:"text-base",children:"配置摘要"})}),d.jsx(ut,{children:d.jsxs("dl",{className:"space-y-2 text-sm",children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsx("dt",{className:"text-muted-foreground",children:"安装路径:"}),d.jsx("dd",{className:"font-mono font-medium",children:s||"未设置"})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("dt",{className:"text-muted-foreground",children:"区域:"}),d.jsx("dd",{className:"font-medium",children:f==="cn"?"中国 (CN)":"国际 (International)"})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("dt",{className:"text-muted-foreground",children:"服务地址:"}),d.jsxs("dd",{className:"font-mono font-medium",children:["0.0.0.0:",g]})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("dt",{className:"text-muted-foreground",children:"服务名称:"}),d.jsx("dd",{className:"font-medium",children:m})]})]})})]})]})})}const Kj=fo("inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Pe({className:n,variant:i,...r}){return d.jsx("div",{className:Ke(Kj({variant:i}),n),...r})}const Zj={cpu:d.jsx(of,{}),apple_silicon:d.jsx(K2,{}),nvidia_gpu:d.jsx(q2,{}),nvidia_gpu_high:d.jsx(Gg,{}),nvidia_jetson:d.jsx(Hg,{}),nvidia_jetson_high:d.jsx(uw,{}),intel_gpu:d.jsx(G2,{}),amd_gpu_win:d.jsx(T2,{}),amd_npu:d.jsx(yw,{}),rockchip_rk3588:d.jsx($2,{})};function Fj(){const{wizardData:n,updateWizardData:i}=gr(),[r,s]=y.useState(n.hardwarePreset),[u,f]=y.useState(null),[h,m]=y.useState([]),[v,g]=y.useState(!0),[x,b]=y.useState(null);y.useEffect(()=>{(async()=>{try{g(!0),b(null);const N=await Lj();f(N);const T=(N.presets||[]).map(A=>({...A,icon:Zj[A.name]||d.jsx(of,{}),recommended:A.name===N.recommended_preset}));m(T),!r&&N.recommended_preset&&s(N.recommended_preset)}catch(N){console.error("Failed to fetch hardware info:",N),b(N instanceof Error?N.message:"Failed to load hardware information")}finally{g(!1)}})()},[]),y.useEffect(()=>{if(r){const S=h.find(N=>N.name===r);S&&i({hardwarePreset:S.name,runtime:S.runtime,onnxProviders:S.providers&&S.providers.length>0?S.providers:null,rknnDevice:S.runtime==="rknn"?"rk3588":null})}},[r,h]);const E=S=>{s(S)},C=h.filter(S=>S.recommended),j=h.filter(S=>!S.recommended);return v?d.jsx(Wl,{title:"选择硬件配置",description:"根据您的硬件选择最适合的推理加速方案",children:d.jsx("div",{className:"flex items-center justify-center py-12",children:d.jsxs("div",{className:"text-center space-y-4",children:[d.jsx(Pn,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),d.jsx("p",{className:"text-muted-foreground",children:"正在检测硬件配置..."})]})})}):x?d.jsx(Wl,{title:"选择硬件配置",description:"根据您的硬件选择最适合的推理加速方案",children:d.jsxs(lt,{variant:"destructive",children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:x})]})}):d.jsx(Wl,{title:"选择硬件配置",description:"根据您的硬件选择最适合的推理加速方案",children:d.jsxs("div",{className:"space-y-6",children:[u&&d.jsxs(st,{children:[d.jsx(ot,{children:d.jsxs(ct,{className:"text-base flex items-center gap-2",children:[d.jsx(Fl,{className:"h-4 w-4"}),"系统信息"]})}),d.jsxs(ut,{children:[d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"平台"}),d.jsx("p",{className:"font-medium",children:u.platform})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"架构"}),d.jsx("p",{className:"font-medium",children:u.machine})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"处理器"}),d.jsx("p",{className:"font-medium",children:u.processor||"N/A"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"Python版本"}),d.jsx("p",{className:"font-medium",children:u.python_version})]})]}),u.recommended_preset&&d.jsx("div",{className:"mt-4 pt-4 border-t",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Pe,{variant:"default",className:"bg-green-500",children:"推荐配置"}),d.jsx("span",{className:"text-sm font-medium",children:h.find(S=>S.name===u.recommended_preset)?.name||u.recommended_preset}),u.all_drivers_available&&d.jsx(Pe,{variant:"outline",className:"text-xs text-green-600 border-green-600",children:"✓ 驱动就绪"})]})})]})]}),d.jsxs(lt,{children:[d.jsx(Fl,{className:"h-4 w-4"}),d.jsx(it,{children:"选择与您的硬件匹配的配置预设。推荐配置已针对性能和兼容性进行优化。"})]}),C.length>0&&d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("h3",{className:"text-lg font-semibold",children:"推荐配置"}),d.jsx(Pe,{variant:"default",children:"优化推荐"})]}),d.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:C.map(S=>d.jsxs(st,{className:`cursor-pointer transition-all hover:shadow-md ${r===S.name?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>E(S.name),children:[d.jsxs(ot,{children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsx("div",{className:"text-4xl mb-2",children:S.icon}),r===S.name&&d.jsx(Pe,{variant:"default",className:"bg-primary",children:"已选择"})]}),d.jsx(ct,{className:"text-lg",children:S.name}),d.jsx(Dt,{className:"text-sm",children:S.description})]}),d.jsx(ut,{children:d.jsxs("div",{className:"space-y-2 text-xs",children:[d.jsx("div",{className:"flex items-center gap-2",children:d.jsx(Pe,{variant:"outline",className:"text-xs",children:S.runtime.toUpperCase()})}),d.jsxs("div",{className:"text-muted-foreground",children:[d.jsx("p",{className:"font-medium mb-1",children:"提供商:"}),d.jsx("ul",{className:"space-y-0.5",children:S.providers&&S.providers.length>0?S.providers.map((N,T)=>d.jsxs("li",{children:["• ",N]},T)):d.jsx("li",{children:"• 默认配置"})})]})]})})]},S.name))})]}),j.length>0&&d.jsxs("div",{className:"space-y-4",children:[d.jsx("h3",{className:"text-lg font-semibold",children:"其他配置"}),d.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:j.map(S=>d.jsxs(st,{className:`cursor-pointer transition-all hover:shadow-md ${r===S.name?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>E(S.name),children:[d.jsxs(ot,{children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsx("div",{className:"text-4xl mb-2",children:S.icon}),r===S.name&&d.jsx(Pe,{variant:"default",className:"bg-primary",children:"已选择"})]}),d.jsx(ct,{className:"text-lg",children:S.name}),d.jsx(Dt,{className:"text-sm",children:S.description})]}),d.jsx(ut,{children:d.jsxs("div",{className:"space-y-2 text-xs",children:[d.jsx("div",{className:"flex items-center gap-2",children:d.jsx(Pe,{variant:"outline",className:"text-xs",children:S.runtime.toUpperCase()})}),d.jsxs("div",{className:"text-muted-foreground",children:[d.jsx("p",{className:"font-medium mb-1",children:"提供商:"}),d.jsx("ul",{className:"space-y-0.5",children:S.providers&&S.providers.length>0?S.providers.map((N,T)=>d.jsxs("li",{children:["• ",N]},T)):d.jsx("li",{children:"• 默认配置"})})]})]})})]},S.name))})]}),r&&d.jsxs(st,{className:"bg-muted/50",children:[d.jsx(ot,{children:d.jsxs(ct,{className:"text-base flex items-center gap-2",children:[d.jsx(of,{className:"h-4 w-4"}),"当前选择"]})}),d.jsx(ut,{children:d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"text-3xl",children:h.find(S=>S.name===r)?.icon}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"font-semibold",children:h.find(S=>S.name===r)?.name}),d.jsx("p",{className:"text-sm text-muted-foreground",children:h.find(S=>S.name===r)?.description})]})]})})]})]})})}const nf=[{id:"minimal",name:"最小化",description:"仅包含 OCR 服务",icon:d.jsx(mw,{}),services:["ocr"],recommended:!1,requirements:"最小资源占用,适合轻量级部署"},{id:"light_weight",name:"轻量级",description:"OCR + CLIP + Face",icon:d.jsx(L2,{}),services:["ocr","clip","face"],recommended:!0,requirements:"平衡性能和资源,适合大多数场景"},{id:"basic",name:"基础版",description:"OCR + CLIP + Face + VLM",icon:d.jsx(qg,{}),services:["ocr","clip","face","vlm"],recommended:!0,requirements:"完整功能,推荐用于生产环境"},{id:"brave",name:"完整版",description:"所有服务 + 高性能模型",icon:d.jsx(Gg,{}),services:["ocr","clip","face","vlm"],recommended:!1,requirements:"高性能配置,需要强大硬件支持"}],af=[{id:"ocr",name:"OCR",description:"文字识别服务 (PP-OCRv5)",package:"lumen-ocr",icon:d.jsx(iw,{}),required:!0},{id:"clip",name:"CLIP",description:"视觉-语言理解 (MobileCLIP/CN-CLIP)",package:"lumen-clip",icon:d.jsx(Q2,{}),required:!1},{id:"face",name:"Face",description:"人脸检测与识别 (Buffalo/Antelope)",package:"lumen-face",icon:d.jsx(aw,{}),required:!1},{id:"vlm",name:"VLM",description:"视觉语言模型 (FastVLM-0.5B)",package:"lumen-vlm",icon:d.jsx(Hg,{}),required:!1}];function $j(){const{wizardData:n,updateWizardData:i}=gr(),[r,s]=y.useState(n.servicePreset),u=y.useRef(null),{mutate:f,data:h,isPending:m,error:v}=Na({mutationFn:Oj,onSuccess:C=>{i({configGenerated:!0,configPath:C.config_path||void 0})},onError:()=>{i({configGenerated:!1})}}),g=v?.message||(h&&!h.success?h.message:null);y.useEffect(()=>{if(!r)return;const C=nf.find(S=>S.id===r);if(!C||!n.hardwarePreset)return;const j=[r,n.hardwarePreset,n.installPath||"~/.lumen",n.region,String(n.port),n.serviceName].join("|");j===u.current||m||(u.current=j,i({servicePreset:C.id,selectedServices:C.services,configGenerated:!1}),f({preset:n.hardwarePreset,region:n.region,cache_dir:n.installPath||"~/.lumen",port:n.port,service_name:n.serviceName,config_type:C.id,clip_model:null}))},[r,n.hardwarePreset,n.installPath,n.region,n.port,n.serviceName,f,i,m]);const x=C=>{s(C)},b=nf.filter(C=>C.recommended),E=nf.filter(C=>!C.recommended);return d.jsx(Wl,{title:"配置服务",description:"选择您需要启用的 AI 服务",children:d.jsxs("div",{className:"space-y-6",children:[d.jsxs(lt,{children:[d.jsx(Fl,{className:"h-4 w-4"}),d.jsxs(it,{children:["选择适合您需求的服务预设配置。配置将基于您选择的硬件预设(",n.hardwarePreset||"未选择",")自动生成。"]})]}),m&&d.jsxs(lt,{children:[d.jsx(Pn,{className:"h-4 w-4 animate-spin"}),d.jsx(it,{children:"正在生成配置文件..."})]}),h&&h.success&&d.jsxs(lt,{className:"border-green-500 bg-green-50",children:[d.jsx(Bg,{className:"h-4 w-4 text-green-600"}),d.jsxs(it,{className:"text-green-800",children:["配置生成成功!路径: ",h.config_path]})]}),g&&d.jsxs(lt,{variant:"destructive",children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:g})]}),d.jsxs("div",{className:"space-y-6",children:[b.length>0&&d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("h3",{className:"text-lg font-semibold",children:"推荐配置"}),d.jsx(Pe,{variant:"default",children:"优化推荐"})]}),d.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:b.map(C=>d.jsxs(st,{className:`cursor-pointer transition-all hover:shadow-md ${r===C.id?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>x(C.id),children:[d.jsxs(ot,{children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsx("div",{className:"text-4xl mb-2",children:C.icon}),r===C.id&&d.jsx(Pe,{variant:"default",className:"bg-primary",children:"已选择"})]}),d.jsx(ct,{className:"text-lg",children:C.name}),d.jsx(Dt,{className:"text-sm",children:C.description})]}),d.jsx(ut,{children:d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"包含服务:"}),d.jsx("div",{className:"flex flex-wrap gap-1",children:C.services.map(j=>{const S=af.find(N=>N.id===j);return d.jsxs(Pe,{variant:"secondary",className:"flex text-xs gap-2",children:[S?.icon," ",S?.name]},j)})})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:C.requirements})]})})]},C.id))})]}),E.length>0&&d.jsxs("div",{className:"space-y-4",children:[d.jsx("h3",{className:"text-lg font-semibold",children:"其他配置"}),d.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:E.map(C=>d.jsxs(st,{className:`cursor-pointer transition-all hover:shadow-md ${r===C.id?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>x(C.id),children:[d.jsxs(ot,{children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsx("div",{className:"text-4xl mb-2",children:C.icon}),r===C.id&&d.jsx(Pe,{variant:"default",className:"bg-primary",children:"已选择"})]}),d.jsx(ct,{className:"text-lg",children:C.name}),d.jsx(Dt,{className:"text-sm",children:C.description})]}),d.jsx(ut,{children:d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"包含服务:"}),d.jsx("div",{className:"flex flex-wrap gap-1",children:C.services.map(j=>{const S=af.find(N=>N.id===j);return d.jsxs(Pe,{variant:"secondary",className:"flex text-xs gap-2",children:[S?.icon," ",S?.name]},j)})})]}),d.jsx("p",{className:"text-xs text-muted-foreground",children:C.requirements})]})})]},C.id))})]})]}),d.jsxs(st,{className:"bg-muted/50",children:[d.jsx(ot,{children:d.jsxs(ct,{className:"text-base flex items-center gap-2",children:[d.jsx(qg,{className:"h-4 w-4"}),"已选择的服务"]})}),d.jsx(ut,{children:n.selectedServices.length>0?d.jsx("div",{className:"flex flex-wrap gap-2",children:n.selectedServices.map(C=>{const j=af.find(S=>S.id===C);return d.jsxs(Pe,{variant:"secondary",className:"flex text-xs gap-2",children:[j?.icon," ",j?.name]},C)})}):d.jsx("p",{className:"text-sm text-muted-foreground",children:"尚未选择任何服务"})})]})]})})}function Jj(n,i=[]){let r=[];function s(f,h){const m=y.createContext(h);m.displayName=f+"Context";const v=r.length;r=[...r,h];const g=b=>{const{scope:E,children:C,...j}=b,S=E?.[n]?.[v]||m,N=y.useMemo(()=>j,Object.values(j));return d.jsx(S.Provider,{value:N,children:C})};g.displayName=f+"Provider";function x(b,E){const C=E?.[n]?.[v]||m,j=y.useContext(C);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[g,x]}const u=()=>{const f=r.map(h=>y.createContext(h));return function(m){const v=m?.[n]||f;return y.useMemo(()=>({[`__scope${n}`]:{...m,[n]:v}}),[m,v])}};return u.scopeName=n,[s,Wj(u,...i)]}function Wj(...n){const i=n[0];if(n.length===1)return i;const r=()=>{const s=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const h=s.reduce((m,{useScope:v,scopeName:g})=>{const b=v(f)[`__scope${g}`];return{...m,...b}},{});return y.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}var ad="Progress",ld=100,[Ij]=Jj(ad),[eT,tT]=Ij(ad),G0=y.forwardRef((n,i)=>{const{__scopeProgress:r,value:s=null,max:u,getValueLabel:f=nT,...h}=n;(u||u===0)&&!hg(u)&&console.error(aT(`${u}`,"Progress"));const m=hg(u)?u:ld;s!==null&&!mg(s,m)&&console.error(lT(`${s}`,"Progress"));const v=mg(s,m)?s:null,g=oo(v)?f(v,m):void 0;return d.jsx(eT,{scope:r,value:v,max:m,children:d.jsx(qf.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":oo(v)?v:void 0,"aria-valuetext":g,role:"progressbar","data-state":X0(v,m),"data-value":v??void 0,"data-max":m,...h,ref:i})})});G0.displayName=ad;var Y0="ProgressIndicator",Q0=y.forwardRef((n,i)=>{const{__scopeProgress:r,...s}=n,u=tT(Y0,r);return d.jsx(qf.div,{"data-state":X0(u.value,u.max),"data-value":u.value??void 0,"data-max":u.max,...s,ref:i})});Q0.displayName=Y0;function nT(n,i){return`${Math.round(n/i*100)}%`}function X0(n,i){return n==null?"indeterminate":n===i?"complete":"loading"}function oo(n){return typeof n=="number"}function hg(n){return oo(n)&&!isNaN(n)&&n>0}function mg(n,i){return oo(n)&&!isNaN(n)&&n<=i&&n>=0}function aT(n,i){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${i}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ld}\`.`}function lT(n,i){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${i}\`. The \`value\` prop must be:
|
|
52
|
+
- a positive number
|
|
53
|
+
- less than the value passed to \`max\` (or ${ld} if no \`max\` prop is set)
|
|
54
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
55
|
+
|
|
56
|
+
Defaulting to \`null\`.`}var P0=G0,iT=Q0;const jf=y.forwardRef(({className:n,value:i,...r},s)=>d.jsx(P0,{ref:s,className:Ke("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...r,children:d.jsx(iT,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(i||0)}%)`}})}));jf.displayName=P0.displayName;function rT(){const{wizardData:n,updateWizardData:i}=gr(),[r,s]=y.useState(null),{data:u}=Il({queryKey:["installStatus"],queryFn:Uj}),{mutate:f,isPending:h,error:m}=Na({mutationFn:kj,onSuccess:N=>{s(N.task_id)}}),{data:v}=Il({queryKey:["installTask",r],queryFn:()=>Bj(r),enabled:r!==null,refetchInterval:N=>{const T=N.state.data;return T?.status==="completed"||T?.status==="failed"?!1:1e3}}),{data:g}=Il({queryKey:["installLogs",r],queryFn:()=>qj(r,{tail:100}),enabled:r!==null&&(v?.status==="running"||v?.status==="pending"),refetchInterval:2e3});y.useEffect(()=>{v?.status==="completed"&&i({installationComplete:!0})},[v?.status,i]);const x=()=>{n.hardwarePreset&&f({preset:n.hardwarePreset,cache_dir:n.installPath||"~/.lumen",environment_name:"lumen_env",force_reinstall:!1})},b=N=>{switch(N){case"completed":return d.jsx(Us,{className:"h-5 w-5 text-green-500"});case"running":return d.jsx(Pn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"failed":return d.jsx(on,{className:"h-5 w-5 text-red-500"});case"skipped":return d.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted-foreground"});default:return d.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted"})}},E=N=>{switch(N){case"completed":return d.jsx(Pe,{variant:"default",className:"bg-green-500",children:"完成"});case"running":return d.jsx(Pe,{variant:"secondary",children:"进行中"});case"failed":return d.jsx(Pe,{variant:"destructive",children:"错误"});case"skipped":return d.jsx(Pe,{variant:"outline",children:"跳过"});default:return d.jsx(Pe,{variant:"outline",children:"等待"})}},C=v?.status==="completed",j=v?.status==="failed",S=v?.status==="running"||h;return d.jsx(Wl,{title:"安装依赖",description:"下载并安装所需的运行环境和模型文件",children:d.jsxs("div",{className:"space-y-6",children:[d.jsxs(st,{children:[d.jsxs(ot,{children:[d.jsxs(ct,{className:"flex items-center gap-2",children:[d.jsx(z2,{className:"h-5 w-5"}),"安装进度"]}),d.jsx(Dt,{children:S?"正在安装,请稍候...":C?"所有任务已完成!":j?"安装失败,请查看错误信息":"点击开始按钮开始安装"})]}),d.jsxs(ut,{className:"space-y-4",children:[v&&d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex justify-between text-sm",children:[d.jsx("span",{className:"font-medium",children:"总体进度"}),d.jsxs("span",{className:"text-muted-foreground",children:[v.progress,"%"]})]}),d.jsx(jf,{value:v.progress,className:"h-2"}),v.current_step&&d.jsxs("p",{className:"text-sm text-muted-foreground",children:["当前步骤: ",v.current_step]})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"安装路径"}),d.jsx("p",{className:"font-mono font-medium truncate",children:n.installPath})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"硬件预设"}),d.jsx("p",{className:"font-medium",children:n.hardwarePreset||"未选择"})]})]}),u&&d.jsxs("div",{className:"rounded-lg border p-3 bg-muted/50",children:[d.jsx("p",{className:"text-sm font-medium mb-2",children:"系统状态"}),d.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[u.micromamba_installed?d.jsx(Us,{className:"h-3 w-3 text-green-500"}):d.jsx(on,{className:"h-3 w-3 text-yellow-500"}),d.jsx("span",{children:"Micromamba"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[u.environment_exists?d.jsx(Us,{className:"h-3 w-3 text-green-500"}):d.jsx(on,{className:"h-3 w-3 text-yellow-500"}),d.jsx("span",{children:"Python 环境"})]})]}),u.missing_components&&u.missing_components.length>0&&d.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["缺少组件: ",u.missing_components.join(", ")]})]}),!S&&!C&&!j&&d.jsxs("button",{onClick:x,disabled:!n.hardwarePreset,className:"w-full mt-4 flex items-center justify-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[d.jsx(Vg,{className:"h-4 w-4"}),"开始安装"]}),(m||j)&&d.jsxs(lt,{variant:"destructive",children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:m?.message||v?.error||"安装失败"})]}),C&&d.jsxs(lt,{className:"bg-green-50 border-green-200",children:[d.jsx(Us,{className:"h-4 w-4 text-green-600"}),d.jsx(it,{className:"text-green-800",children:"安装成功!您可以继续下一步启动服务。"})]})]})]}),v?.steps&&v.steps.length>0&&d.jsxs(st,{children:[d.jsxs(ot,{children:[d.jsx(ct,{children:"安装任务"}),d.jsx(Dt,{children:"各项安装任务的详细状态"})]}),d.jsx(ut,{className:"space-y-3",children:v.steps.map((N,T)=>d.jsx("div",{className:"flex items-center justify-between rounded-lg border p-4",children:d.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[b(N.status),d.jsxs("div",{className:"flex-1",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("p",{className:"font-medium",children:N.name}),E(N.status)]}),d.jsx("p",{className:"text-sm text-muted-foreground",children:N.message}),N.status==="running"&&N.progress>0&&d.jsx("div",{className:"mt-2",children:d.jsx(jf,{value:N.progress,className:"h-1"})})]})]})},T))})]}),g&&g.logs&&g.logs.length>0&&d.jsxs(st,{children:[d.jsxs(ot,{children:[d.jsx(ct,{children:"安装日志"}),d.jsxs(Dt,{children:["实时安装过程输出 (最近 ",g.logs.length," 行 / 共"," ",g.total_lines," 行)"]})]}),d.jsx(ut,{children:d.jsx("div",{className:"rounded-md bg-muted p-4 font-mono text-xs max-h-64 overflow-y-auto",children:g.logs.map((N,T)=>d.jsx("div",{className:"text-muted-foreground",children:N},T))})})]})]})})}function sT(){const[n]=WS(),i=rl(),[r,s]=y.useState(!1),[u,f]=y.useState(!1),[h,m]=y.useState(""),[v,g]=y.useState(!1),x=n.get("path"),b=Na({mutationFn:ie=>Mj(ie)}),{data:E,isLoading:C,refetch:j}=Il({queryKey:["currentConfig"],queryFn:_j,staleTime:6e4,enabled:!b.isPending});y.useEffect(()=>{if(x){const ie=`${x}/lumen-config.yaml`;b.mutate(ie,{onSuccess:()=>{j()}})}},[x]);const S=E?.loaded?E:null,N=x||S?.cache_dir||"~/.lumen",T=x?`${x}/lumen-config.yaml`:S?.cache_dir?`${S.cache_dir}/lumen-config.yaml`:void 0,A=S?.port||50051,z=!!(x||S),G=!C&&S!==null,{data:L,refetch:J,isLoading:V}=Il({queryKey:["serverStatus"],queryFn:Vj,refetchInterval:r?2e3:!1}),{data:X,refetch:I}=Il({queryKey:["serverLogs"],queryFn:()=>Xj({lines:100}),enabled:L?.running||!1,refetchInterval:r&&L?.running?2e3:!1}),{mutate:se,isPending:ue,error:oe}=Na({mutationFn:Gj,onSuccess:()=>{s(!0),J(),setTimeout(()=>I(),1e3)}}),{mutate:pe,isPending:he,error:ve}=Na({mutationFn:Yj,onSuccess:()=>{J()}}),{mutate:D,isPending:K,error:B}=Na({mutationFn:Qj,onSuccess:()=>{s(!0),J(),setTimeout(()=>I(),1e3)}}),le=()=>{se({config_path:T,port:A,host:"0.0.0.0",environment:"lumen_env"})},me=()=>{pe({force:!1,timeout:30})},O=()=>{D({config_path:T,port:A,host:"0.0.0.0",environment:"lumen_env",force:!1,timeout:30})},Q=ie=>{switch(ie){case"healthy":return d.jsx(Pe,{variant:"default",className:"bg-green-500",children:"健康"});case"unhealthy":return d.jsx(Pe,{variant:"destructive",children:"异常"});default:return d.jsx(Pe,{variant:"secondary",children:"未知"})}},F=ue||he||K,W=oe||ve||B,re=async()=>{try{const ie=await zj();ie.loaded&&ie.yaml&&(m(ie.yaml),f(!0))}catch(ie){console.error("Failed to load YAML:",ie)}},de=async()=>{try{await navigator.clipboard.writeText(h),g(!0),setTimeout(()=>g(!1),2e3)}catch(ie){console.error("Failed to copy:",ie)}},$=!C&&!z;return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx("header",{className:"border-b bg-card",children:d.jsx("div",{className:"container mx-auto px-4 py-4",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(zt,{variant:"ghost",size:"icon",onClick:()=>i("/welcome"),children:d.jsx(d2,{className:"h-5 w-5"})}),d.jsxs("div",{children:[d.jsxs("h1",{className:"text-xl font-semibold flex items-center gap-2",children:[d.jsx(sw,{className:"h-5 w-5"}),"Lumen 服务管理"]}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"管理和监控 Lumen 推理服务器"})]})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(zt,{variant:"outline",size:"sm",onClick:re,disabled:!z,children:[d.jsx(wv,{className:"h-4 w-4 mr-2"}),"查看配置"]}),d.jsxs(zt,{variant:"outline",size:"sm",onClick:()=>i("/welcome"),children:[d.jsx(Yg,{className:"h-4 w-4 mr-2"}),"重新配置"]})]})]})})}),d.jsx("main",{className:"container mx-auto px-4 py-6",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-6",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[$&&d.jsxs(lt,{className:"border-yellow-500 bg-yellow-50",children:[d.jsx(on,{className:"h-4 w-4 text-yellow-600"}),d.jsx(it,{className:"text-yellow-800",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{children:"未检测到有效配置,请先完成安装向导或指定正确的安装路径。"}),d.jsx(zt,{variant:"outline",size:"sm",onClick:()=>i("/welcome"),className:"ml-4 border-yellow-600 text-yellow-700 hover:bg-yellow-100",children:"前往配置"})]})})]}),d.jsxs(st,{children:[d.jsx(ot,{children:d.jsx(ct,{className:"text-base",children:"当前配置"})}),d.jsx(ut,{children:C?d.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[d.jsx(Pn,{className:"h-4 w-4 animate-spin"}),"加载配置中..."]}):G?d.jsxs("dl",{className:"grid grid-cols-2 gap-4 text-sm",children:[d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground",children:"安装路径"}),d.jsx("dd",{className:"font-mono font-medium",children:N})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground",children:"服务端口"}),d.jsxs("dd",{className:"font-mono font-medium",children:["0.0.0.0:",A]})]}),T&&d.jsxs("div",{className:"col-span-2",children:[d.jsx("dt",{className:"text-muted-foreground",children:"配置文件"}),d.jsx("dd",{className:"font-mono text-xs truncate",children:T})]})]}):d.jsx("p",{className:"text-sm text-muted-foreground",children:"暂无配置信息。请通过安装向导完成配置,或确保已正确指定安装路径。"})})]}),d.jsxs(st,{children:[d.jsxs(ot,{children:[d.jsx(ct,{children:"服务器状态"}),d.jsx(Dt,{children:V?"正在获取状态...":"查看服务器实时运行状态"})]}),d.jsx(ut,{className:"space-y-4",children:V?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Pn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border bg-muted/50",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`h-3 w-3 rounded-full ${L.running?"bg-green-500 animate-pulse":"bg-red-500"}`}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium",children:L.running?"运行中":"已停止"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:L.running?`PID: ${L.pid} • 运行时间: ${Math.floor((L.uptime_seconds||0)/60)} 分钟`:"服务器未运行"})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[L.running&&Q(L.health),d.jsx(Pe,{variant:L.running?"default":"secondary",className:L.running?"bg-green-500":"",children:L.running?"运行中":"已停止"})]})]}),L.running&&d.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"监听地址"}),d.jsxs("p",{className:"font-mono font-medium",children:[L.host,":",L.port]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"服务名称"}),d.jsx("p",{className:"font-medium",children:L.service_name})]}),L.config_path&&d.jsxs("div",{className:"col-span-2",children:[d.jsx("p",{className:"text-muted-foreground",children:"配置文件"}),d.jsx("p",{className:"font-mono text-xs truncate",children:L.config_path})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-muted-foreground",children:"环境"}),d.jsx("p",{className:"font-medium",children:L.environment})]})]}),L.last_error&&d.jsxs(lt,{variant:"destructive",children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:L.last_error})]})]}):d.jsxs(lt,{children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:"无法获取服务器状态"})]})})]}),d.jsxs(st,{children:[d.jsxs(ot,{children:[d.jsx(ct,{children:"服务器控制"}),d.jsx(Dt,{children:"启动、停止或重启 Lumen 推理服务器"})]}),d.jsxs(ut,{className:"space-y-4",children:[W&&d.jsxs(lt,{variant:"destructive",children:[d.jsx(on,{className:"h-4 w-4"}),d.jsx(it,{children:W.message||"操作失败"})]}),d.jsx("div",{className:"flex gap-3",children:L?.running?d.jsxs(d.Fragment,{children:[d.jsxs(zt,{onClick:me,disabled:F,variant:"destructive",className:"flex-1",size:"lg",children:[he?d.jsx(Pn,{className:"h-4 w-4 animate-spin mr-2"}):d.jsx(dw,{className:"h-4 w-4 mr-2"}),he?"停止中...":"停止服务器"]}),d.jsxs(zt,{onClick:O,disabled:F,variant:"outline",className:"flex-1 border-orange-500 text-orange-600 hover:bg-orange-50",size:"lg",children:[K?d.jsx(Pn,{className:"h-4 w-4 animate-spin mr-2"}):d.jsx(ew,{className:"h-4 w-4 mr-2"}),K?"重启中...":"重启服务器"]})]}):d.jsxs(zt,{onClick:le,disabled:F||!z,className:"flex-1",size:"lg",children:[ue?d.jsx(Pn,{className:"h-4 w-4 animate-spin mr-2"}):d.jsx(Vg,{className:"h-4 w-4 mr-2"}),ue?"启动中...":z?"启动服务器":"需要配置"]})}),d.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border bg-muted/50",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:"自动刷新"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"每 2 秒更新状态和日志"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:r,onChange:ie=>s(ie.target.checked),className:"sr-only peer"}),d.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary/20 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"})]})]})]})]})]}),d.jsx("div",{className:"lg:col-span-3",children:L?.running&&X&&X.logs?d.jsxs(st,{className:"sticky top-6",children:[d.jsxs(ot,{children:[d.jsx(ct,{className:"text-base",children:"服务器日志"}),d.jsxs(Dt,{className:"text-xs",children:["最近 ",X.logs.length," 行 / 共"," ",X.total_lines," 行"]})]}),d.jsx(ut,{children:d.jsx("div",{className:"rounded-md bg-muted p-3 font-mono text-xs h-[calc(100vh-16rem)] overflow-y-auto",children:X.logs.length>0?X.logs.map((ie,ge)=>d.jsx("div",{className:"text-muted-foreground mb-1",children:ie},ge)):d.jsx("div",{className:"text-muted-foreground text-center py-4",children:"暂无日志"})})})]}):d.jsxs(st,{className:"sticky top-6",children:[d.jsxs(ot,{children:[d.jsx(ct,{className:"text-base",children:"服务器日志"}),d.jsx(Dt,{className:"text-xs",children:"服务器运行时显示日志"})]}),d.jsx(ut,{children:d.jsx("div",{className:"rounded-md bg-muted p-4 text-center text-muted-foreground text-sm",children:"服务器未运行"})})]})})]})}),u&&d.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:d.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[80vh] flex flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[d.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[d.jsx(wv,{className:"h-5 w-5"}),"配置文件内容"]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(zt,{variant:"outline",size:"sm",onClick:de,disabled:v,children:v?d.jsxs(d.Fragment,{children:[d.jsx(Hf,{className:"h-4 w-4 mr-2"}),"已复制"]}):d.jsxs(d.Fragment,{children:[d.jsx(O2,{className:"h-4 w-4 mr-2"}),"复制"]})}),d.jsx(zt,{variant:"ghost",size:"sm",onClick:()=>f(!1),children:d.jsx(vw,{className:"h-4 w-4"})})]})]}),d.jsx("div",{className:"flex-1 overflow-auto p-4",children:d.jsx("pre",{className:"bg-muted p-4 rounded-md text-xs font-mono overflow-x-auto",children:h})}),d.jsx("div",{className:"flex justify-end gap-2 p-4 border-t",children:d.jsx(zt,{variant:"outline",onClick:()=>f(!1),children:"关闭"})})]})})]})}const oT=new vj;function cT(){return d.jsx(gj,{client:oT,children:d.jsxs(wS,{children:[d.jsx(Wa,{path:"/",element:d.jsx(rr,{children:d.jsx(bS,{to:"/welcome",replace:!0})})}),d.jsx(Wa,{path:"/welcome",element:d.jsx(rr,{children:d.jsx(Pj,{})})}),d.jsx(Wa,{path:"/hardware",element:d.jsx(rr,{children:d.jsx(Fj,{})})}),d.jsx(Wa,{path:"/config",element:d.jsx(rr,{children:d.jsx($j,{})})}),d.jsx(Wa,{path:"/install",element:d.jsx(rr,{children:d.jsx(rT,{})})}),d.jsx(Wa,{path:"/server",element:d.jsx(sT,{})})]})})}function uT({children:n}){return d.jsx(d.Fragment,{children:n})}C1.createRoot(document.getElementById("root")).render(d.jsx(y.StrictMode,{children:d.jsx(KS,{children:d.jsx(uT,{children:d.jsx(cT,{})})})}));
|