351 lines
368 KiB
JavaScript
351 lines
368 KiB
JavaScript
function Um(s,u){for(var a=0;a<u.length;a++){const c=u[a];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in s)){const h=Object.getOwnPropertyDescriptor(c,f);h&&Object.defineProperty(s,f,h.get?h:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function a(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(f){if(f.ep)return;f.ep=!0;const h=a(f);fetch(f.href,h)}})();function Qd(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Fa={exports:{}},lo={},$a={exports:{}},je={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var md;function Bm(){if(md)return je;md=1;var s=Symbol.for("react.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),M=Symbol.iterator;function _(k){return k===null||typeof k!="object"?null:(k=M&&k[M]||k["@@iterator"],typeof k=="function"?k:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,w={};function z(k,x,F){this.props=k,this.context=x,this.refs=w,this.updater=F||O}z.prototype.isReactComponent={},z.prototype.setState=function(k,x){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,x,"setState")},z.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function A(){}A.prototype=z.prototype;function R(k,x,F){this.props=k,this.context=x,this.refs=w,this.updater=F||O}var I=R.prototype=new A;I.constructor=R,D(I,z.prototype),I.isPureReactComponent=!0;var G=Array.isArray,Z=Object.prototype.hasOwnProperty,K={current:null},oe={key:!0,ref:!0,__self:!0,__source:!0};function he(k,x,F){var q,H={},te=null,le=null;if(x!=null)for(q in x.ref!==void 0&&(le=x.ref),x.key!==void 0&&(te=""+x.key),x)Z.call(x,q)&&!oe.hasOwnProperty(q)&&(H[q]=x[q]);var P=arguments.length-2;if(P===1)H.children=F;else if(1<P){for(var Y=Array(P),xe=0;xe<P;xe++)Y[xe]=arguments[xe+2];H.children=Y}if(k&&k.defaultProps)for(q in P=k.defaultProps,P)H[q]===void 0&&(H[q]=P[q]);return{$$typeof:s,type:k,key:te,ref:le,props:H,_owner:K.current}}function de(k,x){return{$$typeof:s,type:k.type,key:x,ref:k.ref,props:k.props,_owner:k._owner}}function T(k){return typeof k=="object"&&k!==null&&k.$$typeof===s}function me(k){var x={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(F){return x[F]})}var ce=/\/+/g;function Ee(k,x){return typeof k=="object"&&k!==null&&k.key!=null?me(""+k.key):x.toString(36)}function J(k,x,F,q,H){var te=typeof k;(te==="undefined"||te==="boolean")&&(k=null);var le=!1;if(k===null)le=!0;else switch(te){case"string":case"number":le=!0;break;case"object":switch(k.$$typeof){case s:case u:le=!0}}if(le)return le=k,H=H(le),k=q===""?"."+Ee(le,0):q,G(H)?(F="",k!=null&&(F=k.replace(ce,"$&/")+"/"),J(H,x,F,"",function(xe){return xe})):H!=null&&(T(H)&&(H=de(H,F+(!H.key||le&&le.key===H.key?"":(""+H.key).replace(ce,"$&/")+"/")+k)),x.push(H)),1;if(le=0,q=q===""?".":q+":",G(k))for(var P=0;P<k.length;P++){te=k[P];var Y=q+Ee(te,P);le+=J(te,x,F,Y,H)}else if(Y=_(k),typeof Y=="function")for(k=Y.call(k),P=0;!(te=k.next()).done;)te=te.value,Y=q+Ee(te,P++),le+=J(te,x,F,Y,H);else if(te==="object")throw x=String(k),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.");return le}function ke(k,x,F){if(k==null)return k;var q=[],H=0;return J(k,q,"","",function(te){return x.call(F,te,H++)}),q}function ye(k){if(k._status===-1){var x=k._result;x=x(),x.then(function(F){(k._status===0||k._status===-1)&&(k._status=1,k._result=F)},function(F){(k._status===0||k._status===-1)&&(k._status=2,k._result=F)}),k._status===-1&&(k._status=0,k._result=x)}if(k._status===1)return k._result.default;throw k._result}var be={current:null},W={transition:null},ee={ReactCurrentDispatcher:be,ReactCurrentBatchConfig:W,ReactCurrentOwner:K};function Q(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:ke,forEach:function(k,x,F){ke(k,function(){x.apply(this,arguments)},F)},count:function(k){var x=0;return ke(k,function(){x++}),x},toArray:function(k){return ke(k,function(x){return x})||[]},only:function(k){if(!T(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},je.Component=z,je.Fragment=a,je.Profiler=f,je.PureComponent=R,je.StrictMode=c,je.Suspense=N,je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,je.act=Q,je.cloneElement=function(k,x,F){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var q=D({},k.props),H=k.key,te=k.ref,le=k._owner;if(x!=null){if(x.ref!==void 0&&(te=x.ref,le=K.current),x.key!==void 0&&(H=""+x.key),k.type&&k.type.defaultProps)var P=k.type.defaultProps;for(Y in x)Z.call(x,Y)&&!oe.hasOwnProperty(Y)&&(q[Y]=x[Y]===void 0&&P!==void 0?P[Y]:x[Y])}var Y=arguments.length-2;if(Y===1)q.children=F;else if(1<Y){P=Array(Y);for(var xe=0;xe<Y;xe++)P[xe]=arguments[xe+2];q.children=P}return{$$typeof:s,type:k.type,key:H,ref:te,props:q,_owner:le}},je.createContext=function(k){return k={$$typeof:p,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:h,_context:k},k.Consumer=k},je.createElement=he,je.createFactory=function(k){var x=he.bind(null,k);return x.type=k,x},je.createRef=function(){return{current:null}},je.forwardRef=function(k){return{$$typeof:g,render:k}},je.isValidElement=T,je.lazy=function(k){return{$$typeof:j,_payload:{_status:-1,_result:k},_init:ye}},je.memo=function(k,x){return{$$typeof:C,type:k,compare:x===void 0?null:x}},je.startTransition=function(k){var x=W.transition;W.transition={};try{k()}finally{W.transition=x}},je.unstable_act=Q,je.useCallback=function(k,x){return be.current.useCallback(k,x)},je.useContext=function(k){return be.current.useContext(k)},je.useDebugValue=function(){},je.useDeferredValue=function(k){return be.current.useDeferredValue(k)},je.useEffect=function(k,x){return be.current.useEffect(k,x)},je.useId=function(){return be.current.useId()},je.useImperativeHandle=function(k,x,F){return be.current.useImperativeHandle(k,x,F)},je.useInsertionEffect=function(k,x){return be.current.useInsertionEffect(k,x)},je.useLayoutEffect=function(k,x){return be.current.useLayoutEffect(k,x)},je.useMemo=function(k,x){return be.current.useMemo(k,x)},je.useReducer=function(k,x,F){return be.current.useReducer(k,x,F)},je.useRef=function(k){return be.current.useRef(k)},je.useState=function(k){return be.current.useState(k)},je.useSyncExternalStore=function(k,x,F){return be.current.useSyncExternalStore(k,x,F)},je.useTransition=function(){return be.current.useTransition()},je.version="18.3.1",je}var hd;function di(){return hd||(hd=1,$a.exports=Bm()),$a.exports}/**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var gd;function Wm(){if(gd)return lo;gd=1;var s=di(),u=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function p(g,N,C){var j,M={},_=null,O=null;C!==void 0&&(_=""+C),N.key!==void 0&&(_=""+N.key),N.ref!==void 0&&(O=N.ref);for(j in N)c.call(N,j)&&!h.hasOwnProperty(j)&&(M[j]=N[j]);if(g&&g.defaultProps)for(j in N=g.defaultProps,N)M[j]===void 0&&(M[j]=N[j]);return{$$typeof:u,type:g,key:_,ref:O,props:M,_owner:f.current}}return lo.Fragment=a,lo.jsx=p,lo.jsxs=p,lo}var xd;function Vm(){return xd||(xd=1,Fa.exports=Wm()),Fa.exports}var n=Vm(),m=di();const Zd=Qd(m),fi=Um({__proto__:null,default:Zd},[m]);var js={},Ua={exports:{}},lt={},Ba={exports:{}},Wa={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var vd;function Hm(){return vd||(vd=1,(function(s){function u(W,ee){var Q=W.length;W.push(ee);e:for(;0<Q;){var k=Q-1>>>1,x=W[k];if(0<f(x,ee))W[k]=ee,W[Q]=x,Q=k;else break e}}function a(W){return W.length===0?null:W[0]}function c(W){if(W.length===0)return null;var ee=W[0],Q=W.pop();if(Q!==ee){W[0]=Q;e:for(var k=0,x=W.length,F=x>>>1;k<F;){var q=2*(k+1)-1,H=W[q],te=q+1,le=W[te];if(0>f(H,Q))te<x&&0>f(le,H)?(W[k]=le,W[te]=Q,k=te):(W[k]=H,W[q]=Q,k=q);else if(te<x&&0>f(le,Q))W[k]=le,W[te]=Q,k=te;else break e}}return ee}function f(W,ee){var Q=W.sortIndex-ee.sortIndex;return Q!==0?Q:W.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();s.unstable_now=function(){return p.now()-g}}var N=[],C=[],j=1,M=null,_=3,O=!1,D=!1,w=!1,z=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(W){for(var ee=a(C);ee!==null;){if(ee.callback===null)c(C);else if(ee.startTime<=W)c(C),ee.sortIndex=ee.expirationTime,u(N,ee);else break;ee=a(C)}}function G(W){if(w=!1,I(W),!D)if(a(N)!==null)D=!0,ye(Z);else{var ee=a(C);ee!==null&&be(G,ee.startTime-W)}}function Z(W,ee){D=!1,w&&(w=!1,A(he),he=-1),O=!0;var Q=_;try{for(I(ee),M=a(N);M!==null&&(!(M.expirationTime>ee)||W&&!me());){var k=M.callback;if(typeof k=="function"){M.callback=null,_=M.priorityLevel;var x=k(M.expirationTime<=ee);ee=s.unstable_now(),typeof x=="function"?M.callback=x:M===a(N)&&c(N),I(ee)}else c(N);M=a(N)}if(M!==null)var F=!0;else{var q=a(C);q!==null&&be(G,q.startTime-ee),F=!1}return F}finally{M=null,_=Q,O=!1}}var K=!1,oe=null,he=-1,de=5,T=-1;function me(){return!(s.unstable_now()-T<de)}function ce(){if(oe!==null){var W=s.unstable_now();T=W;var ee=!0;try{ee=oe(!0,W)}finally{ee?Ee():(K=!1,oe=null)}}else K=!1}var Ee;if(typeof R=="function")Ee=function(){R(ce)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,ke=J.port2;J.port1.onmessage=ce,Ee=function(){ke.postMessage(null)}}else Ee=function(){z(ce,0)};function ye(W){oe=W,K||(K=!0,Ee())}function be(W,ee){he=z(function(){W(s.unstable_now())},ee)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(W){W.callback=null},s.unstable_continueExecution=function(){D||O||(D=!0,ye(Z))},s.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<W?Math.floor(1e3/W):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_getFirstCallbackNode=function(){return a(N)},s.unstable_next=function(W){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var Q=_;_=ee;try{return W()}finally{_=Q}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=function(){},s.unstable_runWithPriority=function(W,ee){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Q=_;_=W;try{return ee()}finally{_=Q}},s.unstable_scheduleCallback=function(W,ee,Q){var k=s.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?k+Q:k):Q=k,W){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=Q+x,W={id:j++,callback:ee,priorityLevel:W,startTime:Q,expirationTime:x,sortIndex:-1},Q>k?(W.sortIndex=Q,u(C,W),a(N)===null&&W===a(C)&&(w?(A(he),he=-1):w=!0,be(G,Q-k))):(W.sortIndex=x,u(N,W),D||O||(D=!0,ye(Z))),W},s.unstable_shouldYield=me,s.unstable_wrapCallback=function(W){var ee=_;return function(){var Q=_;_=ee;try{return W.apply(this,arguments)}finally{_=Q}}}})(Wa)),Wa}var yd;function Gm(){return yd||(yd=1,Ba.exports=Hm()),Ba.exports}/**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var bd;function Km(){if(bd)return lt;bd=1;var s=di(),u=Gm();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var c=new Set,f={};function h(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N=Object.prototype.hasOwnProperty,C=/^[: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]*$/,j={},M={};function _(e){return N.call(M,e)?!0:N.call(j,e)?!1:C.test(e)?M[e]=!0:(j[e]=!0,!1)}function O(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D(e,t,r,o){if(t===null||typeof t>"u"||O(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function w(e,t,r,o,l,i,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=d}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){z[e]=new w(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];z[t]=new w(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){z[e]=new w(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){z[e]=new w(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){z[e]=new w(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){z[e]=new w(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){z[e]=new w(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){z[e]=new w(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){z[e]=new w(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function R(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,R);z[t]=new w(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,R);z[t]=new w(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,R);z[t]=new w(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){z[e]=new w(e,1,!1,e.toLowerCase(),null,!1,!1)}),z.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){z[e]=new w(e,1,!1,e.toLowerCase(),null,!0,!0)});function I(e,t,r,o){var l=z.hasOwnProperty(t)?z[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D(t,r,l,o)&&(r=null),o||l===null?_(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):l.mustUseProperty?e[l.propertyName]=r===null?l.type===3?!1:"":r:(t=l.attributeName,o=l.attributeNamespace,r===null?e.removeAttribute(t):(l=l.type,r=l===3||l===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var G=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),K=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),me=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),be=Symbol.for("react.offscreen"),W=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,k;function x(e){if(k===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
|
|
`+k+e}var F=!1;function q(e,t){if(!e||F)return"";F=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(L){var o=L}Reflect.construct(e,[],t)}else{try{t.call()}catch(L){o=L}e.call(t.prototype)}else{try{throw Error()}catch(L){o=L}e()}}catch(L){if(L&&o&&typeof L.stack=="string"){for(var l=L.stack.split(`
|
|
`),i=o.stack.split(`
|
|
`),d=l.length-1,v=i.length-1;1<=d&&0<=v&&l[d]!==i[v];)v--;for(;1<=d&&0<=v;d--,v--)if(l[d]!==i[v]){if(d!==1||v!==1)do if(d--,v--,0>v||l[d]!==i[v]){var y=`
|
|
`+l[d].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=d&&0<=v);break}}}finally{F=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?x(e):""}function H(e){switch(e.tag){case 5:return x(e.type);case 16:return x("Lazy");case 13:return x("Suspense");case 19:return x("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1),e;case 11:return e=q(e.type.render,!1),e;case 1:return e=q(e.type,!0),e;default:return""}}function te(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oe:return"Fragment";case K:return"Portal";case de:return"Profiler";case he:return"StrictMode";case Ee:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case me:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return t=e.displayName||null,t!==null?t:te(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}function le(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(t);case 8:return t===he?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function P(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xe(e){var t=Y(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){o=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function De(e){e._valueTracker||(e._valueTracker=xe(e))}function et(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Y(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function mr(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}}function zt(e,t){var r=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function bn(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=P(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ki(e,t){t=t.checked,t!=null&&I(e,"checked",t,!1)}function Ks(e,t){ki(e,t);var r=P(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qs(e,t.type,r):t.hasOwnProperty("defaultValue")&&Qs(e,t.type,P(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ji(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Qs(e,t,r){(t!=="number"||mr(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wn=Array.isArray;function zr(e,t,r,o){if(e=e.options,t){t={};for(var l=0;l<r.length;l++)t["$"+r[l]]=!0;for(r=0;r<e.length;r++)l=t.hasOwnProperty("$"+e[r].value),e[r].selected!==l&&(e[r].selected=l),l&&o&&(e[r].defaultSelected=!0)}else{for(r=""+P(r),t=null,l=0;l<e.length;l++){if(e[l].value===r){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Zs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ni(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(a(92));if(wn(r)){if(1<r.length)throw Error(a(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:P(r)}}function Si(e,t){var r=P(t.value),o=P(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function Ci(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ei(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ei(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ho,Mi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ho=ho||document.createElement("div"),ho.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ho.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function kn(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var jn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Hf=["Webkit","ms","Moz","O"];Object.keys(jn).forEach(function(e){Hf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jn[t]=jn[e]})});function _i(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||jn.hasOwnProperty(e)&&jn[e]?(""+t).trim():t+"px"}function Pi(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,l=_i(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,l):e[r]=l}}var Gf=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ys(e,t){if(t){if(Gf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function Js(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Xs=null;function el(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tl=null,Lr=null,Or=null;function Ri(e){if(e=Hn(e)){if(typeof tl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=Io(t),tl(e.stateNode,e.type,t))}}function zi(e){Lr?Or?Or.push(e):Or=[e]:Lr=e}function Li(){if(Lr){var e=Lr,t=Or;if(Or=Lr=null,Ri(e),t)for(e=0;e<t.length;e++)Ri(t[e])}}function Oi(e,t){return e(t)}function Di(){}var rl=!1;function Ai(e,t,r){if(rl)return e(t,r);rl=!0;try{return Oi(e,t,r)}finally{rl=!1,(Lr!==null||Or!==null)&&(Di(),Li())}}function Nn(e,t){var r=e.stateNode;if(r===null)return null;var o=Io(r);if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(a(231,t,typeof r));return r}var nl=!1;if(g)try{var Sn={};Object.defineProperty(Sn,"passive",{get:function(){nl=!0}}),window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch{nl=!1}function Kf(e,t,r,o,l,i,d,v,y){var L=Array.prototype.slice.call(arguments,3);try{t.apply(r,L)}catch(U){this.onError(U)}}var Cn=!1,go=null,xo=!1,ol=null,Qf={onError:function(e){Cn=!0,go=e}};function Zf(e,t,r,o,l,i,d,v,y){Cn=!1,go=null,Kf.apply(Qf,arguments)}function qf(e,t,r,o,l,i,d,v,y){if(Zf.apply(this,arguments),Cn){if(Cn){var L=go;Cn=!1,go=null}else throw Error(a(198));xo||(xo=!0,ol=L)}}function hr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Ti(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 Ii(e){if(hr(e)!==e)throw Error(a(188))}function Yf(e){var t=e.alternate;if(!t){if(t=hr(e),t===null)throw Error(a(188));return t!==e?null:e}for(var r=e,o=t;;){var l=r.return;if(l===null)break;var i=l.alternate;if(i===null){if(o=l.return,o!==null){r=o;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===r)return Ii(l),e;if(i===o)return Ii(l),t;i=i.sibling}throw Error(a(188))}if(r.return!==o.return)r=l,o=i;else{for(var d=!1,v=l.child;v;){if(v===r){d=!0,r=l,o=i;break}if(v===o){d=!0,o=l,r=i;break}v=v.sibling}if(!d){for(v=i.child;v;){if(v===r){d=!0,r=i,o=l;break}if(v===o){d=!0,o=i,r=l;break}v=v.sibling}if(!d)throw Error(a(189))}}if(r.alternate!==o)throw Error(a(190))}if(r.tag!==3)throw Error(a(188));return r.stateNode.current===r?e:t}function Fi(e){return e=Yf(e),e!==null?$i(e):null}function $i(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$i(e);if(t!==null)return t;e=e.sibling}return null}var Ui=u.unstable_scheduleCallback,Bi=u.unstable_cancelCallback,Jf=u.unstable_shouldYield,Xf=u.unstable_requestPaint,Te=u.unstable_now,ep=u.unstable_getCurrentPriorityLevel,sl=u.unstable_ImmediatePriority,Wi=u.unstable_UserBlockingPriority,vo=u.unstable_NormalPriority,tp=u.unstable_LowPriority,Vi=u.unstable_IdlePriority,yo=null,St=null;function rp(e){if(St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(yo,e,void 0,(e.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:sp,np=Math.log,op=Math.LN2;function sp(e){return e>>>=0,e===0?32:31-(np(e)/op|0)|0}var bo=64,wo=4194304;function En(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ko(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,l=e.suspendedLanes,i=e.pingedLanes,d=r&268435455;if(d!==0){var v=d&~l;v!==0?o=En(v):(i&=d,i!==0&&(o=En(i)))}else d=r&~l,d!==0?o=En(d):i!==0&&(o=En(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&l)===0&&(l=o&-o,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-xt(t),l=1<<r,o|=e[r],t&=~l;return o}function lp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ap(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var d=31-xt(i),v=1<<d,y=l[d];y===-1?((v&r)===0||(v&o)!==0)&&(l[d]=lp(v,t)):y<=t&&(e.expiredLanes|=v),i&=~v}}function ll(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hi(){var e=bo;return bo<<=1,(bo&4194240)===0&&(bo=64),e}function al(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Mn(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=r}function ip(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var l=31-xt(r),i=1<<l;t[l]=0,o[l]=-1,e[l]=-1,r&=~i}}function il(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-xt(r),l=1<<o;l&t|e[o]&t&&(e[o]|=t),r&=~l}}var Ce=0;function Gi(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ki,ul,Qi,Zi,qi,cl=!1,jo=[],Wt=null,Vt=null,Ht=null,_n=new Map,Pn=new Map,Gt=[],up="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 submit".split(" ");function Yi(e,t){switch(e){case"focusin":case"focusout":Wt=null;break;case"dragenter":case"dragleave":Vt=null;break;case"mouseover":case"mouseout":Ht=null;break;case"pointerover":case"pointerout":_n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pn.delete(t.pointerId)}}function Rn(e,t,r,o,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Hn(t),t!==null&&ul(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function cp(e,t,r,o,l){switch(t){case"focusin":return Wt=Rn(Wt,e,t,r,o,l),!0;case"dragenter":return Vt=Rn(Vt,e,t,r,o,l),!0;case"mouseover":return Ht=Rn(Ht,e,t,r,o,l),!0;case"pointerover":var i=l.pointerId;return _n.set(i,Rn(_n.get(i)||null,e,t,r,o,l)),!0;case"gotpointercapture":return i=l.pointerId,Pn.set(i,Rn(Pn.get(i)||null,e,t,r,o,l)),!0}return!1}function Ji(e){var t=gr(e.target);if(t!==null){var r=hr(t);if(r!==null){if(t=r.tag,t===13){if(t=Ti(r),t!==null){e.blockedOn=t,qi(e.priority,function(){Qi(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function No(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=fl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Xs=o,r.target.dispatchEvent(o),Xs=null}else return t=Hn(r),t!==null&&ul(t),e.blockedOn=r,!1;t.shift()}return!0}function Xi(e,t,r){No(e)&&r.delete(t)}function dp(){cl=!1,Wt!==null&&No(Wt)&&(Wt=null),Vt!==null&&No(Vt)&&(Vt=null),Ht!==null&&No(Ht)&&(Ht=null),_n.forEach(Xi),Pn.forEach(Xi)}function zn(e,t){e.blockedOn===t&&(e.blockedOn=null,cl||(cl=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,dp)))}function Ln(e){function t(l){return zn(l,e)}if(0<jo.length){zn(jo[0],e);for(var r=1;r<jo.length;r++){var o=jo[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Wt!==null&&zn(Wt,e),Vt!==null&&zn(Vt,e),Ht!==null&&zn(Ht,e),_n.forEach(t),Pn.forEach(t),r=0;r<Gt.length;r++)o=Gt[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<Gt.length&&(r=Gt[0],r.blockedOn===null);)Ji(r),r.blockedOn===null&&Gt.shift()}var Dr=G.ReactCurrentBatchConfig,So=!0;function fp(e,t,r,o){var l=Ce,i=Dr.transition;Dr.transition=null;try{Ce=1,dl(e,t,r,o)}finally{Ce=l,Dr.transition=i}}function pp(e,t,r,o){var l=Ce,i=Dr.transition;Dr.transition=null;try{Ce=4,dl(e,t,r,o)}finally{Ce=l,Dr.transition=i}}function dl(e,t,r,o){if(So){var l=fl(e,t,r,o);if(l===null)_l(e,t,o,Co,r),Yi(e,o);else if(cp(l,e,t,r,o))o.stopPropagation();else if(Yi(e,o),t&4&&-1<up.indexOf(e)){for(;l!==null;){var i=Hn(l);if(i!==null&&Ki(i),i=fl(e,t,r,o),i===null&&_l(e,t,o,Co,r),i===l)break;l=i}l!==null&&o.stopPropagation()}else _l(e,t,o,null,r)}}var Co=null;function fl(e,t,r,o){if(Co=null,e=el(o),e=gr(e),e!==null)if(t=hr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Ti(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Co=e,null}function eu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ep()){case sl:return 1;case Wi:return 4;case vo:case tp:return 16;case Vi:return 536870912;default:return 16}default:return 16}}var Kt=null,pl=null,Eo=null;function tu(){if(Eo)return Eo;var e,t=pl,r=t.length,o,l="value"in Kt?Kt.value:Kt.textContent,i=l.length;for(e=0;e<r&&t[e]===l[e];e++);var d=r-e;for(o=1;o<=d&&t[r-o]===l[i-o];o++);return Eo=l.slice(e,1<o?1-o:void 0)}function Mo(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 _o(){return!0}function ru(){return!1}function at(e){function t(r,o,l,i,d){this._reactName=r,this._targetInst=l,this.type=o,this.nativeEvent=i,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(r=e[v],this[v]=r?r(i):i[v]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?_o:ru,this.isPropagationStopped=ru,this}return Q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=_o)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),t}var Ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=at(Ar),On=Q({},Ar,{view:0,detail:0}),mp=at(On),hl,gl,Dn,Po=Q({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vl,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!==Dn&&(Dn&&e.type==="mousemove"?(hl=e.screenX-Dn.screenX,gl=e.screenY-Dn.screenY):gl=hl=0,Dn=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:gl}}),nu=at(Po),hp=Q({},Po,{dataTransfer:0}),gp=at(hp),xp=Q({},On,{relatedTarget:0}),xl=at(xp),vp=Q({},Ar,{animationName:0,elapsedTime:0,pseudoElement:0}),yp=at(vp),bp=Q({},Ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wp=at(bp),kp=Q({},Ar,{data:0}),ou=at(kp),jp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Np={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"},Sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sp[e])?!!t[e]:!1}function vl(){return Cp}var Ep=Q({},On,{key:function(e){if(e.key){var t=jp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Np[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vl,charCode:function(e){return e.type==="keypress"?Mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mp=at(Ep),_p=Q({},Po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),su=at(_p),Pp=Q({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vl}),Rp=at(Pp),zp=Q({},Ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lp=at(zp),Op=Q({},Po,{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}),Dp=at(Op),Ap=[9,13,27,32],yl=g&&"CompositionEvent"in window,An=null;g&&"documentMode"in document&&(An=document.documentMode);var Tp=g&&"TextEvent"in window&&!An,lu=g&&(!yl||An&&8<An&&11>=An),au=" ",iu=!1;function uu(e,t){switch(e){case"keyup":return Ap.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function Ip(e,t){switch(e){case"compositionend":return cu(t);case"keypress":return t.which!==32?null:(iu=!0,au);case"textInput":return e=t.data,e===au&&iu?null:e;default:return null}}function Fp(e,t){if(Tr)return e==="compositionend"||!yl&&uu(e,t)?(e=tu(),Eo=pl=Kt=null,Tr=!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 lu&&t.locale!=="ko"?null:t.data;default:return null}}var $p={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 du(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$p[e.type]:t==="textarea"}function fu(e,t,r,o){zi(o),t=Do(t,"onChange"),0<t.length&&(r=new ml("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Tn=null,In=null;function Up(e){Pu(e,0)}function Ro(e){var t=Br(e);if(et(t))return e}function Bp(e,t){if(e==="change")return t}var pu=!1;if(g){var bl;if(g){var wl="oninput"in document;if(!wl){var mu=document.createElement("div");mu.setAttribute("oninput","return;"),wl=typeof mu.oninput=="function"}bl=wl}else bl=!1;pu=bl&&(!document.documentMode||9<document.documentMode)}function hu(){Tn&&(Tn.detachEvent("onpropertychange",gu),In=Tn=null)}function gu(e){if(e.propertyName==="value"&&Ro(In)){var t=[];fu(t,In,e,el(e)),Ai(Up,t)}}function Wp(e,t,r){e==="focusin"?(hu(),Tn=t,In=r,Tn.attachEvent("onpropertychange",gu)):e==="focusout"&&hu()}function Vp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ro(In)}function Hp(e,t){if(e==="click")return Ro(t)}function Gp(e,t){if(e==="input"||e==="change")return Ro(t)}function Kp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Kp;function Fn(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var l=r[o];if(!N.call(t,l)||!vt(e[l],t[l]))return!1}return!0}function xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vu(e,t){var r=xu(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xu(r)}}function yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bu(){for(var e=window,t=mr();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=mr(e.document)}return t}function kl(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")}function Qp(e){var t=bu(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&yu(r.ownerDocument.documentElement,r)){if(o!==null&&kl(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=r.textContent.length,i=Math.min(o.start,l);o=o.end===void 0?i:Math.min(o.end,l),!e.extend&&i>o&&(l=o,o=i,i=l),l=vu(r,i);var d=vu(r,o);l&&d&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zp=g&&"documentMode"in document&&11>=document.documentMode,Ir=null,jl=null,$n=null,Nl=!1;function wu(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Nl||Ir==null||Ir!==mr(o)||(o=Ir,"selectionStart"in o&&kl(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),$n&&Fn($n,o)||($n=o,o=Do(jl,"onSelect"),0<o.length&&(t=new ml("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Ir)))}function zo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Fr={animationend:zo("Animation","AnimationEnd"),animationiteration:zo("Animation","AnimationIteration"),animationstart:zo("Animation","AnimationStart"),transitionend:zo("Transition","TransitionEnd")},Sl={},ku={};g&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),"TransitionEvent"in window||delete Fr.transitionend.transition);function Lo(e){if(Sl[e])return Sl[e];if(!Fr[e])return e;var t=Fr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in ku)return Sl[e]=t[r];return e}var ju=Lo("animationend"),Nu=Lo("animationiteration"),Su=Lo("animationstart"),Cu=Lo("transitionend"),Eu=new Map,Mu="abort auxClick 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(" ");function Qt(e,t){Eu.set(e,t),h(t,[e])}for(var Cl=0;Cl<Mu.length;Cl++){var El=Mu[Cl],qp=El.toLowerCase(),Yp=El[0].toUpperCase()+El.slice(1);Qt(qp,"on"+Yp)}Qt(ju,"onAnimationEnd"),Qt(Nu,"onAnimationIteration"),Qt(Su,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Cu,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Un="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(" "),Jp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Un));function _u(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,qf(o,t,void 0,e),e.currentTarget=null}function Pu(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],l=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var d=o.length-1;0<=d;d--){var v=o[d],y=v.instance,L=v.currentTarget;if(v=v.listener,y!==i&&l.isPropagationStopped())break e;_u(l,v,L),i=y}else for(d=0;d<o.length;d++){if(v=o[d],y=v.instance,L=v.currentTarget,v=v.listener,y!==i&&l.isPropagationStopped())break e;_u(l,v,L),i=y}}}if(xo)throw e=ol,xo=!1,ol=null,e}function _e(e,t){var r=t[Dl];r===void 0&&(r=t[Dl]=new Set);var o=e+"__bubble";r.has(o)||(Ru(t,e,2,!1),r.add(o))}function Ml(e,t,r){var o=0;t&&(o|=4),Ru(r,e,o,t)}var Oo="_reactListening"+Math.random().toString(36).slice(2);function Bn(e){if(!e[Oo]){e[Oo]=!0,c.forEach(function(r){r!=="selectionchange"&&(Jp.has(r)||Ml(r,!1,e),Ml(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Oo]||(t[Oo]=!0,Ml("selectionchange",!1,t))}}function Ru(e,t,r,o){switch(eu(t)){case 1:var l=fp;break;case 4:l=pp;break;default:l=dl}r=l.bind(null,t,r,e),l=void 0,!nl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,r,{capture:!0,passive:l}):e.addEventListener(t,r,!0):l!==void 0?e.addEventListener(t,r,{passive:l}):e.addEventListener(t,r,!1)}function _l(e,t,r,o,l){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var v=o.stateNode.containerInfo;if(v===l||v.nodeType===8&&v.parentNode===l)break;if(d===4)for(d=o.return;d!==null;){var y=d.tag;if((y===3||y===4)&&(y=d.stateNode.containerInfo,y===l||y.nodeType===8&&y.parentNode===l))return;d=d.return}for(;v!==null;){if(d=gr(v),d===null)return;if(y=d.tag,y===5||y===6){o=i=d;continue e}v=v.parentNode}}o=o.return}Ai(function(){var L=i,U=el(r),B=[];e:{var $=Eu.get(e);if($!==void 0){var X=ml,ne=e;switch(e){case"keypress":if(Mo(r)===0)break e;case"keydown":case"keyup":X=Mp;break;case"focusin":ne="focus",X=xl;break;case"focusout":ne="blur",X=xl;break;case"beforeblur":case"afterblur":X=xl;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=nu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=gp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Rp;break;case ju:case Nu:case Su:X=yp;break;case Cu:X=Lp;break;case"scroll":X=mp;break;case"wheel":X=Dp;break;case"copy":case"cut":case"paste":X=wp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=su}var se=(t&4)!==0,Ie=!se&&e==="scroll",S=se?$!==null?$+"Capture":null:$;se=[];for(var b=L,E;b!==null;){E=b;var V=E.stateNode;if(E.tag===5&&V!==null&&(E=V,S!==null&&(V=Nn(b,S),V!=null&&se.push(Wn(b,V,E)))),Ie)break;b=b.return}0<se.length&&($=new X($,ne,null,r,U),B.push({event:$,listeners:se}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",$&&r!==Xs&&(ne=r.relatedTarget||r.fromElement)&&(gr(ne)||ne[Lt]))break e;if((X||$)&&($=U.window===U?U:($=U.ownerDocument)?$.defaultView||$.parentWindow:window,X?(ne=r.relatedTarget||r.toElement,X=L,ne=ne?gr(ne):null,ne!==null&&(Ie=hr(ne),ne!==Ie||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(X=null,ne=L),X!==ne)){if(se=nu,V="onMouseLeave",S="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(se=su,V="onPointerLeave",S="onPointerEnter",b="pointer"),Ie=X==null?$:Br(X),E=ne==null?$:Br(ne),$=new se(V,b+"leave",X,r,U),$.target=Ie,$.relatedTarget=E,V=null,gr(U)===L&&(se=new se(S,b+"enter",ne,r,U),se.target=E,se.relatedTarget=Ie,V=se),Ie=V,X&&ne)t:{for(se=X,S=ne,b=0,E=se;E;E=$r(E))b++;for(E=0,V=S;V;V=$r(V))E++;for(;0<b-E;)se=$r(se),b--;for(;0<E-b;)S=$r(S),E--;for(;b--;){if(se===S||S!==null&&se===S.alternate)break t;se=$r(se),S=$r(S)}se=null}else se=null;X!==null&&zu(B,$,X,se,!1),ne!==null&&Ie!==null&&zu(B,Ie,ne,se,!0)}}e:{if($=L?Br(L):window,X=$.nodeName&&$.nodeName.toLowerCase(),X==="select"||X==="input"&&$.type==="file")var ae=Bp;else if(du($))if(pu)ae=Gp;else{ae=Vp;var fe=Wp}else(X=$.nodeName)&&X.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(ae=Hp);if(ae&&(ae=ae(e,L))){fu(B,ae,r,U);break e}fe&&fe(e,$,L),e==="focusout"&&(fe=$._wrapperState)&&fe.controlled&&$.type==="number"&&Qs($,"number",$.value)}switch(fe=L?Br(L):window,e){case"focusin":(du(fe)||fe.contentEditable==="true")&&(Ir=fe,jl=L,$n=null);break;case"focusout":$n=jl=Ir=null;break;case"mousedown":Nl=!0;break;case"contextmenu":case"mouseup":case"dragend":Nl=!1,wu(B,r,U);break;case"selectionchange":if(Zp)break;case"keydown":case"keyup":wu(B,r,U)}var pe;if(yl)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Tr?uu(e,r)&&(ge="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ge="onCompositionStart");ge&&(lu&&r.locale!=="ko"&&(Tr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Tr&&(pe=tu()):(Kt=U,pl="value"in Kt?Kt.value:Kt.textContent,Tr=!0)),fe=Do(L,ge),0<fe.length&&(ge=new ou(ge,e,null,r,U),B.push({event:ge,listeners:fe}),pe?ge.data=pe:(pe=cu(r),pe!==null&&(ge.data=pe)))),(pe=Tp?Ip(e,r):Fp(e,r))&&(L=Do(L,"onBeforeInput"),0<L.length&&(U=new ou("onBeforeInput","beforeinput",null,r,U),B.push({event:U,listeners:L}),U.data=pe))}Pu(B,t)})}function Wn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Do(e,t){for(var r=t+"Capture",o=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Nn(e,r),i!=null&&o.unshift(Wn(e,i,l)),i=Nn(e,t),i!=null&&o.push(Wn(e,i,l))),e=e.return}return o}function $r(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zu(e,t,r,o,l){for(var i=t._reactName,d=[];r!==null&&r!==o;){var v=r,y=v.alternate,L=v.stateNode;if(y!==null&&y===o)break;v.tag===5&&L!==null&&(v=L,l?(y=Nn(r,i),y!=null&&d.unshift(Wn(r,y,v))):l||(y=Nn(r,i),y!=null&&d.push(Wn(r,y,v)))),r=r.return}d.length!==0&&e.push({event:t,listeners:d})}var Xp=/\r\n?/g,em=/\u0000|\uFFFD/g;function Lu(e){return(typeof e=="string"?e:""+e).replace(Xp,`
|
|
`).replace(em,"")}function Ao(e,t,r){if(t=Lu(t),Lu(e)!==t&&r)throw Error(a(425))}function To(){}var Pl=null,Rl=null;function zl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ll=typeof setTimeout=="function"?setTimeout:void 0,tm=typeof clearTimeout=="function"?clearTimeout:void 0,Ou=typeof Promise=="function"?Promise:void 0,rm=typeof queueMicrotask=="function"?queueMicrotask:typeof Ou<"u"?function(e){return Ou.resolve(null).then(e).catch(nm)}:Ll;function nm(e){setTimeout(function(){throw e})}function Ol(e,t){var r=t,o=0;do{var l=r.nextSibling;if(e.removeChild(r),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(o===0){e.removeChild(l),Ln(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=l}while(r);Ln(t)}function Zt(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==="$?")break;if(t==="/$")return null}}return e}function Du(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ur=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Ur,Vn="__reactProps$"+Ur,Lt="__reactContainer$"+Ur,Dl="__reactEvents$"+Ur,om="__reactListeners$"+Ur,sm="__reactHandles$"+Ur;function gr(e){var t=e[Ct];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Lt]||r[Ct]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Du(e);e!==null;){if(r=e[Ct])return r;e=Du(e)}return t}e=r,r=e.parentNode}return null}function Hn(e){return e=e[Ct]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function Io(e){return e[Vn]||null}var Al=[],Wr=-1;function qt(e){return{current:e}}function Pe(e){0>Wr||(e.current=Al[Wr],Al[Wr]=null,Wr--)}function Me(e,t){Wr++,Al[Wr]=e.current,e.current=t}var Yt={},Qe=qt(Yt),tt=qt(!1),xr=Yt;function Vr(e,t){var r=e.type.contextTypes;if(!r)return Yt;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in r)l[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function rt(e){return e=e.childContextTypes,e!=null}function Fo(){Pe(tt),Pe(Qe)}function Au(e,t,r){if(Qe.current!==Yt)throw Error(a(168));Me(Qe,t),Me(tt,r)}function Tu(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(a(108,le(e)||"Unknown",l));return Q({},r,o)}function $o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,xr=Qe.current,Me(Qe,e),Me(tt,tt.current),!0}function Iu(e,t,r){var o=e.stateNode;if(!o)throw Error(a(169));r?(e=Tu(e,t,xr),o.__reactInternalMemoizedMergedChildContext=e,Pe(tt),Pe(Qe),Me(Qe,e)):Pe(tt),Me(tt,r)}var Ot=null,Uo=!1,Tl=!1;function Fu(e){Ot===null?Ot=[e]:Ot.push(e)}function lm(e){Uo=!0,Fu(e)}function Jt(){if(!Tl&&Ot!==null){Tl=!0;var e=0,t=Ce;try{var r=Ot;for(Ce=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Ot=null,Uo=!1}catch(l){throw Ot!==null&&(Ot=Ot.slice(e+1)),Ui(sl,Jt),l}finally{Ce=t,Tl=!1}}return null}var Hr=[],Gr=0,Bo=null,Wo=0,dt=[],ft=0,vr=null,Dt=1,At="";function yr(e,t){Hr[Gr++]=Wo,Hr[Gr++]=Bo,Bo=e,Wo=t}function $u(e,t,r){dt[ft++]=Dt,dt[ft++]=At,dt[ft++]=vr,vr=e;var o=Dt;e=At;var l=32-xt(o)-1;o&=~(1<<l),r+=1;var i=32-xt(t)+l;if(30<i){var d=l-l%5;i=(o&(1<<d)-1).toString(32),o>>=d,l-=d,Dt=1<<32-xt(t)+l|r<<l|o,At=i+e}else Dt=1<<i|r<<l|o,At=e}function Il(e){e.return!==null&&(yr(e,1),$u(e,1,0))}function Fl(e){for(;e===Bo;)Bo=Hr[--Gr],Hr[Gr]=null,Wo=Hr[--Gr],Hr[Gr]=null;for(;e===vr;)vr=dt[--ft],dt[ft]=null,At=dt[--ft],dt[ft]=null,Dt=dt[--ft],dt[ft]=null}var it=null,ut=null,ze=!1,yt=null;function Uu(e,t){var r=gt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Bu(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,it=e,ut=Zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,it=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=vr!==null?{id:Dt,overflow:At}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=gt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,it=e,ut=null,!0):!1;default:return!1}}function $l(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ul(e){if(ze){var t=ut;if(t){var r=t;if(!Bu(e,t)){if($l(e))throw Error(a(418));t=Zt(r.nextSibling);var o=it;t&&Bu(e,t)?Uu(o,r):(e.flags=e.flags&-4097|2,ze=!1,it=e)}}else{if($l(e))throw Error(a(418));e.flags=e.flags&-4097|2,ze=!1,it=e}}}function Wu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;it=e}function Vo(e){if(e!==it)return!1;if(!ze)return Wu(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zl(e.type,e.memoizedProps)),t&&(t=ut)){if($l(e))throw Vu(),Error(a(418));for(;t;)Uu(e,t),t=Zt(t.nextSibling)}if(Wu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ut=Zt(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=it?Zt(e.stateNode.nextSibling):null;return!0}function Vu(){for(var e=ut;e;)e=Zt(e.nextSibling)}function Kr(){ut=it=null,ze=!1}function Bl(e){yt===null?yt=[e]:yt.push(e)}var am=G.ReactCurrentBatchConfig;function Gn(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(a(309));var o=r.stateNode}if(!o)throw Error(a(147,e));var l=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(d){var v=l.refs;d===null?delete v[i]:v[i]=d},t._stringRef=i,t)}if(typeof e!="string")throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Ho(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hu(e){var t=e._init;return t(e._payload)}function Gu(e){function t(S,b){if(e){var E=S.deletions;E===null?(S.deletions=[b],S.flags|=16):E.push(b)}}function r(S,b){if(!e)return null;for(;b!==null;)t(S,b),b=b.sibling;return null}function o(S,b){for(S=new Map;b!==null;)b.key!==null?S.set(b.key,b):S.set(b.index,b),b=b.sibling;return S}function l(S,b){return S=lr(S,b),S.index=0,S.sibling=null,S}function i(S,b,E){return S.index=E,e?(E=S.alternate,E!==null?(E=E.index,E<b?(S.flags|=2,b):E):(S.flags|=2,b)):(S.flags|=1048576,b)}function d(S){return e&&S.alternate===null&&(S.flags|=2),S}function v(S,b,E,V){return b===null||b.tag!==6?(b=La(E,S.mode,V),b.return=S,b):(b=l(b,E),b.return=S,b)}function y(S,b,E,V){var ae=E.type;return ae===oe?U(S,b,E.props.children,V,E.key):b!==null&&(b.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ye&&Hu(ae)===b.type)?(V=l(b,E.props),V.ref=Gn(S,b,E),V.return=S,V):(V=hs(E.type,E.key,E.props,null,S.mode,V),V.ref=Gn(S,b,E),V.return=S,V)}function L(S,b,E,V){return b===null||b.tag!==4||b.stateNode.containerInfo!==E.containerInfo||b.stateNode.implementation!==E.implementation?(b=Oa(E,S.mode,V),b.return=S,b):(b=l(b,E.children||[]),b.return=S,b)}function U(S,b,E,V,ae){return b===null||b.tag!==7?(b=Er(E,S.mode,V,ae),b.return=S,b):(b=l(b,E),b.return=S,b)}function B(S,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return b=La(""+b,S.mode,E),b.return=S,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Z:return E=hs(b.type,b.key,b.props,null,S.mode,E),E.ref=Gn(S,null,b),E.return=S,E;case K:return b=Oa(b,S.mode,E),b.return=S,b;case ye:var V=b._init;return B(S,V(b._payload),E)}if(wn(b)||ee(b))return b=Er(b,S.mode,E,null),b.return=S,b;Ho(S,b)}return null}function $(S,b,E,V){var ae=b!==null?b.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return ae!==null?null:v(S,b,""+E,V);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Z:return E.key===ae?y(S,b,E,V):null;case K:return E.key===ae?L(S,b,E,V):null;case ye:return ae=E._init,$(S,b,ae(E._payload),V)}if(wn(E)||ee(E))return ae!==null?null:U(S,b,E,V,null);Ho(S,E)}return null}function X(S,b,E,V,ae){if(typeof V=="string"&&V!==""||typeof V=="number")return S=S.get(E)||null,v(b,S,""+V,ae);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case Z:return S=S.get(V.key===null?E:V.key)||null,y(b,S,V,ae);case K:return S=S.get(V.key===null?E:V.key)||null,L(b,S,V,ae);case ye:var fe=V._init;return X(S,b,E,fe(V._payload),ae)}if(wn(V)||ee(V))return S=S.get(E)||null,U(b,S,V,ae,null);Ho(b,V)}return null}function ne(S,b,E,V){for(var ae=null,fe=null,pe=b,ge=b=0,Ve=null;pe!==null&&ge<E.length;ge++){pe.index>ge?(Ve=pe,pe=null):Ve=pe.sibling;var Se=$(S,pe,E[ge],V);if(Se===null){pe===null&&(pe=Ve);break}e&&pe&&Se.alternate===null&&t(S,pe),b=i(Se,b,ge),fe===null?ae=Se:fe.sibling=Se,fe=Se,pe=Ve}if(ge===E.length)return r(S,pe),ze&&yr(S,ge),ae;if(pe===null){for(;ge<E.length;ge++)pe=B(S,E[ge],V),pe!==null&&(b=i(pe,b,ge),fe===null?ae=pe:fe.sibling=pe,fe=pe);return ze&&yr(S,ge),ae}for(pe=o(S,pe);ge<E.length;ge++)Ve=X(pe,S,ge,E[ge],V),Ve!==null&&(e&&Ve.alternate!==null&&pe.delete(Ve.key===null?ge:Ve.key),b=i(Ve,b,ge),fe===null?ae=Ve:fe.sibling=Ve,fe=Ve);return e&&pe.forEach(function(ar){return t(S,ar)}),ze&&yr(S,ge),ae}function se(S,b,E,V){var ae=ee(E);if(typeof ae!="function")throw Error(a(150));if(E=ae.call(E),E==null)throw Error(a(151));for(var fe=ae=null,pe=b,ge=b=0,Ve=null,Se=E.next();pe!==null&&!Se.done;ge++,Se=E.next()){pe.index>ge?(Ve=pe,pe=null):Ve=pe.sibling;var ar=$(S,pe,Se.value,V);if(ar===null){pe===null&&(pe=Ve);break}e&&pe&&ar.alternate===null&&t(S,pe),b=i(ar,b,ge),fe===null?ae=ar:fe.sibling=ar,fe=ar,pe=Ve}if(Se.done)return r(S,pe),ze&&yr(S,ge),ae;if(pe===null){for(;!Se.done;ge++,Se=E.next())Se=B(S,Se.value,V),Se!==null&&(b=i(Se,b,ge),fe===null?ae=Se:fe.sibling=Se,fe=Se);return ze&&yr(S,ge),ae}for(pe=o(S,pe);!Se.done;ge++,Se=E.next())Se=X(pe,S,ge,Se.value,V),Se!==null&&(e&&Se.alternate!==null&&pe.delete(Se.key===null?ge:Se.key),b=i(Se,b,ge),fe===null?ae=Se:fe.sibling=Se,fe=Se);return e&&pe.forEach(function($m){return t(S,$m)}),ze&&yr(S,ge),ae}function Ie(S,b,E,V){if(typeof E=="object"&&E!==null&&E.type===oe&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Z:e:{for(var ae=E.key,fe=b;fe!==null;){if(fe.key===ae){if(ae=E.type,ae===oe){if(fe.tag===7){r(S,fe.sibling),b=l(fe,E.props.children),b.return=S,S=b;break e}}else if(fe.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ye&&Hu(ae)===fe.type){r(S,fe.sibling),b=l(fe,E.props),b.ref=Gn(S,fe,E),b.return=S,S=b;break e}r(S,fe);break}else t(S,fe);fe=fe.sibling}E.type===oe?(b=Er(E.props.children,S.mode,V,E.key),b.return=S,S=b):(V=hs(E.type,E.key,E.props,null,S.mode,V),V.ref=Gn(S,b,E),V.return=S,S=V)}return d(S);case K:e:{for(fe=E.key;b!==null;){if(b.key===fe)if(b.tag===4&&b.stateNode.containerInfo===E.containerInfo&&b.stateNode.implementation===E.implementation){r(S,b.sibling),b=l(b,E.children||[]),b.return=S,S=b;break e}else{r(S,b);break}else t(S,b);b=b.sibling}b=Oa(E,S.mode,V),b.return=S,S=b}return d(S);case ye:return fe=E._init,Ie(S,b,fe(E._payload),V)}if(wn(E))return ne(S,b,E,V);if(ee(E))return se(S,b,E,V);Ho(S,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,b!==null&&b.tag===6?(r(S,b.sibling),b=l(b,E),b.return=S,S=b):(r(S,b),b=La(E,S.mode,V),b.return=S,S=b),d(S)):r(S,b)}return Ie}var Qr=Gu(!0),Ku=Gu(!1),Go=qt(null),Ko=null,Zr=null,Wl=null;function Vl(){Wl=Zr=Ko=null}function Hl(e){var t=Go.current;Pe(Go),e._currentValue=t}function Gl(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function qr(e,t){Ko=e,Wl=Zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nt=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(Wl!==e)if(e={context:e,memoizedValue:t,next:null},Zr===null){if(Ko===null)throw Error(a(308));Zr=e,Ko.dependencies={lanes:0,firstContext:e}}else Zr=Zr.next=e;return t}var br=null;function Kl(e){br===null?br=[e]:br.push(e)}function Qu(e,t,r,o){var l=t.interleaved;return l===null?(r.next=r,Kl(t)):(r.next=l.next,l.next=r),t.interleaved=r,Tt(e,o)}function Tt(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Xt=!1;function Ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function It(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function er(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ne&2)!==0){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,Tt(e,r)}return l=o.interleaved,l===null?(t.next=t,Kl(o)):(t.next=l.next,l.next=t),o.interleaved=t,Tt(e,r)}function Qo(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,il(e,r)}}function qu(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var l=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var d={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?l=i=d:i=i.next=d,r=r.next}while(r!==null);i===null?l=i=t:i=i.next=t}else l=i=t;r={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Zo(e,t,r,o){var l=e.updateQueue;Xt=!1;var i=l.firstBaseUpdate,d=l.lastBaseUpdate,v=l.shared.pending;if(v!==null){l.shared.pending=null;var y=v,L=y.next;y.next=null,d===null?i=L:d.next=L,d=y;var U=e.alternate;U!==null&&(U=U.updateQueue,v=U.lastBaseUpdate,v!==d&&(v===null?U.firstBaseUpdate=L:v.next=L,U.lastBaseUpdate=y))}if(i!==null){var B=l.baseState;d=0,U=L=y=null,v=i;do{var $=v.lane,X=v.eventTime;if((o&$)===$){U!==null&&(U=U.next={eventTime:X,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var ne=e,se=v;switch($=t,X=r,se.tag){case 1:if(ne=se.payload,typeof ne=="function"){B=ne.call(X,B,$);break e}B=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=se.payload,$=typeof ne=="function"?ne.call(X,B,$):ne,$==null)break e;B=Q({},B,$);break e;case 2:Xt=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,$=l.effects,$===null?l.effects=[v]:$.push(v))}else X={eventTime:X,lane:$,tag:v.tag,payload:v.payload,callback:v.callback,next:null},U===null?(L=U=X,y=B):U=U.next=X,d|=$;if(v=v.next,v===null){if(v=l.shared.pending,v===null)break;$=v,v=$.next,$.next=null,l.lastBaseUpdate=$,l.shared.pending=null}}while(!0);if(U===null&&(y=B),l.baseState=y,l.firstBaseUpdate=L,l.lastBaseUpdate=U,t=l.shared.interleaved,t!==null){l=t;do d|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);jr|=d,e.lanes=d,e.memoizedState=B}}function Yu(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=r,typeof l!="function")throw Error(a(191,l));l.call(o)}}}var Kn={},Et=qt(Kn),Qn=qt(Kn),Zn=qt(Kn);function wr(e){if(e===Kn)throw Error(a(174));return e}function Zl(e,t){switch(Me(Zn,t),Me(Qn,e),Me(Et,Kn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qs(t,e)}Pe(Et),Me(Et,t)}function Yr(){Pe(Et),Pe(Qn),Pe(Zn)}function Ju(e){wr(Zn.current);var t=wr(Et.current),r=qs(t,e.type);t!==r&&(Me(Qn,e),Me(Et,r))}function ql(e){Qn.current===e&&(Pe(Et),Pe(Qn))}var Le=qt(0);function qo(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Yl=[];function Jl(){for(var e=0;e<Yl.length;e++)Yl[e]._workInProgressVersionPrimary=null;Yl.length=0}var Yo=G.ReactCurrentDispatcher,Xl=G.ReactCurrentBatchConfig,kr=0,Oe=null,$e=null,Be=null,Jo=!1,qn=!1,Yn=0,im=0;function Ze(){throw Error(a(321))}function ea(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!vt(e[r],t[r]))return!1;return!0}function ta(e,t,r,o,l,i){if(kr=i,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=e===null||e.memoizedState===null?fm:pm,e=r(o,l),qn){i=0;do{if(qn=!1,Yn=0,25<=i)throw Error(a(301));i+=1,Be=$e=null,t.updateQueue=null,Yo.current=mm,e=r(o,l)}while(qn)}if(Yo.current=ts,t=$e!==null&&$e.next!==null,kr=0,Be=$e=Oe=null,Jo=!1,t)throw Error(a(300));return e}function ra(){var e=Yn!==0;return Yn=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?Oe.memoizedState=Be=e:Be=Be.next=e,Be}function mt(){if($e===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Be===null?Oe.memoizedState:Be.next;if(t!==null)Be=t,$e=e;else{if(e===null)throw Error(a(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Be===null?Oe.memoizedState=Be=e:Be=Be.next=e}return Be}function Jn(e,t){return typeof t=="function"?t(e):t}function na(e){var t=mt(),r=t.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=e;var o=$e,l=o.baseQueue,i=r.pending;if(i!==null){if(l!==null){var d=l.next;l.next=i.next,i.next=d}o.baseQueue=l=i,r.pending=null}if(l!==null){i=l.next,o=o.baseState;var v=d=null,y=null,L=i;do{var U=L.lane;if((kr&U)===U)y!==null&&(y=y.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),o=L.hasEagerState?L.eagerState:e(o,L.action);else{var B={lane:U,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};y===null?(v=y=B,d=o):y=y.next=B,Oe.lanes|=U,jr|=U}L=L.next}while(L!==null&&L!==i);y===null?d=o:y.next=v,vt(o,t.memoizedState)||(nt=!0),t.memoizedState=o,t.baseState=d,t.baseQueue=y,r.lastRenderedState=o}if(e=r.interleaved,e!==null){l=e;do i=l.lane,Oe.lanes|=i,jr|=i,l=l.next;while(l!==e)}else l===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function oa(e){var t=mt(),r=t.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=e;var o=r.dispatch,l=r.pending,i=t.memoizedState;if(l!==null){r.pending=null;var d=l=l.next;do i=e(i,d.action),d=d.next;while(d!==l);vt(i,t.memoizedState)||(nt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Xu(){}function ec(e,t){var r=Oe,o=mt(),l=t(),i=!vt(o.memoizedState,l);if(i&&(o.memoizedState=l,nt=!0),o=o.queue,sa(nc.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||Be!==null&&Be.memoizedState.tag&1){if(r.flags|=2048,Xn(9,rc.bind(null,r,o,l,t),void 0,null),We===null)throw Error(a(349));(kr&30)!==0||tc(r,t,l)}return l}function tc(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function rc(e,t,r,o){t.value=r,t.getSnapshot=o,oc(t)&&sc(e)}function nc(e,t,r){return r(function(){oc(t)&&sc(e)})}function oc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!vt(e,r)}catch{return!0}}function sc(e){var t=Tt(e,1);t!==null&&jt(t,e,1,-1)}function lc(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},t.queue=e,e=e.dispatch=dm.bind(null,Oe,e),[t.memoizedState,e]}function Xn(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function ac(){return mt().memoizedState}function Xo(e,t,r,o){var l=Mt();Oe.flags|=e,l.memoizedState=Xn(1|t,r,void 0,o===void 0?null:o)}function es(e,t,r,o){var l=mt();o=o===void 0?null:o;var i=void 0;if($e!==null){var d=$e.memoizedState;if(i=d.destroy,o!==null&&ea(o,d.deps)){l.memoizedState=Xn(t,r,i,o);return}}Oe.flags|=e,l.memoizedState=Xn(1|t,r,i,o)}function ic(e,t){return Xo(8390656,8,e,t)}function sa(e,t){return es(2048,8,e,t)}function uc(e,t){return es(4,2,e,t)}function cc(e,t){return es(4,4,e,t)}function dc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fc(e,t,r){return r=r!=null?r.concat([e]):null,es(4,4,dc.bind(null,t,e),r)}function la(){}function pc(e,t){var r=mt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&ea(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function mc(e,t){var r=mt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&ea(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function hc(e,t,r){return(kr&21)===0?(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=r):(vt(r,t)||(r=Hi(),Oe.lanes|=r,jr|=r,e.baseState=!0),t)}function um(e,t){var r=Ce;Ce=r!==0&&4>r?r:4,e(!0);var o=Xl.transition;Xl.transition={};try{e(!1),t()}finally{Ce=r,Xl.transition=o}}function gc(){return mt().memoizedState}function cm(e,t,r){var o=or(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},xc(e))vc(t,r);else if(r=Qu(e,t,r,o),r!==null){var l=Xe();jt(r,e,o,l),yc(r,t,o)}}function dm(e,t,r){var o=or(e),l={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(xc(e))vc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var d=t.lastRenderedState,v=i(d,r);if(l.hasEagerState=!0,l.eagerState=v,vt(v,d)){var y=t.interleaved;y===null?(l.next=l,Kl(t)):(l.next=y.next,y.next=l),t.interleaved=l;return}}catch{}finally{}r=Qu(e,t,l,o),r!==null&&(l=Xe(),jt(r,e,o,l),yc(r,t,o))}}function xc(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function vc(e,t){qn=Jo=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function yc(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,il(e,r)}}var ts={readContext:pt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},fm={readContext:pt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:ic,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xo(4194308,4,dc.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xo(4,2,e,t)},useMemo:function(e,t){var r=Mt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Mt();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=cm.bind(null,Oe,e),[o.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:lc,useDebugValue:la,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=lc(!1),t=e[0];return e=um.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Oe,l=Mt();if(ze){if(r===void 0)throw Error(a(407));r=r()}else{if(r=t(),We===null)throw Error(a(349));(kr&30)!==0||tc(o,t,r)}l.memoizedState=r;var i={value:r,getSnapshot:t};return l.queue=i,ic(nc.bind(null,o,i,e),[e]),o.flags|=2048,Xn(9,rc.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Mt(),t=We.identifierPrefix;if(ze){var r=At,o=Dt;r=(o&~(1<<32-xt(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Yn++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=im++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pm={readContext:pt,useCallback:pc,useContext:pt,useEffect:sa,useImperativeHandle:fc,useInsertionEffect:uc,useLayoutEffect:cc,useMemo:mc,useReducer:na,useRef:ac,useState:function(){return na(Jn)},useDebugValue:la,useDeferredValue:function(e){var t=mt();return hc(t,$e.memoizedState,e)},useTransition:function(){var e=na(Jn)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Xu,useSyncExternalStore:ec,useId:gc,unstable_isNewReconciler:!1},mm={readContext:pt,useCallback:pc,useContext:pt,useEffect:sa,useImperativeHandle:fc,useInsertionEffect:uc,useLayoutEffect:cc,useMemo:mc,useReducer:oa,useRef:ac,useState:function(){return oa(Jn)},useDebugValue:la,useDeferredValue:function(e){var t=mt();return $e===null?t.memoizedState=e:hc(t,$e.memoizedState,e)},useTransition:function(){var e=oa(Jn)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Xu,useSyncExternalStore:ec,useId:gc,unstable_isNewReconciler:!1};function bt(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function aa(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Q({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var rs={isMounted:function(e){return(e=e._reactInternals)?hr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Xe(),l=or(e),i=It(o,l);i.payload=t,r!=null&&(i.callback=r),t=er(e,i,l),t!==null&&(jt(t,e,l,o),Qo(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Xe(),l=or(e),i=It(o,l);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=er(e,i,l),t!==null&&(jt(t,e,l,o),Qo(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Xe(),o=or(e),l=It(r,o);l.tag=2,t!=null&&(l.callback=t),t=er(e,l,o),t!==null&&(jt(t,e,o,r),Qo(t,e,o))}};function bc(e,t,r,o,l,i,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,d):t.prototype&&t.prototype.isPureReactComponent?!Fn(r,o)||!Fn(l,i):!0}function wc(e,t,r){var o=!1,l=Yt,i=t.contextType;return typeof i=="object"&&i!==null?i=pt(i):(l=rt(t)?xr:Qe.current,o=t.contextTypes,i=(o=o!=null)?Vr(e,l):Yt),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=rs,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function kc(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function ia(e,t,r,o){var l=e.stateNode;l.props=r,l.state=e.memoizedState,l.refs={},Ql(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=pt(i):(i=rt(t)?xr:Qe.current,l.context=Vr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(aa(e,t,i,r),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&rs.enqueueReplaceState(l,l.state,null),Zo(e,r,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Jr(e,t){try{var r="",o=t;do r+=H(o),o=o.return;while(o);var l=r}catch(i){l=`
|
|
Error generating stack: `+i.message+`
|
|
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function ua(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ca(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var hm=typeof WeakMap=="function"?WeakMap:Map;function jc(e,t,r){r=It(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){us||(us=!0,Sa=o),ca(e,t)},r}function Nc(e,t,r){r=It(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;r.payload=function(){return o(l)},r.callback=function(){ca(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ca(e,t),typeof o!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),r}function Sc(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new hm;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(r)||(l.add(r),e=_m.bind(null,e,t,r),t.then(e,e))}function Cc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ec(e,t,r,o,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=It(-1,1),t.tag=2,er(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var gm=G.ReactCurrentOwner,nt=!1;function Je(e,t,r,o){t.child=e===null?Ku(t,null,r,o):Qr(t,e.child,r,o)}function Mc(e,t,r,o,l){r=r.render;var i=t.ref;return qr(t,l),o=ta(e,t,r,o,i,l),r=ra(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ft(e,t,l)):(ze&&r&&Il(t),t.flags|=1,Je(e,t,o,l),t.child)}function _c(e,t,r,o,l){if(e===null){var i=r.type;return typeof i=="function"&&!za(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,Pc(e,t,i,o,l)):(e=hs(r.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var d=i.memoizedProps;if(r=r.compare,r=r!==null?r:Fn,r(d,o)&&e.ref===t.ref)return Ft(e,t,l)}return t.flags|=1,e=lr(i,o),e.ref=t.ref,e.return=t,t.child=e}function Pc(e,t,r,o,l){if(e!==null){var i=e.memoizedProps;if(Fn(i,o)&&e.ref===t.ref)if(nt=!1,t.pendingProps=o=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Ft(e,t,l)}return da(e,t,r,o,l)}function Rc(e,t,r){var o=t.pendingProps,l=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(en,ct),ct|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Me(en,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Me(en,ct),ct|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Me(en,ct),ct|=o;return Je(e,t,l,r),t.child}function zc(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function da(e,t,r,o,l){var i=rt(r)?xr:Qe.current;return i=Vr(t,i),qr(t,l),r=ta(e,t,r,o,i,l),o=ra(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ft(e,t,l)):(ze&&o&&Il(t),t.flags|=1,Je(e,t,r,l),t.child)}function Lc(e,t,r,o,l){if(rt(r)){var i=!0;$o(t)}else i=!1;if(qr(t,l),t.stateNode===null)os(e,t),wc(t,r,o),ia(t,r,o,l),o=!0;else if(e===null){var d=t.stateNode,v=t.memoizedProps;d.props=v;var y=d.context,L=r.contextType;typeof L=="object"&&L!==null?L=pt(L):(L=rt(r)?xr:Qe.current,L=Vr(t,L));var U=r.getDerivedStateFromProps,B=typeof U=="function"||typeof d.getSnapshotBeforeUpdate=="function";B||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==o||y!==L)&&kc(t,d,o,L),Xt=!1;var $=t.memoizedState;d.state=$,Zo(t,o,d,l),y=t.memoizedState,v!==o||$!==y||tt.current||Xt?(typeof U=="function"&&(aa(t,r,U,o),y=t.memoizedState),(v=Xt||bc(t,r,v,o,$,y,L))?(B||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=y),d.props=o,d.state=y,d.context=L,o=v):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,Zu(e,t),v=t.memoizedProps,L=t.type===t.elementType?v:bt(t.type,v),d.props=L,B=t.pendingProps,$=d.context,y=r.contextType,typeof y=="object"&&y!==null?y=pt(y):(y=rt(r)?xr:Qe.current,y=Vr(t,y));var X=r.getDerivedStateFromProps;(U=typeof X=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==B||$!==y)&&kc(t,d,o,y),Xt=!1,$=t.memoizedState,d.state=$,Zo(t,o,d,l);var ne=t.memoizedState;v!==B||$!==ne||tt.current||Xt?(typeof X=="function"&&(aa(t,r,X,o),ne=t.memoizedState),(L=Xt||bc(t,r,L,o,$,ne,y)||!1)?(U||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,ne,y),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,ne,y)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=ne),d.props=o,d.state=ne,d.context=y,o=L):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),o=!1)}return fa(e,t,r,o,i,l)}function fa(e,t,r,o,l,i){zc(e,t);var d=(t.flags&128)!==0;if(!o&&!d)return l&&Iu(t,r,!1),Ft(e,t,i);o=t.stateNode,gm.current=t;var v=d&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&d?(t.child=Qr(t,e.child,null,i),t.child=Qr(t,null,v,i)):Je(e,t,v,i),t.memoizedState=o.state,l&&Iu(t,r,!0),t.child}function Oc(e){var t=e.stateNode;t.pendingContext?Au(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Au(e,t.context,!1),Zl(e,t.containerInfo)}function Dc(e,t,r,o,l){return Kr(),Bl(l),t.flags|=256,Je(e,t,r,o),t.child}var pa={dehydrated:null,treeContext:null,retryLane:0};function ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ac(e,t,r){var o=t.pendingProps,l=Le.current,i=!1,d=(t.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(l&2)!==0),v?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Me(Le,l&1),e===null)return Ul(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=o.children,e=o.fallback,i?(o=t.mode,i=t.child,d={mode:"hidden",children:d},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=d):i=gs(d,o,0,null),e=Er(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ma(r),t.memoizedState=pa,e):ha(t,d));if(l=e.memoizedState,l!==null&&(v=l.dehydrated,v!==null))return xm(e,t,d,o,v,l,r);if(i){i=o.fallback,d=t.mode,l=e.child,v=l.sibling;var y={mode:"hidden",children:o.children};return(d&1)===0&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=y,t.deletions=null):(o=lr(l,y),o.subtreeFlags=l.subtreeFlags&14680064),v!==null?i=lr(v,i):(i=Er(i,d,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,d=e.child.memoizedState,d=d===null?ma(r):{baseLanes:d.baseLanes|r,cachePool:null,transitions:d.transitions},i.memoizedState=d,i.childLanes=e.childLanes&~r,t.memoizedState=pa,o}return i=e.child,e=i.sibling,o=lr(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function ha(e,t){return t=gs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ns(e,t,r,o){return o!==null&&Bl(o),Qr(t,e.child,null,r),e=ha(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xm(e,t,r,o,l,i,d){if(r)return t.flags&256?(t.flags&=-257,o=ua(Error(a(422))),ns(e,t,d,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,l=t.mode,o=gs({mode:"visible",children:o.children},l,0,null),i=Er(i,l,d,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&Qr(t,e.child,null,d),t.child.memoizedState=ma(d),t.memoizedState=pa,i);if((t.mode&1)===0)return ns(e,t,d,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var v=o.dgst;return o=v,i=Error(a(419)),o=ua(i,o,void 0),ns(e,t,d,o)}if(v=(d&e.childLanes)!==0,nt||v){if(o=We,o!==null){switch(d&-d){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(o.suspendedLanes|d))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Tt(e,l),jt(o,e,l,-1))}return Ra(),o=ua(Error(a(421))),ns(e,t,d,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Pm.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,ut=Zt(l.nextSibling),it=t,ze=!0,yt=null,e!==null&&(dt[ft++]=Dt,dt[ft++]=At,dt[ft++]=vr,Dt=e.id,At=e.overflow,vr=t),t=ha(t,o.children),t.flags|=4096,t)}function Tc(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Gl(e.return,t,r)}function ga(e,t,r,o,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=l)}function Ic(e,t,r){var o=t.pendingProps,l=o.revealOrder,i=o.tail;if(Je(e,t,o.children,r),o=Le.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tc(e,r,t);else if(e.tag===19)Tc(e,r,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}o&=1}if(Me(Le,o),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(r=t.child,l=null;r!==null;)e=r.alternate,e!==null&&qo(e)===null&&(l=r),r=r.sibling;r=l,r===null?(l=t.child,t.child=null):(l=r.sibling,r.sibling=null),ga(t,!1,l,r,i);break;case"backwards":for(r=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&qo(e)===null){t.child=l;break}e=l.sibling,l.sibling=r,r=l,l=e}ga(t,!0,r,null,i);break;case"together":ga(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function os(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),jr|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,r=lr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=lr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function vm(e,t,r){switch(t.tag){case 3:Oc(t),Kr();break;case 5:Ju(t);break;case 1:rt(t.type)&&$o(t);break;case 4:Zl(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;Me(Go,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Me(Le,Le.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Ac(e,t,r):(Me(Le,Le.current&1),e=Ft(e,t,r),e!==null?e.sibling:null);Me(Le,Le.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Ic(e,t,r);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Me(Le,Le.current),o)break;return null;case 22:case 23:return t.lanes=0,Rc(e,t,r)}return Ft(e,t,r)}var Fc,xa,$c,Uc;Fc=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},xa=function(){},$c=function(e,t,r,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,wr(Et.current);var i=null;switch(r){case"input":l=zt(e,l),o=zt(e,o),i=[];break;case"select":l=Q({},l,{value:void 0}),o=Q({},o,{value:void 0}),i=[];break;case"textarea":l=Zs(e,l),o=Zs(e,o),i=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=To)}Ys(r,o);var d;r=null;for(L in l)if(!o.hasOwnProperty(L)&&l.hasOwnProperty(L)&&l[L]!=null)if(L==="style"){var v=l[L];for(d in v)v.hasOwnProperty(d)&&(r||(r={}),r[d]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(f.hasOwnProperty(L)?i||(i=[]):(i=i||[]).push(L,null));for(L in o){var y=o[L];if(v=l!=null?l[L]:void 0,o.hasOwnProperty(L)&&y!==v&&(y!=null||v!=null))if(L==="style")if(v){for(d in v)!v.hasOwnProperty(d)||y&&y.hasOwnProperty(d)||(r||(r={}),r[d]="");for(d in y)y.hasOwnProperty(d)&&v[d]!==y[d]&&(r||(r={}),r[d]=y[d])}else r||(i||(i=[]),i.push(L,r)),r=y;else L==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,v=v?v.__html:void 0,y!=null&&v!==y&&(i=i||[]).push(L,y)):L==="children"?typeof y!="string"&&typeof y!="number"||(i=i||[]).push(L,""+y):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(f.hasOwnProperty(L)?(y!=null&&L==="onScroll"&&_e("scroll",e),i||v===y||(i=[])):(i=i||[]).push(L,y))}r&&(i=i||[]).push("style",r);var L=i;(t.updateQueue=L)&&(t.flags|=4)}},Uc=function(e,t,r,o){r!==o&&(t.flags|=4)};function eo(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var l=e.child;l!==null;)r|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)r|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function ym(e,t,r){var o=t.pendingProps;switch(Fl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return rt(t.type)&&Fo(),qe(t),null;case 3:return o=t.stateNode,Yr(),Pe(tt),Pe(Qe),Jl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Vo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yt!==null&&(Ma(yt),yt=null))),xa(e,t),qe(t),null;case 5:ql(t);var l=wr(Zn.current);if(r=t.type,e!==null&&t.stateNode!=null)$c(e,t,r,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(a(166));return qe(t),null}if(e=wr(Et.current),Vo(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Ct]=t,o[Vn]=i,e=(t.mode&1)!==0,r){case"dialog":_e("cancel",o),_e("close",o);break;case"iframe":case"object":case"embed":_e("load",o);break;case"video":case"audio":for(l=0;l<Un.length;l++)_e(Un[l],o);break;case"source":_e("error",o);break;case"img":case"image":case"link":_e("error",o),_e("load",o);break;case"details":_e("toggle",o);break;case"input":bn(o,i),_e("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},_e("invalid",o);break;case"textarea":Ni(o,i),_e("invalid",o)}Ys(r,i),l=null;for(var d in i)if(i.hasOwnProperty(d)){var v=i[d];d==="children"?typeof v=="string"?o.textContent!==v&&(i.suppressHydrationWarning!==!0&&Ao(o.textContent,v,e),l=["children",v]):typeof v=="number"&&o.textContent!==""+v&&(i.suppressHydrationWarning!==!0&&Ao(o.textContent,v,e),l=["children",""+v]):f.hasOwnProperty(d)&&v!=null&&d==="onScroll"&&_e("scroll",o)}switch(r){case"input":De(o),ji(o,i,!0);break;case"textarea":De(o),Ci(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=To)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{d=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ei(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(r,{is:o.is}):(e=d.createElement(r),r==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,r),e[Ct]=t,e[Vn]=o,Fc(e,t,!1,!1),t.stateNode=e;e:{switch(d=Js(r,o),r){case"dialog":_e("cancel",e),_e("close",e),l=o;break;case"iframe":case"object":case"embed":_e("load",e),l=o;break;case"video":case"audio":for(l=0;l<Un.length;l++)_e(Un[l],e);l=o;break;case"source":_e("error",e),l=o;break;case"img":case"image":case"link":_e("error",e),_e("load",e),l=o;break;case"details":_e("toggle",e),l=o;break;case"input":bn(e,o),l=zt(e,o),_e("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=Q({},o,{value:void 0}),_e("invalid",e);break;case"textarea":Ni(e,o),l=Zs(e,o),_e("invalid",e);break;default:l=o}Ys(r,l),v=l;for(i in v)if(v.hasOwnProperty(i)){var y=v[i];i==="style"?Pi(e,y):i==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&Mi(e,y)):i==="children"?typeof y=="string"?(r!=="textarea"||y!=="")&&kn(e,y):typeof y=="number"&&kn(e,""+y):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(f.hasOwnProperty(i)?y!=null&&i==="onScroll"&&_e("scroll",e):y!=null&&I(e,i,y,d))}switch(r){case"input":De(e),ji(e,o,!1);break;case"textarea":De(e),Ci(e);break;case"option":o.value!=null&&e.setAttribute("value",""+P(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?zr(e,!!o.multiple,i,!1):o.defaultValue!=null&&zr(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=To)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Uc(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(a(166));if(r=wr(Zn.current),wr(Et.current),Vo(t)){if(o=t.stateNode,r=t.memoizedProps,o[Ct]=t,(i=o.nodeValue!==r)&&(e=it,e!==null))switch(e.tag){case 3:Ao(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ao(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Ct]=t,t.stateNode=o}return qe(t),null;case 13:if(Pe(Le),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&ut!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Vu(),Kr(),t.flags|=98560,i=!1;else if(i=Vo(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(317));i[Ct]=t}else Kr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else yt!==null&&(Ma(yt),yt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Le.current&1)!==0?Ue===0&&(Ue=3):Ra())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return Yr(),xa(e,t),e===null&&Bn(t.stateNode.containerInfo),qe(t),null;case 10:return Hl(t.type._context),qe(t),null;case 17:return rt(t.type)&&Fo(),qe(t),null;case 19:if(Pe(Le),i=t.memoizedState,i===null)return qe(t),null;if(o=(t.flags&128)!==0,d=i.rendering,d===null)if(o)eo(i,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=qo(e),d!==null){for(t.flags|=128,eo(i,!1),o=d.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,d=i.alternate,d===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=d.childLanes,i.lanes=d.lanes,i.child=d.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=d.memoizedProps,i.memoizedState=d.memoizedState,i.updateQueue=d.updateQueue,i.type=d.type,e=d.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Me(Le,Le.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>tn&&(t.flags|=128,o=!0,eo(i,!1),t.lanes=4194304)}else{if(!o)if(e=qo(d),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),eo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!ze)return qe(t),null}else 2*Te()-i.renderingStartTime>tn&&r!==1073741824&&(t.flags|=128,o=!0,eo(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(r=i.last,r!==null?r.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,r=Le.current,Me(Le,o?r&1|2:r&1),t):(qe(t),null);case 22:case 23:return Pa(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(ct&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function bm(e,t){switch(Fl(t),t.tag){case 1:return rt(t.type)&&Fo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yr(),Pe(tt),Pe(Qe),Jl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ql(t),null;case 13:if(Pe(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Le),null;case 4:return Yr(),null;case 10:return Hl(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var ss=!1,Ye=!1,wm=typeof WeakSet=="function"?WeakSet:Set,re=null;function Xr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Ae(e,t,o)}else r.current=null}function va(e,t,r){try{r()}catch(o){Ae(e,t,o)}}var Bc=!1;function km(e,t){if(Pl=So,e=bu(),kl(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var l=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var d=0,v=-1,y=-1,L=0,U=0,B=e,$=null;t:for(;;){for(var X;B!==r||l!==0&&B.nodeType!==3||(v=d+l),B!==i||o!==0&&B.nodeType!==3||(y=d+o),B.nodeType===3&&(d+=B.nodeValue.length),(X=B.firstChild)!==null;)$=B,B=X;for(;;){if(B===e)break t;if($===r&&++L===l&&(v=d),$===i&&++U===o&&(y=d),(X=B.nextSibling)!==null)break;B=$,$=B.parentNode}B=X}r=v===-1||y===-1?null:{start:v,end:y}}else r=null}r=r||{start:0,end:0}}else r=null;for(Rl={focusedElem:e,selectionRange:r},So=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var ne=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var se=ne.memoizedProps,Ie=ne.memoizedState,S=t.stateNode,b=S.getSnapshotBeforeUpdate(t.elementType===t.type?se:bt(t.type,se),Ie);S.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(V){Ae(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return ne=Bc,Bc=!1,ne}function to(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&va(t,r,i)}l=l.next}while(l!==o)}}function ls(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function ya(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Wc(e){var t=e.alternate;t!==null&&(e.alternate=null,Wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[Vn],delete t[Dl],delete t[om],delete t[sm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vc(e){return e.tag===5||e.tag===3||e.tag===4}function Hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vc(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.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 ba(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=To));else if(o!==4&&(e=e.child,e!==null))for(ba(e,t,r),e=e.sibling;e!==null;)ba(e,t,r),e=e.sibling}function wa(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(wa(e,t,r),e=e.sibling;e!==null;)wa(e,t,r),e=e.sibling}var He=null,wt=!1;function tr(e,t,r){for(r=r.child;r!==null;)Gc(e,t,r),r=r.sibling}function Gc(e,t,r){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(yo,r)}catch{}switch(r.tag){case 5:Ye||Xr(r,t);case 6:var o=He,l=wt;He=null,tr(e,t,r),He=o,wt=l,He!==null&&(wt?(e=He,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):He.removeChild(r.stateNode));break;case 18:He!==null&&(wt?(e=He,r=r.stateNode,e.nodeType===8?Ol(e.parentNode,r):e.nodeType===1&&Ol(e,r),Ln(e)):Ol(He,r.stateNode));break;case 4:o=He,l=wt,He=r.stateNode.containerInfo,wt=!0,tr(e,t,r),He=o,wt=l;break;case 0:case 11:case 14:case 15:if(!Ye&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var i=l,d=i.destroy;i=i.tag,d!==void 0&&((i&2)!==0||(i&4)!==0)&&va(r,t,d),l=l.next}while(l!==o)}tr(e,t,r);break;case 1:if(!Ye&&(Xr(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(v){Ae(r,t,v)}tr(e,t,r);break;case 21:tr(e,t,r);break;case 22:r.mode&1?(Ye=(o=Ye)||r.memoizedState!==null,tr(e,t,r),Ye=o):tr(e,t,r);break;default:tr(e,t,r)}}function Kc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new wm),t.forEach(function(o){var l=Rm.bind(null,e,o);r.has(o)||(r.add(o),o.then(l,l))})}}function kt(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var l=r[o];try{var i=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 5:He=v.stateNode,wt=!1;break e;case 3:He=v.stateNode.containerInfo,wt=!0;break e;case 4:He=v.stateNode.containerInfo,wt=!0;break e}v=v.return}if(He===null)throw Error(a(160));Gc(i,d,l),He=null,wt=!1;var y=l.alternate;y!==null&&(y.return=null),l.return=null}catch(L){Ae(l,t,L)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qc(t,e),t=t.sibling}function Qc(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kt(t,e),_t(e),o&4){try{to(3,e,e.return),ls(3,e)}catch(se){Ae(e,e.return,se)}try{to(5,e,e.return)}catch(se){Ae(e,e.return,se)}}break;case 1:kt(t,e),_t(e),o&512&&r!==null&&Xr(r,r.return);break;case 5:if(kt(t,e),_t(e),o&512&&r!==null&&Xr(r,r.return),e.flags&32){var l=e.stateNode;try{kn(l,"")}catch(se){Ae(e,e.return,se)}}if(o&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,d=r!==null?r.memoizedProps:i,v=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{v==="input"&&i.type==="radio"&&i.name!=null&&ki(l,i),Js(v,d);var L=Js(v,i);for(d=0;d<y.length;d+=2){var U=y[d],B=y[d+1];U==="style"?Pi(l,B):U==="dangerouslySetInnerHTML"?Mi(l,B):U==="children"?kn(l,B):I(l,U,B,L)}switch(v){case"input":Ks(l,i);break;case"textarea":Si(l,i);break;case"select":var $=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var X=i.value;X!=null?zr(l,!!i.multiple,X,!1):$!==!!i.multiple&&(i.defaultValue!=null?zr(l,!!i.multiple,i.defaultValue,!0):zr(l,!!i.multiple,i.multiple?[]:"",!1))}l[Vn]=i}catch(se){Ae(e,e.return,se)}}break;case 6:if(kt(t,e),_t(e),o&4){if(e.stateNode===null)throw Error(a(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(se){Ae(e,e.return,se)}}break;case 3:if(kt(t,e),_t(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Ln(t.containerInfo)}catch(se){Ae(e,e.return,se)}break;case 4:kt(t,e),_t(e);break;case 13:kt(t,e),_t(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Na=Te())),o&4&&Kc(e);break;case 22:if(U=r!==null&&r.memoizedState!==null,e.mode&1?(Ye=(L=Ye)||U,kt(t,e),Ye=L):kt(t,e),_t(e),o&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!U&&(e.mode&1)!==0)for(re=e,U=e.child;U!==null;){for(B=re=U;re!==null;){switch($=re,X=$.child,$.tag){case 0:case 11:case 14:case 15:to(4,$,$.return);break;case 1:Xr($,$.return);var ne=$.stateNode;if(typeof ne.componentWillUnmount=="function"){o=$,r=$.return;try{t=o,ne.props=t.memoizedProps,ne.state=t.memoizedState,ne.componentWillUnmount()}catch(se){Ae(o,r,se)}}break;case 5:Xr($,$.return);break;case 22:if($.memoizedState!==null){Yc(B);continue}}X!==null?(X.return=$,re=X):Yc(B)}U=U.sibling}e:for(U=null,B=e;;){if(B.tag===5){if(U===null){U=B;try{l=B.stateNode,L?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(v=B.stateNode,y=B.memoizedProps.style,d=y!=null&&y.hasOwnProperty("display")?y.display:null,v.style.display=_i("display",d))}catch(se){Ae(e,e.return,se)}}}else if(B.tag===6){if(U===null)try{B.stateNode.nodeValue=L?"":B.memoizedProps}catch(se){Ae(e,e.return,se)}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===e)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===e)break e;for(;B.sibling===null;){if(B.return===null||B.return===e)break e;U===B&&(U=null),B=B.return}U===B&&(U=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:kt(t,e),_t(e),o&4&&Kc(e);break;case 21:break;default:kt(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Vc(r)){var o=r;break e}r=r.return}throw Error(a(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(kn(l,""),o.flags&=-33);var i=Hc(e);wa(e,i,l);break;case 3:case 4:var d=o.stateNode.containerInfo,v=Hc(e);ba(e,v,d);break;default:throw Error(a(161))}}catch(y){Ae(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jm(e,t,r){re=e,Zc(e)}function Zc(e,t,r){for(var o=(e.mode&1)!==0;re!==null;){var l=re,i=l.child;if(l.tag===22&&o){var d=l.memoizedState!==null||ss;if(!d){var v=l.alternate,y=v!==null&&v.memoizedState!==null||Ye;v=ss;var L=Ye;if(ss=d,(Ye=y)&&!L)for(re=l;re!==null;)d=re,y=d.child,d.tag===22&&d.memoizedState!==null?Jc(l):y!==null?(y.return=d,re=y):Jc(l);for(;i!==null;)re=i,Zc(i),i=i.sibling;re=l,ss=v,Ye=L}qc(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,re=i):qc(e)}}function qc(e){for(;re!==null;){var t=re;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||ls(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Ye)if(r===null)o.componentDidMount();else{var l=t.elementType===t.type?r.memoizedProps:bt(t.type,r.memoizedProps);o.componentDidUpdate(l,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Yu(t,i,o);break;case 3:var d=t.updateQueue;if(d!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Yu(t,d,r)}break;case 5:var v=t.stateNode;if(r===null&&t.flags&4){r=v;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&r.focus();break;case"img":y.src&&(r.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var L=t.alternate;if(L!==null){var U=L.memoizedState;if(U!==null){var B=U.dehydrated;B!==null&&Ln(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Ye||t.flags&512&&ya(t)}catch($){Ae(t,t.return,$)}}if(t===e){re=null;break}if(r=t.sibling,r!==null){r.return=t.return,re=r;break}re=t.return}}function Yc(e){for(;re!==null;){var t=re;if(t===e){re=null;break}var r=t.sibling;if(r!==null){r.return=t.return,re=r;break}re=t.return}}function Jc(e){for(;re!==null;){var t=re;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ls(4,t)}catch(y){Ae(t,r,y)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(y){Ae(t,l,y)}}var i=t.return;try{ya(t)}catch(y){Ae(t,i,y)}break;case 5:var d=t.return;try{ya(t)}catch(y){Ae(t,d,y)}}}catch(y){Ae(t,t.return,y)}if(t===e){re=null;break}var v=t.sibling;if(v!==null){v.return=t.return,re=v;break}re=t.return}}var Nm=Math.ceil,as=G.ReactCurrentDispatcher,ka=G.ReactCurrentOwner,ht=G.ReactCurrentBatchConfig,Ne=0,We=null,Fe=null,Ge=0,ct=0,en=qt(0),Ue=0,ro=null,jr=0,is=0,ja=0,no=null,ot=null,Na=0,tn=1/0,$t=null,us=!1,Sa=null,rr=null,cs=!1,nr=null,ds=0,oo=0,Ca=null,fs=-1,ps=0;function Xe(){return(Ne&6)!==0?Te():fs!==-1?fs:fs=Te()}function or(e){return(e.mode&1)===0?1:(Ne&2)!==0&&Ge!==0?Ge&-Ge:am.transition!==null?(ps===0&&(ps=Hi()),ps):(e=Ce,e!==0||(e=window.event,e=e===void 0?16:eu(e.type)),e)}function jt(e,t,r,o){if(50<oo)throw oo=0,Ca=null,Error(a(185));Mn(e,r,o),((Ne&2)===0||e!==We)&&(e===We&&((Ne&2)===0&&(is|=r),Ue===4&&sr(e,Ge)),st(e,o),r===1&&Ne===0&&(t.mode&1)===0&&(tn=Te()+500,Uo&&Jt()))}function st(e,t){var r=e.callbackNode;ap(e,t);var o=ko(e,e===We?Ge:0);if(o===0)r!==null&&Bi(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Bi(r),t===1)e.tag===0?lm(ed.bind(null,e)):Fu(ed.bind(null,e)),rm(function(){(Ne&6)===0&&Jt()}),r=null;else{switch(Gi(o)){case 1:r=sl;break;case 4:r=Wi;break;case 16:r=vo;break;case 536870912:r=Vi;break;default:r=vo}r=id(r,Xc.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Xc(e,t){if(fs=-1,ps=0,(Ne&6)!==0)throw Error(a(327));var r=e.callbackNode;if(rn()&&e.callbackNode!==r)return null;var o=ko(e,e===We?Ge:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=ms(e,o);else{t=o;var l=Ne;Ne|=2;var i=rd();(We!==e||Ge!==t)&&($t=null,tn=Te()+500,Sr(e,t));do try{Em();break}catch(v){td(e,v)}while(!0);Vl(),as.current=i,Ne=l,Fe!==null?t=0:(We=null,Ge=0,t=Ue)}if(t!==0){if(t===2&&(l=ll(e),l!==0&&(o=l,t=Ea(e,l))),t===1)throw r=ro,Sr(e,0),sr(e,o),st(e,Te()),r;if(t===6)sr(e,o);else{if(l=e.current.alternate,(o&30)===0&&!Sm(l)&&(t=ms(e,o),t===2&&(i=ll(e),i!==0&&(o=i,t=Ea(e,i))),t===1))throw r=ro,Sr(e,0),sr(e,o),st(e,Te()),r;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(a(345));case 2:Cr(e,ot,$t);break;case 3:if(sr(e,o),(o&130023424)===o&&(t=Na+500-Te(),10<t)){if(ko(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){Xe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ll(Cr.bind(null,e,ot,$t),t);break}Cr(e,ot,$t);break;case 4:if(sr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var d=31-xt(o);i=1<<d,d=t[d],d>l&&(l=d),o&=~i}if(o=l,o=Te()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Nm(o/1960))-o,10<o){e.timeoutHandle=Ll(Cr.bind(null,e,ot,$t),o);break}Cr(e,ot,$t);break;case 5:Cr(e,ot,$t);break;default:throw Error(a(329))}}}return st(e,Te()),e.callbackNode===r?Xc.bind(null,e):null}function Ea(e,t){var r=no;return e.current.memoizedState.isDehydrated&&(Sr(e,t).flags|=256),e=ms(e,t),e!==2&&(t=ot,ot=r,t!==null&&Ma(t)),e}function Ma(e){ot===null?ot=e:ot.push.apply(ot,e)}function Sm(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var l=r[o],i=l.getSnapshot;l=l.value;try{if(!vt(i(),l))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 sr(e,t){for(t&=~ja,t&=~is,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-xt(t),o=1<<r;e[r]=-1,t&=~o}}function ed(e){if((Ne&6)!==0)throw Error(a(327));rn();var t=ko(e,0);if((t&1)===0)return st(e,Te()),null;var r=ms(e,t);if(e.tag!==0&&r===2){var o=ll(e);o!==0&&(t=o,r=Ea(e,o))}if(r===1)throw r=ro,Sr(e,0),sr(e,t),st(e,Te()),r;if(r===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cr(e,ot,$t),st(e,Te()),null}function _a(e,t){var r=Ne;Ne|=1;try{return e(t)}finally{Ne=r,Ne===0&&(tn=Te()+500,Uo&&Jt())}}function Nr(e){nr!==null&&nr.tag===0&&(Ne&6)===0&&rn();var t=Ne;Ne|=1;var r=ht.transition,o=Ce;try{if(ht.transition=null,Ce=1,e)return e()}finally{Ce=o,ht.transition=r,Ne=t,(Ne&6)===0&&Jt()}}function Pa(){ct=en.current,Pe(en)}function Sr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,tm(r)),Fe!==null)for(r=Fe.return;r!==null;){var o=r;switch(Fl(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Fo();break;case 3:Yr(),Pe(tt),Pe(Qe),Jl();break;case 5:ql(o);break;case 4:Yr();break;case 13:Pe(Le);break;case 19:Pe(Le);break;case 10:Hl(o.type._context);break;case 22:case 23:Pa()}r=r.return}if(We=e,Fe=e=lr(e.current,null),Ge=ct=t,Ue=0,ro=null,ja=is=jr=0,ot=no=null,br!==null){for(t=0;t<br.length;t++)if(r=br[t],o=r.interleaved,o!==null){r.interleaved=null;var l=o.next,i=r.pending;if(i!==null){var d=i.next;i.next=l,o.next=d}r.pending=o}br=null}return e}function td(e,t){do{var r=Fe;try{if(Vl(),Yo.current=ts,Jo){for(var o=Oe.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}Jo=!1}if(kr=0,Be=$e=Oe=null,qn=!1,Yn=0,ka.current=null,r===null||r.return===null){Ue=1,ro=t,Fe=null;break}e:{var i=e,d=r.return,v=r,y=t;if(t=Ge,v.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var L=y,U=v,B=U.tag;if((U.mode&1)===0&&(B===0||B===11||B===15)){var $=U.alternate;$?(U.updateQueue=$.updateQueue,U.memoizedState=$.memoizedState,U.lanes=$.lanes):(U.updateQueue=null,U.memoizedState=null)}var X=Cc(d);if(X!==null){X.flags&=-257,Ec(X,d,v,i,t),X.mode&1&&Sc(i,L,t),t=X,y=L;var ne=t.updateQueue;if(ne===null){var se=new Set;se.add(y),t.updateQueue=se}else ne.add(y);break e}else{if((t&1)===0){Sc(i,L,t),Ra();break e}y=Error(a(426))}}else if(ze&&v.mode&1){var Ie=Cc(d);if(Ie!==null){(Ie.flags&65536)===0&&(Ie.flags|=256),Ec(Ie,d,v,i,t),Bl(Jr(y,v));break e}}i=y=Jr(y,v),Ue!==4&&(Ue=2),no===null?no=[i]:no.push(i),i=d;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var S=jc(i,y,t);qu(i,S);break e;case 1:v=y;var b=i.type,E=i.stateNode;if((i.flags&128)===0&&(typeof b.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(rr===null||!rr.has(E)))){i.flags|=65536,t&=-t,i.lanes|=t;var V=Nc(i,v,t);qu(i,V);break e}}i=i.return}while(i!==null)}od(r)}catch(ae){t=ae,Fe===r&&r!==null&&(Fe=r=r.return);continue}break}while(!0)}function rd(){var e=as.current;return as.current=ts,e===null?ts:e}function Ra(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),We===null||(jr&268435455)===0&&(is&268435455)===0||sr(We,Ge)}function ms(e,t){var r=Ne;Ne|=2;var o=rd();(We!==e||Ge!==t)&&($t=null,Sr(e,t));do try{Cm();break}catch(l){td(e,l)}while(!0);if(Vl(),Ne=r,as.current=o,Fe!==null)throw Error(a(261));return We=null,Ge=0,Ue}function Cm(){for(;Fe!==null;)nd(Fe)}function Em(){for(;Fe!==null&&!Jf();)nd(Fe)}function nd(e){var t=ad(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?od(e):Fe=t,ka.current=null}function od(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=ym(r,t,ct),r!==null){Fe=r;return}}else{if(r=bm(r,t),r!==null){r.flags&=32767,Fe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);Ue===0&&(Ue=5)}function Cr(e,t,r){var o=Ce,l=ht.transition;try{ht.transition=null,Ce=1,Mm(e,t,r,o)}finally{ht.transition=l,Ce=o}return null}function Mm(e,t,r,o){do rn();while(nr!==null);if((Ne&6)!==0)throw Error(a(327));r=e.finishedWork;var l=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(ip(e,i),e===We&&(Fe=We=null,Ge=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||cs||(cs=!0,id(vo,function(){return rn(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=ht.transition,ht.transition=null;var d=Ce;Ce=1;var v=Ne;Ne|=4,ka.current=null,km(e,r),Qc(r,e),Qp(Rl),So=!!Pl,Rl=Pl=null,e.current=r,jm(r),Xf(),Ne=v,Ce=d,ht.transition=i}else e.current=r;if(cs&&(cs=!1,nr=e,ds=l),i=e.pendingLanes,i===0&&(rr=null),rp(r.stateNode),st(e,Te()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)l=t[r],o(l.value,{componentStack:l.stack,digest:l.digest});if(us)throw us=!1,e=Sa,Sa=null,e;return(ds&1)!==0&&e.tag!==0&&rn(),i=e.pendingLanes,(i&1)!==0?e===Ca?oo++:(oo=0,Ca=e):oo=0,Jt(),null}function rn(){if(nr!==null){var e=Gi(ds),t=ht.transition,r=Ce;try{if(ht.transition=null,Ce=16>e?16:e,nr===null)var o=!1;else{if(e=nr,nr=null,ds=0,(Ne&6)!==0)throw Error(a(331));var l=Ne;for(Ne|=4,re=e.current;re!==null;){var i=re,d=i.child;if((re.flags&16)!==0){var v=i.deletions;if(v!==null){for(var y=0;y<v.length;y++){var L=v[y];for(re=L;re!==null;){var U=re;switch(U.tag){case 0:case 11:case 15:to(8,U,i)}var B=U.child;if(B!==null)B.return=U,re=B;else for(;re!==null;){U=re;var $=U.sibling,X=U.return;if(Wc(U),U===L){re=null;break}if($!==null){$.return=X,re=$;break}re=X}}}var ne=i.alternate;if(ne!==null){var se=ne.child;if(se!==null){ne.child=null;do{var Ie=se.sibling;se.sibling=null,se=Ie}while(se!==null)}}re=i}}if((i.subtreeFlags&2064)!==0&&d!==null)d.return=i,re=d;else e:for(;re!==null;){if(i=re,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:to(9,i,i.return)}var S=i.sibling;if(S!==null){S.return=i.return,re=S;break e}re=i.return}}var b=e.current;for(re=b;re!==null;){d=re;var E=d.child;if((d.subtreeFlags&2064)!==0&&E!==null)E.return=d,re=E;else e:for(d=b;re!==null;){if(v=re,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:ls(9,v)}}catch(ae){Ae(v,v.return,ae)}if(v===d){re=null;break e}var V=v.sibling;if(V!==null){V.return=v.return,re=V;break e}re=v.return}}if(Ne=l,Jt(),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(yo,e)}catch{}o=!0}return o}finally{Ce=r,ht.transition=t}}return!1}function sd(e,t,r){t=Jr(r,t),t=jc(e,t,1),e=er(e,t,1),t=Xe(),e!==null&&(Mn(e,1,t),st(e,t))}function Ae(e,t,r){if(e.tag===3)sd(e,e,r);else for(;t!==null;){if(t.tag===3){sd(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(rr===null||!rr.has(o))){e=Jr(r,e),e=Nc(t,e,1),t=er(t,e,1),e=Xe(),t!==null&&(Mn(t,1,e),st(t,e));break}}t=t.return}}function _m(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&r,We===e&&(Ge&r)===r&&(Ue===4||Ue===3&&(Ge&130023424)===Ge&&500>Te()-Na?Sr(e,0):ja|=r),st(e,t)}function ld(e,t){t===0&&((e.mode&1)===0?t=1:(t=wo,wo<<=1,(wo&130023424)===0&&(wo=4194304)));var r=Xe();e=Tt(e,t),e!==null&&(Mn(e,t,r),st(e,r))}function Pm(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ld(e,r)}function Rm(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(r=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(a(314))}o!==null&&o.delete(t),ld(e,r)}var ad;ad=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)nt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return nt=!1,vm(e,t,r);nt=(e.flags&131072)!==0}else nt=!1,ze&&(t.flags&1048576)!==0&&$u(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;os(e,t),e=t.pendingProps;var l=Vr(t,Qe.current);qr(t,r),l=ta(null,t,o,e,l,r);var i=ra();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(o)?(i=!0,$o(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ql(t),l.updater=rs,t.stateNode=l,l._reactInternals=t,ia(t,o,e,r),t=fa(null,t,o,!0,i,r)):(t.tag=0,ze&&i&&Il(t),Je(null,t,l,r),t=t.child),t;case 16:o=t.elementType;e:{switch(os(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=Lm(o),e=bt(o,e),l){case 0:t=da(null,t,o,e,r);break e;case 1:t=Lc(null,t,o,e,r);break e;case 11:t=Mc(null,t,o,e,r);break e;case 14:t=_c(null,t,o,bt(o.type,e),r);break e}throw Error(a(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:bt(o,l),da(e,t,o,l,r);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:bt(o,l),Lc(e,t,o,l,r);case 3:e:{if(Oc(t),e===null)throw Error(a(387));o=t.pendingProps,i=t.memoizedState,l=i.element,Zu(e,t),Zo(t,o,null,r);var d=t.memoizedState;if(o=d.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Jr(Error(a(423)),t),t=Dc(e,t,o,r,l);break e}else if(o!==l){l=Jr(Error(a(424)),t),t=Dc(e,t,o,r,l);break e}else for(ut=Zt(t.stateNode.containerInfo.firstChild),it=t,ze=!0,yt=null,r=Ku(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Kr(),o===l){t=Ft(e,t,r);break e}Je(e,t,o,r)}t=t.child}return t;case 5:return Ju(t),e===null&&Ul(t),o=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,d=l.children,zl(o,l)?d=null:i!==null&&zl(o,i)&&(t.flags|=32),zc(e,t),Je(e,t,d,r),t.child;case 6:return e===null&&Ul(t),null;case 13:return Ac(e,t,r);case 4:return Zl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Qr(t,null,o,r):Je(e,t,o,r),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:bt(o,l),Mc(e,t,o,l,r);case 7:return Je(e,t,t.pendingProps,r),t.child;case 8:return Je(e,t,t.pendingProps.children,r),t.child;case 12:return Je(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,i=t.memoizedProps,d=l.value,Me(Go,o._currentValue),o._currentValue=d,i!==null)if(vt(i.value,d)){if(i.children===l.children&&!tt.current){t=Ft(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var v=i.dependencies;if(v!==null){d=i.child;for(var y=v.firstContext;y!==null;){if(y.context===o){if(i.tag===1){y=It(-1,r&-r),y.tag=2;var L=i.updateQueue;if(L!==null){L=L.shared;var U=L.pending;U===null?y.next=y:(y.next=U.next,U.next=y),L.pending=y}}i.lanes|=r,y=i.alternate,y!==null&&(y.lanes|=r),Gl(i.return,r,t),v.lanes|=r;break}y=y.next}}else if(i.tag===10)d=i.type===t.type?null:i.child;else if(i.tag===18){if(d=i.return,d===null)throw Error(a(341));d.lanes|=r,v=d.alternate,v!==null&&(v.lanes|=r),Gl(d,r,t),d=i.sibling}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===t){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}Je(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,qr(t,r),l=pt(l),o=o(l),t.flags|=1,Je(e,t,o,r),t.child;case 14:return o=t.type,l=bt(o,t.pendingProps),l=bt(o.type,l),_c(e,t,o,l,r);case 15:return Pc(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:bt(o,l),os(e,t),t.tag=1,rt(o)?(e=!0,$o(t)):e=!1,qr(t,r),wc(t,o,l),ia(t,o,l,r),fa(null,t,o,!0,e,r);case 19:return Ic(e,t,r);case 22:return Rc(e,t,r)}throw Error(a(156,t.tag))};function id(e,t){return Ui(e,t)}function zm(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,r,o){return new zm(e,t,r,o)}function za(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lm(e){if(typeof e=="function")return za(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ce)return 11;if(e===ke)return 14}return 2}function lr(e,t){var r=e.alternate;return r===null?(r=gt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function hs(e,t,r,o,l,i){var d=2;if(o=e,typeof e=="function")za(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case oe:return Er(r.children,l,i,t);case he:d=8,l|=8;break;case de:return e=gt(12,r,t,l|2),e.elementType=de,e.lanes=i,e;case Ee:return e=gt(13,r,t,l),e.elementType=Ee,e.lanes=i,e;case J:return e=gt(19,r,t,l),e.elementType=J,e.lanes=i,e;case be:return gs(r,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:d=10;break e;case me:d=9;break e;case ce:d=11;break e;case ke:d=14;break e;case ye:d=16,o=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=gt(d,r,t,l),t.elementType=e,t.type=o,t.lanes=i,t}function Er(e,t,r,o){return e=gt(7,e,o,t),e.lanes=r,e}function gs(e,t,r,o){return e=gt(22,e,o,t),e.elementType=be,e.lanes=r,e.stateNode={isHidden:!1},e}function La(e,t,r){return e=gt(6,e,null,t),e.lanes=r,e}function Oa(e,t,r){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Om(e,t,r,o,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=al(0),this.expirationTimes=al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=al(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Da(e,t,r,o,l,i,d,v,y){return e=new Om(e,t,r,v,y),t===1?(t=1,i===!0&&(t|=8)):t=0,i=gt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ql(i),e}function Dm(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function ud(e){if(!e)return Yt;e=e._reactInternals;e:{if(hr(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var r=e.type;if(rt(r))return Tu(e,r,t)}return t}function cd(e,t,r,o,l,i,d,v,y){return e=Da(r,o,!0,e,l,i,d,v,y),e.context=ud(null),r=e.current,o=Xe(),l=or(r),i=It(o,l),i.callback=t??null,er(r,i,l),e.current.lanes=l,Mn(e,l,o),st(e,o),e}function xs(e,t,r,o){var l=t.current,i=Xe(),d=or(l);return r=ud(r),t.context===null?t.context=r:t.pendingContext=r,t=It(i,d),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=er(l,t,d),e!==null&&(jt(e,l,d,i),Qo(e,l,d)),d}function vs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Aa(e,t){dd(e,t),(e=e.alternate)&&dd(e,t)}function Am(){return null}var fd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ta(e){this._internalRoot=e}ys.prototype.render=Ta.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));xs(e,t,null,null)},ys.prototype.unmount=Ta.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){xs(null,e,null,null)}),t[Lt]=null}};function ys(e){this._internalRoot=e}ys.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zi();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Gt.length&&t!==0&&t<Gt[r].priority;r++);Gt.splice(r,0,e),r===0&&Ji(e)}};function Ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pd(){}function Tm(e,t,r,o,l){if(l){if(typeof o=="function"){var i=o;o=function(){var L=vs(d);i.call(L)}}var d=cd(t,o,e,0,null,!1,!1,"",pd);return e._reactRootContainer=d,e[Lt]=d.current,Bn(e.nodeType===8?e.parentNode:e),Nr(),d}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var v=o;o=function(){var L=vs(y);v.call(L)}}var y=Da(e,0,!1,null,null,!1,!1,"",pd);return e._reactRootContainer=y,e[Lt]=y.current,Bn(e.nodeType===8?e.parentNode:e),Nr(function(){xs(t,y,r,o)}),y}function ws(e,t,r,o,l){var i=r._reactRootContainer;if(i){var d=i;if(typeof l=="function"){var v=l;l=function(){var y=vs(d);v.call(y)}}xs(t,d,e,l)}else d=Tm(r,t,e,l,o);return vs(d)}Ki=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=En(t.pendingLanes);r!==0&&(il(t,r|1),st(t,Te()),(Ne&6)===0&&(tn=Te()+500,Jt()))}break;case 13:Nr(function(){var o=Tt(e,1);if(o!==null){var l=Xe();jt(o,e,1,l)}}),Aa(e,1)}},ul=function(e){if(e.tag===13){var t=Tt(e,134217728);if(t!==null){var r=Xe();jt(t,e,134217728,r)}Aa(e,134217728)}},Qi=function(e){if(e.tag===13){var t=or(e),r=Tt(e,t);if(r!==null){var o=Xe();jt(r,e,t,o)}Aa(e,t)}},Zi=function(){return Ce},qi=function(e,t){var r=Ce;try{return Ce=e,t()}finally{Ce=r}},tl=function(e,t,r){switch(t){case"input":if(Ks(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var l=Io(o);if(!l)throw Error(a(90));et(o),Ks(o,l)}}}break;case"textarea":Si(e,r);break;case"select":t=r.value,t!=null&&zr(e,!!r.multiple,t,!1)}},Oi=_a,Di=Nr;var Im={usingClientEntryPoint:!1,Events:[Hn,Br,Io,zi,Li,_a]},so={findFiberByHostInstance:gr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Fm={bundleType:so.bundleType,version:so.version,rendererPackageName:so.rendererPackageName,rendererConfig:so.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fi(e),e===null?null:e.stateNode},findFiberByHostInstance:so.findFiberByHostInstance||Am,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ks.isDisabled&&ks.supportsFiber)try{yo=ks.inject(Fm),St=ks}catch{}}return lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Im,lt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ia(t))throw Error(a(200));return Dm(e,t,null,r)},lt.createRoot=function(e,t){if(!Ia(e))throw Error(a(299));var r=!1,o="",l=fd;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Da(e,1,!1,null,null,r,!1,o,l),e[Lt]=t.current,Bn(e.nodeType===8?e.parentNode:e),new Ta(t)},lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=Fi(t),e=e===null?null:e.stateNode,e},lt.flushSync=function(e){return Nr(e)},lt.hydrate=function(e,t,r){if(!bs(t))throw Error(a(200));return ws(null,e,t,!0,r)},lt.hydrateRoot=function(e,t,r){if(!Ia(e))throw Error(a(405));var o=r!=null&&r.hydratedSources||null,l=!1,i="",d=fd;if(r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(d=r.onRecoverableError)),t=cd(t,null,e,1,r??null,l,!1,i,d),e[Lt]=t.current,Bn(e),o)for(e=0;e<o.length;e++)r=o[e],l=r._getVersion,l=l(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,l]:t.mutableSourceEagerHydrationData.push(r,l);return new ys(t)},lt.render=function(e,t,r){if(!bs(t))throw Error(a(200));return ws(null,e,t,!1,r)},lt.unmountComponentAtNode=function(e){if(!bs(e))throw Error(a(40));return e._reactRootContainer?(Nr(function(){ws(null,null,e,!1,function(){e._reactRootContainer=null,e[Lt]=null})}),!0):!1},lt.unstable_batchedUpdates=_a,lt.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!bs(r))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return ws(e,t,r,!1,o)},lt.version="18.3.1-next-f1338f8080-20240426",lt}var wd;function qd(){if(wd)return Ua.exports;wd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),Ua.exports=Km(),Ua.exports}var kd;function Qm(){if(kd)return js;kd=1;var s=qd();return js.createRoot=s.createRoot,js.hydrateRoot=s.hydrateRoot,js}var Zm=Qm();const qm=Qd(Zm);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ym=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yd=(...s)=>s.filter((u,a,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===a).join(" ").trim();/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var Jm={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"};/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Xm=m.forwardRef(({color:s="currentColor",size:u=24,strokeWidth:a=2,absoluteStrokeWidth:c,className:f="",children:h,iconNode:p,...g},N)=>m.createElement("svg",{ref:N,...Jm,width:u,height:u,stroke:s,strokeWidth:c?Number(a)*24/Number(u):a,className:Yd("lucide",f),...g},[...p.map(([C,j])=>m.createElement(C,j)),...Array.isArray(h)?h:[h]]));/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ve=(s,u)=>{const a=m.forwardRef(({className:c,...f},h)=>m.createElement(Xm,{ref:h,iconNode:u,className:Yd(`lucide-${Ym(s)}`,c),...f}));return a.displayName=`${s}`,a};/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const pi=ve("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Jd=ve("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const $s=ve("Bot",[["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"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const eh=ve("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Us=ve("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const mn=ve("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const th=ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const rh=ve("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const nh=ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const oh=ve("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const sh=ve("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const lh=ve("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Xd=ve("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ah=ve("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ih=ve("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const uh=ve("Construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const mi=ve("Copy",[["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"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _r=ve("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const hn=ve("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const As=ve("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ch=ve("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const dh=ve("FolderOpen",[["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"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fh=ve("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ri=ve("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ph=ve("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ts=ve("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const mh=ve("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const hh=ve("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const gh=ve("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ef=ve("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const tf=ve("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const gn=ve("RefreshCw",[["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"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xh=ve("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const vh=ve("Scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const hi=ve("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yh=ve("Server",[["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"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const bh=ve("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const co=ve("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const wh=ve("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const rf=ve("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const kh=ve("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const gi=ve("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ni=ve("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const jh=ve("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Nh=ve("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
* @license lucide-react v0.460.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Bs=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),oi=[{id:"dashboard",label:"Zentrale",hint:"System- & Stack-Status",icon:mh},{id:"models",label:"Modell-Zentrale",hint:"Verwalten, laden & Gateway-Routing",icon:eh},{id:"system",label:"Diagnose",hint:"Metriken, Dienste, Logs",icon:_r},{id:"memory",label:"Gedächtnis",hint:"Geteiltes Memory verwalten",icon:Us},{id:"connect",label:"Verbinden",hint:"IDE-/Agent-Configs erzeugen",icon:gh},{id:"agent",label:"Hermes",hint:"Agent-Status & WebUI öffnen",icon:$s},{id:"guide",label:"Anleitung",hint:"Einrichten & Vibe-Coding",icon:sh}];var jd=1,Sh=.9,Ch=.8,Eh=.17,Va=.1,Ha=.999,Mh=.9999,_h=.99,Ph=/[\\\/_+.#"@\[\(\{&]/,Rh=/[\\\/_+.#"@\[\(\{&]/g,zh=/[\s-]/,nf=/[\s-]/g;function si(s,u,a,c,f,h,p){if(h===u.length)return f===s.length?jd:_h;var g=`${f},${h}`;if(p[g]!==void 0)return p[g];for(var N=c.charAt(h),C=a.indexOf(N,f),j=0,M,_,O,D;C>=0;)M=si(s,u,a,c,C+1,h+1,p),M>j&&(C===f?M*=jd:Ph.test(s.charAt(C-1))?(M*=Ch,O=s.slice(f,C-1).match(Rh),O&&f>0&&(M*=Math.pow(Ha,O.length))):zh.test(s.charAt(C-1))?(M*=Sh,D=s.slice(f,C-1).match(nf),D&&f>0&&(M*=Math.pow(Ha,D.length))):(M*=Eh,f>0&&(M*=Math.pow(Ha,C-f))),s.charAt(C)!==u.charAt(h)&&(M*=Mh)),(M<Va&&a.charAt(C-1)===c.charAt(h+1)||c.charAt(h+1)===c.charAt(h)&&a.charAt(C-1)!==c.charAt(h))&&(_=si(s,u,a,c,C+1,h+2,p),_*Va>M&&(M=_*Va)),M>j&&(j=M),C=a.indexOf(N,C+1);return p[g]=j,j}function Nd(s){return s.toLowerCase().replace(nf," ")}function Lh(s,u,a){return s=a&&a.length>0?`${s+" "+a.join(" ")}`:s,si(s,u,Nd(s),Nd(u),0,0,{})}function fr(s,u,{checkForDefaultPrevented:a=!0}={}){return function(f){if(s==null||s(f),a===!1||!f.defaultPrevented)return u==null?void 0:u(f)}}function Sd(s,u){if(typeof s=="function")return s(u);s!=null&&(s.current=u)}function xn(...s){return u=>{let a=!1;const c=s.map(f=>{const h=Sd(f,u);return!a&&typeof h=="function"&&(a=!0),h});if(a)return()=>{for(let f=0;f<c.length;f++){const h=c[f];typeof h=="function"?h():Sd(s[f],null)}}}}function Rr(...s){return m.useCallback(xn(...s),s)}function Oh(s,u=[]){let a=[];function c(h,p){const g=m.createContext(p);g.displayName=h+"Context";const N=a.length;a=[...a,p];const C=M=>{var A;const{scope:_,children:O,...D}=M,w=((A=_==null?void 0:_[s])==null?void 0:A[N])||g,z=m.useMemo(()=>D,Object.values(D));return n.jsx(w.Provider,{value:z,children:O})};C.displayName=h+"Provider";function j(M,_){var w;const O=((w=_==null?void 0:_[s])==null?void 0:w[N])||g,D=m.useContext(O);if(D)return D;if(p!==void 0)return p;throw new Error(`\`${M}\` must be used within \`${h}\``)}return[C,j]}const f=()=>{const h=a.map(p=>m.createContext(p));return function(g){const N=(g==null?void 0:g[s])||h;return m.useMemo(()=>({[`__scope${s}`]:{...g,[s]:N}}),[g,N])}};return f.scopeName=s,[c,Dh(f,...u)]}function Dh(...s){const u=s[0];if(s.length===1)return u;const a=()=>{const c=s.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(h){const p=c.reduce((g,{useScope:N,scopeName:C})=>{const M=N(h)[`__scope${C}`];return{...g,...M}},{});return m.useMemo(()=>({[`__scope${u.scopeName}`]:p}),[p])}};return a.scopeName=u.scopeName,a}var fo=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Ah=fi[" useId ".trim().toString()]||(()=>{}),Th=0;function Bt(s){const[u,a]=m.useState(Ah());return fo(()=>{a(c=>c??String(Th++))},[s]),u?`radix-${u}`:""}var Ih=fi[" useInsertionEffect ".trim().toString()]||fo;function Fh({prop:s,defaultProp:u,onChange:a=()=>{},caller:c}){const[f,h,p]=$h({defaultProp:u,onChange:a}),g=s!==void 0,N=g?s:f;{const j=m.useRef(s!==void 0);m.useEffect(()=>{const M=j.current;M!==g&&console.warn(`${c} is changing from ${M?"controlled":"uncontrolled"} to ${g?"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.`),j.current=g},[g,c])}const C=m.useCallback(j=>{var M;if(g){const _=Uh(j)?j(s):j;_!==s&&((M=p.current)==null||M.call(p,_))}else h(j)},[g,s,h,p]);return[N,C]}function $h({defaultProp:s,onChange:u}){const[a,c]=m.useState(s),f=m.useRef(a),h=m.useRef(u);return Ih(()=>{h.current=u},[u]),m.useEffect(()=>{var p;f.current!==a&&((p=h.current)==null||p.call(h,a),f.current=a)},[a,f]),[a,c,h]}function Uh(s){return typeof s=="function"}var of=qd();function sf(s){const u=m.forwardRef((a,c)=>{let{children:f,...h}=a,p=null,g=!1;const N=[];Cd(f)&&typeof Ns=="function"&&(f=Ns(f._payload)),m.Children.forEach(f,_=>{var O;if(Gh(_)){g=!0;const D=_;let w="child"in D.props?D.props.child:D.props.children;Cd(w)&&typeof Ns=="function"&&(w=Ns(w._payload)),p=Wh(D,w),N.push((O=p==null?void 0:p.props)==null?void 0:O.children)}else N.push(_)}),p?p=m.cloneElement(p,void 0,N):!g&&m.Children.count(f)===1&&m.isValidElement(f)&&(p=f);const C=p?Hh(p):void 0,j=Rr(c,C);if(!p){if(f||f===0)throw new Error(g?qh(s):Zh(s));return f}const M=Vh(h,p.props??{});return p.type!==m.Fragment&&(M.ref=c?j:C),m.cloneElement(p,M)});return u.displayName=`${s}.Slot`,u}var Bh=Symbol.for("radix.slottable"),Wh=(s,u)=>{if("child"in s.props){const a=s.props.child;return m.isValidElement(a)?m.cloneElement(a,void 0,s.props.children(a.props.children)):null}return m.isValidElement(u)?u:null};function Vh(s,u){const a={...u};for(const c in u){const f=s[c],h=u[c];/^on[A-Z]/.test(c)?f&&h?a[c]=(...g)=>{const N=h(...g);return f(...g),N}:f&&(a[c]=f):c==="style"?a[c]={...f,...h}:c==="className"&&(a[c]=[f,h].filter(Boolean).join(" "))}return{...s,...a}}function Hh(s){var c,f;let u=(c=Object.getOwnPropertyDescriptor(s.props,"ref"))==null?void 0:c.get,a=u&&"isReactWarning"in u&&u.isReactWarning;return a?s.ref:(u=(f=Object.getOwnPropertyDescriptor(s,"ref"))==null?void 0:f.get,a=u&&"isReactWarning"in u&&u.isReactWarning,a?s.props.ref:s.props.ref||s.ref)}function Gh(s){return m.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===Bh}var Kh=Symbol.for("react.lazy");function Cd(s){return s!=null&&typeof s=="object"&&"$$typeof"in s&&s.$$typeof===Kh&&"_payload"in s&&Qh(s._payload)}function Qh(s){return typeof s=="object"&&s!==null&&"then"in s}var Zh=s=>`${s} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,qh=s=>`${s} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Ns=fi[" use ".trim().toString()],Yh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=Yh.reduce((s,u)=>{const a=sf(`Primitive.${u}`),c=m.forwardRef((f,h)=>{const{asChild:p,...g}=f,N=p?a:u;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(N,{...g,ref:h})});return c.displayName=`Primitive.${u}`,{...s,[u]:c}},{});function Jh(s,u){s&&of.flushSync(()=>s.dispatchEvent(u))}function po(s){const u=m.useRef(s);return m.useEffect(()=>{u.current=s}),m.useMemo(()=>((...a)=>{var c;return(c=u.current)==null?void 0:c.call(u,...a)}),[])}function Xh(s,u=globalThis==null?void 0:globalThis.document){const a=po(s);m.useEffect(()=>{const c=f=>{f.key==="Escape"&&a(f)};return u.addEventListener("keydown",c,{capture:!0}),()=>u.removeEventListener("keydown",c,{capture:!0})},[a,u])}var eg="DismissableLayer",li="dismissableLayer.update",tg="dismissableLayer.pointerDownOutside",rg="dismissableLayer.focusOutside",Ed,xi=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),lf=m.forwardRef((s,u)=>{const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:g,onDismiss:N,...C}=s,j=m.useContext(xi),[M,_]=m.useState(null),O=(M==null?void 0:M.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,D]=m.useState({}),w=Rr(u,de=>_(de)),z=Array.from(j.layers),[A]=[...j.layersWithOutsidePointerEventsDisabled].slice(-1),R=z.indexOf(A),I=M?z.indexOf(M):-1,G=j.layersWithOutsidePointerEventsDisabled.size>0,Z=I>=R,K=m.useRef(!1),oe=lg(de=>{const T=de.target;if(!(T instanceof Node))return;const me=[...j.branches].some(ce=>ce.contains(T));!Z||me||(h==null||h(de),g==null||g(de),de.defaultPrevented||N==null||N())},{ownerDocument:O,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:K,dismissableSurfaces:j.dismissableSurfaces}),he=ag(de=>{if(c&&K.current)return;const T=de.target;[...j.branches].some(ce=>ce.contains(T))||(p==null||p(de),g==null||g(de),de.defaultPrevented||N==null||N())},O);return Xh(de=>{I===j.layers.size-1&&(f==null||f(de),!de.defaultPrevented&&N&&(de.preventDefault(),N()))},O),m.useEffect(()=>{if(M)return a&&(j.layersWithOutsidePointerEventsDisabled.size===0&&(Ed=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),j.layersWithOutsidePointerEventsDisabled.add(M)),j.layers.add(M),Md(),()=>{a&&(j.layersWithOutsidePointerEventsDisabled.delete(M),j.layersWithOutsidePointerEventsDisabled.size===0&&(O.body.style.pointerEvents=Ed))}},[M,O,a,j]),m.useEffect(()=>()=>{M&&(j.layers.delete(M),j.layersWithOutsidePointerEventsDisabled.delete(M),Md())},[M,j]),m.useEffect(()=>{const de=()=>D({});return document.addEventListener(li,de),()=>document.removeEventListener(li,de)},[]),n.jsx(Ke.div,{...C,ref:w,style:{pointerEvents:G?Z?"auto":"none":void 0,...s.style},onFocusCapture:fr(s.onFocusCapture,he.onFocusCapture),onBlurCapture:fr(s.onBlurCapture,he.onBlurCapture),onPointerDownCapture:fr(s.onPointerDownCapture,oe.onPointerDownCapture)})});lf.displayName=eg;var ng="DismissableLayerBranch",og=m.forwardRef((s,u)=>{const a=m.useContext(xi),c=m.useRef(null),f=Rr(u,c);return m.useEffect(()=>{const h=c.current;if(h)return a.branches.add(h),()=>{a.branches.delete(h)}},[a.branches]),n.jsx(Ke.div,{...s,ref:f})});og.displayName=ng;function sg(){const s=m.useContext(xi),[u,a]=m.useState(null);return m.useEffect(()=>{if(u)return s.dismissableSurfaces.add(u),()=>{s.dismissableSurfaces.delete(u)}},[u,s.dismissableSurfaces]),a}function lg(s,u){const{ownerDocument:a=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:c=!1,isDeferredPointerDownOutsideRef:f,dismissableSurfaces:h}=u,p=po(s),g=m.useRef(!1),N=m.useRef(!1),C=m.useRef(new Map),j=m.useRef(()=>{});return m.useEffect(()=>{function M(){N.current=!1,f.current=!1,C.current.clear()}function _(){return Array.from(C.current.values()).some(Boolean)}function O(R){if(!N.current)return;const I=R.target;I instanceof Node&&[...h].some(Z=>Z.contains(I))||C.current.set(R.type,!0),R.type==="click"&&window.setTimeout(()=>{N.current&&j.current()},0)}function D(R){N.current&&C.current.set(R.type,!1)}const w=R=>{if(R.target&&!g.current){let I=function(){a.removeEventListener("click",j.current);const Z=_();M(),Z||af(tg,p,G,{discrete:!0})};const G={originalEvent:R};N.current=!0,f.current=c&&R.button===0,C.current.clear(),!c||R.button!==0?I():(a.removeEventListener("click",j.current),j.current=I,a.addEventListener("click",j.current,{once:!0}))}else a.removeEventListener("click",j.current),M();g.current=!1},z=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const R of z)a.addEventListener(R,O,!0),a.addEventListener(R,D);const A=window.setTimeout(()=>{a.addEventListener("pointerdown",w)},0);return()=>{window.clearTimeout(A),a.removeEventListener("pointerdown",w),a.removeEventListener("click",j.current);for(const R of z)a.removeEventListener(R,O,!0),a.removeEventListener(R,D)}},[a,p,c,f,h]),{onPointerDownCapture:()=>g.current=!0}}function ag(s,u=globalThis==null?void 0:globalThis.document){const a=po(s),c=m.useRef(!1);return m.useEffect(()=>{const f=h=>{h.target&&!c.current&&af(rg,a,{originalEvent:h},{discrete:!1})};return u.addEventListener("focusin",f),()=>u.removeEventListener("focusin",f)},[u,a]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function Md(){const s=new CustomEvent(li);document.dispatchEvent(s)}function af(s,u,a,{discrete:c}){const f=a.originalEvent.target,h=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:a});u&&f.addEventListener(s,u,{once:!0}),c?Jh(f,h):f.dispatchEvent(h)}var Ga="focusScope.autoFocusOnMount",Ka="focusScope.autoFocusOnUnmount",_d={bubbles:!1,cancelable:!0},ig="FocusScope",uf=m.forwardRef((s,u)=>{const{loop:a=!1,trapped:c=!1,onMountAutoFocus:f,onUnmountAutoFocus:h,...p}=s,[g,N]=m.useState(null),C=po(f),j=po(h),M=m.useRef(null),_=Rr(u,w=>N(w)),O=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(c){let w=function(I){if(O.paused||!g)return;const G=I.target;g.contains(G)?M.current=G:dr(M.current,{select:!0})},z=function(I){if(O.paused||!g)return;const G=I.relatedTarget;G!==null&&(g.contains(G)||dr(M.current,{select:!0}))},A=function(I){if(document.activeElement===document.body)for(const Z of I)Z.removedNodes.length>0&&dr(g)};document.addEventListener("focusin",w),document.addEventListener("focusout",z);const R=new MutationObserver(A);return g&&R.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",z),R.disconnect()}}},[c,g,O.paused]),m.useEffect(()=>{if(g){Rd.add(O);const w=document.activeElement;if(!g.contains(w)){const A=new CustomEvent(Ga,_d);g.addEventListener(Ga,C),g.dispatchEvent(A),A.defaultPrevented||(ug(mg(cf(g)),{select:!0}),document.activeElement===w&&dr(g))}return()=>{g.removeEventListener(Ga,C),setTimeout(()=>{const A=new CustomEvent(Ka,_d);g.addEventListener(Ka,j),g.dispatchEvent(A),A.defaultPrevented||dr(w??document.body,{select:!0}),g.removeEventListener(Ka,j),Rd.remove(O)},0)}}},[g,C,j,O]);const D=m.useCallback(w=>{if(!a&&!c||O.paused)return;const z=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,A=document.activeElement;if(z&&A){const R=w.currentTarget,[I,G]=cg(R);I&&G?!w.shiftKey&&A===G?(w.preventDefault(),a&&dr(I,{select:!0})):w.shiftKey&&A===I&&(w.preventDefault(),a&&dr(G,{select:!0})):A===R&&w.preventDefault()}},[a,c,O.paused]);return n.jsx(Ke.div,{tabIndex:-1,...p,ref:_,onKeyDown:D})});uf.displayName=ig;function ug(s,{select:u=!1}={}){const a=document.activeElement;for(const c of s)if(dr(c,{select:u}),document.activeElement!==a)return}function cg(s){const u=cf(s),a=Pd(u,s),c=Pd(u.reverse(),s);return[a,c]}function cf(s){const u=[],a=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const f=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||f?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)u.push(a.currentNode);return u}function Pd(s,u){for(const a of s)if(!dg(a,{upTo:u}))return a}function dg(s,{upTo:u}){if(getComputedStyle(s).visibility==="hidden")return!0;for(;s;){if(u!==void 0&&s===u)return!1;if(getComputedStyle(s).display==="none")return!0;s=s.parentElement}return!1}function fg(s){return s instanceof HTMLInputElement&&"select"in s}function dr(s,{select:u=!1}={}){if(s&&s.focus){const a=document.activeElement;s.focus({preventScroll:!0}),s!==a&&fg(s)&&u&&s.select()}}var Rd=pg();function pg(){let s=[];return{add(u){const a=s[0];u!==a&&(a==null||a.pause()),s=zd(s,u),s.unshift(u)},remove(u){var a;s=zd(s,u),(a=s[0])==null||a.resume()}}}function zd(s,u){const a=[...s],c=a.indexOf(u);return c!==-1&&a.splice(c,1),a}function mg(s){return s.filter(u=>u.tagName!=="A")}var hg="Portal",df=m.forwardRef((s,u)=>{var g;const{container:a,...c}=s,[f,h]=m.useState(!1);fo(()=>h(!0),[]);const p=a||f&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return p?of.createPortal(n.jsx(Ke.div,{...c,ref:u}),p):null});df.displayName=hg;function gg(s,u){return m.useReducer((a,c)=>u[a][c]??a,s)}var Ws=s=>{const{present:u,children:a}=s,c=xg(u),f=typeof a=="function"?a({present:c.isPresent}):m.Children.only(a),h=vg(c.ref,yg(f));return typeof a=="function"||c.isPresent?m.cloneElement(f,{ref:h}):null};Ws.displayName="Presence";function xg(s){const[u,a]=m.useState(),c=m.useRef(null),f=m.useRef(s),h=m.useRef("none"),p=s?"mounted":"unmounted",[g,N]=gg(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const C=Ss(c.current);h.current=g==="mounted"?C:"none"},[g]),fo(()=>{const C=c.current,j=f.current;if(j!==s){const _=h.current,O=Ss(C);s?N("MOUNT"):O==="none"||(C==null?void 0:C.display)==="none"?N("UNMOUNT"):N(j&&_!==O?"ANIMATION_OUT":"UNMOUNT"),f.current=s}},[s,N]),fo(()=>{if(u){let C;const j=u.ownerDocument.defaultView??window,M=O=>{const w=Ss(c.current).includes(CSS.escape(O.animationName));if(O.target===u&&w&&(N("ANIMATION_END"),!f.current)){const z=u.style.animationFillMode;u.style.animationFillMode="forwards",C=j.setTimeout(()=>{u.style.animationFillMode==="forwards"&&(u.style.animationFillMode=z)})}},_=O=>{O.target===u&&(h.current=Ss(c.current))};return u.addEventListener("animationstart",_),u.addEventListener("animationcancel",M),u.addEventListener("animationend",M),()=>{j.clearTimeout(C),u.removeEventListener("animationstart",_),u.removeEventListener("animationcancel",M),u.removeEventListener("animationend",M)}}else N("ANIMATION_END")},[u,N]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:m.useCallback(C=>{c.current=C?getComputedStyle(C):null,a(C)},[])}}function Ld(s,u){if(typeof s=="function")return s(u);s!=null&&(s.current=u)}function vg(...s){const u=m.useRef(s);return u.current=s,m.useCallback(a=>{const c=u.current;let f=!1;const h=c.map(p=>{const g=Ld(p,a);return!f&&typeof g=="function"&&(f=!0),g});if(f)return()=>{for(let p=0;p<h.length;p++){const g=h[p];typeof g=="function"?g():Ld(c[p],null)}}},[])}function Ss(s){return(s==null?void 0:s.animationName)||"none"}function yg(s){var c,f;let u=(c=Object.getOwnPropertyDescriptor(s.props,"ref"))==null?void 0:c.get,a=u&&"isReactWarning"in u&&u.isReactWarning;return a?s.ref:(u=(f=Object.getOwnPropertyDescriptor(s,"ref"))==null?void 0:f.get,a=u&&"isReactWarning"in u&&u.isReactWarning,a?s.props.ref:s.props.ref||s.ref)}var Cs=0,Pt=null;function bg(){m.useEffect(()=>{Pt||(Pt={start:Od(),end:Od()});const{start:s,end:u}=Pt;return document.body.firstElementChild!==s&&document.body.insertAdjacentElement("afterbegin",s),document.body.lastElementChild!==u&&document.body.insertAdjacentElement("beforeend",u),Cs++,()=>{Cs===1&&(Pt==null||Pt.start.remove(),Pt==null||Pt.end.remove(),Pt=null),Cs=Math.max(0,Cs-1)}},[])}function Od(){const s=document.createElement("span");return s.setAttribute("data-radix-focus-guard",""),s.tabIndex=0,s.style.outline="none",s.style.opacity="0",s.style.position="fixed",s.style.pointerEvents="none",s}var Rt=function(){return Rt=Object.assign||function(u){for(var a,c=1,f=arguments.length;c<f;c++){a=arguments[c];for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&(u[h]=a[h])}return u},Rt.apply(this,arguments)};function ff(s,u){var a={};for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&u.indexOf(c)<0&&(a[c]=s[c]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,c=Object.getOwnPropertySymbols(s);f<c.length;f++)u.indexOf(c[f])<0&&Object.prototype.propertyIsEnumerable.call(s,c[f])&&(a[c[f]]=s[c[f]]);return a}function wg(s,u,a){if(a||arguments.length===2)for(var c=0,f=u.length,h;c<f;c++)(h||!(c in u))&&(h||(h=Array.prototype.slice.call(u,0,c)),h[c]=u[c]);return s.concat(h||Array.prototype.slice.call(u))}var Os="right-scroll-bar-position",Ds="width-before-scroll-bar",kg="with-scroll-bars-hidden",jg="--removed-body-scroll-bar-size";function Qa(s,u){return typeof s=="function"?s(u):s&&(s.current=u),s}function Ng(s,u){var a=m.useState(function(){return{value:s,callback:u,facade:{get current(){return a.value},set current(c){var f=a.value;f!==c&&(a.value=c,a.callback(c,f))}}}})[0];return a.callback=u,a.facade}var Sg=typeof window<"u"?m.useLayoutEffect:m.useEffect,Dd=new WeakMap;function Cg(s,u){var a=Ng(null,function(c){return s.forEach(function(f){return Qa(f,c)})});return Sg(function(){var c=Dd.get(a);if(c){var f=new Set(c),h=new Set(s),p=a.current;f.forEach(function(g){h.has(g)||Qa(g,null)}),h.forEach(function(g){f.has(g)||Qa(g,p)})}Dd.set(a,s)},[s]),a}function Eg(s){return s}function Mg(s,u){u===void 0&&(u=Eg);var a=[],c=!1,f={read:function(){if(c)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:s},useMedium:function(h){var p=u(h,c);return a.push(p),function(){a=a.filter(function(g){return g!==p})}},assignSyncMedium:function(h){for(c=!0;a.length;){var p=a;a=[],p.forEach(h)}a={push:function(g){return h(g)},filter:function(){return a}}},assignMedium:function(h){c=!0;var p=[];if(a.length){var g=a;a=[],g.forEach(h),p=a}var N=function(){var j=p;p=[],j.forEach(h)},C=function(){return Promise.resolve().then(N)};C(),a={push:function(j){p.push(j),C()},filter:function(j){return p=p.filter(j),a}}}};return f}function _g(s){s===void 0&&(s={});var u=Mg(null);return u.options=Rt({async:!0,ssr:!1},s),u}var pf=function(s){var u=s.sideCar,a=ff(s,["sideCar"]);if(!u)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var c=u.read();if(!c)throw new Error("Sidecar medium not found");return m.createElement(c,Rt({},a))};pf.isSideCarExport=!0;function Pg(s,u){return s.useMedium(u),pf}var mf=_g(),Za=function(){},Vs=m.forwardRef(function(s,u){var a=m.useRef(null),c=m.useState({onScrollCapture:Za,onWheelCapture:Za,onTouchMoveCapture:Za}),f=c[0],h=c[1],p=s.forwardProps,g=s.children,N=s.className,C=s.removeScrollBar,j=s.enabled,M=s.shards,_=s.sideCar,O=s.noRelative,D=s.noIsolation,w=s.inert,z=s.allowPinchZoom,A=s.as,R=A===void 0?"div":A,I=s.gapMode,G=ff(s,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=_,K=Cg([a,u]),oe=Rt(Rt({},G),f);return m.createElement(m.Fragment,null,j&&m.createElement(Z,{sideCar:mf,removeScrollBar:C,shards:M,noRelative:O,noIsolation:D,inert:w,setCallbacks:h,allowPinchZoom:!!z,lockRef:a,gapMode:I}),p?m.cloneElement(m.Children.only(g),Rt(Rt({},oe),{ref:K})):m.createElement(R,Rt({},oe,{className:N,ref:K}),g))});Vs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vs.classNames={fullWidth:Ds,zeroRight:Os};var Rg=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zg(){if(!document)return null;var s=document.createElement("style");s.type="text/css";var u=Rg();return u&&s.setAttribute("nonce",u),s}function Lg(s,u){s.styleSheet?s.styleSheet.cssText=u:s.appendChild(document.createTextNode(u))}function Og(s){var u=document.head||document.getElementsByTagName("head")[0];u.appendChild(s)}var Dg=function(){var s=0,u=null;return{add:function(a){s==0&&(u=zg())&&(Lg(u,a),Og(u)),s++},remove:function(){s--,!s&&u&&(u.parentNode&&u.parentNode.removeChild(u),u=null)}}},Ag=function(){var s=Dg();return function(u,a){m.useEffect(function(){return s.add(u),function(){s.remove()}},[u&&a])}},hf=function(){var s=Ag(),u=function(a){var c=a.styles,f=a.dynamic;return s(c,f),null};return u},Tg={left:0,top:0,right:0,gap:0},qa=function(s){return parseInt(s||"",10)||0},Ig=function(s){var u=window.getComputedStyle(document.body),a=u[s==="padding"?"paddingLeft":"marginLeft"],c=u[s==="padding"?"paddingTop":"marginTop"],f=u[s==="padding"?"paddingRight":"marginRight"];return[qa(a),qa(c),qa(f)]},Fg=function(s){if(s===void 0&&(s="margin"),typeof window>"u")return Tg;var u=Ig(s),a=document.documentElement.clientWidth,c=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,c-a+u[2]-u[0])}},$g=hf(),fn="data-scroll-locked",Ug=function(s,u,a,c){var f=s.left,h=s.top,p=s.right,g=s.gap;return a===void 0&&(a="margin"),`
|
|
.`.concat(kg,` {
|
|
overflow: hidden `).concat(c,`;
|
|
padding-right: `).concat(g,"px ").concat(c,`;
|
|
}
|
|
body[`).concat(fn,`] {
|
|
overflow: hidden `).concat(c,`;
|
|
overscroll-behavior: contain;
|
|
`).concat([u&&"position: relative ".concat(c,";"),a==="margin"&&`
|
|
padding-left: `.concat(f,`px;
|
|
padding-top: `).concat(h,`px;
|
|
padding-right: `).concat(p,`px;
|
|
margin-left:0;
|
|
margin-top:0;
|
|
margin-right: `).concat(g,"px ").concat(c,`;
|
|
`),a==="padding"&&"padding-right: ".concat(g,"px ").concat(c,";")].filter(Boolean).join(""),`
|
|
}
|
|
|
|
.`).concat(Os,` {
|
|
right: `).concat(g,"px ").concat(c,`;
|
|
}
|
|
|
|
.`).concat(Ds,` {
|
|
margin-right: `).concat(g,"px ").concat(c,`;
|
|
}
|
|
|
|
.`).concat(Os," .").concat(Os,` {
|
|
right: 0 `).concat(c,`;
|
|
}
|
|
|
|
.`).concat(Ds," .").concat(Ds,` {
|
|
margin-right: 0 `).concat(c,`;
|
|
}
|
|
|
|
body[`).concat(fn,`] {
|
|
`).concat(jg,": ").concat(g,`px;
|
|
}
|
|
`)},Ad=function(){var s=parseInt(document.body.getAttribute(fn)||"0",10);return isFinite(s)?s:0},Bg=function(){m.useEffect(function(){return document.body.setAttribute(fn,(Ad()+1).toString()),function(){var s=Ad()-1;s<=0?document.body.removeAttribute(fn):document.body.setAttribute(fn,s.toString())}},[])},Wg=function(s){var u=s.noRelative,a=s.noImportant,c=s.gapMode,f=c===void 0?"margin":c;Bg();var h=m.useMemo(function(){return Fg(f)},[f]);return m.createElement($g,{styles:Ug(h,!u,f,a?"":"!important")})},ai=!1;if(typeof window<"u")try{var Es=Object.defineProperty({},"passive",{get:function(){return ai=!0,!0}});window.addEventListener("test",Es,Es),window.removeEventListener("test",Es,Es)}catch{ai=!1}var nn=ai?{passive:!1}:!1,Vg=function(s){return s.tagName==="TEXTAREA"},gf=function(s,u){if(!(s instanceof Element))return!1;var a=window.getComputedStyle(s);return a[u]!=="hidden"&&!(a.overflowY===a.overflowX&&!Vg(s)&&a[u]==="visible")},Hg=function(s){return gf(s,"overflowY")},Gg=function(s){return gf(s,"overflowX")},Td=function(s,u){var a=u.ownerDocument,c=u;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var f=xf(s,c);if(f){var h=vf(s,c),p=h[1],g=h[2];if(p>g)return!0}c=c.parentNode}while(c&&c!==a.body);return!1},Kg=function(s){var u=s.scrollTop,a=s.scrollHeight,c=s.clientHeight;return[u,a,c]},Qg=function(s){var u=s.scrollLeft,a=s.scrollWidth,c=s.clientWidth;return[u,a,c]},xf=function(s,u){return s==="v"?Hg(u):Gg(u)},vf=function(s,u){return s==="v"?Kg(u):Qg(u)},Zg=function(s,u){return s==="h"&&u==="rtl"?-1:1},qg=function(s,u,a,c,f){var h=Zg(s,window.getComputedStyle(u).direction),p=h*c,g=a.target,N=u.contains(g),C=!1,j=p>0,M=0,_=0;do{if(!g)break;var O=vf(s,g),D=O[0],w=O[1],z=O[2],A=w-z-h*D;(D||A)&&xf(s,g)&&(M+=A,_+=D);var R=g.parentNode;g=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!N&&g!==document.body||N&&(u.contains(g)||u===g));return(j&&Math.abs(M)<1||!j&&Math.abs(_)<1)&&(C=!0),C},Ms=function(s){return"changedTouches"in s?[s.changedTouches[0].clientX,s.changedTouches[0].clientY]:[0,0]},Id=function(s){return[s.deltaX,s.deltaY]},Fd=function(s){return s&&"current"in s?s.current:s},Yg=function(s,u){return s[0]===u[0]&&s[1]===u[1]},Jg=function(s){return`
|
|
.block-interactivity-`.concat(s,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(s,` {pointer-events: all;}
|
|
`)},Xg=0,on=[];function ex(s){var u=m.useRef([]),a=m.useRef([0,0]),c=m.useRef(),f=m.useState(Xg++)[0],h=m.useState(hf)[0],p=m.useRef(s);m.useEffect(function(){p.current=s},[s]),m.useEffect(function(){if(s.inert){document.body.classList.add("block-interactivity-".concat(f));var w=wg([s.lockRef.current],(s.shards||[]).map(Fd),!0).filter(Boolean);return w.forEach(function(z){return z.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),w.forEach(function(z){return z.classList.remove("allow-interactivity-".concat(f))})}}},[s.inert,s.lockRef.current,s.shards]);var g=m.useCallback(function(w,z){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!p.current.allowPinchZoom;var A=Ms(w),R=a.current,I="deltaX"in w?w.deltaX:R[0]-A[0],G="deltaY"in w?w.deltaY:R[1]-A[1],Z,K=w.target,oe=Math.abs(I)>Math.abs(G)?"h":"v";if("touches"in w&&oe==="h"&&K.type==="range")return!1;var he=window.getSelection(),de=he&&he.anchorNode,T=de?de===K||de.contains(K):!1;if(T)return!1;var me=Td(oe,K);if(!me)return!0;if(me?Z=oe:(Z=oe==="v"?"h":"v",me=Td(oe,K)),!me)return!1;if(!c.current&&"changedTouches"in w&&(I||G)&&(c.current=Z),!Z)return!0;var ce=c.current||Z;return qg(ce,z,w,ce==="h"?I:G)},[]),N=m.useCallback(function(w){var z=w;if(!(!on.length||on[on.length-1]!==h)){var A="deltaY"in z?Id(z):Ms(z),R=u.current.filter(function(Z){return Z.name===z.type&&(Z.target===z.target||z.target===Z.shadowParent)&&Yg(Z.delta,A)})[0];if(R&&R.should){z.cancelable&&z.preventDefault();return}if(!R){var I=(p.current.shards||[]).map(Fd).filter(Boolean).filter(function(Z){return Z.contains(z.target)}),G=I.length>0?g(z,I[0]):!p.current.noIsolation;G&&z.cancelable&&z.preventDefault()}}},[]),C=m.useCallback(function(w,z,A,R){var I={name:w,delta:z,target:A,should:R,shadowParent:tx(A)};u.current.push(I),setTimeout(function(){u.current=u.current.filter(function(G){return G!==I})},1)},[]),j=m.useCallback(function(w){a.current=Ms(w),c.current=void 0},[]),M=m.useCallback(function(w){C(w.type,Id(w),w.target,g(w,s.lockRef.current))},[]),_=m.useCallback(function(w){C(w.type,Ms(w),w.target,g(w,s.lockRef.current))},[]);m.useEffect(function(){return on.push(h),s.setCallbacks({onScrollCapture:M,onWheelCapture:M,onTouchMoveCapture:_}),document.addEventListener("wheel",N,nn),document.addEventListener("touchmove",N,nn),document.addEventListener("touchstart",j,nn),function(){on=on.filter(function(w){return w!==h}),document.removeEventListener("wheel",N,nn),document.removeEventListener("touchmove",N,nn),document.removeEventListener("touchstart",j,nn)}},[]);var O=s.removeScrollBar,D=s.inert;return m.createElement(m.Fragment,null,D?m.createElement(h,{styles:Jg(f)}):null,O?m.createElement(Wg,{noRelative:s.noRelative,gapMode:s.gapMode}):null)}function tx(s){for(var u=null;s!==null;)s instanceof ShadowRoot&&(u=s.host,s=s.host),s=s.parentNode;return u}const rx=Pg(mf,ex);var yf=m.forwardRef(function(s,u){return m.createElement(Vs,Rt({},s,{ref:u,sideCar:rx}))});yf.classNames=Vs.classNames;var nx=function(s){if(typeof document>"u")return null;var u=Array.isArray(s)?s[0]:s;return u.ownerDocument.body},sn=new WeakMap,_s=new WeakMap,Ps={},Ya=0,bf=function(s){return s&&(s.host||bf(s.parentNode))},ox=function(s,u){return u.map(function(a){if(s.contains(a))return a;var c=bf(a);return c&&s.contains(c)?c:(console.error("aria-hidden",a,"in not contained inside",s,". Doing nothing"),null)}).filter(function(a){return!!a})},sx=function(s,u,a,c){var f=ox(u,Array.isArray(s)?s:[s]);Ps[a]||(Ps[a]=new WeakMap);var h=Ps[a],p=[],g=new Set,N=new Set(f),C=function(M){!M||g.has(M)||(g.add(M),C(M.parentNode))};f.forEach(C);var j=function(M){!M||N.has(M)||Array.prototype.forEach.call(M.children,function(_){if(g.has(_))j(_);else try{var O=_.getAttribute(c),D=O!==null&&O!=="false",w=(sn.get(_)||0)+1,z=(h.get(_)||0)+1;sn.set(_,w),h.set(_,z),p.push(_),w===1&&D&&_s.set(_,!0),z===1&&_.setAttribute(a,"true"),D||_.setAttribute(c,"true")}catch(A){console.error("aria-hidden: cannot operate on ",_,A)}})};return j(u),g.clear(),Ya++,function(){p.forEach(function(M){var _=sn.get(M)-1,O=h.get(M)-1;sn.set(M,_),h.set(M,O),_||(_s.has(M)||M.removeAttribute(c),_s.delete(M)),O||M.removeAttribute(a)}),Ya--,Ya||(sn=new WeakMap,sn=new WeakMap,_s=new WeakMap,Ps={})}},lx=function(s,u,a){a===void 0&&(a="data-aria-hidden");var c=Array.from(Array.isArray(s)?s:[s]),f=nx(s);return f?(c.push.apply(c,Array.from(f.querySelectorAll("[aria-live], script"))),sx(c,f,a,"aria-hidden")):function(){return null}},Hs="Dialog",[wf]=Oh(Hs),[ax,Nt]=wf(Hs),kf=s=>{const{__scopeDialog:u,children:a,open:c,defaultOpen:f,onOpenChange:h,modal:p=!0}=s,g=m.useRef(null),N=m.useRef(null),[C,j]=Fh({prop:c,defaultProp:f??!1,onChange:h,caller:Hs});return n.jsx(ax,{scope:u,triggerRef:g,contentRef:N,contentId:Bt(),titleId:Bt(),descriptionId:Bt(),open:C,onOpenChange:j,onOpenToggle:m.useCallback(()=>j(M=>!M),[j]),modal:p,children:a})};kf.displayName=Hs;var jf="DialogTrigger",ix=m.forwardRef((s,u)=>{const{__scopeDialog:a,...c}=s,f=Nt(jf,a),h=Rr(u,f.triggerRef);return n.jsx(Ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":f.open,"aria-controls":f.open?f.contentId:void 0,"data-state":yi(f.open),...c,ref:h,onClick:fr(s.onClick,f.onOpenToggle)})});ix.displayName=jf;var vi="DialogPortal",[ux,Nf]=wf(vi,{forceMount:void 0}),Sf=s=>{const{__scopeDialog:u,forceMount:a,children:c,container:f}=s,h=Nt(vi,u);return n.jsx(ux,{scope:u,forceMount:a,children:m.Children.map(c,p=>n.jsx(Ws,{present:a||h.open,children:n.jsx(df,{asChild:!0,container:f,children:p})}))})};Sf.displayName=vi;var Is="DialogOverlay",Cf=m.forwardRef((s,u)=>{const a=Nf(Is,s.__scopeDialog),{forceMount:c=a.forceMount,...f}=s,h=Nt(Is,s.__scopeDialog);return h.modal?n.jsx(Ws,{present:c||h.open,children:n.jsx(dx,{...f,ref:u})}):null});Cf.displayName=Is;var cx=sf("DialogOverlay.RemoveScroll"),dx=m.forwardRef((s,u)=>{const{__scopeDialog:a,...c}=s,f=Nt(Is,a),h=sg(),p=Rr(u,h);return n.jsx(yf,{as:cx,allowPinchZoom:!0,shards:[f.contentRef],children:n.jsx(Ke.div,{"data-state":yi(f.open),...c,ref:p,style:{pointerEvents:"auto",...c.style}})})}),vn="DialogContent",Ef=m.forwardRef((s,u)=>{const a=Nf(vn,s.__scopeDialog),{forceMount:c=a.forceMount,...f}=s,h=Nt(vn,s.__scopeDialog);return n.jsx(Ws,{present:c||h.open,children:h.modal?n.jsx(fx,{...f,ref:u}):n.jsx(px,{...f,ref:u})})});Ef.displayName=vn;var fx=m.forwardRef((s,u)=>{const a=Nt(vn,s.__scopeDialog),c=m.useRef(null),f=Rr(u,a.contentRef,c);return m.useEffect(()=>{const h=c.current;if(h)return lx(h)},[]),n.jsx(Mf,{...s,ref:f,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:fr(s.onCloseAutoFocus,h=>{var p;h.preventDefault(),(p=a.triggerRef.current)==null||p.focus()}),onPointerDownOutside:fr(s.onPointerDownOutside,h=>{const p=h.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0;(p.button===2||g)&&h.preventDefault()}),onFocusOutside:fr(s.onFocusOutside,h=>h.preventDefault())})}),px=m.forwardRef((s,u)=>{const a=Nt(vn,s.__scopeDialog),c=m.useRef(!1),f=m.useRef(!1);return n.jsx(Mf,{...s,ref:u,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:h=>{var p,g;(p=s.onCloseAutoFocus)==null||p.call(s,h),h.defaultPrevented||(c.current||(g=a.triggerRef.current)==null||g.focus(),h.preventDefault()),c.current=!1,f.current=!1},onInteractOutside:h=>{var N,C;(N=s.onInteractOutside)==null||N.call(s,h),h.defaultPrevented||(c.current=!0,h.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const p=h.target;((C=a.triggerRef.current)==null?void 0:C.contains(p))&&h.preventDefault(),h.detail.originalEvent.type==="focusin"&&f.current&&h.preventDefault()}})}),Mf=m.forwardRef((s,u)=>{const{__scopeDialog:a,trapFocus:c,onOpenAutoFocus:f,onCloseAutoFocus:h,...p}=s,g=Nt(vn,a);return bg(),n.jsx(n.Fragment,{children:n.jsx(uf,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:f,onUnmountAutoFocus:h,children:n.jsx(lf,{role:"dialog",id:g.contentId,"aria-describedby":g.descriptionId,"aria-labelledby":g.titleId,"data-state":yi(g.open),...p,ref:u,deferPointerDownOutside:!0,onDismiss:()=>g.onOpenChange(!1)})})})}),_f="DialogTitle",mx=m.forwardRef((s,u)=>{const{__scopeDialog:a,...c}=s,f=Nt(_f,a);return n.jsx(Ke.h2,{id:f.titleId,...c,ref:u})});mx.displayName=_f;var Pf="DialogDescription",hx=m.forwardRef((s,u)=>{const{__scopeDialog:a,...c}=s,f=Nt(Pf,a);return n.jsx(Ke.p,{id:f.descriptionId,...c,ref:u})});hx.displayName=Pf;var Rf="DialogClose",gx=m.forwardRef((s,u)=>{const{__scopeDialog:a,...c}=s,f=Nt(Rf,a);return n.jsx(Ke.button,{type:"button",...c,ref:u,onClick:fr(s.onClick,()=>f.onOpenChange(!1))})});gx.displayName=Rf;function yi(s){return s?"open":"closed"}var ao='[cmdk-group=""]',Ja='[cmdk-group-items=""]',xx='[cmdk-group-heading=""]',zf='[cmdk-item=""]',$d=`${zf}:not([aria-disabled="true"])`,ii="cmdk-item-select",cn="data-value",vx=(s,u,a)=>Lh(s,u,a),Lf=m.createContext(void 0),mo=()=>m.useContext(Lf),Of=m.createContext(void 0),bi=()=>m.useContext(Of),Df=m.createContext(void 0),Af=m.forwardRef((s,u)=>{let a=dn(()=>{var x,F;return{search:"",value:(F=(x=s.value)!=null?x:s.defaultValue)!=null?F:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=dn(()=>new Set),f=dn(()=>new Map),h=dn(()=>new Map),p=dn(()=>new Set),g=Tf(s),{label:N,children:C,value:j,onValueChange:M,filter:_,shouldFilter:O,loop:D,disablePointerSelection:w=!1,vimBindings:z=!0,...A}=s,R=Bt(),I=Bt(),G=Bt(),Z=m.useRef(null),K=_x();Pr(()=>{if(j!==void 0){let x=j.trim();a.current.value=x,oe.emit()}},[j]),Pr(()=>{K(6,Ee)},[]);let oe=m.useMemo(()=>({subscribe:x=>(p.current.add(x),()=>p.current.delete(x)),snapshot:()=>a.current,setState:(x,F,q)=>{var H,te,le,P;if(!Object.is(a.current[x],F)){if(a.current[x]=F,x==="search")ce(),T(),K(1,me);else if(x==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Y=document.getElementById(G);Y?Y.focus():(H=document.getElementById(R))==null||H.focus()}if(K(7,()=>{var Y;a.current.selectedItemId=(Y=J())==null?void 0:Y.id,oe.emit()}),q||K(5,Ee),((te=g.current)==null?void 0:te.value)!==void 0){let Y=F??"";(P=(le=g.current).onValueChange)==null||P.call(le,Y);return}}oe.emit()}},emit:()=>{p.current.forEach(x=>x())}}),[]),he=m.useMemo(()=>({value:(x,F,q)=>{var H;F!==((H=h.current.get(x))==null?void 0:H.value)&&(h.current.set(x,{value:F,keywords:q}),a.current.filtered.items.set(x,de(F,q)),K(2,()=>{T(),oe.emit()}))},item:(x,F)=>(c.current.add(x),F&&(f.current.has(F)?f.current.get(F).add(x):f.current.set(F,new Set([x]))),K(3,()=>{ce(),T(),a.current.value||me(),oe.emit()}),()=>{h.current.delete(x),c.current.delete(x),a.current.filtered.items.delete(x);let q=J();K(4,()=>{ce(),(q==null?void 0:q.getAttribute("id"))===x&&me(),oe.emit()})}),group:x=>(f.current.has(x)||f.current.set(x,new Set),()=>{h.current.delete(x),f.current.delete(x)}),filter:()=>g.current.shouldFilter,label:N||s["aria-label"],getDisablePointerSelection:()=>g.current.disablePointerSelection,listId:R,inputId:G,labelId:I,listInnerRef:Z}),[]);function de(x,F){var q,H;let te=(H=(q=g.current)==null?void 0:q.filter)!=null?H:vx;return x?te(x,a.current.search,F):0}function T(){if(!a.current.search||g.current.shouldFilter===!1)return;let x=a.current.filtered.items,F=[];a.current.filtered.groups.forEach(H=>{let te=f.current.get(H),le=0;te.forEach(P=>{let Y=x.get(P);le=Math.max(Y,le)}),F.push([H,le])});let q=Z.current;ke().sort((H,te)=>{var le,P;let Y=H.getAttribute("id"),xe=te.getAttribute("id");return((le=x.get(xe))!=null?le:0)-((P=x.get(Y))!=null?P:0)}).forEach(H=>{let te=H.closest(Ja);te?te.appendChild(H.parentElement===te?H:H.closest(`${Ja} > *`)):q.appendChild(H.parentElement===q?H:H.closest(`${Ja} > *`))}),F.sort((H,te)=>te[1]-H[1]).forEach(H=>{var te;let le=(te=Z.current)==null?void 0:te.querySelector(`${ao}[${cn}="${encodeURIComponent(H[0])}"]`);le==null||le.parentElement.appendChild(le)})}function me(){let x=ke().find(q=>q.getAttribute("aria-disabled")!=="true"),F=x==null?void 0:x.getAttribute(cn);oe.setState("value",F||void 0)}function ce(){var x,F,q,H;if(!a.current.search||g.current.shouldFilter===!1){a.current.filtered.count=c.current.size;return}a.current.filtered.groups=new Set;let te=0;for(let le of c.current){let P=(F=(x=h.current.get(le))==null?void 0:x.value)!=null?F:"",Y=(H=(q=h.current.get(le))==null?void 0:q.keywords)!=null?H:[],xe=de(P,Y);a.current.filtered.items.set(le,xe),xe>0&&te++}for(let[le,P]of f.current)for(let Y of P)if(a.current.filtered.items.get(Y)>0){a.current.filtered.groups.add(le);break}a.current.filtered.count=te}function Ee(){var x,F,q;let H=J();H&&(((x=H.parentElement)==null?void 0:x.firstChild)===H&&((q=(F=H.closest(ao))==null?void 0:F.querySelector(xx))==null||q.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function J(){var x;return(x=Z.current)==null?void 0:x.querySelector(`${zf}[aria-selected="true"]`)}function ke(){var x;return Array.from(((x=Z.current)==null?void 0:x.querySelectorAll($d))||[])}function ye(x){let F=ke()[x];F&&oe.setState("value",F.getAttribute(cn))}function be(x){var F;let q=J(),H=ke(),te=H.findIndex(P=>P===q),le=H[te+x];(F=g.current)!=null&&F.loop&&(le=te+x<0?H[H.length-1]:te+x===H.length?H[0]:H[te+x]),le&&oe.setState("value",le.getAttribute(cn))}function W(x){let F=J(),q=F==null?void 0:F.closest(ao),H;for(;q&&!H;)q=x>0?Ex(q,ao):Mx(q,ao),H=q==null?void 0:q.querySelector($d);H?oe.setState("value",H.getAttribute(cn)):be(x)}let ee=()=>ye(ke().length-1),Q=x=>{x.preventDefault(),x.metaKey?ee():x.altKey?W(1):be(1)},k=x=>{x.preventDefault(),x.metaKey?ye(0):x.altKey?W(-1):be(-1)};return m.createElement(Ke.div,{ref:u,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:x=>{var F;(F=A.onKeyDown)==null||F.call(A,x);let q=x.nativeEvent.isComposing||x.keyCode===229;if(!(x.defaultPrevented||q))switch(x.key){case"n":case"j":{z&&x.ctrlKey&&Q(x);break}case"ArrowDown":{Q(x);break}case"p":case"k":{z&&x.ctrlKey&&k(x);break}case"ArrowUp":{k(x);break}case"Home":{x.preventDefault(),ye(0);break}case"End":{x.preventDefault(),ee();break}case"Enter":{x.preventDefault();let H=J();if(H){let te=new Event(ii);H.dispatchEvent(te)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:he.inputId,id:he.labelId,style:Rx},N),Gs(s,x=>m.createElement(Of.Provider,{value:oe},m.createElement(Lf.Provider,{value:he},x))))}),yx=m.forwardRef((s,u)=>{var a,c;let f=Bt(),h=m.useRef(null),p=m.useContext(Df),g=mo(),N=Tf(s),C=(c=(a=N.current)==null?void 0:a.forceMount)!=null?c:p==null?void 0:p.forceMount;Pr(()=>{if(!C)return g.item(f,p==null?void 0:p.id)},[C]);let j=If(f,h,[s.value,s.children,h],s.keywords),M=bi(),_=pr(K=>K.value&&K.value===j.current),O=pr(K=>C||g.filter()===!1?!0:K.search?K.filtered.items.get(f)>0:!0);m.useEffect(()=>{let K=h.current;if(!(!K||s.disabled))return K.addEventListener(ii,D),()=>K.removeEventListener(ii,D)},[O,s.onSelect,s.disabled]);function D(){var K,oe;w(),(oe=(K=N.current).onSelect)==null||oe.call(K,j.current)}function w(){M.setState("value",j.current,!0)}if(!O)return null;let{disabled:z,value:A,onSelect:R,forceMount:I,keywords:G,...Z}=s;return m.createElement(Ke.div,{ref:xn(h,u),...Z,id:f,"cmdk-item":"",role:"option","aria-disabled":!!z,"aria-selected":!!_,"data-disabled":!!z,"data-selected":!!_,onPointerMove:z||g.getDisablePointerSelection()?void 0:w,onClick:z?void 0:D},s.children)}),bx=m.forwardRef((s,u)=>{let{heading:a,children:c,forceMount:f,...h}=s,p=Bt(),g=m.useRef(null),N=m.useRef(null),C=Bt(),j=mo(),M=pr(O=>f||j.filter()===!1?!0:O.search?O.filtered.groups.has(p):!0);Pr(()=>j.group(p),[]),If(p,g,[s.value,s.heading,N]);let _=m.useMemo(()=>({id:p,forceMount:f}),[f]);return m.createElement(Ke.div,{ref:xn(g,u),...h,"cmdk-group":"",role:"presentation",hidden:M?void 0:!0},a&&m.createElement("div",{ref:N,"cmdk-group-heading":"","aria-hidden":!0,id:C},a),Gs(s,O=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?C:void 0},m.createElement(Df.Provider,{value:_},O))))}),wx=m.forwardRef((s,u)=>{let{alwaysRender:a,...c}=s,f=m.useRef(null),h=pr(p=>!p.search);return!a&&!h?null:m.createElement(Ke.div,{ref:xn(f,u),...c,"cmdk-separator":"",role:"separator"})}),kx=m.forwardRef((s,u)=>{let{onValueChange:a,...c}=s,f=s.value!=null,h=bi(),p=pr(C=>C.search),g=pr(C=>C.selectedItemId),N=mo();return m.useEffect(()=>{s.value!=null&&h.setState("search",s.value)},[s.value]),m.createElement(Ke.input,{ref:u,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":N.listId,"aria-labelledby":N.labelId,"aria-activedescendant":g,id:N.inputId,type:"text",value:f?s.value:p,onChange:C=>{f||h.setState("search",C.target.value),a==null||a(C.target.value)}})}),jx=m.forwardRef((s,u)=>{let{children:a,label:c="Suggestions",...f}=s,h=m.useRef(null),p=m.useRef(null),g=pr(C=>C.selectedItemId),N=mo();return m.useEffect(()=>{if(p.current&&h.current){let C=p.current,j=h.current,M,_=new ResizeObserver(()=>{M=requestAnimationFrame(()=>{let O=C.offsetHeight;j.style.setProperty("--cmdk-list-height",O.toFixed(1)+"px")})});return _.observe(C),()=>{cancelAnimationFrame(M),_.unobserve(C)}}},[]),m.createElement(Ke.div,{ref:xn(h,u),...f,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":g,"aria-label":c,id:N.listId},Gs(s,C=>m.createElement("div",{ref:xn(p,N.listInnerRef),"cmdk-list-sizer":""},C)))}),Nx=m.forwardRef((s,u)=>{let{open:a,onOpenChange:c,overlayClassName:f,contentClassName:h,container:p,...g}=s;return m.createElement(kf,{open:a,onOpenChange:c},m.createElement(Sf,{container:p},m.createElement(Cf,{"cmdk-overlay":"",className:f}),m.createElement(Ef,{"aria-label":s.label,"cmdk-dialog":"",className:h},m.createElement(Af,{ref:u,...g}))))}),Sx=m.forwardRef((s,u)=>pr(a=>a.filtered.count===0)?m.createElement(Ke.div,{ref:u,...s,"cmdk-empty":"",role:"presentation"}):null),Cx=m.forwardRef((s,u)=>{let{progress:a,children:c,label:f="Loading...",...h}=s;return m.createElement(Ke.div,{ref:u,...h,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":f},Gs(s,p=>m.createElement("div",{"aria-hidden":!0},p)))}),ln=Object.assign(Af,{List:jx,Item:yx,Input:kx,Group:bx,Separator:wx,Dialog:Nx,Empty:Sx,Loading:Cx});function Ex(s,u){let a=s.nextElementSibling;for(;a;){if(a.matches(u))return a;a=a.nextElementSibling}}function Mx(s,u){let a=s.previousElementSibling;for(;a;){if(a.matches(u))return a;a=a.previousElementSibling}}function Tf(s){let u=m.useRef(s);return Pr(()=>{u.current=s}),u}var Pr=typeof window>"u"?m.useEffect:m.useLayoutEffect;function dn(s){let u=m.useRef();return u.current===void 0&&(u.current=s()),u}function pr(s){let u=bi(),a=()=>s(u.snapshot());return m.useSyncExternalStore(u.subscribe,a,a)}function If(s,u,a,c=[]){let f=m.useRef(),h=mo();return Pr(()=>{var p;let g=(()=>{var C;for(let j of a){if(typeof j=="string")return j.trim();if(typeof j=="object"&&"current"in j)return j.current?(C=j.current.textContent)==null?void 0:C.trim():f.current}})(),N=c.map(C=>C.trim());h.value(s,g,N),(p=u.current)==null||p.setAttribute(cn,g),f.current=g}),f}var _x=()=>{let[s,u]=m.useState(),a=dn(()=>new Map);return Pr(()=>{a.current.forEach(c=>c()),a.current=new Map},[s]),(c,f)=>{a.current.set(c,f),u({})}};function Px(s){let u=s.type;return typeof u=="function"?u(s.props):"render"in u?u.render(s.props):s}function Gs({asChild:s,children:u},a){return s&&m.isValidElement(u)?m.cloneElement(Px(u),{ref:u.ref},a(u.props.children)):a(u)}var Rx={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function zx({onNavigate:s}){const[u,a]=m.useState(!1);return m.useEffect(()=>{const c=f=>{(f.metaKey||f.ctrlKey)&&f.key.toLowerCase()==="k"&&(f.preventDefault(),a(h=>!h))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),n.jsx(ln.Dialog,{open:u,onOpenChange:a,label:"Befehlspalette",className:"fixed inset-0 z-50 flex items-start justify-center bg-black/50 p-4 pt-[12vh]",onClick:()=>a(!1),children:n.jsxs("div",{className:"w-full max-w-lg overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-2xl",onClick:c=>c.stopPropagation(),children:[n.jsx(ln.Input,{autoFocus:!0,placeholder:"Springe zu… (Modelle, Routing, System …)",className:"w-full border-b border-border bg-transparent px-4 py-3 text-sm outline-none placeholder:text-muted-foreground"}),n.jsxs(ln.List,{className:"max-h-80 overflow-y-auto p-2",children:[n.jsx(ln.Empty,{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"Nichts gefunden."}),n.jsx(ln.Group,{heading:"Bereiche",className:"px-1 py-1 text-xs text-muted-foreground",children:oi.map(c=>n.jsxs(ln.Item,{value:`${c.label} ${c.hint}`,onSelect:()=>{s(c.id),a(!1)},className:"flex cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm text-foreground aria-selected:bg-accent aria-selected:text-accent-foreground",children:[n.jsx(c.icon,{className:"h-4 w-4 text-primary"}),n.jsx("span",{children:c.label}),n.jsx("span",{className:"ml-auto truncate text-xs text-muted-foreground",children:c.hint})]},c.id))})]})]})})}async function ue(s,u){const a=await fetch(s,{headers:{"Content-Type":"application/json"},...u});if(!a.ok)throw new Error(`${a.status} ${a.statusText}`);return a.json()}function Ff(s){var u,a,c="";if(typeof s=="string"||typeof s=="number")c+=s;else if(typeof s=="object")if(Array.isArray(s)){var f=s.length;for(u=0;u<f;u++)s[u]&&(a=Ff(s[u]))&&(c&&(c+=" "),c+=a)}else for(a in s)s[a]&&(c&&(c+=" "),c+=a);return c}function Lx(){for(var s,u,a=0,c="",f=arguments.length;a<f;a++)(s=arguments[a])&&(u=Ff(s))&&(c&&(c+=" "),c+=u);return c}const wi="-",Ox=s=>{const u=Ax(s),{conflictingClassGroups:a,conflictingClassGroupModifiers:c}=s;return{getClassGroupId:p=>{const g=p.split(wi);return g[0]===""&&g.length!==1&&g.shift(),$f(g,u)||Dx(p)},getConflictingClassGroupIds:(p,g)=>{const N=a[p]||[];return g&&c[p]?[...N,...c[p]]:N}}},$f=(s,u)=>{var p;if(s.length===0)return u.classGroupId;const a=s[0],c=u.nextPart.get(a),f=c?$f(s.slice(1),c):void 0;if(f)return f;if(u.validators.length===0)return;const h=s.join(wi);return(p=u.validators.find(({validator:g})=>g(h)))==null?void 0:p.classGroupId},Ud=/^\[(.+)\]$/,Dx=s=>{if(Ud.test(s)){const u=Ud.exec(s)[1],a=u==null?void 0:u.substring(0,u.indexOf(":"));if(a)return"arbitrary.."+a}},Ax=s=>{const{theme:u,prefix:a}=s,c={nextPart:new Map,validators:[]};return Ix(Object.entries(s.classGroups),a).forEach(([h,p])=>{ui(p,c,h,u)}),c},ui=(s,u,a,c)=>{s.forEach(f=>{if(typeof f=="string"){const h=f===""?u:Bd(u,f);h.classGroupId=a;return}if(typeof f=="function"){if(Tx(f)){ui(f(c),u,a,c);return}u.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([h,p])=>{ui(p,Bd(u,h),a,c)})})},Bd=(s,u)=>{let a=s;return u.split(wi).forEach(c=>{a.nextPart.has(c)||a.nextPart.set(c,{nextPart:new Map,validators:[]}),a=a.nextPart.get(c)}),a},Tx=s=>s.isThemeGetter,Ix=(s,u)=>u?s.map(([a,c])=>{const f=c.map(h=>typeof h=="string"?u+h:typeof h=="object"?Object.fromEntries(Object.entries(h).map(([p,g])=>[u+p,g])):h);return[a,f]}):s,Fx=s=>{if(s<1)return{get:()=>{},set:()=>{}};let u=0,a=new Map,c=new Map;const f=(h,p)=>{a.set(h,p),u++,u>s&&(u=0,c=a,a=new Map)};return{get(h){let p=a.get(h);if(p!==void 0)return p;if((p=c.get(h))!==void 0)return f(h,p),p},set(h,p){a.has(h)?a.set(h,p):f(h,p)}}},Uf="!",$x=s=>{const{separator:u,experimentalParseClassName:a}=s,c=u.length===1,f=u[0],h=u.length,p=g=>{const N=[];let C=0,j=0,M;for(let z=0;z<g.length;z++){let A=g[z];if(C===0){if(A===f&&(c||g.slice(z,z+h)===u)){N.push(g.slice(j,z)),j=z+h;continue}if(A==="/"){M=z;continue}}A==="["?C++:A==="]"&&C--}const _=N.length===0?g:g.substring(j),O=_.startsWith(Uf),D=O?_.substring(1):_,w=M&&M>j?M-j:void 0;return{modifiers:N,hasImportantModifier:O,baseClassName:D,maybePostfixModifierPosition:w}};return a?g=>a({className:g,parseClassName:p}):p},Ux=s=>{if(s.length<=1)return s;const u=[];let a=[];return s.forEach(c=>{c[0]==="["?(u.push(...a.sort(),c),a=[]):a.push(c)}),u.push(...a.sort()),u},Bx=s=>({cache:Fx(s.cacheSize),parseClassName:$x(s),...Ox(s)}),Wx=/\s+/,Vx=(s,u)=>{const{parseClassName:a,getClassGroupId:c,getConflictingClassGroupIds:f}=u,h=[],p=s.trim().split(Wx);let g="";for(let N=p.length-1;N>=0;N-=1){const C=p[N],{modifiers:j,hasImportantModifier:M,baseClassName:_,maybePostfixModifierPosition:O}=a(C);let D=!!O,w=c(D?_.substring(0,O):_);if(!w){if(!D){g=C+(g.length>0?" "+g:g);continue}if(w=c(_),!w){g=C+(g.length>0?" "+g:g);continue}D=!1}const z=Ux(j).join(":"),A=M?z+Uf:z,R=A+w;if(h.includes(R))continue;h.push(R);const I=f(w,D);for(let G=0;G<I.length;++G){const Z=I[G];h.push(A+Z)}g=C+(g.length>0?" "+g:g)}return g};function Hx(){let s=0,u,a,c="";for(;s<arguments.length;)(u=arguments[s++])&&(a=Bf(u))&&(c&&(c+=" "),c+=a);return c}const Bf=s=>{if(typeof s=="string")return s;let u,a="";for(let c=0;c<s.length;c++)s[c]&&(u=Bf(s[c]))&&(a&&(a+=" "),a+=u);return a};function Gx(s,...u){let a,c,f,h=p;function p(N){const C=u.reduce((j,M)=>M(j),s());return a=Bx(C),c=a.cache.get,f=a.cache.set,h=g,g(N)}function g(N){const C=c(N);if(C)return C;const j=Vx(N,a);return f(N,j),j}return function(){return h(Hx.apply(null,arguments))}}const Re=s=>{const u=a=>a[s]||[];return u.isThemeGetter=!0,u},Wf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kx=/^\d+\/\d+$/,Qx=new Set(["px","full","screen"]),Zx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qx=/\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$/,Yx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=s=>pn(s)||Qx.has(s)||Kx.test(s),ir=s=>yn(s,"length",a0),pn=s=>!!s&&!Number.isNaN(Number(s)),Xa=s=>yn(s,"number",pn),io=s=>!!s&&Number.isInteger(Number(s)),e0=s=>s.endsWith("%")&&pn(s.slice(0,-1)),we=s=>Wf.test(s),ur=s=>Zx.test(s),t0=new Set(["length","size","percentage"]),r0=s=>yn(s,t0,Vf),n0=s=>yn(s,"position",Vf),o0=new Set(["image","url"]),s0=s=>yn(s,o0,u0),l0=s=>yn(s,"",i0),uo=()=>!0,yn=(s,u,a)=>{const c=Wf.exec(s);return c?c[1]?typeof u=="string"?c[1]===u:u.has(c[1]):a(c[2]):!1},a0=s=>qx.test(s)&&!Yx.test(s),Vf=()=>!1,i0=s=>Jx.test(s),u0=s=>Xx.test(s),c0=()=>{const s=Re("colors"),u=Re("spacing"),a=Re("blur"),c=Re("brightness"),f=Re("borderColor"),h=Re("borderRadius"),p=Re("borderSpacing"),g=Re("borderWidth"),N=Re("contrast"),C=Re("grayscale"),j=Re("hueRotate"),M=Re("invert"),_=Re("gap"),O=Re("gradientColorStops"),D=Re("gradientColorStopPositions"),w=Re("inset"),z=Re("margin"),A=Re("opacity"),R=Re("padding"),I=Re("saturate"),G=Re("scale"),Z=Re("sepia"),K=Re("skew"),oe=Re("space"),he=Re("translate"),de=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",we,u],ce=()=>[we,u],Ee=()=>["",Ut,ir],J=()=>["auto",pn,we],ke=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ye=()=>["solid","dashed","dotted","double","none"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",we],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[pn,we];return{cacheSize:500,separator:":",theme:{colors:[uo],spacing:[Ut,ir],blur:["none","",ur,we],brightness:k(),borderColor:[s],borderRadius:["none","","full",ur,we],borderSpacing:ce(),borderWidth:Ee(),contrast:k(),grayscale:ee(),hueRotate:k(),invert:ee(),gap:ce(),gradientColorStops:[s],gradientColorStopPositions:[e0,ir],inset:me(),margin:me(),opacity:k(),padding:ce(),saturate:k(),scale:k(),sepia:ee(),skew:k(),space:ce(),translate:ce()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[ur]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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"],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:[...ke(),we]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:de()}],"overscroll-x":[{"overscroll-x":de()}],"overscroll-y":[{"overscroll-y":de()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",io,we]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",io,we]}],"grid-cols":[{"grid-cols":[uo]}],"col-start-end":[{col:["auto",{span:["full",io,we]},we]}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":[uo]}],"row-start-end":[{row:["auto",{span:[io,we]},we]}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[z]}],mx:[{mx:[z]}],my:[{my:[z]}],ms:[{ms:[z]}],me:[{me:[z]}],mt:[{mt:[z]}],mr:[{mr:[z]}],mb:[{mb:[z]}],ml:[{ml:[z]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,u]}],"min-w":[{"min-w":[we,u,"min","max","fit"]}],"max-w":[{"max-w":[we,u,"none","full","min","max","fit","prose",{screen:[ur]},ur]}],h:[{h:[we,u,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,u,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,u,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,u,"auto","min","max","fit"]}],"font-size":[{text:["base",ur,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xa]}],"font-family":[{font:[uo]}],"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:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",pn,Xa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ut,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[s]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[s]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ut,ir]}],"underline-offset":[{"underline-offset":["auto",Ut,we]}],"text-decoration-color":[{decoration:[s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ce()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ke(),n0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",r0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},s0]}],"bg-color":[{bg:[s]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],rounded:[{rounded:[h]}],"rounded-s":[{"rounded-s":[h]}],"rounded-e":[{"rounded-e":[h]}],"rounded-t":[{"rounded-t":[h]}],"rounded-r":[{"rounded-r":[h]}],"rounded-b":[{"rounded-b":[h]}],"rounded-l":[{"rounded-l":[h]}],"rounded-ss":[{"rounded-ss":[h]}],"rounded-se":[{"rounded-se":[h]}],"rounded-ee":[{"rounded-ee":[h]}],"rounded-es":[{"rounded-es":[h]}],"rounded-tl":[{"rounded-tl":[h]}],"rounded-tr":[{"rounded-tr":[h]}],"rounded-br":[{"rounded-br":[h]}],"rounded-bl":[{"rounded-bl":[h]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...ye(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:ye()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...ye()]}],"outline-offset":[{"outline-offset":[Ut,we]}],"outline-w":[{outline:[Ut,ir]}],"outline-color":[{outline:[s]}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[s]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Ut,ir]}],"ring-offset-color":[{"ring-offset":[s]}],shadow:[{shadow:["","inner","none",ur,l0]}],"shadow-color":[{shadow:[uo]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...be(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":be()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[c]}],contrast:[{contrast:[N]}],"drop-shadow":[{"drop-shadow":["","none",ur,we]}],grayscale:[{grayscale:[C]}],"hue-rotate":[{"hue-rotate":[j]}],invert:[{invert:[M]}],saturate:[{saturate:[I]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[N]}],"backdrop-grayscale":[{"backdrop-grayscale":[C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j]}],"backdrop-invert":[{"backdrop-invert":[M]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-y":[{"border-spacing-y":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[io,we]}],"translate-x":[{"translate-x":[he]}],"translate-y":[{"translate-y":[he]}],"skew-x":[{"skew-x":[K]}],"skew-y":[{"skew-y":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",s]}],appearance:[{appearance:["none","auto"]}],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",we]}],"caret-color":[{caret:[s]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ce()}],"scroll-mx":[{"scroll-mx":ce()}],"scroll-my":[{"scroll-my":ce()}],"scroll-ms":[{"scroll-ms":ce()}],"scroll-me":[{"scroll-me":ce()}],"scroll-mt":[{"scroll-mt":ce()}],"scroll-mr":[{"scroll-mr":ce()}],"scroll-mb":[{"scroll-mb":ce()}],"scroll-ml":[{"scroll-ml":ce()}],"scroll-p":[{"scroll-p":ce()}],"scroll-px":[{"scroll-px":ce()}],"scroll-py":[{"scroll-py":ce()}],"scroll-ps":[{"scroll-ps":ce()}],"scroll-pe":[{"scroll-pe":ce()}],"scroll-pt":[{"scroll-pt":ce()}],"scroll-pr":[{"scroll-pr":ce()}],"scroll-pb":[{"scroll-pb":ce()}],"scroll-pl":[{"scroll-pl":ce()}],"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",we]}],fill:[{fill:[s,"none"]}],"stroke-w":[{stroke:[Ut,ir,Xa]}],stroke:[{stroke:[s,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},d0=Gx(c0);function ie(...s){return d0(Lx(s))}function Fs(s){return s?s.replace(/127\.0\.0\.1|localhost/g,"192.168.178.151"):""}function an(s){return(s/1024**3).toFixed(1)}function Rs({value:s,label:u,detail:a}){const f=2*Math.PI*24,h=f-Math.min(s,100)/100*f,p=s>90?"stroke-red-500":s>75?"stroke-amber-500":"stroke-primary";return n.jsxs("div",{className:"flex flex-col items-center gap-1.5 p-2 bg-background/20 rounded-xl border border-border/40",children:[n.jsxs("div",{className:"relative flex h-16 w-16 items-center justify-center",children:[n.jsxs("svg",{className:"absolute inset-0 h-full w-full -rotate-90",children:[n.jsx("circle",{cx:"32",cy:"32",r:24,className:"stroke-muted fill-none",strokeWidth:"4.5"}),n.jsx("circle",{cx:"32",cy:"32",r:24,className:ie("fill-none transition-all duration-700 ease-out",p),strokeWidth:"4.5",strokeDasharray:f,strokeDashoffset:h,strokeLinecap:"round"})]}),n.jsxs("span",{className:"text-xs font-mono font-bold tracking-tight text-foreground",children:[Math.round(s),"%"]})]}),n.jsx("span",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider",children:u}),a&&n.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/80",children:a})]})}function f0(){const[s,u]=m.useState(null),[a,c]=m.useState(null),[f,h]=m.useState([]),[p,g]=m.useState([]),[N,C]=m.useState([]),[j,M]=m.useState(null),[_,O]=m.useState([]),[D,w]=m.useState(""),[z,A]=m.useState(!1),[R,I]=m.useState(""),[G,Z]=m.useState(!1),[K,oe]=m.useState({open:!1,actionPath:"",actionLabel:""}),[he,de]=m.useState(""),[T,me]=m.useState("stable"),[ce,Ee]=m.useState(!1);function J(){ue("/api/system/status").then(u).catch(()=>{}),ue("/api/agent/status").then(c).catch(()=>{}),ue("/api/models").then(x=>{h(x.models||[]),g(x.running||[])}).catch(()=>{}),ue("/api/memory?category=").then(x=>C(x.slice(0,3))).catch(()=>{}),ue("/api/maintenance/updates").then(M).catch(()=>{}),ue("/api/jobs").then(x=>O(x.jobs||[])).catch(()=>{})}m.useEffect(()=>{J();const x=setInterval(J,3e3);return()=>clearInterval(x)},[]);async function ke(x,F,q,H){w(`${F} wird ausgeführt...`),A(!0);try{const te={...q},le=await ue(x,{method:"POST",body:JSON.stringify(te)});if(le.status==="password_required"||le.status==="incorrect_password"){oe({open:!0,actionPath:x,actionLabel:F,payload:q,error:le.status==="incorrect_password"?"Falsches Sudo-Passwort. Bitte erneut versuchen.":void 0}),w("");return}le.job_id?w(`${F} gestartet (Job-ID: ${le.job_id})`):le.ok?w(`${F} erfolgreich ausgeführt.`):w(`Fehler: ${le.err||"Unbekannter Fehler"}`),J()}catch(te){w(`Fehler bei ${F}: ${te.message}`)}finally{A(!1)}}async function ye(){Z(!0);try{const x={...K.payload,sudo_password:R},F=await ue(K.actionPath,{method:"POST",body:JSON.stringify(x)});if(F.status==="password_required"||F.status==="incorrect_password"){oe(q=>({...q,error:"Falsches Sudo-Passwort. Bitte erneut versuchen."}));return}F.job_id?w(`${K.actionLabel} gestartet (Job-ID: ${F.job_id})`):F.ok?w(`${K.actionLabel} erfolgreich ausgeführt.`):w(`Fehler: ${F.err||"Unbekannter Fehler"}`),oe({open:!1,actionPath:"",actionLabel:""}),I(""),J()}catch(x){w(`Fehler: ${x.message}`),oe({open:!1,actionPath:"",actionLabel:""}),I("")}finally{Z(!1)}}async function be(x,F){w(`Upgrade für ${x} wird gestartet...`);try{await ue("/api/models/install",{method:"POST",body:JSON.stringify({repo:x,role:F,quant:"Q4_K_M",jinja:!0})}),w("Upgrade-Download gestartet."),J()}catch(q){w(`Upgrade fehlgeschlagen: ${q.message}`)}}async function W(){if(!(!he.trim()||ce)){Ee(!0);try{await ue("/api/memory",{method:"POST",body:JSON.stringify({content:he,category:T,source:"dashboard"})}),de(""),ue("/api/memory?category=").then(x=>C(x.slice(0,3))).catch(()=>{})}catch(x){console.error(x)}finally{Ee(!1)}}}const ee=f.filter(x=>x.role),Q=_.find(x=>x.label.includes("OS-Update")&&(x.state==="running"||x.state==="queued")),k=_.find(x=>x.label.includes("Engine-Update")&&(x.state==="running"||x.state==="queued"));return n.jsxs("div",{className:"space-y-6",children:[K.open&&n.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm p-4",children:n.jsxs("div",{className:"w-full max-w-sm rounded-2xl border border-border/60 bg-card/90 backdrop-blur-xl p-5 shadow-2xl space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-border/20 pb-2",children:[n.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-primary font-space",children:"Sudo-Passwort erforderlich"}),n.jsx("button",{onClick:()=>{oe({open:!1,actionPath:"",actionLabel:""}),I("")},className:"p-1 rounded hover:bg-accent text-muted-foreground hover:text-foreground cursor-pointer",children:n.jsx(Bs,{className:"h-4 w-4"})})]}),n.jsxs("p",{className:"text-[10px] text-muted-foreground leading-normal",children:["Für die Aktion ",n.jsx("strong",{children:K.actionLabel})," wird das Administrator-Passwort (Sudo) auf der Box benötigt."]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("input",{type:"password",value:R,onChange:x=>I(x.target.value),placeholder:"Sudo-Passwort eingeben...",className:"w-full h-9 rounded-lg border border-border/60 bg-background/40 px-3 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground",onKeyDown:x=>x.key==="Enter"&&ye(),autoFocus:!0}),K.error&&n.jsx("div",{className:"text-[10px] font-semibold text-red-400",children:K.error})]}),n.jsxs("div",{className:"flex gap-2 justify-end",children:[n.jsx("button",{onClick:()=>{oe({open:!1,actionPath:"",actionLabel:""}),I("")},className:"h-8 px-3 rounded-lg border border-border/60 bg-background/25 text-[10px] font-bold uppercase hover:bg-accent transition-all cursor-pointer",children:"Abbrechen"}),n.jsx("button",{onClick:ye,disabled:!R||G,className:"h-8 px-4 rounded-lg bg-primary text-primary-foreground text-[10px] font-bold uppercase hover:opacity-90 transition-all disabled:opacity-50 cursor-pointer flex items-center justify-center gap-1.5",children:G?"Prüfe...":"Ausführen"})]})]})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Zentrale"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Aktueller Status von System, Modellen und Agent."})]}),n.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[n.jsxs("div",{className:"md:col-span-2 flex flex-col justify-between rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[n.jsx(_r,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"System-Status"})]}),s?n.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:[n.jsx(Rs,{value:s.cpu.percent,label:"CPU",detail:s.cpu.cores?`${s.cpu.cores} Cores`:void 0}),n.jsx(Rs,{value:s.ram.percent,label:"RAM",detail:`${an(s.ram.used)} / ${an(s.ram.total)} GB`}),s.gpu&&s.gpu.busy_percent!=null&&s.gpu.gtt_used!=null&&s.gpu.gtt_total!=null&&n.jsx(Rs,{value:s.gpu.busy_percent,label:"GPU",detail:`${an(s.gpu.gtt_used)} / ${an(s.gpu.gtt_total)} GB`}),s.disk&&n.jsx(Rs,{value:s.disk.percent,label:"Disk",detail:`${an(s.disk.used)} / ${an(s.disk.total)} GB`})]}):n.jsx("div",{className:"h-28 flex items-center justify-center text-xs text-muted-foreground",children:"Lade Systemdaten…"})]}),(s==null?void 0:s.temp)&&(s.temp.cpu||s.temp.gpu)&&n.jsxs("div",{className:"mt-4 flex gap-4 text-xs font-mono text-muted-foreground/80 border-t border-border/30 pt-3",children:[s.temp.cpu!=null&&n.jsxs("span",{children:["CPU Temp: ",s.temp.cpu," °C"]}),s.temp.gpu!=null&&n.jsxs("span",{children:["GPU Temp: ",s.temp.gpu," °C"]})]})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2 border-b border-border/20 pb-2",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(bh,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Updates & Pflege"})]}),(j==null?void 0:j.last_check)&&n.jsxs("span",{className:"text-[9px] text-muted-foreground/80 font-mono",children:["Zuletzt gesucht: ",new Date(j.last_check*1e3).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})]})]}),j?n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"space-y-1.5",children:[n.jsxs("div",{className:ie("flex items-center justify-between px-3 py-1.5 rounded-lg border text-xs",j.os>0?"border-amber-500/30 bg-amber-500/5 text-amber-400 font-semibold":"border-border/30 bg-background/25 text-muted-foreground"),children:[n.jsx("span",{children:"OS-Pakete"}),n.jsx("span",{className:"font-mono",children:j.os>0?`${j.os} verfügbar`:"aktuell"})]}),n.jsxs("div",{className:ie("flex items-center justify-between px-3 py-1.5 rounded-lg border text-xs",j.engine>0?"border-amber-500/30 bg-amber-500/5 text-amber-400 font-semibold":"border-border/30 bg-background/25 text-muted-foreground"),children:[n.jsx("span",{children:"Engine (llama.cpp)"}),n.jsx("span",{className:"font-mono",children:j.engine>0?"Update verfügbar":"aktuell"})]}),n.jsxs("div",{className:ie("flex items-center justify-between px-3 py-1.5 rounded-lg border text-xs",j.models>0?"border-primary/30 bg-primary/5 text-primary font-semibold animate-pulse":"border-border/30 bg-background/25 text-muted-foreground"),children:[n.jsx("span",{children:"Modell-Upgrades"}),n.jsx("span",{className:"font-mono",children:j.models>0?`${j.models} verfügbar`:"aktuell"})]})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-2 border-t border-border/20 pt-3",children:[n.jsx("button",{onClick:()=>ke("/api/maintenance/os-update","OS-Update"),disabled:z||!!Q,className:"h-8 px-2 rounded-lg border border-border/60 bg-background/20 text-[10px] font-bold uppercase hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer disabled:opacity-50 flex items-center justify-center gap-1",children:Q?n.jsxs(n.Fragment,{children:[n.jsx(gn,{className:"h-3 w-3 animate-spin text-primary"}),n.jsxs("span",{children:["Aktiv (",Q.progress??0,"%)"]})]}):n.jsx("span",{children:"OS Update"})}),n.jsx("button",{onClick:()=>ke("/api/maintenance/engine-update","Engine-Update"),disabled:z||!!k,className:"h-8 px-2 rounded-lg border border-border/60 bg-background/20 text-[10px] font-bold uppercase hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer disabled:opacity-50 flex items-center justify-center gap-1",children:k?n.jsxs(n.Fragment,{children:[n.jsx(gn,{className:"h-3 w-3 animate-spin text-primary"}),n.jsxs("span",{children:["Aktiv (",k.progress??0,"%)"]})]}):n.jsx("span",{children:"Engine Update"})})]}),n.jsxs("button",{onClick:()=>{confirm("Bist du sicher, dass du das Host-System neu starten willst?")&&ke("/api/maintenance/reboot","Reboot")},disabled:z,className:"w-full h-8 flex items-center justify-center gap-1.5 rounded-lg border border-red-500/30 bg-red-500/5 text-red-400 text-[10px] font-bold uppercase hover:bg-red-500/10 transition-all cursor-pointer disabled:opacity-50",children:[n.jsx(tf,{className:"h-3.5 w-3.5"}),n.jsx("span",{children:"Host Reboot"})]}),j.model_list.length>0&&n.jsxs("div",{className:"space-y-1.5 border-t border-border/20 pt-3",children:[n.jsx("div",{className:"text-[9px] uppercase font-bold text-muted-foreground/60 tracking-wider",children:"Verfügbare Modell-Upgrades:"}),n.jsx("div",{className:"max-h-24 overflow-y-auto space-y-1.5 pr-1 scrollbar-thin",children:j.model_list.map(x=>n.jsxs("div",{className:"flex items-center justify-between p-2 rounded bg-background/25 border border-border/30 text-[10px] font-mono text-muted-foreground",children:[n.jsxs("span",{className:"truncate flex-1 mr-1.5",title:`${x.role}: ${x.repo}`,children:[n.jsx("span",{className:"text-primary font-bold uppercase",children:x.role}),": ",x.repo.split("/").pop()]}),n.jsxs("button",{onClick:()=>be(x.repo,x.role),className:"px-2 py-0.5 text-[8px] font-bold uppercase rounded bg-primary text-primary-foreground hover:opacity-90 transition-all cursor-pointer flex items-center gap-0.5",children:[n.jsx(hn,{className:"h-2.5 w-2.5"})," Laden"]})]},x.repo))})]})]}):n.jsx("div",{className:"h-24 flex items-center justify-center text-xs text-muted-foreground",children:"Lade Updates..."}),D&&n.jsx("div",{className:"text-[10px] font-mono text-primary font-medium bg-primary/5 p-2 rounded-lg border border-primary/20 break-all leading-normal",children:D}),n.jsxs("div",{className:"text-[9px] text-muted-foreground/60 leading-normal border-t border-border/10 pt-2.5 flex items-start gap-1",children:[n.jsx(co,{className:"h-3 w-3 shrink-0 text-muted-foreground/50 mt-0.5"}),n.jsxs("span",{children:["OS-Update & Reboot benötigen NOPASSWD in ",n.jsx("code",{children:"/etc/sudoers"})," (z.B. ",n.jsx("code",{children:"hitonabi ALL=(root) NOPASSWD:..."}),") oder ein gültiges Sudo-Passwort per Pop-up."]})]})]}),n.jsx("div",{className:"mt-4 border-t border-border/30 pt-3 shrink-0",children:n.jsx("button",{onClick:()=>window.dispatchEvent(new CustomEvent("open-system-drawer")),className:"w-full h-8 flex items-center justify-center gap-1.5 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all cursor-pointer shadow-md shadow-primary/10",children:"System-Zentrale öffnen"})})]})]}),n.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx($s,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Hermes Agent"})]}),(a==null?void 0:a.webui_url)&&n.jsxs("a",{href:Fs(a.webui_url),target:"_blank",rel:"noopener",className:ie("flex items-center gap-1 px-3 py-1 rounded-lg text-xs font-medium transition-all",a.webui_reachable?"bg-primary text-primary-foreground hover:opacity-90 shadow-md shadow-primary/20":"border border-border text-muted-foreground"),children:[n.jsx(As,{className:"h-3 w-3"})," Hermes öffnen"]})]}),a?n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{className:"p-3 bg-background/20 rounded-xl border border-border/40",children:[n.jsx("div",{className:"text-[10px] text-muted-foreground uppercase font-semibold",children:"Gateway"}),n.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[n.jsx("span",{className:ie("h-2 w-2 rounded-full",a.gateway_reachable?"bg-emerald-500 animate-pulse":"bg-amber-500")}),n.jsx("span",{className:"text-xs font-medium",children:a.gateway_reachable?"Online":"Offline"})]})]}),n.jsxs("div",{className:"p-3 bg-background/20 rounded-xl border border-border/40",children:[n.jsx("div",{className:"text-[10px] text-muted-foreground uppercase font-semibold",children:"WebUI"}),n.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[n.jsx("span",{className:ie("h-2 w-2 rounded-full",a.webui_reachable?"bg-emerald-500 animate-pulse":"bg-amber-500")}),n.jsx("span",{className:"text-xs font-medium",children:a.webui_reachable?"Online":"Offline"})]})]})]}),n.jsxs("div",{className:"p-3 bg-background/20 rounded-xl border border-border/40",children:[n.jsx("div",{className:"text-[10px] text-muted-foreground uppercase font-semibold",children:"Aktives Gehirn"}),n.jsxs("div",{className:"text-xs font-medium mt-1 font-mono text-primary flex items-center gap-1.5",children:[n.jsx(Ts,{className:"h-3.5 w-3.5"}),a.brain_model?`model: ${a.brain_model}`:"model: auto"]})]})]}):n.jsx("div",{className:"h-28 flex items-center justify-center text-xs text-muted-foreground",children:"Lade Agenten-Status…"})]}),n.jsx("div",{className:"mt-3 text-[10px] text-muted-foreground/80 border-t border-border/30 pt-3",children:"Gedächtnis & Stack-Tools via MCP gekoppelt."})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[n.jsx(Ts,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Aktive Rollen"})]}),n.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto pr-1 scrollbar-thin",children:ee.length===0?n.jsx("div",{className:"text-xs text-muted-foreground py-6 text-center",children:"Keine Modelle als Rollen zugewiesen."}):ee.map(x=>{const F=p.includes(x.name);return n.jsxs("div",{className:ie("flex items-center justify-between p-2.5 rounded-xl border transition-all duration-300",F?"border-primary/50 bg-primary/5 shadow-md shadow-primary/5":"border-border/40 bg-background/20"),children:[n.jsxs("div",{className:"min-w-0 flex-1 mr-2",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:ie("text-[9px] font-semibold uppercase px-1.5 py-0.5 rounded font-mono",x.role==="fast"?"bg-cyan-500/15 text-cyan-400":x.role==="heavy"?"bg-amber-500/15 text-amber-400":x.role==="coder"?"bg-violet-500/15 text-violet-400":x.role==="vision"?"bg-pink-500/15 text-pink-400":"bg-muted text-muted-foreground"),children:x.role}),F&&n.jsxs("span",{className:"flex h-2 w-2 relative",children:[n.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"}),n.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-emerald-500"})]})]}),n.jsx("div",{className:"text-[10px] font-medium mt-1 truncate",title:x.name,children:x.name})]}),n.jsx("div",{className:"text-[9px] font-mono text-muted-foreground shrink-0",children:F?"Warm":"Bereit"})]},x.name)})})]}),n.jsx("div",{className:"mt-4 text-[10px] text-muted-foreground/80 border-t border-border/30 pt-3",children:"Laden erfolgt automatisch per Auto-Swap."})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[n.jsx(Us,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Gedächtnis"})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsx("textarea",{value:he,onChange:x=>de(x.target.value),placeholder:"Fakt / Regel im Pool speichern...",rows:2,className:"w-full resize-none rounded-xl border border-border/50 bg-background/30 p-2 text-[10px] outline-none focus:ring-1 focus:ring-primary transition-all leading-normal"}),n.jsxs("div",{className:"flex items-center gap-2 justify-between",children:[n.jsxs("select",{value:T,onChange:x=>me(x.target.value),className:"h-7 rounded-lg border border-border/50 bg-background/50 px-2 text-[10px] outline-none cursor-pointer",children:[n.jsx("option",{value:"stable",children:"🔵 Fakt"}),n.jsx("option",{value:"instruction",children:"📋 Regel"}),n.jsx("option",{value:"user",children:"👤 User"}),n.jsx("option",{value:"versioned",children:"🟡 Version"})]}),n.jsxs("button",{onClick:W,disabled:!he.trim()||ce,className:"flex h-7 items-center gap-1 rounded-lg bg-primary px-3 text-[10px] font-semibold text-primary-foreground hover:opacity-90 disabled:opacity-50 transition-all cursor-pointer",children:[n.jsx(ef,{className:"h-3.5 w-3.5"})," Speichern"]})]})]}),n.jsxs("div",{className:"mt-3.5 space-y-1.5",children:[n.jsx("div",{className:"text-[9px] text-muted-foreground uppercase font-bold tracking-wider",children:"Zuletzt gespeichert:"}),n.jsx("div",{className:"max-h-20 overflow-y-auto space-y-1 pr-1 scrollbar-thin",children:N.length===0?n.jsx("div",{className:"text-[10px] text-muted-foreground/75 py-1",children:"Keine Einträge vorhanden."}):N.map(x=>n.jsxs("div",{className:"text-[10px] bg-background/10 border border-border/30 rounded p-1.5 flex items-start gap-1.5",children:[n.jsx("span",{className:"shrink-0 text-[8px] font-mono text-muted-foreground/80 px-1 py-0.5 rounded bg-muted/20",children:x.category}),n.jsx("span",{className:"truncate flex-1 text-muted-foreground hover:text-foreground transition-colors",title:x.content,children:x.content})]},x.id))})]})]}),n.jsx("div",{className:"mt-4 text-[10px] text-muted-foreground/80 border-t border-border/30 pt-3",children:"Steht allen Clients per MCP zur Verfügung."})]})]})]})}function Mr({children:s,tone:u="muted"}){const a={muted:"bg-muted text-muted-foreground",primary:"bg-primary/15 text-primary",warn:"bg-amber-500/15 text-amber-500"};return n.jsx("span",{className:`rounded px-1.5 py-0.5 text-[11px] font-medium ${a[u]}`,children:s})}function Wd({caps:s}){return s?n.jsxs("span",{className:"inline-flex flex-wrap gap-1",children:[s.coder&&n.jsx(Mr,{children:"💻 Code"}),s.vision&&n.jsx(Mr,{children:"👁 Bild"}),s.reasoning&&n.jsx(Mr,{children:"🧠 Reason"}),s.moe&&n.jsxs(Mr,{tone:"primary",children:["🧩 MoE",s.active_b?`·${s.active_b}b`:""]}),s.tools==="yes"&&n.jsx(Mr,{tone:"primary",children:"🛠 Tools"}),s.tools==="likely"&&n.jsx(Mr,{tone:"warn",children:"🛠 Tools?"}),s.embedding&&n.jsx(Mr,{children:"🔢 Embed"})]}):null}function ci(s){return s?s>1024**3?`${(s/1024**3).toFixed(1)} GB`:`${(s/1024**2).toFixed(0)} MB`:""}function p0(s){if(!s)return"";const u=Math.floor(s/60);return u>0?`${u} min`:`${s} s`}function m0(){const[s,u]=m.useState([]);function a(){ue("/api/jobs").then(p=>u(p.jobs||[])).catch(()=>{})}m.useEffect(()=>{a();const p=setInterval(a,2e3);return()=>clearInterval(p)},[]);async function c(p){try{await ue(`/api/jobs/${p}/cancel`,{method:"POST"}),a()}catch(g){alert(`Fehler: ${g.message}`)}}const f=s.filter(p=>p.state==="running"||p.state==="queued"),h=s.filter(p=>p.state!=="running"&&p.state!=="queued").slice(-3);return f.length===0&&h.length===0?null:n.jsxs("div",{className:"space-y-3 rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-4 shadow-lg shadow-black/10",children:[n.jsx("div",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider",children:"Aktive Downloads"}),f.map(p=>n.jsxs("div",{className:"space-y-1.5 p-3 rounded-xl bg-background/20 border border-border/40",children:[n.jsxs("div",{className:"flex justify-between items-center text-xs",children:[n.jsx("span",{className:"font-semibold truncate max-w-[250px]",children:p.label}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsxs("span",{className:"text-muted-foreground font-mono",children:[p.progress??0,"% • ",ci(p.done_bytes),"/",ci(p.total_bytes),p.eta_s?` • ETA ${p0(p.eta_s)}`:""]}),n.jsx("button",{onClick:()=>c(p.id),className:"text-[10px] text-red-400 hover:text-red-300 font-semibold border border-red-500/25 bg-red-500/5 px-2 py-0.5 rounded transition-all cursor-pointer",children:"Abbrechen"})]})]}),n.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:n.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-500",style:{width:`${p.progress??0}%`}})})]},p.id)),h.map(p=>n.jsxs("div",{className:"flex justify-between items-center text-xs text-muted-foreground px-1",children:[n.jsx("span",{className:"truncate",children:p.label}),n.jsx("span",{className:ie("font-semibold text-[10px] px-1.5 py-0.5 rounded uppercase font-mono",p.state==="done"?"bg-emerald-500/10 text-emerald-400":"bg-amber-500/10 text-amber-400"),children:p.state})]},p.id))]})}function un(s){if(!s)return"—";const u=s/1024**3;return u>=1?`${u.toFixed(1)} GB`:`${(s/1024**2).toFixed(0)} MB`}function Vd(s){return s?`${Math.round(s/1024)}k`:"—"}function h0({fit:s}){const u={perfect:"bg-emerald-500/15 text-emerald-400 border border-emerald-500/20",marginal:"bg-amber-500/15 text-amber-400 border border-amber-500/20",too_tight:"bg-red-500/15 text-red-400 border border-red-500/20"}[s.level];return n.jsxs("span",{className:ie("rounded px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider font-mono",u),children:[s.text," • ",s.req_gb," GB RAM"]})}const g0=["fast","heavy","coder","reasoning","agent","vision","scout"];function Hd(s){const u=s.toLowerCase();return u.includes("qwen")?{name:"Qwen",color:"bg-purple-500/20 text-purple-300 border-purple-500/30",initial:"Q"}:u.includes("gemma")?{name:"Gemma",color:"bg-blue-500/20 text-blue-300 border-blue-500/30",initial:"G"}:u.includes("llama")?{name:"Llama",color:"bg-red-500/20 text-red-300 border-red-500/30",initial:"🦙"}:u.includes("mistral")||u.includes("mixtral")?{name:"Mistral",color:"bg-orange-500/20 text-orange-300 border-orange-500/30",initial:"M"}:u.includes("deepseek")?{name:"DeepSeek",color:"bg-cyan-500/20 text-cyan-300 border-cyan-500/30",initial:"D"}:u.includes("hermes")||u.includes("nous")?{name:"Hermes",color:"bg-amber-500/20 text-amber-300 border-amber-500/30",initial:"H"}:u.includes("phi")?{name:"Phi",color:"bg-emerald-500/20 text-emerald-300 border-emerald-500/30",initial:"Φ"}:{name:"Other",color:"bg-slate-500/20 text-slate-300 border-slate-500/30",initial:"AI"}}function x0(){var F,q,H,te,le;const[s,u]=m.useState([]),[a,c]=m.useState([]),[f,h]=m.useState(null),[p,g]=m.useState(null),[N,C]=m.useState(null),[j,M]=m.useState(!0),[_,O]=m.useState(""),[D,w]=m.useState(null),[z,A]=m.useState(null),[R,I]=m.useState(!1),[G,Z]=m.useState(null),[K,oe]=m.useState("grid");function he(){Promise.all([ue("/api/models"),ue("/api/routing"),ue("/api/connect"),ue("/api/maintenance/updates")]).then(([P,Y,xe,De])=>{u(P.models||[]),c(P.running||[]),h(Y),g(xe),C(De)}).catch(P=>O(String(P))).finally(()=>M(!1))}m.useEffect(()=>{he();const P=setInterval(he,4e3);return()=>clearInterval(P)},[]);async function de(P){try{await ue(`/api/models/${encodeURIComponent(P)}/load`,{method:"POST"}),he()}catch(Y){alert(`Fehler beim Laden des Modells: ${Y.message}`)}}async function T(P){try{await ue(`/api/models/${encodeURIComponent(P)}/unload`,{method:"POST"}),he()}catch(Y){alert(`Fehler beim Entladen des Modells: ${Y.message}`)}}async function me(){try{await ue("/api/models/unload",{method:"POST"}),he()}catch(P){alert(`Fehler beim Entladen aller Modelle: ${P.message}`)}}async function ce(P,Y){A(null);try{await ue(`/api/models/${encodeURIComponent(Y)}/role`,{method:"POST",body:JSON.stringify({role:P||null})}),he()}catch(xe){alert(`Fehler beim Zuweisen der Rolle: ${xe}`)}}async function Ee(P,Y){const xe=prompt("Kontextlänge (Tokens):",String(Y||32768));if(xe)try{await ue(`/api/models/${encodeURIComponent(P)}/ctx`,{method:"POST",body:JSON.stringify({ctx:parseInt(xe,10)})}),he()}catch(De){alert(`Fehler beim Setzen des Kontexts: ${De}`)}}async function J(P){if(confirm(`Modell '${P}' und alle zugehörigen GGUF-Dateien unwiderruflich von der Box löschen?`))try{await ue(`/api/models/${encodeURIComponent(P)}`,{method:"DELETE"}),he()}catch(Y){alert(`Fehler beim Löschen: ${Y}`)}}async function ke(P,Y,xe,De){try{await ue("/api/models/install",{method:"POST",body:JSON.stringify({repo:P,role:Y,quant:xe,jinja:De})}),alert(`Download für '${P}' gestartet! Der Fortschritt wird oben angezeigt.`)}catch(et){alert(`Fehler beim Starten des Upgrades: ${et}`)}}async function ye(P){P&&(await navigator.clipboard.writeText(P),I(!0),setTimeout(()=>I(!1),1500))}if(j)return n.jsx("div",{className:"text-xs text-muted-foreground py-12 text-center",children:"Initialisiere HUD Cockpit…"});if(_)return n.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Gateway oder Engine nicht erreichbar (",_,")."]});const be=s.filter(P=>a.includes(P.name)),W=be.reduce((P,Y)=>P+(Y.size_bytes||0),0),ee=16*1024**3,Q=W>ee?W*1.2:ee,k=P=>s.find(Y=>Y.role===P),x=P=>{const Y=k(P);return Y?a.includes(Y.name):!1};return n.jsxs("div",{className:"space-y-8",children:[n.jsx("style",{children:`
|
|
@keyframes flow-dash {
|
|
to {
|
|
stroke-dashoffset: -40;
|
|
}
|
|
}
|
|
.animate-flow-cyan {
|
|
stroke-dasharray: 8 24;
|
|
animation: flow-dash 1.2s linear infinite;
|
|
}
|
|
`}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 space-y-3.5",children:[n.jsxs("div",{className:"flex justify-between items-center",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ri,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"VRAM / Memory Belegung"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground",children:["Llama Swap VRAM-Pool: ",un(W)," / ",un(Q)," geladen"]}),a.length>0&&n.jsx("button",{onClick:me,className:"h-6 px-2.5 rounded border border-amber-500/30 bg-amber-500/5 hover:bg-amber-500/10 text-amber-400 text-[9px] font-bold uppercase transition-all cursor-pointer",children:"Alle entladen"})]})]}),n.jsx("div",{className:"h-7 w-full rounded-xl bg-background/50 border border-border/40 overflow-hidden flex p-0.5 relative group",children:be.length===0?n.jsx("div",{className:"w-full h-full flex items-center justify-center text-[10px] text-muted-foreground/60 italic font-mono select-none",children:"VRAM Leer — Auto-Swap lädt Modelle bei Anfrage"}):be.map((P,Y)=>{var et;const xe=(P.size_bytes||0)/Q*100,De=["from-teal-500 to-emerald-500","from-indigo-500 to-blue-500","from-purple-500 to-pink-500","from-cyan-500 to-sky-500"][Y%4];return n.jsxs("div",{style:{width:`${xe}%`},className:ie("h-full rounded bg-gradient-to-r flex items-center justify-between px-2.5 transition-all text-white/95 shrink-0 shadow-inner select-none",De),title:`${P.name} (${un(P.size_bytes)})`,children:[n.jsxs("span",{className:"text-[9px] font-bold truncate max-w-[120px] font-space tracking-wide",children:[P.role?`[${P.role}] `:"",(et=P.name.split("/").pop())==null?void 0:et.replace(".gguf","")]}),n.jsx("span",{className:"text-[8px] font-mono opacity-80",children:un(P.size_bytes)})]},P.name)})})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-6 shadow-lg shadow-black/10 space-y-4",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"Interactive Gateway Graph"}),n.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5 leading-relaxed",children:"Klicke links auf Editoren, um Configs zu kopieren. Klicke rechts auf Rollen, um GGUF-Zuweisungen live zu ändern."})]}),n.jsxs("div",{className:"relative w-full h-[360px] border border-border/30 rounded-xl bg-black/25 overflow-hidden flex",children:[n.jsxs("svg",{className:"absolute inset-0 pointer-events-none w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[n.jsxs("defs",{children:[n.jsxs("linearGradient",{id:"cyan-to-teal",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[n.jsx("stop",{offset:"0%",stopColor:"#06b6d4",stopOpacity:"0.45"}),n.jsx("stop",{offset:"100%",stopColor:"#0d9488",stopOpacity:"0.45"})]}),n.jsxs("linearGradient",{id:"active-glow",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[n.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.8"}),n.jsx("stop",{offset:"100%",stopColor:"#10b981",stopOpacity:"0.8"})]})]}),n.jsx("path",{d:"M 10 10 C 30 10, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(G==="roocode"||D==="roocode")&&n.jsx("path",{d:"M 10 10 C 30 10, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 30 C 30 30, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(G==="cursor"||D==="cursor")&&n.jsx("path",{d:"M 10 30 C 30 30, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 50 C 30 50, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(G==="opencode"||D==="opencode")&&n.jsx("path",{d:"M 10 50 C 30 50, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 70 C 30 70, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(G==="zed"||D==="zed")&&n.jsx("path",{d:"M 10 70 C 30 70, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 90 C 30 90, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(G==="continue"||D==="continue")&&n.jsx("path",{d:"M 10 90 C 30 90, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 12, 90 12",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),x("fast")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 12, 90 12",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 31, 90 31",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),x("heavy")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 31, 90 31",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 50, 90 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),x("coder")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 50, 90 50",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 69, 90 69",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),x("vision")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 69, 90 69",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 88, 90 88",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),x("scout")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 88, 90 88",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"10%"},onMouseEnter:()=>Z("roocode"),onMouseLeave:()=>Z(null),onClick:()=>w(P=>P==="roocode"?null:"roocode"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Roo Code"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"30%"},onMouseEnter:()=>Z("cursor"),onMouseLeave:()=>Z(null),onClick:()=>w(P=>P==="cursor"?null:"cursor"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Cursor IDE"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"50%"},onMouseEnter:()=>Z("opencode"),onMouseLeave:()=>Z(null),onClick:()=>w(P=>P==="opencode"?null:"opencode"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"OpenCode"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"70%"},onMouseEnter:()=>Z("zed"),onMouseLeave:()=>Z(null),onClick:()=>w(P=>P==="zed"?null:"zed"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Zed"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"90%"},onMouseEnter:()=>Z("continue"),onMouseLeave:()=>Z(null),onClick:()=>w(P=>P==="continue"?null:"continue"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Continue"})]}),n.jsxs("div",{className:"absolute select-none z-10 w-36 py-3 px-4 -translate-y-1/2 -translate-x-1/2 rounded-2xl border border-primary/50 bg-card/90 backdrop-blur-md flex flex-col items-center justify-center text-center shadow-lg shadow-primary/5",style:{left:"50%",top:"50%"},children:[n.jsx("div",{className:"text-[10px] uppercase font-bold text-primary font-space tracking-wide",children:"Gateway Auto"}),n.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground mt-0.5",children:["Schwelle: > ",f!=null&&f.heavy_threshold_chars?f.heavy_threshold_chars/1e3:"4","k Zeichen"]}),n.jsx("div",{className:"mt-1 px-1.5 py-0.5 rounded bg-primary/10 border border-primary/20 text-[9px] font-semibold text-primary uppercase font-mono",children:"Auto-Swap"})]}),g0.map(P=>{var mr;const Y=["12%","31%","50%","69%","88%"],xe=k(P),De=xe?a.includes(xe.name):!1;if(P==="reasoning"||P==="agent")return null;const et={fast:0,heavy:1,coder:2,vision:3,scout:4}[P];return n.jsxs("div",{className:ie("absolute z-10 w-44 py-1.5 px-3 -translate-y-1/2 -translate-x-1/2 rounded-xl border flex flex-col justify-center hover:border-primary/50 transition-all text-left shadow select-none cursor-pointer",De?"border-emerald-500/50 bg-emerald-500/5 shadow-emerald-500/5":xe?"border-border/60 bg-card/75":"border-dashed border-border/40 bg-background/20"),style:{left:"90%",top:Y[et]},onClick:()=>A(z===P?null:P),children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:P}),De&&n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-400 animate-pulse"})]}),n.jsx("div",{className:"text-[10px] font-mono font-medium truncate mt-0.5 text-foreground max-w-[150px]",children:xe?(mr=xe.name.split("/").pop())==null?void 0:mr.replace(".gguf",""):"Keine Zuweisung"}),z===P&&n.jsxs("div",{className:"absolute right-0 top-full mt-1 z-35 w-52 rounded-xl border border-border/80 bg-popover/95 backdrop-blur-md p-1.5 shadow-2xl space-y-1",children:[n.jsx("div",{className:"text-[9px] uppercase font-bold text-muted-foreground/60 px-2 py-1 select-none",children:"Modell zuweisen:"}),n.jsx("button",{onClick:()=>ce(P,""),className:"w-full text-left px-2.5 py-1.5 rounded-lg text-[10px] hover:bg-accent text-red-400 font-semibold cursor-pointer",children:"Zuweisung entfernen"}),s.map(zt=>{var bn;return n.jsxs("button",{onClick:()=>ce(P,zt.name),className:ie("w-full text-left px-2.5 py-1.5 rounded-lg text-[10px] hover:bg-accent flex items-center justify-between font-mono cursor-pointer",zt.role===P?"text-primary font-bold":"text-foreground"),children:[n.jsx("span",{className:"truncate max-w-[150px]",children:(bn=zt.name.split("/").pop())==null?void 0:bn.replace(".gguf","")}),zt.role===P&&n.jsx(mn,{className:"h-3 w-3 shrink-0"})]},zt.name)})]})]},P)}),D&&p&&n.jsxs("div",{className:"absolute z-30 md:w-96 w-[90%] rounded-2xl border border-border/80 bg-card/95 backdrop-blur-xl p-4 shadow-2xl space-y-3 flex flex-col justify-between",style:{left:"22%",top:D==="roocode"?"5%":D==="cursor"?"20%":D==="opencode"?"40%":D==="zed"?"55%":"65%"},children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-border/20 pb-2",children:[n.jsxs("span",{className:"text-[11px] font-bold uppercase tracking-wider text-primary",children:[D==="roocode"&&"Roo Code Setup",D==="cursor"&&"Cursor Setup",D==="opencode"&&"OpenCode Setup",D==="zed"&&"Zed Setup",D==="continue"&&"Continue Setup"]}),n.jsx("button",{onClick:()=>w(null),className:"p-1 rounded hover:bg-accent text-muted-foreground hover:text-foreground cursor-pointer",children:n.jsx(Bs,{className:"h-3.5 w-3.5"})})]}),n.jsxs("div",{className:"text-[10px] text-muted-foreground leading-relaxed space-y-2",children:[D==="roocode"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Suche in VS Code nach der Erweiterung ",n.jsx("strong",{children:"Roo Code"})," und installiere sie."]}),n.jsxs("li",{children:["Wähle in den Roo Code Einstellungen: Provider: ",n.jsx("strong",{children:"OpenAI Compatible"}),"."]}),n.jsxs("li",{children:["Füge das untenstehende JSON-Snippet in die ",n.jsx("code",{children:"settings.json"})," ein."]})]}),D==="cursor"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Öffne Cursor Settings ➔ ",n.jsx("strong",{children:"Models"}),"."]}),n.jsxs("li",{children:["Deaktiviere Cloud-Modelle, klappe ",n.jsx("strong",{children:"OpenAI API"})," auf."]}),n.jsxs("li",{children:["Trage die Base URL unten ein und aktiviere das Modell ",n.jsx("strong",{children:"auto"}),"."]})]}),D==="opencode"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Öffne die ",n.jsx("code",{children:"opencode.jsonc"})," Konfigurationsdatei."]}),n.jsxs("li",{children:["Ersetze den Provider-Eintrag unter ",n.jsx("code",{children:"provider"})," mit dem Snippet unten."]})]}),D==="zed"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Öffne die Zed Settings (",n.jsx("code",{children:"ctrl+,"}),")."]}),n.jsxs("li",{children:["Füge das untenstehende JSON-Segment unter ",n.jsx("code",{children:"language_models"})," ein."]})]}),D==="continue"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsx("li",{children:"Klicke auf das Zahnrad-Symbol in der Continue-Erweiterung."}),n.jsxs("li",{children:["Füge den Gateway-Eintrag zum ",n.jsx("code",{children:"models"}),"-Array hinzu."]})]})]}),p.tools&&n.jsxs("div",{className:"relative rounded-xl border border-border/40 bg-black/40 overflow-hidden mt-1 shrink-0",children:[n.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 border-b border-border/20 bg-black/20",children:[n.jsx("span",{className:"text-[8px] font-mono text-muted-foreground",children:"JSON Config"}),n.jsxs("button",{onClick:()=>{var P,Y,xe,De,et;return ye(D==="roocode"?(P=p.tools.cline)==null?void 0:P.snippet:D==="cursor"?(Y=p.tools.cursor)==null?void 0:Y.snippet:D==="opencode"?(xe=p.tools.opencode)==null?void 0:xe.snippet:D==="zed"?(De=p.tools.zed)==null?void 0:De.snippet:(et=p.tools.continue)==null?void 0:et.snippet)},className:"text-[9px] font-semibold text-primary hover:text-primary-foreground flex items-center gap-1 cursor-pointer",children:[R?n.jsx(mn,{className:"h-3 w-3 text-emerald-400"}):n.jsx(mi,{className:"h-3 w-3"}),n.jsx("span",{children:R?"Kopiert":"Kopieren"})]})]}),n.jsx("pre",{className:"p-3 max-h-36 overflow-y-auto text-[9px] font-mono text-cyan-200/90 whitespace-pre scrollbar-thin select-text",children:n.jsxs("code",{children:[D==="roocode"&&((F=p.tools.cline)==null?void 0:F.snippet),D==="cursor"&&((q=p.tools.cursor)==null?void 0:q.snippet),D==="opencode"&&((H=p.tools.opencode)==null?void 0:H.snippet),D==="zed"&&((te=p.tools.zed)==null?void 0:te.snippet),D==="continue"&&((le=p.tools.continue)==null?void 0:le.snippet)]})})]})]})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-6 mt-3 text-[10px] text-muted-foreground border-t border-border/20 pt-3",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx("span",{className:"h-2 w-2 rounded-full bg-cyan-400"}),n.jsx("span",{children:"Cyan-Fluss: Client-Anfrage an Gateway"})]}),n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx("span",{className:"h-2 w-2 rounded-full bg-emerald-500 animate-pulse"}),n.jsx("span",{children:"Grüner Puls: Aktive Verbindung / Warmes Modell geladen"})]}),n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx("span",{className:"h-2 w-2 rounded bg-gradient-to-r from-teal-500 to-emerald-500"}),n.jsx("span",{children:"VRAM-Verlauf: Modellspezifischer Speicheranteil"})]})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between px-1",children:[n.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Installierte Modell-Bibliothek"}),n.jsxs("div",{className:"flex rounded-lg border border-border/40 bg-card/45 p-0.5",children:[n.jsx("button",{onClick:()=>oe("grid"),className:ie("px-2.5 py-1 rounded-md text-[9px] font-bold uppercase transition-all cursor-pointer",K==="grid"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:"Grid"}),n.jsx("button",{onClick:()=>oe("list"),className:ie("px-2.5 py-1 rounded-md text-[9px] font-bold uppercase transition-all cursor-pointer",K==="list"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:"List"})]})]}),K==="grid"?n.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:s.length===0?n.jsx("div",{className:"col-span-full text-xs text-muted-foreground border border-dashed border-border/60 rounded-2xl p-12 text-center select-none",children:'Keine Modelle konfiguriert. Verwende den Tab "Modelle finden" zum Herunterladen.'}):s.map(P=>{const Y=a.includes(P.name),xe=N==null?void 0:N.model_list.find(et=>et.role===P.role),De=Hd(P.name);return n.jsxs("div",{className:ie("rounded-2xl border bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-4 transition-all duration-300 hover:border-primary/40 group",Y?"border-primary/45 shadow-primary/5":"border-border/60"),children:[n.jsxs("div",{className:"space-y-3",children:[n.jsx("div",{className:"flex items-start justify-between gap-3",children:n.jsxs("div",{className:"flex gap-2.5 min-w-0",children:[n.jsx("div",{className:ie("w-7 h-7 rounded-lg border flex items-center justify-center font-bold text-xs shrink-0 shadow-sm",De.color),title:De.name,children:De.initial}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("h3",{className:"text-xs font-bold tracking-tight text-foreground line-clamp-2 break-all font-mono",title:P.name,children:P.name.split("/").pop()}),n.jsxs("div",{className:"flex items-center gap-2 flex-wrap mt-1",children:[n.jsx("span",{className:"text-[9px] font-mono text-muted-foreground bg-background/40 px-1.5 py-0.5 rounded border border-border/30",children:P.quant||"GGUF"}),Y&&n.jsxs("span",{className:"flex items-center gap-1 text-[9px] font-semibold text-emerald-400 uppercase tracking-wider",children:[n.jsx(pi,{className:"h-3 w-3 animate-pulse"})," Warm"]}),P.role&&n.jsx("span",{className:"px-1.5 py-0.5 rounded bg-primary/10 border border-primary/20 text-[9px] font-mono text-primary font-bold uppercase",children:P.role})]})]})]})}),n.jsx("div",{className:"border-t border-border/30 pt-3 flex flex-wrap gap-1",children:n.jsx(Wd,{caps:P.capabilities})})]}),n.jsxs("div",{className:"space-y-3 pt-1",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[10px] font-mono text-muted-foreground",children:[n.jsxs("div",{className:"flex items-center gap-1.5 p-2 bg-background/20 rounded-lg border border-border/20",children:[n.jsx(ri,{className:"h-3.5 w-3.5 text-primary/80"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-[8px] uppercase tracking-wider font-semibold text-muted-foreground/60",children:"Größe"}),n.jsx("div",{className:"text-foreground font-semibold",children:un(P.size_bytes)})]})]}),n.jsxs("div",{className:"flex items-center gap-1.5 p-2 bg-background/20 rounded-lg border border-border/20",children:[n.jsx(hh,{className:"h-3.5 w-3.5 text-primary/80"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-[8px] uppercase tracking-wider font-semibold text-muted-foreground/60",children:"Kontext"}),n.jsx("div",{className:"text-foreground font-semibold",children:Vd(P.ctx)})]})]})]}),xe&&n.jsxs("div",{className:"p-3 bg-amber-500/5 border border-amber-500/30 rounded-xl space-y-2 flex flex-col justify-between shrink-0",children:[n.jsxs("div",{className:"text-[9px] font-semibold text-amber-400 flex items-center gap-1",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-ping"}),n.jsxs("span",{children:["Upgrade verfügbar: ",xe.repo.split("/").pop()]})]}),n.jsxs("button",{onClick:()=>ke(xe.repo,P.role,P.quant||"Q4_K_M",P.capabilities.tools!=="no"),className:"h-7 w-full flex items-center justify-center gap-1 rounded-lg bg-amber-500 text-black text-[10px] font-bold hover:bg-amber-400 transition-colors cursor-pointer",children:[n.jsx(hn,{className:"h-3 w-3"})," Smart-Swap starten"]})]}),n.jsxs("div",{className:"flex items-center gap-1.5 border-t border-border/20 pt-3 mt-auto",children:[n.jsx("button",{onClick:()=>Y?T(P.name):de(P.name),className:ie("flex-1 h-7 rounded-lg text-[9px] font-bold uppercase transition-all cursor-pointer border flex items-center justify-center gap-1",Y?"border-amber-500/30 bg-amber-500/5 hover:bg-amber-500/15 text-amber-400":"border-primary/30 bg-primary/5 hover:bg-primary/15 text-primary"),children:Y?"Entladen":"Laden"}),n.jsx("button",{onClick:()=>Ee(P.name,P.ctx),className:"h-7 px-2.5 rounded-lg border border-border/40 text-[9px] font-bold uppercase hover:bg-accent text-muted-foreground transition-colors cursor-pointer",title:"Kontextlänge anpassen",children:"Ctx"}),n.jsx("button",{onClick:()=>J(P.name),className:"h-7 w-7 rounded-lg border border-border/40 text-muted-foreground hover:text-red-400 hover:bg-red-500/5 flex items-center justify-center transition-colors cursor-pointer",title:"Modell löschen",children:n.jsx(ni,{className:"h-3.5 w-3.5"})})]})]})]},P.name)})}):n.jsx("div",{className:"space-y-2",children:s.length===0?n.jsx("div",{className:"text-xs text-muted-foreground border border-dashed border-border/60 rounded-2xl p-12 text-center select-none",children:'Keine Modelle konfiguriert. Verwende den Tab "Modelle finden" zum Herunterladen.'}):s.map(P=>{const Y=a.includes(P.name),xe=Hd(P.name);return n.jsxs("div",{className:ie("rounded-xl border bg-card/45 backdrop-blur-md p-3.5 shadow-lg shadow-black/5 flex flex-col sm:flex-row sm:items-center justify-between gap-3 hover:border-primary/40 transition-all",Y?"border-primary/45":"border-border/60"),children:[n.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[n.jsx("div",{className:ie("w-8 h-8 rounded-lg border border-border/40 flex items-center justify-center font-bold text-xs shrink-0 shadow-sm",xe.color),title:xe.name,children:xe.initial}),n.jsxs("div",{className:"min-w-0 text-left",children:[n.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n.jsx("h4",{className:"text-xs font-bold text-foreground truncate max-w-[250px] sm:max-w-[400px] break-all font-mono",title:P.name,children:P.name.split("/").pop()}),P.role&&n.jsx("span",{className:"px-1.5 py-0.5 rounded bg-primary/10 border border-primary/20 text-[8px] font-mono text-primary font-bold uppercase shrink-0",children:P.role}),Y&&n.jsxs("span",{className:"flex items-center gap-0.5 text-[8px] font-semibold text-emerald-400 uppercase tracking-wider shrink-0",children:[n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"})," warm"]})]}),n.jsxs("div",{className:"text-[10px] text-muted-foreground/80 flex items-center gap-2 mt-0.5",children:[n.jsxs("span",{children:["Größe: ",un(P.size_bytes)]}),n.jsx("span",{children:"•"}),n.jsxs("span",{children:["Kontext: ",Vd(P.ctx)]}),n.jsx("span",{children:"•"}),n.jsx("span",{className:"font-mono text-[9px]",children:P.quant||"GGUF"})]})]})]}),n.jsxs("div",{className:"flex items-center gap-3 shrink-0 self-end sm:self-auto",children:[n.jsx("div",{className:"hidden lg:flex flex-wrap gap-1",children:n.jsx(Wd,{caps:P.capabilities})}),n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx("button",{onClick:()=>Y?T(P.name):de(P.name),className:ie("h-7 px-3 rounded-lg text-[9px] font-bold uppercase transition-all cursor-pointer border flex items-center gap-1",Y?"border-amber-500/30 bg-amber-500/5 hover:bg-amber-500/15 text-amber-400":"border-primary/30 bg-primary/5 hover:bg-primary/15 text-primary"),children:Y?"Entladen":"Laden"}),n.jsx("button",{onClick:()=>Ee(P.name,P.ctx),className:"h-7 px-2.5 rounded-lg border border-border/40 text-[9px] font-bold uppercase hover:bg-accent text-muted-foreground transition-all cursor-pointer",title:"Kontextlänge anpassen",children:"Ctx"}),n.jsx("button",{onClick:()=>J(P.name),className:"h-7 w-7 rounded-lg flex items-center justify-center border border-border/40 text-muted-foreground hover:text-red-400 hover:bg-red-500/5 transition-all cursor-pointer",title:"Modell löschen",children:n.jsx(ni,{className:"h-3.5 w-3.5"})})]})]})]},P.name)})})]})]})}function v0(){const[s,u]=m.useState(""),[a,c]=m.useState([]),[f,h]=m.useState("Q4_K_M"),[p,g]=m.useState(""),[N,C]=m.useState(""),[j,M]=m.useState([]);async function _(w){const z=w??s;if(z.trim()){g("Analysiere HuggingFace Repository...");try{const A=await ue(`/api/hf/quants?repo=${encodeURIComponent(z)}`);u(A.repo),c(A.quants),A.quants.length&&h(A.quants.includes("Q4_K_M")?"Q4_K_M":A.quants[0]),g(A.quants.length?"":"Keine GGUF-Dateien in diesem Repository gefunden.")}catch(A){g(`Fehler: ${A}`)}}}async function O(){if(N.trim()){g("Durchsuche HuggingFace...");try{const w=await ue(`/api/hf/search?q=${encodeURIComponent(N)}`);M(w.results),g(w.results.length?"":"Keine Ergebnisse gefunden.")}catch(w){g(`Suche fehlgeschlagen: ${w}`)}}}async function D(){if(s.trim()){g("Download-Job wird initiiert...");try{await ue("/api/models/install",{method:"POST",body:JSON.stringify({repo:s,quant:f,jinja:!0})}),g(`Download gestartet: ${s} (${f}). Fortschritt wird oben angezeigt.`)}catch(w){g(`Download-Fehler: ${w}`)}}}return n.jsxs("div",{className:"space-y-4 rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10",children:[n.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"HF Download & Suche"}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[n.jsx("input",{value:s,onChange:w=>u(w.target.value),placeholder:"HF-URL oder org/repo (z.B. unsloth/Qwen2.5-Coder-7B-Instruct-GGUF)",className:"flex-1 h-9 rounded-lg border border-border/60 bg-background/40 px-3 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"}),n.jsxs("div",{className:"flex gap-2",children:[n.jsx("button",{onClick:()=>_(),className:"h-9 px-4 rounded-lg border border-border/60 bg-background/20 text-xs font-semibold hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer whitespace-nowrap",children:"Quants laden"}),a.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("select",{value:f,onChange:w=>h(w.target.value),className:"h-9 rounded-lg border border-border/60 bg-background/40 px-3 text-xs outline-none text-foreground font-semibold",children:a.map(w=>n.jsx("option",{value:w,className:"bg-popover text-foreground",children:w},w))}),n.jsxs("button",{onClick:D,className:"h-9 px-4 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all cursor-pointer flex items-center gap-1.5",children:[n.jsx(hn,{className:"h-3.5 w-3.5"})," Herunterladen"]})]})]})]}),n.jsxs("div",{className:"flex gap-2 border-t border-border/20 pt-4",children:[n.jsxs("div",{className:"relative flex-1",children:[n.jsx("input",{value:N,onChange:w=>C(w.target.value),onKeyDown:w=>w.key==="Enter"&&O(),placeholder:"HuggingFace durchsuchen (z.B. Llama-3.1)...",className:"w-full h-9 pl-9 pr-3 rounded-lg border border-border/60 bg-background/40 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"}),n.jsx(hi,{className:"absolute left-3 top-2.5 h-3.5 w-3.5 text-muted-foreground"})]}),n.jsx("button",{onClick:O,className:"h-9 px-4 rounded-lg border border-border/60 bg-background/20 text-xs font-semibold hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer",children:"Suchen"})]}),j.length>0&&n.jsx("div",{className:"max-h-48 space-y-1.5 overflow-y-auto border border-border/40 bg-background/20 p-2 rounded-xl scrollbar-thin",children:j.map(w=>n.jsxs("button",{onClick:()=>{u(w.repo),M([]),C(""),_(w.repo)},className:"flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-xs bg-background/10 border border-border/10 hover:border-primary/30 hover:bg-background/30 transition-all",children:[n.jsx("span",{className:"font-semibold truncate",children:w.repo}),n.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground flex items-center gap-1 shrink-0",children:[n.jsx(hn,{className:"h-3 w-3"})," ",w.downloads.toLocaleString()]})]},w.repo))}),p&&n.jsx("div",{className:"text-[10px] font-medium text-primary font-mono",children:p})]})}const y0={vision:{title:"Bilder & Vision",desc:"Verarbeitet Bilder, Screenshots und visuelle Diagramme in multimodalen Chats.",icon:ch},coder:{title:"Coden & Entwicklung",desc:"Autovervollständigung, Refactoring und Codegenerierung direkt in deiner IDE.",icon:Xd},reasoning:{title:"Logik & Nachdenken",desc:"Komplexe logische Gedankengänge, Mathematik und tiefgründiges Planen (Reasoning).",icon:Us},agent:{title:"Autonomer Agent (Hermes)",desc:"Führt selbstständig Terminalbefehle aus und interagiert mit deinem Homelab.",icon:$s},scout:{title:"Allrounder & Chat",desc:"Schnelle Antworten, Zusammenfassungen, Übersetzungen und alltägliche Fragen.",icon:ih}};function b0(){const[s,u]=m.useState(null),[a,c]=m.useState([]),[f,h]=m.useState(null),[p,g]=m.useState(""),[N,C]=m.useState(!0),[j,M]=m.useState({}),[_,O]=m.useState({}),[D,w]=m.useState(!1);m.useEffect(()=>{Promise.all([ue("/api/discover"),ue("/api/models"),ue("/api/maintenance/updates").catch(()=>null)]).then(([A,R,I])=>{u(A),c(R.models||[]),I&&h(I)}).catch(A=>g(String(A))).finally(()=>C(!1))},[]);async function z(A,R,I,G){M(Z=>({...Z,[A]:"Starte..."}));try{await ue("/api/models/install",{method:"POST",body:JSON.stringify({repo:A,role:R,quant:I,jinja:G})}),M(Z=>({...Z,[A]:"Download läuft"}))}catch{M(K=>({...K,[A]:"Fehler"}))}}return N?n.jsx("div",{className:"text-xs text-muted-foreground py-12 text-center",children:"Analysiere Hardware und suche passende GGUF-Empfehlungen…"}):p||!s?n.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Empfehlungsdienst temporär nicht erreichbar (",p,")."]}):n.jsxs("div",{className:"space-y-8",children:[n.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground bg-background/25 border border-border/40 p-4 rounded-xl flex flex-col sm:flex-row sm:items-center justify-between gap-3 shadow-sm",children:[n.jsxs("div",{children:["Modell-Registry geladen für ",n.jsxs("span",{className:"text-foreground font-bold",children:[s.sys_ram_gb," GB"]})," System-RAM."]}),n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(rf,{className:"h-3.5 w-3.5 text-primary fill-primary/20"}),n.jsx("span",{children:"Empfehlungen sind automatisch auf deine Box-Hardware optimiert."})]})]}),n.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:s.categories.map(A=>{const R=y0[A.role]||{title:A.title||A.role,desc:"Spezifisches Modell für diese Systemrolle.",icon:Ts},I=R.icon,G=a.find(T=>T.role===A.role),Z=f==null?void 0:f.model_list.find(T=>T.role===A.role),K=A.models.find(T=>T.repo===A.recommended)||A.models[0];if(!K)return null;const oe=j[K.repo],he=A.models.filter(T=>T.repo!==A.recommended),de=!!_[A.role];return n.jsxs("div",{className:ie("rounded-2xl border bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-5 transition-all duration-300 hover:border-primary/40",G?"border-border/60":"border-primary/20 shadow-primary/5"),children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-start justify-between gap-3",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 border border-primary/20 flex items-center justify-center text-primary shadow-sm shrink-0",children:n.jsx(I,{className:"h-5.5 w-5.5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-bold tracking-tight text-foreground",children:R.title}),n.jsxs("span",{className:"text-[9px] font-mono text-muted-foreground uppercase bg-background/50 px-1.5 py-0.5 rounded border border-border/30 inline-block mt-0.5",children:["Rolle: ",A.role]})]})]}),G?n.jsxs("span",{className:"flex items-center gap-1.5 text-[9px] font-bold text-emerald-400 uppercase tracking-wider bg-emerald-500/10 border border-emerald-500/20 px-2.5 py-1 rounded-lg",children:[n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"}),"Aktiviert"]}):n.jsx("span",{className:"text-[9px] font-bold text-primary/70 uppercase tracking-wider bg-primary/10 border border-primary/20 px-2.5 py-1 rounded-lg",children:"Frei"})]}),n.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:R.desc}),n.jsx("div",{className:"p-3.5 rounded-xl bg-background/35 border border-border/30 space-y-2.5",children:G?n.jsxs("div",{className:"space-y-1.5",children:[n.jsx("div",{className:"text-[9px] font-bold uppercase tracking-wider text-muted-foreground/60",children:"Aktive GGUF-Belegung"}),n.jsx("div",{className:"text-xs font-mono font-bold text-foreground truncate",title:G.name,children:G.name.split("/").pop()}),n.jsxs("div",{className:"text-[10px] text-muted-foreground/80 flex items-center gap-2",children:[n.jsxs("span",{children:["Größe: ",ci(G.size_bytes||0)]}),n.jsx("span",{children:"•"}),n.jsxs("span",{children:["Quant: ",G.quant||"GGUF"]})]})]}):n.jsxs("div",{className:"space-y-1.5",children:[n.jsx("div",{className:"text-[9px] font-bold uppercase tracking-wider text-primary/80",children:"Empfohlenes Modell"}),n.jsx("div",{className:"text-xs font-mono font-bold text-foreground truncate",title:K.name,children:K.name}),n.jsxs("div",{className:"text-[10px] text-muted-foreground/80 flex items-center gap-2 flex-wrap",children:[n.jsxs("span",{children:["Ersteller: ",K.author]}),n.jsx("span",{children:"•"}),n.jsxs("span",{children:["Quant: ",K.quant]})]}),n.jsx("div",{className:"flex items-center gap-1.5 pt-0.5",children:n.jsx(h0,{fit:K.fit})})]})}),n.jsx("div",{className:"pt-1",children:G?Z?n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"text-[9px] font-semibold text-amber-400 flex items-center gap-1.5",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-ping shrink-0"}),n.jsxs("span",{children:["Bessere Version in der Registry: ",Z.repo.split("/").pop()]})]}),n.jsxs("button",{onClick:()=>z(Z.repo,A.role,K.quant||"Q4_K_M",K.caps.tools!=="no"),disabled:!!j[Z.repo],className:"h-8 w-full flex items-center justify-center gap-1.5 rounded-lg bg-amber-500 text-black text-xs font-bold hover:bg-amber-400 disabled:opacity-50 transition-all cursor-pointer shadow-md shadow-amber-500/10",children:[n.jsx(hn,{className:"h-3.5 w-3.5"}),j[Z.repo]||"Auf neue Version aktualisieren"]})]}):n.jsxs("div",{className:"h-8 flex items-center justify-center gap-1.5 text-[10px] font-bold text-emerald-400 uppercase tracking-wide bg-emerald-500/5 border border-emerald-500/10 rounded-lg select-none",children:[n.jsx(mn,{className:"h-4 w-4"})," Auf neuestem Stand"]}):n.jsxs("button",{onClick:()=>z(K.repo,A.role,K.quant||"Q4_K_M",K.caps.tools!=="no"),disabled:!!oe,className:ie("h-8 w-full flex items-center justify-center gap-1.5 rounded-lg text-xs font-bold transition-all cursor-pointer border",oe?"border-primary/40 bg-primary/5 text-primary":"bg-primary text-primary-foreground hover:opacity-90 shadow-md shadow-primary/10"),children:[n.jsx(hn,{className:"h-3.5 w-3.5"}),oe||"Optimales Modell einsetzen"]})})]}),he.length>0&&n.jsxs("div",{className:"border-t border-border/20 pt-3",children:[n.jsxs("button",{onClick:()=>O(T=>({...T,[A.role]:!de})),className:"flex items-center gap-1.5 text-[10px] text-muted-foreground/80 hover:text-foreground transition-colors cursor-pointer",children:[de?n.jsx(oh,{className:"h-3 w-3"}):n.jsx(th,{className:"h-3 w-3"}),n.jsxs("span",{children:["Alternative Empfehlungen anzeigen (",he.length,")"]})]}),de&&n.jsx("div",{className:"mt-2.5 space-y-2 max-h-36 overflow-y-auto pr-1 scrollbar-thin",children:he.map(T=>n.jsxs("div",{className:"p-2 rounded-lg bg-background/25 border border-border/20 flex items-center justify-between gap-3",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("div",{className:"text-[10px] font-mono font-bold text-foreground truncate",title:T.name,children:T.name}),n.jsxs("div",{className:"text-[9px] text-muted-foreground flex items-center gap-1.5 mt-0.5",children:[n.jsxs("span",{children:["Quant: ",T.quant]}),n.jsx("span",{children:"•"}),n.jsx("span",{children:T.fit.text})]})]}),n.jsx("button",{onClick:()=>z(T.repo,A.role,T.quant||"Q4_K_M",T.caps.tools!=="no"),disabled:!!j[T.repo],className:"h-6 px-2.5 rounded bg-background/40 hover:bg-background/80 border border-border/40 text-[9px] font-bold text-foreground transition-all cursor-pointer shrink-0 disabled:opacity-50",children:j[T.repo]||"Installieren"})]},T.repo))})]})]},A.role)})}),n.jsxs("div",{className:"border border-border/50 bg-card/20 rounded-2xl overflow-hidden shadow-md mt-4",children:[n.jsxs("button",{onClick:()=>w(!D),className:"w-full px-5 py-4 flex items-center justify-between text-xs font-bold uppercase tracking-wider text-muted-foreground hover:bg-card/30 transition-colors cursor-pointer",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(hi,{className:"h-4 w-4 text-primary"}),n.jsx("span",{children:"Eigenes Modell von Hugging Face laden (Erweiterte Ansicht)"})]}),n.jsx("span",{className:"text-[10px] text-primary hover:underline",children:D?"Ausblenden ▲":"Anzeigen ▼"})]}),D&&n.jsx("div",{className:"p-5 border-t border-border/20 bg-card/10",children:n.jsx(v0,{})})]})]})}function w0(){const[s,u]=m.useState("cockpit");return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Modell-Zentrale"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Verwalte deine Modelle und passe das Gateway-Routing live über das interaktive Cockpit an."})]}),n.jsx("div",{className:"flex rounded-xl border border-border/60 bg-card/45 backdrop-blur-md p-1 self-start",children:["cockpit","discover"].map(a=>n.jsx("button",{onClick:()=>u(a),className:ie("rounded-lg px-4 py-1.5 text-xs font-semibold tracking-wide uppercase transition-all cursor-pointer",s===a?"bg-primary text-primary-foreground shadow-md shadow-primary/10":"text-muted-foreground hover:text-foreground"),children:a==="cockpit"?"Cockpit":"Modelle finden"},a))})]}),n.jsx(m0,{}),n.jsx("div",{className:"transition-all duration-300",children:s==="cockpit"?n.jsx(x0,{}):n.jsx(b0,{})})]})}function cr(s){return(s/1024**3).toFixed(1)}function zs({label:s,percent:u,detail:a,icon:c}){const f=u>90?"bg-red-500 shadow-md shadow-red-500/20":u>75?"bg-amber-500 shadow-md shadow-amber-500/20":"bg-primary shadow-md shadow-primary/20";return n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-3 hover:border-primary/30 transition-all duration-300",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(c,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-foreground",children:s})]}),n.jsxs("span",{className:"text-xs font-mono font-bold text-foreground",children:[Math.round(u),"%"]})]}),n.jsx("div",{className:"w-full h-2 bg-background/40 rounded-full overflow-hidden border border-border/20",children:n.jsx("div",{className:ie("h-full transition-all duration-700 ease-out",f),style:{width:`${Math.min(u,100)}%`}})}),a&&n.jsx("div",{className:"text-[10px] font-mono text-muted-foreground/80",children:a})]})}function k0(){const[s,u]=m.useState(null),[a,c]=m.useState(null),[f,h]=m.useState(""),[p,g]=m.useState(""),[N,C]=m.useState({});function j(){ue("/api/system/status").then(u).catch(O=>h(String(O))),ue("/api/system/services").then(c).catch(()=>{})}m.useEffect(()=>{j();const O=setInterval(j,3e3);return()=>clearInterval(O)},[]);async function M(){g("Backup snapshotted...");try{const O=await ue("/api/system/backup",{method:"POST"});g(O.ok?`Snapshot erzeugt: ${O.snapshot} (${O.files.length} Dateien)`:"Keine Änderungen zu sichern.")}catch(O){g(`Fehler: ${O.message}`)}}async function _(O){C(D=>({...D,[O]:!0}));try{const D=await ue("/api/maintenance/restart",{method:"POST",body:JSON.stringify({service:O})});D.ok?alert(`Dienst ${O} wurde erfolgreich neu gestartet.`):alert(`Fehler beim Neustart: ${D.err||"Unbekannter Fehler"}`)}catch(D){alert(`Fehler: ${D.message}`)}finally{C(D=>({...D,[O]:!1}))}}return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"System-Diagnose & Status"}),n.jsx("p",{className:"text-sm text-muted-foreground flex items-center gap-1",children:"Echtzeit-Ressourcen der Box, Dienst-Überwachung und Systempflege."})]}),f&&n.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400 font-mono",children:["System-Status nicht lesbar (",f,")."]}),s&&n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[n.jsx(zs,{label:"CPU",percent:s.cpu.percent,detail:s.cpu.cores?`${s.cpu.cores} Cores`:void 0,icon:_r}),n.jsx(zs,{label:"RAM",percent:s.ram.percent,detail:`${cr(s.ram.used)} / ${cr(s.ram.total)} GB`,icon:pi}),s.gpu&&s.gpu.busy_percent!=null&&n.jsx(zs,{label:"GPU",percent:s.gpu.busy_percent,detail:s.gpu.gtt_used!=null&&s.gpu.gtt_total?`${cr(s.gpu.gtt_used)} / ${cr(s.gpu.gtt_total)} GB (GTT/unified)`:s.gpu.vram_used!=null&&s.gpu.vram_total?`${cr(s.gpu.vram_used)} / ${cr(s.gpu.vram_total)} GB VRAM`:void 0,icon:_r}),s.disk&&n.jsx(zs,{label:"Disk",percent:s.disk.percent,detail:`${cr(s.disk.used)} / ${cr(s.disk.total)} GB`,icon:ri})]}),s.temp&&(s.temp.cpu||s.temp.gpu)&&n.jsxs("div",{className:"flex gap-3 text-[10px] font-mono text-muted-foreground bg-background/25 border border-border/40 p-2.5 rounded-xl self-start w-fit",children:[s.temp.cpu!=null&&n.jsxs("span",{className:"flex items-center gap-1",children:["CPU-Temperatur: ",n.jsxs("span",{className:"text-foreground font-bold",children:[s.temp.cpu," °C"]})]}),s.temp.cpu!=null&&s.temp.gpu!=null&&n.jsx("span",{children:"|"}),s.temp.gpu!=null&&n.jsxs("span",{className:"flex items-center gap-1",children:["GPU-Temperatur: ",n.jsxs("span",{className:"text-foreground font-bold",children:[s.temp.gpu," °C"]})]})]})]}),a&&n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Homelab-Dienste"}),n.jsx("button",{onClick:()=>window.dispatchEvent(new CustomEvent("open-system-drawer",{detail:{tab:"logs"}})),className:"h-7 px-3 rounded-lg border border-border/60 bg-background/25 text-[10px] font-bold uppercase hover:bg-accent text-muted-foreground transition-all cursor-pointer",children:"System-Logs anzeigen"})]}),n.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:a.services.map(O=>n.jsxs("div",{className:"flex items-center justify-between p-3.5 rounded-xl bg-background/20 border border-border/30 hover:border-primary/20 transition-all group",children:[n.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[n.jsx("span",{className:ie("h-2.5 w-2.5 rounded-full ring-2 ring-black/40",O.ok?"bg-emerald-500":"bg-amber-500")}),n.jsxs("div",{className:"truncate",children:[n.jsx("div",{className:"text-xs font-bold text-foreground truncate",children:O.name}),n.jsx("div",{className:"text-[9px] text-muted-foreground/60 font-mono mt-0.5 truncate",children:O.url})]})]}),n.jsx("button",{onClick:()=>_(O.name),disabled:N[O.name],className:"h-7 w-7 rounded-lg border border-border/40 text-muted-foreground hover:text-primary hover:bg-primary/5 flex items-center justify-center transition-all opacity-0 group-hover:opacity-100",title:"Dienst neu starten",children:n.jsx(gn,{className:ie("h-3.5 w-3.5",N[O.name]&&"animate-spin")})})]},O.name))}),n.jsxs("div",{className:"flex flex-wrap gap-4 border-t border-border/20 pt-4 text-[10px] font-semibold text-muted-foreground",children:[n.jsxs("a",{href:Fs(a.links.engine_ui),target:"_blank",rel:"noopener",className:"flex items-center gap-1 text-primary hover:text-primary-foreground hover:bg-primary/10 px-2 py-1 rounded transition-colors",children:[n.jsx(As,{className:"h-3 w-3"})," Engine Dashboard (llama-swap)"]}),n.jsxs("a",{href:Fs(a.links.gateway),target:"_blank",rel:"noopener",className:"flex items-center gap-1 text-primary hover:text-primary-foreground hover:bg-primary/10 px-2 py-1 rounded transition-colors",children:[n.jsx(As,{className:"h-3 w-3"})," OpenAI Gateway"]})]})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"System-Backup & Snapshot"}),n.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Erzeuge einen Git-Snapshot der aktuellen Konfigurationen und des System-Zustands."})]}),n.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto shrink-0",children:n.jsxs("button",{onClick:M,className:"h-9 px-4 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all flex items-center gap-1.5 cursor-pointer shadow-md shadow-primary/10",children:[n.jsx(xh,{className:"h-4 w-4"})," Snapshot erstellen"]})})]}),p&&n.jsx("div",{className:"text-[10px] font-mono text-primary font-medium bg-primary/5 p-3 rounded-xl border border-primary/20",children:p})]})}function j0(){const[s,u]=m.useState(localStorage.getItem("mc_host")||"192.168.178.151"),[a,c]=m.useState(localStorage.getItem("mc_mcp_path")||""),[f,h]=m.useState(null),[p,g]=m.useState("cline"),[N,C]=m.useState(!1),[j,M]=m.useState("");m.useEffect(()=>{const z=new URLSearchParams;z.set("host",s),a&&z.set("mcp_path",a),ue(`/api/connect?${z}`).then(h).catch(A=>M(String(A)))},[s,a]);function _(z){u(z),z&&localStorage.setItem("mc_host",z)}function O(z){c(z),localStorage.setItem("mc_mcp_path",z)}const D=f==null?void 0:f.tools[p];async function w(){D&&(await navigator.clipboard.writeText(D.snippet),C(!0),setTimeout(()=>C(!1),1500))}return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Verbindung & Integration"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Kopiere vorgefertigte Konfigurationsdateien für deinen lokalen PC (IDEs, Cline, Roo Code, Cursor), um direkt auf das geteilte Gedächtnis und den Auto-Swap-Gateway der Box zuzugreifen."})]}),n.jsxs("div",{className:"grid gap-4 md:grid-cols-2 p-5 rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md shadow-lg shadow-black/10",children:[n.jsxs("div",{className:"space-y-1.5",children:[n.jsxs("label",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground flex items-center gap-1.5",children:[n.jsx(fh,{className:"h-3.5 w-3.5 text-primary"})," Box LAN IP-Adresse"]}),n.jsx("input",{value:s,onChange:z=>_(z.target.value),placeholder:"z.B. 192.168.178.151",className:"w-full h-9 rounded-lg border border-border/60 bg-background/40 px-3 font-mono text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"})]}),n.jsxs("div",{className:"space-y-1.5",children:[n.jsxs("label",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground flex items-center gap-1.5",children:[n.jsx(dh,{className:"h-3.5 w-3.5 text-primary"})," Lokaler MCP-Scriptpfad"]}),n.jsx("input",{value:a,onChange:z=>O(z.target.value),placeholder:"z.B. F:\\Coding Stuff\\mission-control-2\\mcp\\mcp_memory.py",className:"w-full h-9 rounded-lg border border-border/60 bg-background/40 px-3 font-mono text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"})]})]}),j&&n.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Fehler beim Generieren der Snippets: ",j]}),f&&n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"flex flex-wrap gap-1 bg-card/20 p-1 border border-border/40 rounded-xl max-w-fit",children:Object.entries(f.tools).map(([z,A])=>n.jsx("button",{onClick:()=>g(z),className:ie("rounded-lg px-4 py-1.5 text-xs font-semibold tracking-wide uppercase transition-all cursor-pointer",p===z?"bg-primary text-primary-foreground shadow-md shadow-primary/10":"text-muted-foreground hover:text-foreground"),children:A.label},z))}),D&&n.jsxs("div",{className:"space-y-3",children:[D.note&&n.jsxs("div",{className:"flex items-start gap-2.5 p-3 rounded-xl bg-primary/5 border border-primary/20 text-xs text-muted-foreground leading-relaxed",children:[n.jsx(ph,{className:"h-4.5 w-4.5 text-primary shrink-0 mt-0.5"}),n.jsx("span",{children:D.note})]}),n.jsxs("div",{className:"flex flex-col border border-border/60 bg-black/60 rounded-2xl overflow-hidden shadow-2xl",children:[n.jsxs("div",{className:"flex h-11 items-center justify-between px-4 border-b border-border/40 bg-black/40 shrink-0",children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx("span",{className:"h-3 w-3 rounded-full bg-red-500/80 shadow-md shadow-red-500/10"}),n.jsx("span",{className:"h-3 w-3 rounded-full bg-amber-500/80 shadow-md shadow-amber-500/10"}),n.jsx("span",{className:"h-3 w-3 rounded-full bg-emerald-500/80 shadow-md shadow-emerald-500/10"})]}),n.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-mono text-muted-foreground/75 bg-background/30 px-3 py-1 rounded-md border border-border/20",children:[n.jsx(gi,{className:"h-3.5 w-3.5 text-primary"}),n.jsx("span",{children:p==="cline"||p==="cursor"?"config.json":"settings.json"})]}),n.jsxs("button",{onClick:w,className:"flex h-7 px-2.5 items-center gap-1.5 rounded-lg border border-border/40 bg-background/30 text-[10px] font-semibold text-muted-foreground hover:text-foreground hover:bg-background/60 transition-all cursor-pointer",children:[N?n.jsx(mn,{className:"h-3.5 w-3.5 text-emerald-400"}):n.jsx(mi,{className:"h-3.5 w-3.5"}),n.jsx("span",{children:N?"Kopiert":"Kopieren"})]})]}),n.jsx("pre",{className:"p-5 overflow-x-auto text-xs font-mono text-cyan-200/90 whitespace-pre leading-relaxed scrollbar-thin select-text bg-black/10",children:n.jsx("code",{children:D.snippet})})]})]})]})]})}const Gd=["user","instruction","stable","versioned","ephemeral"],ei={user:{label:"User",icon:jh,color:"text-cyan-400",border:"border-cyan-500/30",bg:"bg-cyan-500/10",text:"text-cyan-400"},instruction:{label:"Regel",icon:vh,color:"text-violet-400",border:"border-violet-500/30",bg:"bg-violet-500/10",text:"text-violet-400"},stable:{label:"Fakt",icon:co,color:"text-indigo-400",border:"border-indigo-500/30",bg:"bg-indigo-500/10",text:"text-indigo-400"},versioned:{label:"Version",icon:kh,color:"text-amber-400",border:"border-amber-500/30",bg:"bg-amber-500/10",text:"text-amber-400"},ephemeral:{label:"Temporär",icon:lh,color:"text-pink-400",border:"border-pink-500/30",bg:"bg-pink-500/10",text:"text-pink-400"}},Kd={label:"Gedächtnis",icon:Jd,bg:"bg-muted/10",text:"text-muted-foreground"},N0={user:"border-l-cyan-500/80",instruction:"border-l-violet-500/80",stable:"border-l-indigo-500/80",versioned:"border-l-amber-500/80",ephemeral:"border-l-pink-500/80"};function S0(){const[s,u]=m.useState([]),[a,c]=m.useState(""),[f,h]=m.useState(""),[p,g]=m.useState(""),[N,C]=m.useState("stable"),[j,M]=m.useState(""),[_,O]=m.useState(!1);function D(){const R=new URLSearchParams;f&&R.set("q",f),a&&R.set("category",a),ue(`/api/memory?${R}`).then(u).catch(I=>M(String(I)))}m.useEffect(D,[f,a]);async function w(){p.trim()&&(await ue("/api/memory",{method:"POST",body:JSON.stringify({content:p,category:N,source:"ui"})}),g(""),D())}async function z(R){await ue(`/api/memory/${R}`,{method:"DELETE"}),D()}async function A(){O(!0);try{const R=await ue("/api/memory/dedupe",{method:"POST",body:JSON.stringify({apply:!1})});if(R.duplicate_count===0){alert("Keine Dubletten gefunden — alles sauber.");return}confirm(`${R.duplicate_count} Dublette(n) in ${R.groups.length} Gruppe(n) gefunden. Entfernen?`)&&(await ue("/api/memory/dedupe",{method:"POST",body:JSON.stringify({apply:!0})}),D())}catch(R){alert(`Fehler: ${R.message}`)}finally{O(!1)}}return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Gedächtnis-Pool (Memory)"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Die geteilte Konstitution des Systems. Alle Instanzen (Hermes, IDEs, Gateway) lesen und schreiben hierauf per MCP-Protokoll."})]}),n.jsxs("button",{onClick:A,disabled:_,className:"flex h-9 px-4 items-center gap-1.5 text-xs font-semibold rounded-lg border border-border/60 bg-card hover:border-primary/50 transition-all cursor-pointer shadow-md disabled:opacity-50 shrink-0 self-start",children:[n.jsx(wh,{className:"h-4 w-4 text-primary animate-pulse"}),n.jsx("span",{children:"Deduplizieren"})]})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 space-y-4",children:[n.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Neuen Eintrag anlegen"}),n.jsx("textarea",{value:p,onChange:R=>g(R.target.value),placeholder:"Füge eine neue Regel, eine Vorliebe oder einen stabilen Fakt über das Projekt oder dich hinzu...",rows:3,className:"w-full resize-none rounded-xl border border-border/60 bg-background/30 p-3.5 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground transition-all leading-relaxed"}),n.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider",children:"Kategorie"}),n.jsx("select",{value:N,onChange:R=>C(R.target.value),className:"h-8 rounded-lg border border-border/60 bg-background/50 px-2 py-1 text-xs outline-none font-semibold text-foreground cursor-pointer",children:Gd.map(R=>{var I;return n.jsx("option",{value:R,className:"bg-popover text-foreground",children:((I=ei[R])==null?void 0:I.label)||R},R)})})]}),n.jsxs("button",{onClick:w,className:"h-9 px-4 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all flex items-center gap-1.5 cursor-pointer shadow-md shadow-primary/10",children:[n.jsx(ef,{className:"h-4 w-4"})," Speichern"]})]})]}),n.jsxs("div",{className:"flex flex-col md:flex-row items-stretch md:items-center gap-3",children:[n.jsxs("div",{className:"relative flex-1",children:[n.jsx("input",{value:f,onChange:R=>h(R.target.value),placeholder:"Gedächtnis durchsuchen...",className:"w-full h-9 pl-9 pr-3 rounded-lg border border-border/60 bg-card/45 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"}),n.jsx(hi,{className:"absolute left-3 top-2.5 h-3.5 w-3.5 text-muted-foreground"})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 p-1 bg-card/30 border border-border/40 rounded-xl overflow-x-auto max-w-full",children:[n.jsx("button",{onClick:()=>c(""),className:ie("h-7 px-3 rounded-lg text-[10px] font-semibold uppercase tracking-wider transition-all cursor-pointer whitespace-nowrap",a?"text-muted-foreground hover:text-foreground":"bg-primary text-primary-foreground"),children:"Alle"}),Gd.map(R=>{const I=ei[R]||Kd,G=I.icon;return n.jsxs("button",{onClick:()=>c(R),className:ie("h-7 px-2.5 rounded-lg text-[10px] font-semibold uppercase tracking-wider transition-all cursor-pointer flex items-center gap-1 whitespace-nowrap",a===R?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:[n.jsx(G,{className:"h-3 w-3"}),n.jsx("span",{children:I.label})]},R)})]})]}),j&&n.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Fehler beim Laden des Gedächtnisses: ",j]}),n.jsx("div",{className:"space-y-3",children:s.length===0?n.jsx("div",{className:"text-xs text-muted-foreground border border-dashed border-border/60 rounded-2xl p-12 text-center",children:"Keine Einträge für die aktuellen Filterkriterien gefunden."}):s.map(R=>{const I=ei[R.category]||Kd,G=I.icon;return n.jsxs("div",{className:ie("flex items-start justify-between gap-4 p-4 rounded-xl border border-l-4 bg-card/45 backdrop-blur-md border-border/60 shadow-md shadow-black/5 hover:border-primary/20 transition-all group",N0[R.category]||"border-l-muted"),children:[n.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[n.jsxs("span",{className:ie("flex items-center gap-1 px-2 py-0.5 rounded text-[9px] font-bold uppercase tracking-wider font-mono shrink-0",I.bg,I.text),children:[n.jsx(G,{className:"h-3 w-3"}),n.jsx("span",{className:"hidden sm:inline",children:I.label})]}),n.jsx("span",{className:"text-xs text-foreground leading-relaxed break-words whitespace-pre-wrap flex-1",children:R.content})]}),n.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[n.jsx("span",{className:"text-[9px] font-mono text-muted-foreground/60 bg-background/20 px-1.5 py-0.5 rounded uppercase tracking-wider",children:R.source}),n.jsx("button",{onClick:()=>z(R.id),className:"h-7 w-7 rounded-lg flex items-center justify-center border border-border/40 text-muted-foreground hover:text-red-400 hover:bg-red-500/5 transition-all opacity-0 group-hover:opacity-100",title:"Eintrag löschen",children:n.jsx(ni,{className:"h-3.5 w-3.5"})})]})]},R.id)})})]})}function Ls({label:s,ok:u,detail:a,icon:c}){return n.jsxs("div",{className:ie("rounded-2xl border bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-3 hover:border-primary/40 transition-all duration-300",u?"border-border/60":"border-amber-500/30"),children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:s}),n.jsx(c,{className:ie("h-4.5 w-4.5",u?"text-primary":"text-amber-500")})]}),n.jsxs("div",{className:"space-y-1.5",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:ie("h-2 w-2 rounded-full ring-2 ring-black/40",u?"bg-emerald-500 animate-pulse":"bg-amber-500")}),n.jsx("span",{className:"text-xs font-semibold text-foreground",children:u?"Bereit / Online":"Offline / Inaktiv"})]}),a&&n.jsx("div",{className:"text-[10px] font-mono text-muted-foreground truncate max-w-[200px]",title:a,children:a})]})]})}const C0=["fast","heavy","coder","reasoning","agent","vision","scout"];function E0(){var de,T,me,ce,Ee;const[s,u]=m.useState(null),[a,c]=m.useState(""),[f,h]=m.useState([]),[p,g]=m.useState([]),[N,C]=m.useState(null),[j,M]=m.useState(null),[_,O]=m.useState(null),[D,w]=m.useState(null),[z,A]=m.useState(!1),[R,I]=m.useState(null);function G(){ue("/api/agent/status").then(u).catch(J=>c(String(J))),Promise.all([ue("/api/models"),ue("/api/routing"),ue("/api/connect")]).then(([J,ke,ye])=>{h(J.models||[]),g(J.running||[]),C(ke),M(ye)}).catch(J=>console.error("Error loading graph data in AgentView",J))}m.useEffect(()=>{G();const J=setInterval(G,5e3);return()=>clearInterval(J)},[]);const Z=J=>f.find(ke=>ke.role===J),K=J=>{const ke=Z(J);return ke?p.includes(ke.name):!1};async function oe(J,ke){w(null);try{await ue(`/api/models/${encodeURIComponent(ke)}/role`,{method:"POST",body:JSON.stringify({role:J||null})}),G()}catch(ye){alert(`Fehler beim Zuweisen der Rolle: ${ye}`)}}async function he(J){J&&(await navigator.clipboard.writeText(J),A(!0),setTimeout(()=>A(!1),1500))}return n.jsxs("div",{className:"space-y-6",children:[n.jsx("style",{children:`
|
|
@keyframes flow-dash {
|
|
to {
|
|
stroke-dashoffset: -40;
|
|
}
|
|
}
|
|
.animate-flow-cyan {
|
|
stroke-dasharray: 8 24;
|
|
animation: flow-dash 1.2s linear infinite;
|
|
}
|
|
`}),n.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Hermes Agenten-Cockpit"}),n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Hermes ist ein autonomer Agent, der im Hintergrund der Box läuft (Port ",n.jsx("code",{children:":8642"}),") und seine eigene UI besitzt."]})]}),(s==null?void 0:s.webui_url)&&n.jsxs("a",{href:Fs(s.webui_url),target:"_blank",rel:"noopener",className:ie("flex h-9 px-4 items-center gap-1.5 text-xs font-semibold rounded-lg transition-all cursor-pointer shadow-md shrink-0 self-start",s.webui_reachable?"bg-primary text-primary-foreground hover:opacity-90 shadow-primary/10":"border border-border/60 text-muted-foreground bg-background/20"),children:[n.jsx(As,{className:"h-4 w-4"}),n.jsx("span",{children:"Hermes WebUI öffnen"})]})]}),a&&n.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400 font-mono",children:["Status nicht lesbar (",a,")."]}),s&&n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[n.jsx(Ls,{label:"Agent Gateway",ok:s.gateway_reachable,detail:"Port :8642 (REST API)",icon:$s}),n.jsx(Ls,{label:"Agent WebUI",ok:s.webui_reachable,detail:"Port :8787 (Chat UI)",icon:pi}),n.jsx(Ls,{label:"Aktives Gehirn",ok:s.gateway_reachable,detail:s.brain_model?`Model: ${s.brain_model}`:"Model: auto",icon:_r}),n.jsx(Ls,{label:"Verdrahtung",ok:s.has_config,detail:`Config: ${s.has_config?"✓":"—"} · Skills: ${s.has_skills?"✓":"—"} · Memory: ${s.has_memories?"✓":"—"}`,icon:Nh})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-6 shadow-lg shadow-black/10 space-y-4",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"Interactive Gateway Graph (Duplikat)"}),n.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5 leading-relaxed",children:"Visualisiert die Kopplung der Client-Editoren mit dem OpenAI-Gateway und den aktiven Modell-Rollen."})]}),n.jsxs("div",{className:"relative w-full h-[360px] border border-border/30 rounded-xl bg-black/25 overflow-hidden flex",children:[n.jsxs("svg",{className:"absolute inset-0 pointer-events-none w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[n.jsxs("defs",{children:[n.jsxs("linearGradient",{id:"cyan-to-teal",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[n.jsx("stop",{offset:"0%",stopColor:"#06b6d4",stopOpacity:"0.45"}),n.jsx("stop",{offset:"100%",stopColor:"#0d9488",stopOpacity:"0.45"})]}),n.jsxs("linearGradient",{id:"active-glow",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[n.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:"0.8"}),n.jsx("stop",{offset:"100%",stopColor:"#10b981",stopOpacity:"0.8"})]})]}),n.jsx("path",{d:"M 10 10 C 30 10, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(R==="roocode"||_==="roocode")&&n.jsx("path",{d:"M 10 10 C 30 10, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 30 C 30 30, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(R==="cursor"||_==="cursor")&&n.jsx("path",{d:"M 10 30 C 30 30, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 50 C 30 50, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(R==="opencode"||_==="opencode")&&n.jsx("path",{d:"M 10 50 C 30 50, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 70 C 30 70, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(R==="zed"||_==="zed")&&n.jsx("path",{d:"M 10 70 C 30 70, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 10 90 C 30 90, 30 50, 50 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),(R==="continue"||_==="continue")&&n.jsx("path",{d:"M 10 90 C 30 90, 30 50, 50 50",stroke:"#06b6d4",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 12, 90 12",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),K("fast")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 12, 90 12",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 31, 90 31",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),K("heavy")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 31, 90 31",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 50, 90 50",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),K("coder")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 50, 90 50",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 69, 90 69",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),K("vision")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 69, 90 69",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"}),n.jsx("path",{d:"M 50 50 C 70 50, 70 88, 90 88",stroke:"url(#cyan-to-teal)",strokeWidth:"1.5",fill:"none"}),K("scout")&&n.jsx("path",{d:"M 50 50 C 70 50, 70 88, 90 88",stroke:"url(#active-glow)",strokeWidth:"2.5",fill:"none",className:"animate-flow-cyan"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"10%"},onMouseEnter:()=>I("roocode"),onMouseLeave:()=>I(null),onClick:()=>O(J=>J==="roocode"?null:"roocode"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Roo Code"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"30%"},onMouseEnter:()=>I("cursor"),onMouseLeave:()=>I(null),onClick:()=>O(J=>J==="cursor"?null:"cursor"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Cursor IDE"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"50%"},onMouseEnter:()=>I("opencode"),onMouseLeave:()=>I(null),onClick:()=>O(J=>J==="opencode"?null:"opencode"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"OpenCode"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"70%"},onMouseEnter:()=>I("zed"),onMouseLeave:()=>I(null),onClick:()=>O(J=>J==="zed"?null:"zed"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Zed"})]}),n.jsxs("div",{className:"absolute cursor-pointer select-none z-10 w-28 h-8 -translate-y-1/2 -translate-x-1/2 rounded-xl border border-border/60 bg-card/75 backdrop-blur-md flex items-center justify-center gap-1.5 px-2 hover:border-primary transition-all text-[10px] font-semibold text-foreground shadow shadow-black/20",style:{left:"10%",top:"90%"},onMouseEnter:()=>I("continue"),onMouseLeave:()=>I(null),onClick:()=>O(J=>J==="continue"?null:"continue"),children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),n.jsx("span",{children:"Continue"})]}),n.jsxs("div",{className:"absolute select-none z-10 w-36 py-3 px-4 -translate-y-1/2 -translate-x-1/2 rounded-2xl border border-primary/50 bg-card/90 backdrop-blur-md flex flex-col items-center justify-center text-center shadow-lg shadow-primary/5",style:{left:"50%",top:"50%"},children:[n.jsx("div",{className:"text-[10px] uppercase font-bold text-primary font-space tracking-wide",children:"Gateway Auto"}),n.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground mt-0.5",children:["Schwelle: > ",N!=null&&N.heavy_threshold_chars?N.heavy_threshold_chars/1e3:"4","k Zeichen"]}),n.jsx("div",{className:"mt-1 px-1.5 py-0.5 rounded bg-primary/10 border border-primary/20 text-[9px] font-semibold text-primary uppercase font-mono",children:"Auto-Swap"})]}),C0.map(J=>{var ee;const ke=["12%","31%","50%","69%","88%"],ye=Z(J),be=ye?p.includes(ye.name):!1;if(J==="reasoning"||J==="agent")return null;const W={fast:0,heavy:1,coder:2,vision:3,scout:4}[J];return n.jsxs("div",{className:ie("absolute z-10 w-44 py-1.5 px-3 -translate-y-1/2 -translate-x-1/2 rounded-xl border flex flex-col justify-center hover:border-primary/50 transition-all text-left shadow select-none cursor-pointer",be?"border-emerald-500/50 bg-emerald-500/5 shadow-emerald-500/5":ye?"border-border/60 bg-card/75":"border-dashed border-border/40 bg-background/20"),style:{left:"90%",top:ke[W]},onClick:()=>w(D===J?null:J),children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:J}),be&&n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-400 animate-pulse"})]}),n.jsx("div",{className:"text-[10px] font-mono font-medium truncate mt-0.5 text-foreground max-w-[150px]",children:ye?(ee=ye.name.split("/").pop())==null?void 0:ee.replace(".gguf",""):"Keine Zuweisung"}),D===J&&n.jsxs("div",{className:"absolute right-0 top-full mt-1 z-35 w-52 rounded-xl border border-border/80 bg-popover/95 backdrop-blur-md p-1.5 shadow-2xl space-y-1",children:[n.jsx("div",{className:"text-[9px] uppercase font-bold text-muted-foreground/60 px-2 py-1 select-none",children:"Modell zuweisen:"}),n.jsx("button",{onClick:()=>oe(J,""),className:"w-full text-left px-2.5 py-1.5 rounded-lg text-[10px] hover:bg-accent text-red-400 font-semibold cursor-pointer",children:"Zuweisung entfernen"}),f.map(Q=>{var k;return n.jsxs("button",{onClick:()=>oe(J,Q.name),className:ie("w-full text-left px-2.5 py-1.5 rounded-lg text-[10px] hover:bg-accent flex items-center justify-between font-mono cursor-pointer",Q.role===J?"text-primary font-bold":"text-foreground"),children:[n.jsx("span",{className:"truncate max-w-[150px]",children:(k=Q.name.split("/").pop())==null?void 0:k.replace(".gguf","")}),Q.role===J&&n.jsx(mn,{className:"h-3 w-3 shrink-0"})]},Q.name)})]})]},J)}),_&&j&&n.jsxs("div",{className:"absolute z-30 md:w-96 w-[90%] rounded-2xl border border-border/80 bg-card/95 backdrop-blur-xl p-4 shadow-2xl space-y-3 flex flex-col justify-between",style:{left:"22%",top:_==="roocode"?"5%":_==="cursor"?"20%":_==="opencode"?"40%":_==="zed"?"55%":"65%"},children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-border/20 pb-2",children:[n.jsxs("span",{className:"text-[11px] font-bold uppercase tracking-wider text-primary",children:[_==="roocode"&&"Roo Code Setup",_==="cursor"&&"Cursor Setup",_==="opencode"&&"OpenCode Setup",_==="zed"&&"Zed Setup",_==="continue"&&"Continue Setup"]}),n.jsx("button",{onClick:()=>O(null),className:"p-1 rounded hover:bg-accent text-muted-foreground hover:text-foreground cursor-pointer",children:n.jsx(Bs,{className:"h-3.5 w-3.5"})})]}),n.jsxs("div",{className:"text-[10px] text-muted-foreground leading-relaxed space-y-2",children:[_==="roocode"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Suche in VS Code nach der Erweiterung ",n.jsx("strong",{children:"Roo Code"})," und installiere sie."]}),n.jsxs("li",{children:["Wähle in den Roo Code Einstellungen: Provider: ",n.jsx("strong",{children:"OpenAI Compatible"}),"."]}),n.jsxs("li",{children:["Füge das untenstehende JSON-Snippet in die ",n.jsx("code",{children:"settings.json"})," ein."]})]}),_==="cursor"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Öffne Cursor Settings ➔ ",n.jsx("strong",{children:"Models"}),"."]}),n.jsxs("li",{children:["Deaktiviere Cloud-Modelle, klappe ",n.jsx("strong",{children:"OpenAI API"})," auf."]}),n.jsxs("li",{children:["Trage die Base URL unten ein und aktiviere das Modell ",n.jsx("strong",{children:"auto"}),"."]})]}),_==="opencode"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Öffne die ",n.jsx("code",{children:"opencode.jsonc"})," Konfigurationsdatei."]}),n.jsxs("li",{children:["Ersetze den Provider-Eintrag unter ",n.jsx("code",{children:"provider"})," mit dem Snippet unten."]})]}),_==="zed"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsxs("li",{children:["Öffne die Zed Settings (",n.jsx("code",{children:"ctrl+,"}),")."]}),n.jsxs("li",{children:["Füge das untenstehende JSON-Segment unter ",n.jsx("code",{children:"language_models"})," ein."]})]}),_==="continue"&&n.jsxs("ul",{className:"list-decimal pl-4 space-y-1",children:[n.jsx("li",{children:"Klicke auf das Zahnrad-Symbol in der Continue-Erweiterung."}),n.jsxs("li",{children:["Füge den Gateway-Eintrag zum ",n.jsx("code",{children:"models"}),"-Array hinzu."]})]})]}),j.tools&&n.jsxs("div",{className:"relative rounded-xl border border-border/40 bg-black/40 overflow-hidden mt-1 shrink-0",children:[n.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 border-b border-border/20 bg-black/20",children:[n.jsx("span",{className:"text-[8px] font-mono text-muted-foreground",children:"JSON Config"}),n.jsxs("button",{onClick:()=>{var J,ke,ye,be,W;return he(_==="roocode"?(J=j.tools.cline)==null?void 0:J.snippet:_==="cursor"?(ke=j.tools.cursor)==null?void 0:ke.snippet:_==="opencode"?(ye=j.tools.opencode)==null?void 0:ye.snippet:_==="zed"?(be=j.tools.zed)==null?void 0:be.snippet:(W=j.tools.continue)==null?void 0:W.snippet)},className:"text-[9px] font-semibold text-primary hover:text-primary-foreground flex items-center gap-1 cursor-pointer",children:[z?n.jsx(mn,{className:"h-3 w-3 text-emerald-400"}):n.jsx(mi,{className:"h-3 w-3"}),n.jsx("span",{children:z?"Kopiert":"Kopieren"})]})]}),n.jsx("pre",{className:"p-3 max-h-36 overflow-y-auto text-[9px] font-mono text-cyan-200/90 whitespace-pre scrollbar-thin select-text",children:n.jsxs("code",{children:[_==="roocode"&&((de=j.tools.cline)==null?void 0:de.snippet),_==="cursor"&&((T=j.tools.cursor)==null?void 0:T.snippet),_==="opencode"&&((me=j.tools.opencode)==null?void 0:me.snippet),_==="zed"&&((ce=j.tools.zed)==null?void 0:ce.snippet),_==="continue"&&((Ee=j.tools.continue)==null?void 0:Ee.snippet)]})})]})]})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-6 mt-3 text-[10px] text-muted-foreground border-t border-border/20 pt-3",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx("span",{className:"h-2 w-2 rounded-full bg-cyan-400"}),n.jsx("span",{children:"Cyan-Fluss: Client-Anfrage an Gateway"})]}),n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx("span",{className:"h-2 w-2 rounded-full bg-emerald-500 animate-pulse"}),n.jsx("span",{children:"Grüner Puls: Aktive Verbindung / Warmes Modell geladen"})]}),n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx("span",{className:"h-2 w-2 rounded bg-gradient-to-r from-teal-500 to-emerald-500"}),n.jsx("span",{children:"VRAM-Verlauf: Modellspezifischer Speicheranteil"})]})]})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-6 space-y-4 shadow-lg shadow-black/10",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(co,{className:"h-5 w-5 text-primary"}),n.jsx("h3",{className:"text-sm font-bold uppercase tracking-wider text-foreground",children:"SSH-Kopplung & Sandbox-Umgehung"})]}),n.jsxs("div",{className:"grid gap-6 md:grid-cols-2 text-xs text-muted-foreground leading-relaxed text-left",children:[n.jsxs("div",{className:"space-y-3",children:[n.jsx("h4",{className:"text-xs font-bold text-foreground",children:"1. Warum verweigert Hermes Aktionen auf dem PC?"}),n.jsx("p",{children:"Hermes ist standardmäßig so ausgerichtet, dass er sich als virtueller Assistent ohne Systemzugriff versteht. Um dies zu umgehen, musst du Hermes' **System-Prompt** in der Chat-WebUI anpassen."}),n.jsxs("div",{className:"p-3 bg-background/25 rounded-xl border border-border/30 font-mono text-[9px] text-cyan-300",children:[n.jsx("span",{className:"text-muted-foreground/60",children:"Beispiel System-Prompt Erweiterung:"}),n.jsx("br",{}),'"Du hast über das terminal-Tool vollen SSH-Zugriff auf den Windows-PC des Users (TobisPC). Nutze SSH-Befehle um Aktionen dort auszuführen, wenn danach gefragt wird. Behaupte nie, du könntest das nicht!"']})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsx("h4",{className:"text-xs font-bold text-foreground",children:"2. SSH-Verbindung zum lokalen Windows-PC einrichten"}),n.jsx("p",{children:"Damit der Agent Befehle auf deinem PC ausführen kann, muss OpenSSH auf Windows aktiv und mit einem Key gekoppelt sein:"}),n.jsxs("ul",{className:"list-disc pl-4 space-y-1.5 text-[11px]",children:[n.jsxs("li",{children:[n.jsx("strong",{children:"OpenSSH Server auf Windows starten:"})," In PowerShell als Admin ausführen: ",n.jsx("code",{className:"text-foreground font-mono",children:"Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0"})]}),n.jsxs("li",{children:[n.jsx("strong",{children:"SSH-Key auf der Box erzeugen:"})," ",n.jsx("code",{className:"text-foreground font-mono",children:"ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_hermes_agent"})]}),n.jsxs("li",{children:[n.jsx("strong",{children:"Key autorisieren:"})," Kopiere den Inhalt von ",n.jsx("code",{className:"text-foreground font-mono",children:"~/.ssh/id_ed25519_hermes_agent.pub"})," in deine Windows-Datei ",n.jsx("code",{className:"text-foreground font-mono",children:"C:\\Users\\TobisPC\\.ssh\\authorized_keys"})]})]})]})]})]}),!s.gateway_reachable&&n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-6 space-y-4 shadow-lg shadow-black/10 text-left",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(co,{className:"h-5 w-5 text-amber-500"}),n.jsx("h3",{className:"text-sm font-bold uppercase tracking-wider text-foreground",children:"Hermes-Agent Diagnostics"})]}),n.jsxs("div",{className:"text-xs text-muted-foreground space-y-3 leading-relaxed",children:[n.jsx("p",{children:"Der Hermes-Dienst ist auf der Box derzeit offline oder kann sich nicht mit dem lokalen llama-swap verbinden."}),n.jsxs("p",{children:["Stelle sicher, dass die systemd-Dienste auf der Box laufen. Du kannst den Status im ",n.jsx("strong",{children:"OS & Updates Drawer"})," prüfen und die Dienste bei Bedarf neu starten."]}),n.jsxs("div",{className:"p-3.5 bg-background/25 rounded-xl border border-border/30 font-mono text-[10px] space-y-1",children:[n.jsx("div",{className:"text-muted-foreground/60",children:"# Dienste manuell auf der Box prüfen:"}),n.jsx("div",{className:"text-primary",children:"systemctl --user status hermes-gateway"}),n.jsx("div",{className:"text-primary",children:"systemctl --user status hermes-webui"})]}),n.jsxs("p",{children:["Weitere Einrichtungsdetails (Brain-Konfiguration, MCP-Kopplungen, SSH-Tunneling und Such-Engines) findest du in der Dokumentationsdatei:",n.jsx("code",{className:"ml-1 px-1.5 py-0.5 rounded bg-muted/40 text-foreground border border-border/30",children:"docs/HERMES_SETUP.md"}),"."]})]})]})]})]})}function M0(){const[s,u]=m.useState("roocode"),[a,c]=m.useState(null),f="192.168.178.151",[h,p]=m.useState(!1),[g,N]=m.useState(null);function C(){p(!0),ue("/api/health").then(j=>{c(j),N(j.engine_reachable?"success":"partial")}).catch(()=>{c(null),N("fail")}).finally(()=>p(!1))}return m.useEffect(()=>{C()},[]),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Stack-Anleitung & Vibe-Coding-Guide"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Einsteigerfreundliche Erklärungen zu deinem Stack und Schritt-für-Schritt-Anleitungen zur Anbindung deiner Editoren."})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:ie("h-3 w-3 rounded-full ring-2 ring-black/40",g==="success"&&"bg-emerald-500 animate-pulse",g==="partial"&&"bg-amber-500",g==="fail"&&"bg-red-500",!g&&"bg-muted")}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"Lokaler Verbindungs-Check"}),n.jsxs("div",{className:"text-[10px] text-muted-foreground mt-0.5 font-mono",children:[g==="success"&&`Erfolgreich! Dein PC hat Zugriff auf das Box-Gateway (v${(a==null?void 0:a.version)||""}).`,g==="partial"&&"Gateway erreichbar, aber die llama-cpp-Engine ist offline.",g==="fail"&&"Verbindung fehlgeschlagen. Ist die Box im selben LAN-Netzwerk?",!g&&"Verbindung wird geprüft..."]})]})]}),n.jsxs("button",{onClick:C,disabled:h,className:"h-8 px-3 flex items-center gap-1.5 text-xs font-semibold rounded-lg border border-border/60 bg-background/20 hover:border-primary/50 transition-colors disabled:opacity-50 cursor-pointer self-start sm:self-auto shrink-0",children:[n.jsx(gn,{className:ie("h-3.5 w-3.5",h&&"animate-spin")}),n.jsx("span",{children:"Testen"})]})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-center gap-2 px-1",children:[n.jsx(Jd,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"Wie funktioniert mein Stack?"})]}),n.jsxs("div",{className:"grid gap-4 sm:grid-cols-3",children:[n.jsxs("div",{className:"p-4 rounded-xl border border-border/60 bg-card/20 space-y-2",children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(_r,{className:"h-4 w-4 text-cyan-400"}),n.jsx("h3",{className:"text-xs font-bold text-foreground",children:"1. Die Zentrale"})]}),n.jsx("p",{className:"text-[11px] text-muted-foreground leading-relaxed",children:"Dein Dashboard. Hier siehst du die CPU-/RAM- und GPU-Last der Box und siehst sofort, ob Updates anstehen."})]}),n.jsxs("div",{className:"p-4 rounded-xl border border-border/60 bg-card/20 space-y-2",children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Ts,{className:"h-4 w-4 text-violet-400"}),n.jsx("h3",{className:"text-xs font-bold text-foreground",children:"2. Modell-Zentrale"})]}),n.jsxs("p",{className:"text-[11px] text-muted-foreground leading-relaxed",children:["Deine GGUF-Datenbank. Gesteuert von ",n.jsx("strong",{children:"llama-swap"}),". Lädt dein schnelles Alltags-Hirn (`fast`) oder dein schweres Logik-Hirn (`heavy`) vollautomatisch im VRAM."]})]}),n.jsxs("div",{className:"p-4 rounded-xl border border-border/60 bg-card/20 space-y-2",children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Us,{className:"h-4 w-4 text-indigo-400"}),n.jsx("h3",{className:"text-xs font-bold text-foreground",children:"3. Das Gedächtnis"})]}),n.jsx("p",{className:"text-[11px] text-muted-foreground leading-relaxed",children:"Dein geteiltes Langzeitgedächtnis (Memory-Pool). Hier merkt sich dein Agent Regeln, Projekt-Details und Vorlieben."})]})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center gap-2 px-1",children:[n.jsx(Xd,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"Vibe Coding auf dem PC einrichten"})]}),n.jsxs("div",{className:"flex gap-1.5 bg-card/20 p-1 border border-border/40 rounded-xl max-w-fit",children:[n.jsxs("button",{onClick:()=>u("roocode"),className:ie("rounded-lg px-4 py-1.5 text-xs font-semibold tracking-wide uppercase transition-all cursor-pointer flex items-center gap-1.5",s==="roocode"?"bg-primary text-primary-foreground shadow-md shadow-primary/10":"text-muted-foreground hover:text-foreground"),children:[n.jsx(rf,{className:"h-3.5 w-3.5 fill-amber-400/20"}),"Roo Code (VS Code)"]}),n.jsx("button",{onClick:()=>u("cursor"),className:ie("rounded-lg px-4 py-1.5 text-xs font-semibold tracking-wide uppercase transition-all cursor-pointer",s==="cursor"?"bg-primary text-primary-foreground shadow-md shadow-primary/10":"text-muted-foreground hover:text-foreground"),children:"Cursor IDE"}),n.jsx("button",{onClick:()=>u("opencode"),className:ie("rounded-lg px-4 py-1.5 text-xs font-semibold tracking-wide uppercase transition-all cursor-pointer",s==="opencode"?"bg-primary text-primary-foreground shadow-md shadow-primary/10":"text-muted-foreground hover:text-foreground"),children:"OpenCode Desktop"})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-6 space-y-4 shadow-lg shadow-black/10",children:[s==="roocode"&&n.jsxs("div",{className:"space-y-4 text-xs leading-relaxed text-muted-foreground",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsx("h3",{className:"text-sm font-bold text-foreground",children:"Roo Code Kopplung (Empfohlene Open-Source-Erweiterung)"}),n.jsx("p",{children:"Roo Code ist die beliebteste und flexibelste Vibe-Coding-Erweiterung für VS Code im Jahr 2026. Sie ermöglicht vollen Zugriff auf das Terminal und das MCP-Gedächtnis."})]}),n.jsxs("div",{className:"space-y-3.5 border-t border-border/20 pt-4",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"1"}),"Roo Code installieren"]}),n.jsxs("p",{className:"pl-6",children:["Suche in VS Code nach der Erweiterung ",n.jsx("strong",{children:"Roo Code"})," und installiere sie."]})]}),n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"2"}),"API-Anbindung konfigurieren"]}),n.jsx("p",{className:"pl-6",children:"Klicke auf das Roo-Code-Symbol in der Sidebar, öffne die Einstellungen (Zahnrad) und stelle folgendes ein:"}),n.jsx("div",{className:"pl-6 pt-1",children:n.jsxs("div",{className:"p-3 bg-background/25 rounded-xl border border-border/30 font-mono text-[10px] space-y-1 text-foreground",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"API Provider:"})," OpenAI Compatible"]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"Base URL:"})," http://",f,":9001/v1"]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"API Key:"})," ",n.jsx("span",{className:"italic text-muted-foreground/50",children:'beliebig (z.B. "local")'})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"Model ID:"})," auto"]})]})})]}),n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"3"}),"MCP Gedächtnis verknüpfen (Optional, aber empfohlen)"]}),n.jsxs("p",{className:"pl-6",children:["Damit Roo Code auf deinen ",n.jsx("strong",{children:"Gedächtnis-Pool"})," zugreifen kann, kopiere die MCP-Konfiguration aus dem Reiter ",n.jsx("strong",{children:"Verbinden"})," und füge sie in deine lokale Roo-Code-Konfigurationsdatei ein."]})]})]})]}),s==="cursor"&&n.jsxs("div",{className:"space-y-4 text-xs leading-relaxed text-muted-foreground",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsx("h3",{className:"text-sm font-bold text-foreground",children:"Cursor IDE Kopplung (Proprietäre All-in-One IDE)"}),n.jsx("p",{children:"Cursor ist ein polierter, extrem schneller VS-Code-Fork mit hervorragenden, tief integrierten Autovervollständigungen (Tab-Completions)."})]}),n.jsxs("div",{className:"space-y-3.5 border-t border-border/20 pt-4",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"1"}),"Einstellungen öffnen"]}),n.jsxs("p",{className:"pl-6",children:["Öffne Cursor, klicke oben rechts auf das Zahnrad (Settings) und navigiere zu ",n.jsx("strong",{children:"Models"}),"."]})]}),n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"2"}),"OpenAI API überschreiben"]}),n.jsxs("p",{className:"pl-6",children:["Deaktiviere die Standard-Cloudmodelle, klappe den Bereich ",n.jsx("strong",{children:"OpenAI API"})," auf und konfiguriere:"]}),n.jsx("div",{className:"pl-6 pt-1",children:n.jsxs("div",{className:"p-3 bg-background/25 rounded-xl border border-border/30 font-mono text-[10px] space-y-1 text-foreground",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"Override Base URL:"})," http://",f,":9001/v1"]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"API Key:"})," ",n.jsx("span",{className:"italic text-muted-foreground/50",children:'beliebig (z.B. "local")'})]})]})})]}),n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"3"}),"Modell hinzufügen"]}),n.jsxs("p",{className:"pl-6",children:["Trage in der Modell-Liste ein neues Modell mit dem Namen ",n.jsx("strong",{children:"auto"})," ein und wähle es als aktives Modell aus. Cursor leitet ab jetzt alle deine Anfragen an die Box weiter."]})]})]})]}),s==="opencode"&&n.jsxs("div",{className:"space-y-4 text-xs leading-relaxed text-muted-foreground",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsx("h3",{className:"text-sm font-bold text-foreground",children:"OpenCode Desktop Kopplung (Open-Source Vibe-Coding-App)"}),n.jsx("p",{children:"OpenCode ist eine standalone Desktop-App für ein ablenkungsfreies Coden über natürliche Sprache. Es trennt den KI-Prozess von deinem Editor."})]}),n.jsxs("div",{className:"space-y-3.5 border-t border-border/20 pt-4",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"1"}),"OpenCode Desktop herunterladen"]}),n.jsx("p",{className:"pl-6",children:"Lade die Desktop-Anwendung von der offiziellen Website (opencode.ai) herunter und starte sie."})]}),n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"2"}),"Endpunkt auf Box-Gateway setzen"]}),n.jsx("p",{className:"pl-6",children:"Gehe in den Bereich Einstellungen ➔ Provider, deaktiviere die Cloud-Voreinstellungen und trage deinen lokalen Server ein:"}),n.jsx("div",{className:"pl-6 pt-1",children:n.jsxs("div",{className:"p-3 bg-background/25 rounded-xl border border-border/30 font-mono text-[10px] space-y-1 text-foreground",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"Base URL:"})," http://",f,":9001/v1"]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-muted-foreground/60",children:"Model:"})," auto"]})]})})]}),n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"font-semibold text-foreground flex items-center gap-1.5",children:[n.jsx("span",{className:"h-4.5 w-4.5 rounded-full bg-primary/20 text-primary flex items-center justify-center font-mono text-[10px]",children:"3"}),"Erster Vibe-Coding Test"]}),n.jsx("p",{className:"pl-6",children:'Starte eine neue Session und teste die Verbindung mit einem einfachen Prompt, z. B. *"Erstelle ein einfaches Skript, das die Fibonaccizahlen berechnet"*. Das Box-Gateway tauscht das Modell im Hintergrund vollautomatisch aus.'})]})]})]})]})]}),n.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 space-y-3 shadow-lg shadow-black/10",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(gi,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"Was tun, wenn das Coden hakt?"})]}),n.jsxs("ul",{className:"text-[11px] text-muted-foreground space-y-2 list-disc pl-4 leading-relaxed",children:[n.jsxs("li",{children:[n.jsx("strong",{children:"Keine Verbindung?"})," Überprüfe im Live-Verbindungsprüfer oben, ob die Box-IP erreichbar ist. Stelle sicher, dass dein lokaler PC im selben WLAN/LAN-Netzwerk wie die Box eingeloggt ist."]}),n.jsxs("li",{children:[n.jsx("strong",{children:"Modell antwortet nicht?"})," Schaue unter ",n.jsx("strong",{children:"Diagnose"}),", ob der Dienst `llama-swap` aktiv (grün) ist. Wenn nicht, klicke daneben auf ",n.jsx("strong",{children:"Restart"}),"."]}),n.jsxs("li",{children:[n.jsx("strong",{children:"Hermes Agent reagiert merkwürdig?"})," Starte in der Hermes WebUI einfach eine frische Session (neuen Chat). Ältere Chats sammeln Kontext-Müll an."]})]})]})]})}function _0({title:s,hint:u}){return n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-xl font-semibold",children:s}),n.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),n.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-border bg-card/50 py-20 text-center",children:[n.jsx(uh,{className:"h-8 w-8 text-muted-foreground"}),n.jsx("div",{className:"text-sm text-muted-foreground",children:"Kommt in einer späteren Phase."})]})]})}const P0=[{id:"llama-swap",label:"Llama Swap",type:"system"},{id:"mission-control-2",label:"Mission Control 2",type:"user"},{id:"hermes-gateway",label:"Hermes Gateway",type:"user"},{id:"hermes-dashboard",label:"Hermes Dashboard",type:"user"},{id:"hermes-webui",label:"Hermes WebUI",type:"user"}];function ti(s){return s==null?"":s>1024**3?`${(s/1024**3).toFixed(2)} GB`:`${(s/1024**2).toFixed(1)} MB`}function R0({open:s,onClose:u,defaultTab:a="maintenance"}){const[c,f]=m.useState(null),[h,p]=m.useState([]),[g,N]=m.useState("llama-swap"),[C,j]=m.useState(""),[M,_]=m.useState(!1),[O,D]=m.useState({}),[w,z]=m.useState("maintenance");m.useEffect(()=>{s&&a&&z(a)},[s,a]);const A=m.useRef(null);function R(){ue("/api/maintenance/updates").then(f).catch(T=>console.error("Error loading updates",T))}function I(){ue("/api/jobs").then(T=>p(T.jobs||[])).catch(T=>console.error("Error loading jobs",T))}function G(T){_(!0),ue(`/api/maintenance/logs?service=${T}&lines=150`).then(me=>{me.ok?j(me.text):j(`Fehler beim Laden der Logs: ${me.err||"Unbekannter Fehler"}`)}).catch(me=>j(`Fehler: ${me.message}`)).finally(()=>{_(!1),setTimeout(()=>{A.current&&(A.current.scrollTop=A.current.scrollHeight)},50)})}m.useEffect(()=>{if(!s)return;R(),I();const T=setInterval(()=>{I(),R()},3e3);return()=>clearInterval(T)},[s]),m.useEffect(()=>{!s||w!=="logs"||G(g)},[s,w,g]);async function Z(){try{await ue("/api/maintenance/os-update",{method:"POST"}),I(),z("maintenance")}catch(T){alert(`Fehler beim Starten des OS-Updates: ${T.message}`)}}async function K(){try{await ue("/api/maintenance/engine-update",{method:"POST"}),I(),z("maintenance")}catch(T){alert(`Fehler: ${T.message}`)}}async function oe(){if(confirm("Bist du sicher, dass du das gesamte Host-System neu starten willst?"))try{await ue("/api/maintenance/reboot",{method:"POST"}),alert("Reboot ausgelöst. System startet neu..."),u()}catch(T){alert(`Fehler: ${T.message}`)}}async function he(T){D(me=>({...me,[T]:!0}));try{const me=await ue("/api/maintenance/restart",{method:"POST",body:JSON.stringify({service:T})});me.ok?(alert(`Dienst ${T} wurde erfolgreich neu gestartet.`),w==="logs"&&g===T&&G(T)):alert(`Fehler beim Neustart: ${me.err||"Unbekannter Fehler"}`)}catch(me){alert(`Fehler: ${me.message}`)}finally{D(me=>({...me,[T]:!1}))}}async function de(T){try{await ue(`/api/jobs/${T}/cancel`,{method:"POST"}),I()}catch(me){alert(`Fehler beim Abbrechen: ${me.message}`)}}return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:ie("fixed inset-0 bg-black/60 backdrop-blur-sm z-50 transition-opacity duration-300",s?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:u}),n.jsxs("div",{className:ie("fixed inset-y-0 right-0 w-full sm:w-[500px] bg-card/85 backdrop-blur-xl border-l border-border/60 shadow-2xl z-50 flex flex-col transform transition-transform duration-300 ease-in-out font-sans text-foreground",s?"translate-x-0":"translate-x-full"),children:[n.jsxs("div",{className:"flex h-16 shrink-0 items-center justify-between border-b border-border/40 px-6",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(_r,{className:"h-4.5 w-4.5 text-primary"}),n.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase font-space",children:"OS-Zentrale & Pflege"})]}),n.jsx("button",{onClick:u,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border/40 text-muted-foreground hover:bg-accent transition-colors",children:n.jsx(Bs,{className:"h-4 w-4"})})]}),n.jsxs("div",{className:"flex border-b border-border/40 px-6",children:[n.jsx("button",{onClick:()=>z("maintenance"),className:ie("flex-1 py-3 text-xs font-semibold uppercase tracking-wider border-b-2 text-center transition-all",w==="maintenance"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),children:"System-Wartung"}),n.jsx("button",{onClick:()=>z("logs"),className:ie("flex-1 py-3 text-xs font-semibold uppercase tracking-wider border-b-2 text-center transition-all",w==="logs"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),children:"System-Logs"})]}),n.jsx("div",{className:"flex-1 overflow-y-auto p-6 space-y-6",children:w==="maintenance"?n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"space-y-3",children:[n.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Wartungsaktionen"}),n.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n.jsxs("button",{onClick:Z,className:"flex flex-col items-start gap-1 p-4 rounded-xl border border-border/60 bg-background/20 hover:border-primary/50 transition-all text-left group",children:[n.jsx(co,{className:"h-5 w-5 text-cyan-400 mb-1 group-hover:scale-105 transition-transform"}),n.jsx("span",{className:"text-xs font-semibold",children:"OS Update (apt)"}),n.jsx("span",{className:"text-[10px] text-muted-foreground",children:c!=null&&c.os?`${c.os} Updates verfügbar`:"Auf neuestem Stand"})]}),n.jsxs("button",{onClick:K,className:"flex flex-col items-start gap-1 p-4 rounded-xl border border-border/60 bg-background/20 hover:border-primary/50 transition-all text-left group",children:[n.jsx(yh,{className:"h-5 w-5 text-violet-400 mb-1 group-hover:scale-105 transition-transform"}),n.jsx("span",{className:"text-xs font-semibold",children:"Engine Update"}),n.jsx("span",{className:"text-[10px] text-muted-foreground",children:c!=null&&c.engine?"Update verfügbar":"Auf neuestem Stand"})]})]}),n.jsxs("button",{onClick:oe,className:"flex w-full items-center gap-3 p-3 rounded-xl border border-red-500/20 bg-red-500/5 hover:bg-red-500/10 text-red-400 transition-all text-left text-xs font-semibold",children:[n.jsx(tf,{className:"h-4.5 w-4.5"}),n.jsxs("div",{children:[n.jsx("div",{children:"Host-System neu starten (Reboot)"}),n.jsx("div",{className:"text-[10px] text-red-400/80 font-normal",children:"Startet das gesamte Betriebssystem des Homelabs neu"})]})]})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Hintergrund-Aufgaben"}),n.jsxs("span",{className:"text-[10px] font-mono bg-primary/10 text-primary px-1.5 py-0.5 rounded-full",children:[h.filter(T=>T.state==="running"||T.state==="queued").length," Aktiv"]})]}),n.jsx("div",{className:"space-y-3",children:h.length===0?n.jsx("div",{className:"text-xs text-muted-foreground border border-dashed border-border/60 rounded-xl p-6 text-center",children:"Aktuell keine aktiven Hintergrund-Jobs."}):h.map(T=>{const me=T.state==="running"||T.state==="queued";return n.jsxs("div",{className:ie("p-3 rounded-xl border transition-all duration-300",me?"border-primary/40 bg-primary/5 shadow-md shadow-primary/5":"border-border/40 bg-background/20 opacity-80"),children:[n.jsxs("div",{className:"flex items-start justify-between gap-3",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"text-xs font-semibold flex items-center gap-1.5",children:[me&&n.jsxs("span",{className:"flex h-2 w-2 relative",children:[n.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),n.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-primary"})]}),T.label]}),n.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground uppercase flex items-center gap-2",children:[n.jsxs("span",{children:["ID: ",T.id]}),n.jsx("span",{children:"•"}),n.jsx("span",{className:ie(T.state==="done"&&"text-emerald-400",T.state==="failed"&&"text-red-400",T.state==="running"&&"text-primary",T.state==="queued"&&"text-amber-400",T.state==="canceled"&&"text-muted-foreground"),children:T.state})]})]}),me&&n.jsx("button",{onClick:()=>de(T.id),className:"text-[10px] font-semibold text-red-400 hover:text-red-300 border border-red-500/20 bg-red-500/5 hover:bg-red-500/10 px-2 py-0.5 rounded transition-colors",children:"Abbrechen"})]}),T.state==="running"&&n.jsxs("div",{className:"mt-3 space-y-1",children:[n.jsx("div",{className:"w-full h-1.5 bg-muted rounded-full overflow-hidden",children:n.jsx("div",{className:"h-full bg-primary transition-all duration-500",style:{width:`${T.progress??0}%`}})}),n.jsxs("div",{className:"flex justify-between items-center text-[9px] font-mono text-muted-foreground",children:[n.jsxs("span",{children:[T.progress??0,"%"]}),T.done_bytes!=null&&T.total_bytes!=null&&n.jsxs("span",{children:[ti(T.done_bytes)," / ",ti(T.total_bytes),T.rate_bps!=null&&` (${ti(T.rate_bps)}/s)`]}),T.eta_s!=null&&n.jsxs("span",{children:["ETA: ",T.eta_s,"s"]})]})]})]},T.id)})})]})]}):n.jsxs("div",{className:"flex flex-col h-full space-y-4",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("select",{value:g,onChange:T=>N(T.target.value),className:"flex-1 h-9 px-3 text-xs bg-background/40 border border-border/60 rounded-lg outline-none text-foreground font-semibold",children:P0.map(T=>n.jsxs("option",{value:T.id,children:[T.label," (",T.type==="system"?"systemd-root":"user",")"]},T.id))}),n.jsxs("button",{onClick:()=>he(g),disabled:O[g],className:"flex h-9 px-3 items-center gap-1.5 text-xs font-semibold rounded-lg border border-border/60 bg-background/20 hover:border-primary/50 transition-colors disabled:opacity-50",title:"Dienst neu starten",children:[n.jsx(gn,{className:ie("h-3.5 w-3.5",O[g]&&"animate-spin")}),"Restart"]})]}),n.jsxs("div",{className:"flex-1 flex flex-col min-h-[300px] border border-border/60 bg-black/50 rounded-xl overflow-hidden shadow-inner",children:[n.jsxs("div",{className:"flex h-9 items-center justify-between px-4 border-b border-border/40 bg-black/30 shrink-0",children:[n.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-mono text-muted-foreground",children:[n.jsx(gi,{className:"h-3 w-3 text-primary"}),n.jsxs("span",{children:["stdout/stderr - ",g]})]}),n.jsx("button",{onClick:()=>G(g),disabled:M,className:"text-muted-foreground hover:text-foreground transition-colors",children:n.jsx(gn,{className:ie("h-3 w-3",M&&"animate-spin")})})]}),n.jsx("pre",{ref:A,className:"flex-1 p-4 overflow-y-auto text-[10px] font-mono text-cyan-300/90 whitespace-pre-wrap select-text leading-relaxed scrollbar-thin",children:M&&!C?n.jsx("span",{className:"text-muted-foreground",children:"Lade Logs..."}):C||n.jsx("span",{className:"text-muted-foreground",children:"Keine Logeinträge vorhanden."})})]})]})})]})]})}function z0(){var O,D,w,z,A;const[s,u]=m.useState("dashboard"),[a,c]=m.useState(null),[f,h]=m.useState(()=>localStorage.getItem("mc_sidebar_collapsed")==="true"),[p,g]=m.useState(null),[N,C]=m.useState(!1),[j,M]=m.useState("maintenance");m.useEffect(()=>{const R=()=>ue("/api/health").then(c).catch(()=>c(null));R();const I=setInterval(R,1e4);return()=>clearInterval(I)},[]),m.useEffect(()=>{const R=()=>ue("/api/system/status").then(g).catch(()=>{});R();const I=setInterval(R,2e4);return()=>clearInterval(I)},[]),m.useEffect(()=>{document.documentElement.classList.add("dark")},[]),m.useEffect(()=>{const R=I=>{var Z;M(((Z=I.detail)==null?void 0:Z.tab)||"maintenance"),C(!0)};return window.addEventListener("open-system-drawer",R),()=>window.removeEventListener("open-system-drawer",R)},[]);const _=oi.find(R=>R.id===s);return n.jsxs("div",{className:"flex h-full relative",children:[n.jsxs("div",{className:"fixed inset-0 -z-50 pointer-events-none overflow-hidden bg-[hsl(224,30%,6%)]",children:[n.jsx("div",{className:"absolute inset-0 opacity-35 animate-aurora bg-gradient-to-tr from-teal-500/20 via-indigo-500/15 to-purple-500/20 blur-[130px]"}),n.jsx("div",{className:"absolute top-[-10%] left-[-10%] h-[50%] w-[50%] rounded-full bg-teal-500/15 blur-[160px]"}),n.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] h-[50%] w-[50%] rounded-full bg-purple-500/15 blur-[160px]"}),n.jsx("div",{className:"absolute top-[30%] right-[20%] h-[40%] w-[40%] rounded-full bg-indigo-500/10 blur-[140px]"})]}),n.jsx(zx,{onNavigate:u}),n.jsx(R0,{open:N,onClose:()=>C(!1),defaultTab:j}),n.jsxs("aside",{className:ie("flex shrink-0 flex-col border-r border-border/40 bg-card/45 backdrop-blur-md transition-all duration-300 ease-in-out",f?"w-16":"w-60"),children:[n.jsxs("div",{className:ie("flex items-center py-4 border-b border-border/40 shrink-0",f?"flex-col gap-3 px-2":"justify-between px-5"),children:[n.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[n.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary shadow-md shadow-primary/20 shrink-0"}),!f&&n.jsxs("div",{className:"leading-tight",children:[n.jsx("div",{className:"text-sm font-semibold tracking-wide font-space",children:"Mission Control"}),n.jsx("div",{className:"text-xs text-muted-foreground",children:"2.0"})]})]}),n.jsx("button",{onClick:()=>{h(R=>{const I=!R;return localStorage.setItem("mc_sidebar_collapsed",I.toString()),I})},className:"p-1 rounded-md hover:bg-accent text-muted-foreground transition-colors cursor-pointer",title:f?"Maximieren":"Minimieren",children:f?n.jsx(nh,{className:"h-4 w-4"}):n.jsx(rh,{className:"h-4 w-4"})})]}),n.jsx("nav",{className:"flex-1 space-y-1 px-3 py-4 overflow-y-auto",children:oi.map(R=>n.jsxs("button",{onClick:()=>u(R.id),className:ie("flex w-full items-center rounded-md text-sm transition-all cursor-pointer",f?"justify-center p-2.5":"gap-3 px-3 py-2",s===R.id?"bg-primary/15 text-primary shadow-sm shadow-primary/5":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),title:f?R.label:void 0,children:[n.jsx(R.icon,{className:"h-4.5 w-4.5 shrink-0"}),!f&&n.jsx("span",{className:"truncate",children:R.label})]},R.id))}),n.jsx("div",{className:ie("py-3 text-xs text-muted-foreground border-t border-border/40 shrink-0",f?"px-2 text-center":"px-5"),children:f?n.jsx("div",{className:"flex justify-center",children:n.jsx("span",{className:ie("h-2.5 w-2.5 rounded-full ring-2 ring-black/40",a?a.engine_reachable?"bg-emerald-500 animate-pulse":"bg-amber-500":"bg-red-500"),title:a?`Engine ${a.engine_reachable?"online":"offline"}`:"Backend offline"})}):n.jsxs("div",{className:"space-y-2 text-left",children:[a?n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx("span",{className:ie("h-2 w-2 rounded-full animate-pulse",a.engine_reachable?"bg-emerald-500":"bg-amber-500")}),n.jsxs("span",{className:"truncate",children:["Engine ",a.engine_reachable?"online":"offline"]})]}):n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"})," ",n.jsx("span",{className:"truncate",children:"Backend offline"})]}),(p==null?void 0:p.versions)&&n.jsxs("div",{className:"space-y-1 text-[9px] text-muted-foreground/60 mt-2 pt-2 border-t border-border/30",children:[n.jsxs("div",{className:"truncate",title:p.versions.mc2?`${p.versions.mc2.branch}-${p.versions.mc2.hash}${p.versions.mc2.dirty?"*":""} (${p.versions.mc2.date})`:"nicht gefunden",children:[n.jsx("strong",{children:"MC2:"})," ",p.versions.mc2?`${p.versions.mc2.hash}${p.versions.mc2.dirty?"*":""}`:"—"]}),n.jsxs("div",{className:"truncate",title:((O=p.versions.engine)==null?void 0:O.type)==="git"?`${p.versions.engine.branch}-${p.versions.engine.hash}${p.versions.engine.dirty?"*":""} (${p.versions.engine.date})`:((D=p.versions.engine)==null?void 0:D.version_text)||"unbekannt",children:[n.jsx("strong",{children:"Engine:"})," ",((w=p.versions.engine)==null?void 0:w.type)==="git"?`${p.versions.engine.hash}${p.versions.engine.dirty?"*":""}`:((A=(z=p.versions.engine)==null?void 0:z.version_text)==null?void 0:A.split(" ").pop())||"—"]}),n.jsxs("div",{className:"truncate",title:p.versions.hermes_ui?`${p.versions.hermes_ui.branch}-${p.versions.hermes_ui.hash}${p.versions.hermes_ui.dirty?"*":""} (${p.versions.hermes_ui.date})`:"nicht gefunden",children:[n.jsx("strong",{children:"Hermes UI:"})," ",p.versions.hermes_ui?`${p.versions.hermes_ui.hash}${p.versions.hermes_ui.dirty?"*":""}`:"—"]}),n.jsxs("div",{className:"truncate",title:p.versions.hermes_agent?`${p.versions.hermes_agent.branch}-${p.versions.hermes_agent.hash}${p.versions.hermes_agent.dirty?"*":""} (${p.versions.hermes_agent.date})`:"nicht gefunden",children:[n.jsx("strong",{children:"Hermes Agent:"})," ",p.versions.hermes_agent?`${p.versions.hermes_agent.hash}${p.versions.hermes_agent.dirty?"*":""}`:"—"]})]})]})})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[n.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between border-b border-border/40 px-6 bg-card/20 backdrop-blur-sm",children:[n.jsx("div",{className:"text-xs font-medium text-muted-foreground tracking-wide uppercase font-sans",children:_.hint}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("a",{href:"https://git.tobisniceshomelab.ddnsfree.com/Hitonabi/mission-control-v2/src/branch/main/docs/BEDIENUNG.md",target:"_blank",rel:"noopener",className:"flex h-8 items-center rounded-md border border-border/40 bg-background/40 px-2.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-all cursor-pointer font-semibold",title:"Bedien-Anleitung",children:"Hilfe"}),n.jsxs("button",{onClick:()=>{const R=new KeyboardEvent("keydown",{key:"k",metaKey:!0});document.dispatchEvent(R)},className:"flex items-center gap-2 rounded-md border border-border/40 bg-background/40 px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-all cursor-pointer",children:[n.jsx(ah,{className:"h-3.5 w-3.5"}),n.jsx("span",{children:"Suchen"}),n.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-[9px]",children:"⌘K"})]})]})]}),n.jsxs("main",{className:"flex-1 overflow-y-auto p-6 scrollbar-thin",children:[s==="dashboard"&&n.jsx(f0,{}),s==="models"&&n.jsx(w0,{}),s==="system"&&n.jsx(k0,{}),s==="connect"&&n.jsx(j0,{}),s==="memory"&&n.jsx(S0,{}),s==="agent"&&n.jsx(E0,{}),s==="guide"&&n.jsx(M0,{}),!["dashboard","models","system","connect","memory","agent","guide"].includes(s)&&n.jsx(_0,{title:_.label,hint:_.hint})]})]})]})}qm.createRoot(document.getElementById("root")).render(n.jsx(Zd.StrictMode,{children:n.jsx(z0,{})}));
|