ceca2ae8e3
LiteLLM baut auf Python 3.14 nicht (orjson-Pin ohne cp314-Wheel). Stattdessen eingebauter Gateway in MC2: routers/gateway_proxy.py (/v1/chat/completions, /completions, /models) + services/router_logic.py (Komplexitaets-Routing fast<->heavy, Streaming-Passthrough). gateway.py/routing.py/connect.py auf builtin umgestellt (Endpunkt = MC :PORT/v1). Gleicher OpenAI-Vertrag, spaeter gegen LiteLLM austauschbar. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
186 lines
243 KiB
JavaScript
186 lines
243 KiB
JavaScript
function pm(l,u){for(var s=0;s<u.length;s++){const c=u[s];if(typeof c!="string"&&!Array.isArray(c)){for(const d in c)if(d!=="default"&&!(d in l)){const p=Object.getOwnPropertyDescriptor(c,d);p&&Object.defineProperty(l,d,p.get?p:{enumerable:!0,get:()=>c[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const g of p.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&c(g)}).observe(document,{childList:!0,subtree:!0});function s(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function c(d){if(d.ep)return;d.ep=!0;const p=s(d);fetch(d.href,p)}})();function Cd(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Es={exports:{}},Yr={},Cs={exports:{}},fe={};/**
|
|
* @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 Kc;function mm(){if(Kc)return fe;Kc=1;var l=Symbol.for("react.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),P=Symbol.iterator;function M(k){return k===null||typeof k!="object"?null:(k=P&&k[P]||k["@@iterator"],typeof k=="function"?k:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,R={};function b(k,w,A){this.props=k,this.context=w,this.refs=R,this.updater=A||T}b.prototype.isReactComponent={},b.prototype.setState=function(k,w){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,w,"setState")},b.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function W(){}W.prototype=b.prototype;function H(k,w,A){this.props=k,this.context=w,this.refs=R,this.updater=A||T}var te=H.prototype=new W;te.constructor=H,V(te,b.prototype),te.isPureReactComponent=!0;var q=Array.isArray,le=Object.prototype.hasOwnProperty,ne={current:null},se={key:!0,ref:!0,__self:!0,__source:!0};function ye(k,w,A){var B,D={},Y=null,re=null;if(w!=null)for(B in w.ref!==void 0&&(re=w.ref),w.key!==void 0&&(Y=""+w.key),w)le.call(w,B)&&!se.hasOwnProperty(B)&&(D[B]=w[B]);var ue=arguments.length-2;if(ue===1)D.children=A;else if(1<ue){for(var ce=Array(ue),De=0;De<ue;De++)ce[De]=arguments[De+2];D.children=ce}if(k&&k.defaultProps)for(B in ue=k.defaultProps,ue)D[B]===void 0&&(D[B]=ue[B]);return{$$typeof:l,type:k,key:Y,ref:re,props:D,_owner:ne.current}}function de(k,w){return{$$typeof:l,type:k.type,key:w,ref:k.ref,props:k.props,_owner:k._owner}}function xe(k){return typeof k=="object"&&k!==null&&k.$$typeof===l}function Ce(k){var w={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(A){return w[A]})}var ie=/\/+/g;function Le(k,w){return typeof k=="object"&&k!==null&&k.key!=null?Ce(""+k.key):w.toString(36)}function Ne(k,w,A,B,D){var Y=typeof k;(Y==="undefined"||Y==="boolean")&&(k=null);var re=!1;if(k===null)re=!0;else switch(Y){case"string":case"number":re=!0;break;case"object":switch(k.$$typeof){case l:case u:re=!0}}if(re)return re=k,D=D(re),k=B===""?"."+Le(re,0):B,q(D)?(A="",k!=null&&(A=k.replace(ie,"$&/")+"/"),Ne(D,w,A,"",function(De){return De})):D!=null&&(xe(D)&&(D=de(D,A+(!D.key||re&&re.key===D.key?"":(""+D.key).replace(ie,"$&/")+"/")+k)),w.push(D)),1;if(re=0,B=B===""?".":B+":",q(k))for(var ue=0;ue<k.length;ue++){Y=k[ue];var ce=B+Le(Y,ue);re+=Ne(Y,w,A,ce,D)}else if(ce=M(k),typeof ce=="function")for(k=ce.call(k),ue=0;!(Y=k.next()).done;)Y=Y.value,ce=B+Le(Y,ue++),re+=Ne(Y,w,A,ce,D);else if(Y==="object")throw w=String(k),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.");return re}function Oe(k,w,A){if(k==null)return k;var B=[],D=0;return Ne(k,B,"","",function(Y){return w.call(A,Y,D++)}),B}function je(k){if(k._status===-1){var w=k._result;w=w(),w.then(function(A){(k._status===0||k._status===-1)&&(k._status=1,k._result=A)},function(A){(k._status===0||k._status===-1)&&(k._status=2,k._result=A)}),k._status===-1&&(k._status=0,k._result=w)}if(k._status===1)return k._result.default;throw k._result}var he={current:null},F={transition:null},Z={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:F,ReactCurrentOwner:ne};function U(){throw Error("act(...) is not supported in production builds of React.")}return fe.Children={map:Oe,forEach:function(k,w,A){Oe(k,function(){w.apply(this,arguments)},A)},count:function(k){var w=0;return Oe(k,function(){w++}),w},toArray:function(k){return Oe(k,function(w){return w})||[]},only:function(k){if(!xe(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},fe.Component=b,fe.Fragment=s,fe.Profiler=d,fe.PureComponent=H,fe.StrictMode=c,fe.Suspense=j,fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,fe.act=U,fe.cloneElement=function(k,w,A){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var B=V({},k.props),D=k.key,Y=k.ref,re=k._owner;if(w!=null){if(w.ref!==void 0&&(Y=w.ref,re=ne.current),w.key!==void 0&&(D=""+w.key),k.type&&k.type.defaultProps)var ue=k.type.defaultProps;for(ce in w)le.call(w,ce)&&!se.hasOwnProperty(ce)&&(B[ce]=w[ce]===void 0&&ue!==void 0?ue[ce]:w[ce])}var ce=arguments.length-2;if(ce===1)B.children=A;else if(1<ce){ue=Array(ce);for(var De=0;De<ce;De++)ue[De]=arguments[De+2];B.children=ue}return{$$typeof:l,type:k.type,key:D,ref:Y,props:B,_owner:re}},fe.createContext=function(k){return k={$$typeof:g,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},fe.createElement=ye,fe.createFactory=function(k){var w=ye.bind(null,k);return w.type=k,w},fe.createRef=function(){return{current:null}},fe.forwardRef=function(k){return{$$typeof:m,render:k}},fe.isValidElement=xe,fe.lazy=function(k){return{$$typeof:N,_payload:{_status:-1,_result:k},_init:je}},fe.memo=function(k,w){return{$$typeof:E,type:k,compare:w===void 0?null:w}},fe.startTransition=function(k){var w=F.transition;F.transition={};try{k()}finally{F.transition=w}},fe.unstable_act=U,fe.useCallback=function(k,w){return he.current.useCallback(k,w)},fe.useContext=function(k){return he.current.useContext(k)},fe.useDebugValue=function(){},fe.useDeferredValue=function(k){return he.current.useDeferredValue(k)},fe.useEffect=function(k,w){return he.current.useEffect(k,w)},fe.useId=function(){return he.current.useId()},fe.useImperativeHandle=function(k,w,A){return he.current.useImperativeHandle(k,w,A)},fe.useInsertionEffect=function(k,w){return he.current.useInsertionEffect(k,w)},fe.useLayoutEffect=function(k,w){return he.current.useLayoutEffect(k,w)},fe.useMemo=function(k,w){return he.current.useMemo(k,w)},fe.useReducer=function(k,w,A){return he.current.useReducer(k,w,A)},fe.useRef=function(k){return he.current.useRef(k)},fe.useState=function(k){return he.current.useState(k)},fe.useSyncExternalStore=function(k,w,A){return he.current.useSyncExternalStore(k,w,A)},fe.useTransition=function(){return he.current.useTransition()},fe.version="18.3.1",fe}var Qc;function Gs(){return Qc||(Qc=1,Cs.exports=mm()),Cs.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 Yc;function hm(){if(Yc)return Yr;Yc=1;var l=Gs(),u=Symbol.for("react.element"),s=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function g(m,j,E){var N,P={},M=null,T=null;E!==void 0&&(M=""+E),j.key!==void 0&&(M=""+j.key),j.ref!==void 0&&(T=j.ref);for(N in j)c.call(j,N)&&!p.hasOwnProperty(N)&&(P[N]=j[N]);if(m&&m.defaultProps)for(N in j=m.defaultProps,j)P[N]===void 0&&(P[N]=j[N]);return{$$typeof:u,type:m,key:M,ref:T,props:P,_owner:d.current}}return Yr.Fragment=s,Yr.jsx=g,Yr.jsxs=g,Yr}var Xc;function vm(){return Xc||(Xc=1,Es.exports=hm()),Es.exports}var f=vm(),v=Gs();const Nd=Cd(v),Ks=pm({__proto__:null,default:Nd},[v]);var po={},Ns={exports:{}},rt={},js={exports:{}},_s={};/**
|
|
* @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 Zc;function gm(){return Zc||(Zc=1,(function(l){function u(F,Z){var U=F.length;F.push(Z);e:for(;0<U;){var k=U-1>>>1,w=F[k];if(0<d(w,Z))F[k]=Z,F[U]=w,U=k;else break e}}function s(F){return F.length===0?null:F[0]}function c(F){if(F.length===0)return null;var Z=F[0],U=F.pop();if(U!==Z){F[0]=U;e:for(var k=0,w=F.length,A=w>>>1;k<A;){var B=2*(k+1)-1,D=F[B],Y=B+1,re=F[Y];if(0>d(D,U))Y<w&&0>d(re,D)?(F[k]=re,F[Y]=U,k=Y):(F[k]=D,F[B]=U,k=B);else if(Y<w&&0>d(re,U))F[k]=re,F[Y]=U,k=Y;else break e}}return Z}function d(F,Z){var U=F.sortIndex-Z.sortIndex;return U!==0?U:F.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;l.unstable_now=function(){return p.now()}}else{var g=Date,m=g.now();l.unstable_now=function(){return g.now()-m}}var j=[],E=[],N=1,P=null,M=3,T=!1,V=!1,R=!1,b=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function te(F){for(var Z=s(E);Z!==null;){if(Z.callback===null)c(E);else if(Z.startTime<=F)c(E),Z.sortIndex=Z.expirationTime,u(j,Z);else break;Z=s(E)}}function q(F){if(R=!1,te(F),!V)if(s(j)!==null)V=!0,je(le);else{var Z=s(E);Z!==null&&he(q,Z.startTime-F)}}function le(F,Z){V=!1,R&&(R=!1,W(ye),ye=-1),T=!0;var U=M;try{for(te(Z),P=s(j);P!==null&&(!(P.expirationTime>Z)||F&&!Ce());){var k=P.callback;if(typeof k=="function"){P.callback=null,M=P.priorityLevel;var w=k(P.expirationTime<=Z);Z=l.unstable_now(),typeof w=="function"?P.callback=w:P===s(j)&&c(j),te(Z)}else c(j);P=s(j)}if(P!==null)var A=!0;else{var B=s(E);B!==null&&he(q,B.startTime-Z),A=!1}return A}finally{P=null,M=U,T=!1}}var ne=!1,se=null,ye=-1,de=5,xe=-1;function Ce(){return!(l.unstable_now()-xe<de)}function ie(){if(se!==null){var F=l.unstable_now();xe=F;var Z=!0;try{Z=se(!0,F)}finally{Z?Le():(ne=!1,se=null)}}else ne=!1}var Le;if(typeof H=="function")Le=function(){H(ie)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Oe=Ne.port2;Ne.port1.onmessage=ie,Le=function(){Oe.postMessage(null)}}else Le=function(){b(ie,0)};function je(F){se=F,ne||(ne=!0,Le())}function he(F,Z){ye=b(function(){F(l.unstable_now())},Z)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(F){F.callback=null},l.unstable_continueExecution=function(){V||T||(V=!0,je(le))},l.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<F?Math.floor(1e3/F):5},l.unstable_getCurrentPriorityLevel=function(){return M},l.unstable_getFirstCallbackNode=function(){return s(j)},l.unstable_next=function(F){switch(M){case 1:case 2:case 3:var Z=3;break;default:Z=M}var U=M;M=Z;try{return F()}finally{M=U}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(F,Z){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var U=M;M=F;try{return Z()}finally{M=U}},l.unstable_scheduleCallback=function(F,Z,U){var k=l.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?k+U:k):U=k,F){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=U+w,F={id:N++,callback:Z,priorityLevel:F,startTime:U,expirationTime:w,sortIndex:-1},U>k?(F.sortIndex=U,u(E,F),s(j)===null&&F===s(E)&&(R?(W(ye),ye=-1):R=!0,he(q,U-k))):(F.sortIndex=w,u(j,F),V||T||(V=!0,je(le))),F},l.unstable_shouldYield=Ce,l.unstable_wrapCallback=function(F){var Z=M;return function(){var U=M;M=Z;try{return F.apply(this,arguments)}finally{M=U}}}})(_s)),_s}var qc;function ym(){return qc||(qc=1,js.exports=gm()),js.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 Jc;function xm(){if(Jc)return rt;Jc=1;var l=Gs(),u=ym();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=new Set,d={};function p(e,t){g(e,t),g(e+"Capture",t)}function g(e,t){for(d[e]=t,e=0;e<t.length;e++)c.add(t[e])}var m=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),j=Object.prototype.hasOwnProperty,E=/^[: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]*$/,N={},P={};function M(e){return j.call(P,e)?!0:j.call(N,e)?!1:E.test(e)?P[e]=!0:(N[e]=!0,!1)}function T(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V(e,t,n,r){if(t===null||typeof t>"u"||T(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 R(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new R(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new R(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new R(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new R(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){b[e]=new R(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new R(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new R(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new R(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new R(e,5,!1,e.toLowerCase(),null,!1,!1)});var W=/[\-:]([a-z])/g;function H(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(W,H);b[t]=new R(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(W,H);b[t]=new R(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(W,H);b[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new R(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new R(e,1,!1,e.toLowerCase(),null,!0,!0)});function te(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(V(t,n,o,r)&&(n=null),r||o===null?M(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var q=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,le=Symbol.for("react.element"),ne=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),F=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var U=Object.assign,k;function w(e){if(k===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
|
|
`+k+e}var A=!1;function B(e,t){if(!e||A)return"";A=!0;var n=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(_){var r=_}Reflect.construct(e,[],t)}else{try{t.call()}catch(_){r=_}e.call(t.prototype)}else{try{throw Error()}catch(_){r=_}e()}}catch(_){if(_&&r&&typeof _.stack=="string"){for(var o=_.stack.split(`
|
|
`),i=r.stack.split(`
|
|
`),a=o.length-1,h=i.length-1;1<=a&&0<=h&&o[a]!==i[h];)h--;for(;1<=a&&0<=h;a--,h--)if(o[a]!==i[h]){if(a!==1||h!==1)do if(a--,h--,0>h||o[a]!==i[h]){var y=`
|
|
`+o[a].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=a&&0<=h);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?w(e):""}function D(e){switch(e.tag){case 5:return w(e.type);case 16:return w("Lazy");case 13:return w("Suspense");case 19:return w("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1),e;case 11:return e=B(e.type.render,!1),e;case 1:return e=B(e.type,!0),e;default:return""}}function Y(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 se:return"Fragment";case ne:return"Portal";case de:return"Profiler";case ye:return"StrictMode";case Le:return"Suspense";case Ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case xe:return(e._context.displayName||"Context")+".Provider";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Oe:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case je:t=e._payload,e=e._init;try{return Y(e(t))}catch{}}return null}function re(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 Y(t);case 8:return t===ye?"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 ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function De(e){var t=ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=De(e))}function Js(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ce(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(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 Ro(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function eu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ue(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tu(e,t){t=t.checked,t!=null&&te(e,"checked",t,!1)}function Mo(e,t){tu(e,t);var n=ue(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?To(e,t.type,n):t.hasOwnProperty("defaultValue")&&To(e,t.type,ue(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function To(e,t,n){(t!=="number"||rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var cr=Array.isArray;function Pn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ue(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Lo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ru(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(s(92));if(cr(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ue(n)}}function lu(e,t){var n=ue(t.value),r=ue(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ou(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function iu(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 Oo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?iu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,su=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fr={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},gf=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){gf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function uu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function au(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=uu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var yf=U({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 Io(e,t){if(t){if(yf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function zo(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 Do=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fo=null,bn=null,Rn=null;function cu(e){if(e=Or(e)){if(typeof Fo!="function")throw Error(s(280));var t=e.stateNode;t&&(t=_l(t),Fo(e.stateNode,e.type,t))}}function du(e){bn?Rn?Rn.push(e):Rn=[e]:bn=e}function fu(){if(bn){var e=bn,t=Rn;if(Rn=bn=null,cu(e),t)for(e=0;e<t.length;e++)cu(t[e])}}function pu(e,t){return e(t)}function mu(){}var Uo=!1;function hu(e,t,n){if(Uo)return e(t,n);Uo=!0;try{return pu(e,t,n)}finally{Uo=!1,(bn!==null||Rn!==null)&&(mu(),fu())}}function pr(e,t){var n=e.stateNode;if(n===null)return null;var r=_l(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Bo=!1;if(m)try{var mr={};Object.defineProperty(mr,"passive",{get:function(){Bo=!0}}),window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch{Bo=!1}function xf(e,t,n,r,o,i,a,h,y){var _=Array.prototype.slice.call(arguments,3);try{t.apply(n,_)}catch(O){this.onError(O)}}var hr=!1,ol=null,il=!1,$o=null,wf={onError:function(e){hr=!0,ol=e}};function kf(e,t,n,r,o,i,a,h,y){hr=!1,ol=null,xf.apply(wf,arguments)}function Sf(e,t,n,r,o,i,a,h,y){if(kf.apply(this,arguments),hr){if(hr){var _=ol;hr=!1,ol=null}else throw Error(s(198));il||(il=!0,$o=_)}}function fn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vu(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 gu(e){if(fn(e)!==e)throw Error(s(188))}function Ef(e){var t=e.alternate;if(!t){if(t=fn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return gu(o),e;if(i===r)return gu(o),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,h=o.child;h;){if(h===n){a=!0,n=o,r=i;break}if(h===r){a=!0,r=o,n=i;break}h=h.sibling}if(!a){for(h=i.child;h;){if(h===n){a=!0,n=i,r=o;break}if(h===r){a=!0,r=i,n=o;break}h=h.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function yu(e){return e=Ef(e),e!==null?xu(e):null}function xu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xu(e);if(t!==null)return t;e=e.sibling}return null}var wu=u.unstable_scheduleCallback,ku=u.unstable_cancelCallback,Cf=u.unstable_shouldYield,Nf=u.unstable_requestPaint,Re=u.unstable_now,jf=u.unstable_getCurrentPriorityLevel,Vo=u.unstable_ImmediatePriority,Su=u.unstable_UserBlockingPriority,sl=u.unstable_NormalPriority,_f=u.unstable_LowPriority,Eu=u.unstable_IdlePriority,ul=null,Et=null;function Pf(e){if(Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(ul,e,void 0,(e.current.flags&128)===128)}catch{}}var mt=Math.clz32?Math.clz32:Mf,bf=Math.log,Rf=Math.LN2;function Mf(e){return e>>>=0,e===0?32:31-(bf(e)/Rf|0)|0}var al=64,cl=4194304;function vr(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 dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var h=a&~o;h!==0?r=vr(h):(i&=a,i!==0&&(r=vr(i)))}else a=n&~o,a!==0?r=vr(a):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-mt(t),o=1<<n,r|=e[n],t&=~o;return r}function Tf(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 Lf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-mt(i),h=1<<a,y=o[a];y===-1?((h&n)===0||(h&r)!==0)&&(o[a]=Tf(h,t)):y<=t&&(e.expiredLanes|=h),i&=~h}}function Wo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cu(){var e=al;return al<<=1,(al&4194240)===0&&(al=64),e}function Ho(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mt(t),e[t]=n}function Of(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-mt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Go(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ve=0;function Nu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ju,Ko,_u,Pu,bu,Qo=!1,fl=[],Ut=null,Bt=null,$t=null,yr=new Map,xr=new Map,Vt=[],If="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 Ru(e,t){switch(e){case"focusin":case"focusout":Ut=null;break;case"dragenter":case"dragleave":Bt=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":yr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xr.delete(t.pointerId)}}function wr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Or(t),t!==null&&Ko(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function zf(e,t,n,r,o){switch(t){case"focusin":return Ut=wr(Ut,e,t,n,r,o),!0;case"dragenter":return Bt=wr(Bt,e,t,n,r,o),!0;case"mouseover":return $t=wr($t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return yr.set(i,wr(yr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xr.set(i,wr(xr.get(i)||null,e,t,n,r,o)),!0}return!1}function Mu(e){var t=pn(e.target);if(t!==null){var n=fn(t);if(n!==null){if(t=n.tag,t===13){if(t=vu(n),t!==null){e.blockedOn=t,bu(e.priority,function(){_u(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Do=r,n.target.dispatchEvent(r),Do=null}else return t=Or(n),t!==null&&Ko(t),e.blockedOn=n,!1;t.shift()}return!0}function Tu(e,t,n){pl(e)&&n.delete(t)}function Df(){Qo=!1,Ut!==null&&pl(Ut)&&(Ut=null),Bt!==null&&pl(Bt)&&(Bt=null),$t!==null&&pl($t)&&($t=null),yr.forEach(Tu),xr.forEach(Tu)}function kr(e,t){e.blockedOn===t&&(e.blockedOn=null,Qo||(Qo=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Df)))}function Sr(e){function t(o){return kr(o,e)}if(0<fl.length){kr(fl[0],e);for(var n=1;n<fl.length;n++){var r=fl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ut!==null&&kr(Ut,e),Bt!==null&&kr(Bt,e),$t!==null&&kr($t,e),yr.forEach(t),xr.forEach(t),n=0;n<Vt.length;n++)r=Vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vt.length&&(n=Vt[0],n.blockedOn===null);)Mu(n),n.blockedOn===null&&Vt.shift()}var Mn=q.ReactCurrentBatchConfig,ml=!0;function Af(e,t,n,r){var o=ve,i=Mn.transition;Mn.transition=null;try{ve=1,Yo(e,t,n,r)}finally{ve=o,Mn.transition=i}}function Ff(e,t,n,r){var o=ve,i=Mn.transition;Mn.transition=null;try{ve=4,Yo(e,t,n,r)}finally{ve=o,Mn.transition=i}}function Yo(e,t,n,r){if(ml){var o=Xo(e,t,n,r);if(o===null)pi(e,t,r,hl,n),Ru(e,r);else if(zf(o,e,t,n,r))r.stopPropagation();else if(Ru(e,r),t&4&&-1<If.indexOf(e)){for(;o!==null;){var i=Or(o);if(i!==null&&ju(i),i=Xo(e,t,n,r),i===null&&pi(e,t,r,hl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else pi(e,t,r,null,n)}}var hl=null;function Xo(e,t,n,r){if(hl=null,e=Ao(r),e=pn(e),e!==null)if(t=fn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=vu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return hl=e,null}function Lu(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(jf()){case Vo:return 1;case Su:return 4;case sl:case _f:return 16;case Eu:return 536870912;default:return 16}default:return 16}}var Wt=null,Zo=null,vl=null;function Ou(){if(vl)return vl;var e,t=Zo,n=t.length,r,o="value"in Wt?Wt.value:Wt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return vl=o.slice(e,1<r?1-r:void 0)}function gl(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 yl(){return!0}function Iu(){return!1}function lt(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?yl:Iu,this.isPropagationStopped=Iu,this}return U(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yl)},persist:function(){},isPersistent:yl}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qo=lt(Tn),Er=U({},Tn,{view:0,detail:0}),Uf=lt(Er),Jo,ei,Cr,xl=U({},Er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ni,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!==Cr&&(Cr&&e.type==="mousemove"?(Jo=e.screenX-Cr.screenX,ei=e.screenY-Cr.screenY):ei=Jo=0,Cr=e),Jo)},movementY:function(e){return"movementY"in e?e.movementY:ei}}),zu=lt(xl),Bf=U({},xl,{dataTransfer:0}),$f=lt(Bf),Vf=U({},Er,{relatedTarget:0}),ti=lt(Vf),Wf=U({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hf=lt(Wf),Gf=U({},Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kf=lt(Gf),Qf=U({},Tn,{data:0}),Du=lt(Qf),Yf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xf={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"},Zf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zf[e])?!!t[e]:!1}function ni(){return qf}var Jf=U({},Er,{key:function(e){if(e.key){var t=Yf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ni,charCode:function(e){return e.type==="keypress"?gl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ep=lt(Jf),tp=U({},xl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Au=lt(tp),np=U({},Er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ni}),rp=lt(np),lp=U({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),op=lt(lp),ip=U({},xl,{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}),sp=lt(ip),up=[9,13,27,32],ri=m&&"CompositionEvent"in window,Nr=null;m&&"documentMode"in document&&(Nr=document.documentMode);var ap=m&&"TextEvent"in window&&!Nr,Fu=m&&(!ri||Nr&&8<Nr&&11>=Nr),Uu=" ",Bu=!1;function $u(e,t){switch(e){case"keyup":return up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function cp(e,t){switch(e){case"compositionend":return Vu(t);case"keypress":return t.which!==32?null:(Bu=!0,Uu);case"textInput":return e=t.data,e===Uu&&Bu?null:e;default:return null}}function dp(e,t){if(Ln)return e==="compositionend"||!ri&&$u(e,t)?(e=Ou(),vl=Zo=Wt=null,Ln=!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 Fu&&t.locale!=="ko"?null:t.data;default:return null}}var fp={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 Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fp[e.type]:t==="textarea"}function Hu(e,t,n,r){du(r),t=Cl(t,"onChange"),0<t.length&&(n=new qo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jr=null,_r=null;function pp(e){aa(e,0)}function wl(e){var t=An(e);if(Js(t))return e}function mp(e,t){if(e==="change")return t}var Gu=!1;if(m){var li;if(m){var oi="oninput"in document;if(!oi){var Ku=document.createElement("div");Ku.setAttribute("oninput","return;"),oi=typeof Ku.oninput=="function"}li=oi}else li=!1;Gu=li&&(!document.documentMode||9<document.documentMode)}function Qu(){jr&&(jr.detachEvent("onpropertychange",Yu),_r=jr=null)}function Yu(e){if(e.propertyName==="value"&&wl(_r)){var t=[];Hu(t,_r,e,Ao(e)),hu(pp,t)}}function hp(e,t,n){e==="focusin"?(Qu(),jr=t,_r=n,jr.attachEvent("onpropertychange",Yu)):e==="focusout"&&Qu()}function vp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wl(_r)}function gp(e,t){if(e==="click")return wl(t)}function yp(e,t){if(e==="input"||e==="change")return wl(t)}function xp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:xp;function Pr(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!j.call(t,o)||!ht(e[o],t[o]))return!1}return!0}function Xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zu(e,t){var n=Xu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xu(n)}}function qu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ju(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function ii(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 wp(e){var t=Ju(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qu(n.ownerDocument.documentElement,n)){if(r!==null&&ii(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Zu(n,i);var a=Zu(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kp=m&&"documentMode"in document&&11>=document.documentMode,On=null,si=null,br=null,ui=!1;function ea(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ui||On==null||On!==rl(r)||(r=On,"selectionStart"in r&&ii(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&Pr(br,r)||(br=r,r=Cl(si,"onSelect"),0<r.length&&(t=new qo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=On)))}function kl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var In={animationend:kl("Animation","AnimationEnd"),animationiteration:kl("Animation","AnimationIteration"),animationstart:kl("Animation","AnimationStart"),transitionend:kl("Transition","TransitionEnd")},ai={},ta={};m&&(ta=document.createElement("div").style,"AnimationEvent"in window||(delete In.animationend.animation,delete In.animationiteration.animation,delete In.animationstart.animation),"TransitionEvent"in window||delete In.transitionend.transition);function Sl(e){if(ai[e])return ai[e];if(!In[e])return e;var t=In[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ta)return ai[e]=t[n];return e}var na=Sl("animationend"),ra=Sl("animationiteration"),la=Sl("animationstart"),oa=Sl("transitionend"),ia=new Map,sa="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 Ht(e,t){ia.set(e,t),p(t,[e])}for(var ci=0;ci<sa.length;ci++){var di=sa[ci],Sp=di.toLowerCase(),Ep=di[0].toUpperCase()+di.slice(1);Ht(Sp,"on"+Ep)}Ht(na,"onAnimationEnd"),Ht(ra,"onAnimationIteration"),Ht(la,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(oa,"onTransitionEnd"),g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="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(" "),Cp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function ua(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Sf(r,t,void 0,e),e.currentTarget=null}function aa(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var h=r[a],y=h.instance,_=h.currentTarget;if(h=h.listener,y!==i&&o.isPropagationStopped())break e;ua(o,h,_),i=y}else for(a=0;a<r.length;a++){if(h=r[a],y=h.instance,_=h.currentTarget,h=h.listener,y!==i&&o.isPropagationStopped())break e;ua(o,h,_),i=y}}}if(il)throw e=$o,il=!1,$o=null,e}function we(e,t){var n=t[xi];n===void 0&&(n=t[xi]=new Set);var r=e+"__bubble";n.has(r)||(ca(t,e,2,!1),n.add(r))}function fi(e,t,n){var r=0;t&&(r|=4),ca(n,e,r,t)}var El="_reactListening"+Math.random().toString(36).slice(2);function Mr(e){if(!e[El]){e[El]=!0,c.forEach(function(n){n!=="selectionchange"&&(Cp.has(n)||fi(n,!1,e),fi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[El]||(t[El]=!0,fi("selectionchange",!1,t))}}function ca(e,t,n,r){switch(Lu(t)){case 1:var o=Af;break;case 4:o=Ff;break;default:o=Yo}n=o.bind(null,t,n,e),o=void 0,!Bo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function pi(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var h=r.stateNode.containerInfo;if(h===o||h.nodeType===8&&h.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var y=a.tag;if((y===3||y===4)&&(y=a.stateNode.containerInfo,y===o||y.nodeType===8&&y.parentNode===o))return;a=a.return}for(;h!==null;){if(a=pn(h),a===null)return;if(y=a.tag,y===5||y===6){r=i=a;continue e}h=h.parentNode}}r=r.return}hu(function(){var _=i,O=Ao(n),I=[];e:{var L=ia.get(e);if(L!==void 0){var $=qo,K=e;switch(e){case"keypress":if(gl(n)===0)break e;case"keydown":case"keyup":$=ep;break;case"focusin":K="focus",$=ti;break;case"focusout":K="blur",$=ti;break;case"beforeblur":case"afterblur":$=ti;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=$f;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=rp;break;case na:case ra:case la:$=Hf;break;case oa:$=op;break;case"scroll":$=Uf;break;case"wheel":$=sp;break;case"copy":case"cut":case"paste":$=Kf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Au}var Q=(t&4)!==0,Me=!Q&&e==="scroll",S=Q?L!==null?L+"Capture":null:L;Q=[];for(var x=_,C;x!==null;){C=x;var z=C.stateNode;if(C.tag===5&&z!==null&&(C=z,S!==null&&(z=pr(x,S),z!=null&&Q.push(Tr(x,z,C)))),Me)break;x=x.return}0<Q.length&&(L=new $(L,K,null,n,O),I.push({event:L,listeners:Q}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",L&&n!==Do&&(K=n.relatedTarget||n.fromElement)&&(pn(K)||K[Rt]))break e;if(($||L)&&(L=O.window===O?O:(L=O.ownerDocument)?L.defaultView||L.parentWindow:window,$?(K=n.relatedTarget||n.toElement,$=_,K=K?pn(K):null,K!==null&&(Me=fn(K),K!==Me||K.tag!==5&&K.tag!==6)&&(K=null)):($=null,K=_),$!==K)){if(Q=zu,z="onMouseLeave",S="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(Q=Au,z="onPointerLeave",S="onPointerEnter",x="pointer"),Me=$==null?L:An($),C=K==null?L:An(K),L=new Q(z,x+"leave",$,n,O),L.target=Me,L.relatedTarget=C,z=null,pn(O)===_&&(Q=new Q(S,x+"enter",K,n,O),Q.target=C,Q.relatedTarget=Me,z=Q),Me=z,$&&K)t:{for(Q=$,S=K,x=0,C=Q;C;C=zn(C))x++;for(C=0,z=S;z;z=zn(z))C++;for(;0<x-C;)Q=zn(Q),x--;for(;0<C-x;)S=zn(S),C--;for(;x--;){if(Q===S||S!==null&&Q===S.alternate)break t;Q=zn(Q),S=zn(S)}Q=null}else Q=null;$!==null&&da(I,L,$,Q,!1),K!==null&&Me!==null&&da(I,Me,K,Q,!0)}}e:{if(L=_?An(_):window,$=L.nodeName&&L.nodeName.toLowerCase(),$==="select"||$==="input"&&L.type==="file")var X=mp;else if(Wu(L))if(Gu)X=yp;else{X=vp;var J=hp}else($=L.nodeName)&&$.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(X=gp);if(X&&(X=X(e,_))){Hu(I,X,n,O);break e}J&&J(e,L,_),e==="focusout"&&(J=L._wrapperState)&&J.controlled&&L.type==="number"&&To(L,"number",L.value)}switch(J=_?An(_):window,e){case"focusin":(Wu(J)||J.contentEditable==="true")&&(On=J,si=_,br=null);break;case"focusout":br=si=On=null;break;case"mousedown":ui=!0;break;case"contextmenu":case"mouseup":case"dragend":ui=!1,ea(I,n,O);break;case"selectionchange":if(kp)break;case"keydown":case"keyup":ea(I,n,O)}var ee;if(ri)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else Ln?$u(e,n)&&(oe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(oe="onCompositionStart");oe&&(Fu&&n.locale!=="ko"&&(Ln||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&Ln&&(ee=Ou()):(Wt=O,Zo="value"in Wt?Wt.value:Wt.textContent,Ln=!0)),J=Cl(_,oe),0<J.length&&(oe=new Du(oe,e,null,n,O),I.push({event:oe,listeners:J}),ee?oe.data=ee:(ee=Vu(n),ee!==null&&(oe.data=ee)))),(ee=ap?cp(e,n):dp(e,n))&&(_=Cl(_,"onBeforeInput"),0<_.length&&(O=new Du("onBeforeInput","beforeinput",null,n,O),I.push({event:O,listeners:_}),O.data=ee))}aa(I,t)})}function Tr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Cl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=pr(e,n),i!=null&&r.unshift(Tr(e,i,o)),i=pr(e,t),i!=null&&r.push(Tr(e,i,o))),e=e.return}return r}function zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function da(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var h=n,y=h.alternate,_=h.stateNode;if(y!==null&&y===r)break;h.tag===5&&_!==null&&(h=_,o?(y=pr(n,i),y!=null&&a.unshift(Tr(n,y,h))):o||(y=pr(n,i),y!=null&&a.push(Tr(n,y,h)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Np=/\r\n?/g,jp=/\u0000|\uFFFD/g;function fa(e){return(typeof e=="string"?e:""+e).replace(Np,`
|
|
`).replace(jp,"")}function Nl(e,t,n){if(t=fa(t),fa(e)!==t&&n)throw Error(s(425))}function jl(){}var mi=null,hi=null;function vi(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 gi=typeof setTimeout=="function"?setTimeout:void 0,_p=typeof clearTimeout=="function"?clearTimeout:void 0,pa=typeof Promise=="function"?Promise:void 0,Pp=typeof queueMicrotask=="function"?queueMicrotask:typeof pa<"u"?function(e){return pa.resolve(null).then(e).catch(bp)}:gi;function bp(e){setTimeout(function(){throw e})}function yi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Sr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Sr(t)}function Gt(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 ma(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Dn=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Dn,Lr="__reactProps$"+Dn,Rt="__reactContainer$"+Dn,xi="__reactEvents$"+Dn,Rp="__reactListeners$"+Dn,Mp="__reactHandles$"+Dn;function pn(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Rt]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ma(e);e!==null;){if(n=e[Ct])return n;e=ma(e)}return t}e=n,n=e.parentNode}return null}function Or(e){return e=e[Ct]||e[Rt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function An(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function _l(e){return e[Lr]||null}var wi=[],Fn=-1;function Kt(e){return{current:e}}function ke(e){0>Fn||(e.current=wi[Fn],wi[Fn]=null,Fn--)}function ge(e,t){Fn++,wi[Fn]=e.current,e.current=t}var Qt={},He=Kt(Qt),qe=Kt(!1),mn=Qt;function Un(e,t){var n=e.type.contextTypes;if(!n)return Qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function Pl(){ke(qe),ke(He)}function ha(e,t,n){if(He.current!==Qt)throw Error(s(168));ge(He,t),ge(qe,n)}function va(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(s(108,re(e)||"Unknown",o));return U({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,mn=He.current,ge(He,e),ge(qe,qe.current),!0}function ga(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=va(e,t,mn),r.__reactInternalMemoizedMergedChildContext=e,ke(qe),ke(He),ge(He,e)):ke(qe),ge(qe,n)}var Mt=null,Rl=!1,ki=!1;function ya(e){Mt===null?Mt=[e]:Mt.push(e)}function Tp(e){Rl=!0,ya(e)}function Yt(){if(!ki&&Mt!==null){ki=!0;var e=0,t=ve;try{var n=Mt;for(ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mt=null,Rl=!1}catch(o){throw Mt!==null&&(Mt=Mt.slice(e+1)),wu(Vo,Yt),o}finally{ve=t,ki=!1}}return null}var Bn=[],$n=0,Ml=null,Tl=0,ut=[],at=0,hn=null,Tt=1,Lt="";function vn(e,t){Bn[$n++]=Tl,Bn[$n++]=Ml,Ml=e,Tl=t}function xa(e,t,n){ut[at++]=Tt,ut[at++]=Lt,ut[at++]=hn,hn=e;var r=Tt;e=Lt;var o=32-mt(r)-1;r&=~(1<<o),n+=1;var i=32-mt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Tt=1<<32-mt(t)+o|n<<o|r,Lt=i+e}else Tt=1<<i|n<<o|r,Lt=e}function Si(e){e.return!==null&&(vn(e,1),xa(e,1,0))}function Ei(e){for(;e===Ml;)Ml=Bn[--$n],Bn[$n]=null,Tl=Bn[--$n],Bn[$n]=null;for(;e===hn;)hn=ut[--at],ut[at]=null,Lt=ut[--at],ut[at]=null,Tt=ut[--at],ut[at]=null}var ot=null,it=null,Ee=!1,vt=null;function wa(e,t){var n=pt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ka(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ot=e,it=Gt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ot=e,it=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=hn!==null?{id:Tt,overflow:Lt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ot=e,it=null,!0):!1;default:return!1}}function Ci(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ni(e){if(Ee){var t=it;if(t){var n=t;if(!ka(e,t)){if(Ci(e))throw Error(s(418));t=Gt(n.nextSibling);var r=ot;t&&ka(e,t)?wa(r,n):(e.flags=e.flags&-4097|2,Ee=!1,ot=e)}}else{if(Ci(e))throw Error(s(418));e.flags=e.flags&-4097|2,Ee=!1,ot=e}}}function Sa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Ll(e){if(e!==ot)return!1;if(!Ee)return Sa(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vi(e.type,e.memoizedProps)),t&&(t=it)){if(Ci(e))throw Ea(),Error(s(418));for(;t;)wa(e,t),t=Gt(t.nextSibling)}if(Sa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){it=Gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}it=null}}else it=ot?Gt(e.stateNode.nextSibling):null;return!0}function Ea(){for(var e=it;e;)e=Gt(e.nextSibling)}function Vn(){it=ot=null,Ee=!1}function ji(e){vt===null?vt=[e]:vt.push(e)}var Lp=q.ReactCurrentBatchConfig;function Ir(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var h=o.refs;a===null?delete h[i]:h[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Ol(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ca(e){var t=e._init;return t(e._payload)}function Na(e){function t(S,x){if(e){var C=S.deletions;C===null?(S.deletions=[x],S.flags|=16):C.push(x)}}function n(S,x){if(!e)return null;for(;x!==null;)t(S,x),x=x.sibling;return null}function r(S,x){for(S=new Map;x!==null;)x.key!==null?S.set(x.key,x):S.set(x.index,x),x=x.sibling;return S}function o(S,x){return S=rn(S,x),S.index=0,S.sibling=null,S}function i(S,x,C){return S.index=C,e?(C=S.alternate,C!==null?(C=C.index,C<x?(S.flags|=2,x):C):(S.flags|=2,x)):(S.flags|=1048576,x)}function a(S){return e&&S.alternate===null&&(S.flags|=2),S}function h(S,x,C,z){return x===null||x.tag!==6?(x=gs(C,S.mode,z),x.return=S,x):(x=o(x,C),x.return=S,x)}function y(S,x,C,z){var X=C.type;return X===se?O(S,x,C.props.children,z,C.key):x!==null&&(x.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===je&&Ca(X)===x.type)?(z=o(x,C.props),z.ref=Ir(S,x,C),z.return=S,z):(z=lo(C.type,C.key,C.props,null,S.mode,z),z.ref=Ir(S,x,C),z.return=S,z)}function _(S,x,C,z){return x===null||x.tag!==4||x.stateNode.containerInfo!==C.containerInfo||x.stateNode.implementation!==C.implementation?(x=ys(C,S.mode,z),x.return=S,x):(x=o(x,C.children||[]),x.return=S,x)}function O(S,x,C,z,X){return x===null||x.tag!==7?(x=Cn(C,S.mode,z,X),x.return=S,x):(x=o(x,C),x.return=S,x)}function I(S,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return x=gs(""+x,S.mode,C),x.return=S,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case le:return C=lo(x.type,x.key,x.props,null,S.mode,C),C.ref=Ir(S,null,x),C.return=S,C;case ne:return x=ys(x,S.mode,C),x.return=S,x;case je:var z=x._init;return I(S,z(x._payload),C)}if(cr(x)||Z(x))return x=Cn(x,S.mode,C,null),x.return=S,x;Ol(S,x)}return null}function L(S,x,C,z){var X=x!==null?x.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return X!==null?null:h(S,x,""+C,z);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case le:return C.key===X?y(S,x,C,z):null;case ne:return C.key===X?_(S,x,C,z):null;case je:return X=C._init,L(S,x,X(C._payload),z)}if(cr(C)||Z(C))return X!==null?null:O(S,x,C,z,null);Ol(S,C)}return null}function $(S,x,C,z,X){if(typeof z=="string"&&z!==""||typeof z=="number")return S=S.get(C)||null,h(x,S,""+z,X);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case le:return S=S.get(z.key===null?C:z.key)||null,y(x,S,z,X);case ne:return S=S.get(z.key===null?C:z.key)||null,_(x,S,z,X);case je:var J=z._init;return $(S,x,C,J(z._payload),X)}if(cr(z)||Z(z))return S=S.get(C)||null,O(x,S,z,X,null);Ol(x,z)}return null}function K(S,x,C,z){for(var X=null,J=null,ee=x,oe=x=0,Ue=null;ee!==null&&oe<C.length;oe++){ee.index>oe?(Ue=ee,ee=null):Ue=ee.sibling;var me=L(S,ee,C[oe],z);if(me===null){ee===null&&(ee=Ue);break}e&&ee&&me.alternate===null&&t(S,ee),x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me,ee=Ue}if(oe===C.length)return n(S,ee),Ee&&vn(S,oe),X;if(ee===null){for(;oe<C.length;oe++)ee=I(S,C[oe],z),ee!==null&&(x=i(ee,x,oe),J===null?X=ee:J.sibling=ee,J=ee);return Ee&&vn(S,oe),X}for(ee=r(S,ee);oe<C.length;oe++)Ue=$(ee,S,oe,C[oe],z),Ue!==null&&(e&&Ue.alternate!==null&&ee.delete(Ue.key===null?oe:Ue.key),x=i(Ue,x,oe),J===null?X=Ue:J.sibling=Ue,J=Ue);return e&&ee.forEach(function(ln){return t(S,ln)}),Ee&&vn(S,oe),X}function Q(S,x,C,z){var X=Z(C);if(typeof X!="function")throw Error(s(150));if(C=X.call(C),C==null)throw Error(s(151));for(var J=X=null,ee=x,oe=x=0,Ue=null,me=C.next();ee!==null&&!me.done;oe++,me=C.next()){ee.index>oe?(Ue=ee,ee=null):Ue=ee.sibling;var ln=L(S,ee,me.value,z);if(ln===null){ee===null&&(ee=Ue);break}e&&ee&&ln.alternate===null&&t(S,ee),x=i(ln,x,oe),J===null?X=ln:J.sibling=ln,J=ln,ee=Ue}if(me.done)return n(S,ee),Ee&&vn(S,oe),X;if(ee===null){for(;!me.done;oe++,me=C.next())me=I(S,me.value,z),me!==null&&(x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me);return Ee&&vn(S,oe),X}for(ee=r(S,ee);!me.done;oe++,me=C.next())me=$(ee,S,oe,me.value,z),me!==null&&(e&&me.alternate!==null&&ee.delete(me.key===null?oe:me.key),x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me);return e&&ee.forEach(function(fm){return t(S,fm)}),Ee&&vn(S,oe),X}function Me(S,x,C,z){if(typeof C=="object"&&C!==null&&C.type===se&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case le:e:{for(var X=C.key,J=x;J!==null;){if(J.key===X){if(X=C.type,X===se){if(J.tag===7){n(S,J.sibling),x=o(J,C.props.children),x.return=S,S=x;break e}}else if(J.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===je&&Ca(X)===J.type){n(S,J.sibling),x=o(J,C.props),x.ref=Ir(S,J,C),x.return=S,S=x;break e}n(S,J);break}else t(S,J);J=J.sibling}C.type===se?(x=Cn(C.props.children,S.mode,z,C.key),x.return=S,S=x):(z=lo(C.type,C.key,C.props,null,S.mode,z),z.ref=Ir(S,x,C),z.return=S,S=z)}return a(S);case ne:e:{for(J=C.key;x!==null;){if(x.key===J)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(S,x.sibling),x=o(x,C.children||[]),x.return=S,S=x;break e}else{n(S,x);break}else t(S,x);x=x.sibling}x=ys(C,S.mode,z),x.return=S,S=x}return a(S);case je:return J=C._init,Me(S,x,J(C._payload),z)}if(cr(C))return K(S,x,C,z);if(Z(C))return Q(S,x,C,z);Ol(S,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(S,x.sibling),x=o(x,C),x.return=S,S=x):(n(S,x),x=gs(C,S.mode,z),x.return=S,S=x),a(S)):n(S,x)}return Me}var Wn=Na(!0),ja=Na(!1),Il=Kt(null),zl=null,Hn=null,_i=null;function Pi(){_i=Hn=zl=null}function bi(e){var t=Il.current;ke(Il),e._currentValue=t}function Ri(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gn(e,t){zl=e,_i=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(et=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},Hn===null){if(zl===null)throw Error(s(308));Hn=e,zl.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return t}var gn=null;function Mi(e){gn===null?gn=[e]:gn.push(e)}function _a(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ot(e,r)}function Ot(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xt=!1;function Ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pa(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 Zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(pe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ot(e,n)}return o=r.interleaved,o===null?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ot(e,n)}function Dl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Go(e,n)}}function ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Al(e,t,n,r){var o=e.updateQueue;Xt=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,h=o.shared.pending;if(h!==null){o.shared.pending=null;var y=h,_=y.next;y.next=null,a===null?i=_:a.next=_,a=y;var O=e.alternate;O!==null&&(O=O.updateQueue,h=O.lastBaseUpdate,h!==a&&(h===null?O.firstBaseUpdate=_:h.next=_,O.lastBaseUpdate=y))}if(i!==null){var I=o.baseState;a=0,O=_=y=null,h=i;do{var L=h.lane,$=h.eventTime;if((r&L)===L){O!==null&&(O=O.next={eventTime:$,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var K=e,Q=h;switch(L=t,$=n,Q.tag){case 1:if(K=Q.payload,typeof K=="function"){I=K.call($,I,L);break e}I=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=Q.payload,L=typeof K=="function"?K.call($,I,L):K,L==null)break e;I=U({},I,L);break e;case 2:Xt=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,L=o.effects,L===null?o.effects=[h]:L.push(h))}else $={eventTime:$,lane:L,tag:h.tag,payload:h.payload,callback:h.callback,next:null},O===null?(_=O=$,y=I):O=O.next=$,a|=L;if(h=h.next,h===null){if(h=o.shared.pending,h===null)break;L=h,h=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);if(O===null&&(y=I),o.baseState=y,o.firstBaseUpdate=_,o.lastBaseUpdate=O,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);wn|=a,e.lanes=a,e.memoizedState=I}}function Ra(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(s(191,o));o.call(r)}}}var zr={},Nt=Kt(zr),Dr=Kt(zr),Ar=Kt(zr);function yn(e){if(e===zr)throw Error(s(174));return e}function Li(e,t){switch(ge(Ar,t),ge(Dr,e),ge(Nt,zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oo(t,e)}ke(Nt),ge(Nt,t)}function Kn(){ke(Nt),ke(Dr),ke(Ar)}function Ma(e){yn(Ar.current);var t=yn(Nt.current),n=Oo(t,e.type);t!==n&&(ge(Dr,e),ge(Nt,n))}function Oi(e){Dr.current===e&&(ke(Nt),ke(Dr))}var _e=Kt(0);function Fl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Ii=[];function zi(){for(var e=0;e<Ii.length;e++)Ii[e]._workInProgressVersionPrimary=null;Ii.length=0}var Ul=q.ReactCurrentDispatcher,Di=q.ReactCurrentBatchConfig,xn=0,Pe=null,Ie=null,Ae=null,Bl=!1,Fr=!1,Ur=0,Op=0;function Ge(){throw Error(s(321))}function Ai(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ht(e[n],t[n]))return!1;return!0}function Fi(e,t,n,r,o,i){if(xn=i,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ul.current=e===null||e.memoizedState===null?Ap:Fp,e=n(r,o),Fr){i=0;do{if(Fr=!1,Ur=0,25<=i)throw Error(s(301));i+=1,Ae=Ie=null,t.updateQueue=null,Ul.current=Up,e=n(r,o)}while(Fr)}if(Ul.current=Wl,t=Ie!==null&&Ie.next!==null,xn=0,Ae=Ie=Pe=null,Bl=!1,t)throw Error(s(300));return e}function Ui(){var e=Ur!==0;return Ur=0,e}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?Pe.memoizedState=Ae=e:Ae=Ae.next=e,Ae}function dt(){if(Ie===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=Ae===null?Pe.memoizedState:Ae.next;if(t!==null)Ae=t,Ie=e;else{if(e===null)throw Error(s(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Ae===null?Pe.memoizedState=Ae=e:Ae=Ae.next=e}return Ae}function Br(e,t){return typeof t=="function"?t(e):t}function Bi(e){var t=dt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=Ie,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var h=a=null,y=null,_=i;do{var O=_.lane;if((xn&O)===O)y!==null&&(y=y.next={lane:0,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),r=_.hasEagerState?_.eagerState:e(r,_.action);else{var I={lane:O,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null};y===null?(h=y=I,a=r):y=y.next=I,Pe.lanes|=O,wn|=O}_=_.next}while(_!==null&&_!==i);y===null?a=r:y.next=h,ht(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=y,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Pe.lanes|=i,wn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $i(e){var t=dt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);ht(i,t.memoizedState)||(et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ta(){}function La(e,t){var n=Pe,r=dt(),o=t(),i=!ht(r.memoizedState,o);if(i&&(r.memoizedState=o,et=!0),r=r.queue,Vi(za.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ae!==null&&Ae.memoizedState.tag&1){if(n.flags|=2048,$r(9,Ia.bind(null,n,r,o,t),void 0,null),Fe===null)throw Error(s(349));(xn&30)!==0||Oa(n,t,o)}return o}function Oa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ia(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&Aa(e)}function za(e,t,n){return n(function(){Da(t)&&Aa(e)})}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ht(e,n)}catch{return!0}}function Aa(e){var t=Ot(e,1);t!==null&&wt(t,e,1,-1)}function Fa(e){var t=jt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:e},t.queue=e,e=e.dispatch=Dp.bind(null,Pe,e),[t.memoizedState,e]}function $r(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ua(){return dt().memoizedState}function $l(e,t,n,r){var o=jt();Pe.flags|=e,o.memoizedState=$r(1|t,n,void 0,r===void 0?null:r)}function Vl(e,t,n,r){var o=dt();r=r===void 0?null:r;var i=void 0;if(Ie!==null){var a=Ie.memoizedState;if(i=a.destroy,r!==null&&Ai(r,a.deps)){o.memoizedState=$r(t,n,i,r);return}}Pe.flags|=e,o.memoizedState=$r(1|t,n,i,r)}function Ba(e,t){return $l(8390656,8,e,t)}function Vi(e,t){return Vl(2048,8,e,t)}function $a(e,t){return Vl(4,2,e,t)}function Va(e,t){return Vl(4,4,e,t)}function Wa(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 Ha(e,t,n){return n=n!=null?n.concat([e]):null,Vl(4,4,Wa.bind(null,t,e),n)}function Wi(){}function Ga(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ai(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ka(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ai(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return(xn&21)===0?(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n):(ht(n,t)||(n=Cu(),Pe.lanes|=n,wn|=n,e.baseState=!0),t)}function Ip(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var r=Di.transition;Di.transition={};try{e(!1),t()}finally{ve=n,Di.transition=r}}function Ya(){return dt().memoizedState}function zp(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Za(t,n);else if(n=_a(e,t,n,r),n!==null){var o=Ze();wt(n,e,r,o),qa(n,t,r)}}function Dp(e,t,n){var r=tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Za(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,h=i(a,n);if(o.hasEagerState=!0,o.eagerState=h,ht(h,a)){var y=t.interleaved;y===null?(o.next=o,Mi(t)):(o.next=y.next,y.next=o),t.interleaved=o;return}}catch{}finally{}n=_a(e,t,o,r),n!==null&&(o=Ze(),wt(n,e,r,o),qa(n,t,r))}}function Xa(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Za(e,t){Fr=Bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qa(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Go(e,n)}}var Wl={readContext:ct,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Ap={readContext:ct,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Ba,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$l(4194308,4,Wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $l(4194308,4,e,t)},useInsertionEffect:function(e,t){return $l(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=zp.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:Fa,useDebugValue:Wi,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Ip.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pe,o=jt();if(Ee){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Fe===null)throw Error(s(349));(xn&30)!==0||Oa(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ba(za.bind(null,r,i,e),[e]),r.flags|=2048,$r(9,Ia.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=Fe.identifierPrefix;if(Ee){var n=Lt,r=Tt;n=(r&~(1<<32-mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ur++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Op++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Fp={readContext:ct,useCallback:Ga,useContext:ct,useEffect:Vi,useImperativeHandle:Ha,useInsertionEffect:$a,useLayoutEffect:Va,useMemo:Ka,useReducer:Bi,useRef:Ua,useState:function(){return Bi(Br)},useDebugValue:Wi,useDeferredValue:function(e){var t=dt();return Qa(t,Ie.memoizedState,e)},useTransition:function(){var e=Bi(Br)[0],t=dt().memoizedState;return[e,t]},useMutableSource:Ta,useSyncExternalStore:La,useId:Ya,unstable_isNewReconciler:!1},Up={readContext:ct,useCallback:Ga,useContext:ct,useEffect:Vi,useImperativeHandle:Ha,useInsertionEffect:$a,useLayoutEffect:Va,useMemo:Ka,useReducer:$i,useRef:Ua,useState:function(){return $i(Br)},useDebugValue:Wi,useDeferredValue:function(e){var t=dt();return Ie===null?t.memoizedState=e:Qa(t,Ie.memoizedState,e)},useTransition:function(){var e=$i(Br)[0],t=dt().memoizedState;return[e,t]},useMutableSource:Ta,useSyncExternalStore:La,useId:Ya,unstable_isNewReconciler:!1};function gt(e,t){if(e&&e.defaultProps){t=U({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Hi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:U({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hl={isMounted:function(e){return(e=e._reactInternals)?fn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ze(),o=tn(e),i=It(r,o);i.payload=t,n!=null&&(i.callback=n),t=Zt(e,i,o),t!==null&&(wt(t,e,o,r),Dl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ze(),o=tn(e),i=It(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Zt(e,i,o),t!==null&&(wt(t,e,o,r),Dl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ze(),r=tn(e),o=It(n,r);o.tag=2,t!=null&&(o.callback=t),t=Zt(e,o,r),t!==null&&(wt(t,e,r,n),Dl(t,e,r))}};function Ja(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(o,i):!0}function ec(e,t,n){var r=!1,o=Qt,i=t.contextType;return typeof i=="object"&&i!==null?i=ct(i):(o=Je(t)?mn:He.current,r=t.contextTypes,i=(r=r!=null)?Un(e,o):Qt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Hl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function tc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hl.enqueueReplaceState(t,t.state,null)}function Gi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ti(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=ct(i):(i=Je(t)?mn:He.current,o.context=Un(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Hi(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Hl.enqueueReplaceState(o,o.state,null),Al(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Qn(e,t){try{var n="",r=t;do n+=D(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
Error generating stack: `+i.message+`
|
|
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ki(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bp=typeof WeakMap=="function"?WeakMap:Map;function nc(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,as=r),Qi(e,t)},n}function rc(e,t,n){n=It(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Qi(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Qi(e,t),typeof r!="function"&&(Jt===null?Jt=new Set([this]):Jt.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function lc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bp;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=tm.bind(null,e,t,n),t.then(e,e))}function oc(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 ic(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=It(-1,1),t.tag=2,Zt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var $p=q.ReactCurrentOwner,et=!1;function Xe(e,t,n,r){t.child=e===null?ja(t,null,n,r):Wn(t,e.child,n,r)}function sc(e,t,n,r,o){n=n.render;var i=t.ref;return Gn(t,o),r=Fi(e,t,n,r,i,o),n=Ui(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zt(e,t,o)):(Ee&&n&&Si(t),t.flags|=1,Xe(e,t,r,o),t.child)}function uc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!vs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ac(e,t,i,r,o)):(e=lo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Pr,n(a,r)&&e.ref===t.ref)return zt(e,t,o)}return t.flags|=1,e=rn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Pr(i,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,zt(e,t,o)}return Yi(e,t,n,r,o)}function cc(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Xn,st),st|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Xn,st),st|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(Xn,st),st|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(Xn,st),st|=r;return Xe(e,t,o,n),t.child}function dc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yi(e,t,n,r,o){var i=Je(n)?mn:He.current;return i=Un(t,i),Gn(t,o),n=Fi(e,t,n,r,i,o),r=Ui(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zt(e,t,o)):(Ee&&r&&Si(t),t.flags|=1,Xe(e,t,n,o),t.child)}function fc(e,t,n,r,o){if(Je(n)){var i=!0;bl(t)}else i=!1;if(Gn(t,o),t.stateNode===null)Kl(e,t),ec(t,n,r),Gi(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,h=t.memoizedProps;a.props=h;var y=a.context,_=n.contextType;typeof _=="object"&&_!==null?_=ct(_):(_=Je(n)?mn:He.current,_=Un(t,_));var O=n.getDerivedStateFromProps,I=typeof O=="function"||typeof a.getSnapshotBeforeUpdate=="function";I||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(h!==r||y!==_)&&tc(t,a,r,_),Xt=!1;var L=t.memoizedState;a.state=L,Al(t,r,a,o),y=t.memoizedState,h!==r||L!==y||qe.current||Xt?(typeof O=="function"&&(Hi(t,n,O,r),y=t.memoizedState),(h=Xt||Ja(t,n,h,r,L,y,_))?(I||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=_,r=h):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pa(e,t),h=t.memoizedProps,_=t.type===t.elementType?h:gt(t.type,h),a.props=_,I=t.pendingProps,L=a.context,y=n.contextType,typeof y=="object"&&y!==null?y=ct(y):(y=Je(n)?mn:He.current,y=Un(t,y));var $=n.getDerivedStateFromProps;(O=typeof $=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(h!==I||L!==y)&&tc(t,a,r,y),Xt=!1,L=t.memoizedState,a.state=L,Al(t,r,a,o);var K=t.memoizedState;h!==I||L!==K||qe.current||Xt?(typeof $=="function"&&(Hi(t,n,$,r),K=t.memoizedState),(_=Xt||Ja(t,n,_,r,L,K,y)||!1)?(O||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,K,y),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,K,y)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=K),a.props=r,a.state=K,a.context=y,r=_):(typeof a.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),r=!1)}return Xi(e,t,n,r,i,o)}function Xi(e,t,n,r,o,i){dc(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&ga(t,n,!1),zt(e,t,i);r=t.stateNode,$p.current=t;var h=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Wn(t,e.child,null,i),t.child=Wn(t,null,h,i)):Xe(e,t,h,i),t.memoizedState=r.state,o&&ga(t,n,!0),t.child}function pc(e){var t=e.stateNode;t.pendingContext?ha(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ha(e,t.context,!1),Li(e,t.containerInfo)}function mc(e,t,n,r,o){return Vn(),ji(o),t.flags|=256,Xe(e,t,n,r),t.child}var Zi={dehydrated:null,treeContext:null,retryLane:0};function qi(e){return{baseLanes:e,cachePool:null,transitions:null}}function hc(e,t,n){var r=t.pendingProps,o=_e.current,i=!1,a=(t.flags&128)!==0,h;if((h=a)||(h=e!==null&&e.memoizedState===null?!1:(o&2)!==0),h?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(_e,o&1),e===null)return Ni(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=oo(a,r,0,null),e=Cn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=qi(n),t.memoizedState=Zi,e):Ji(t,a));if(o=e.memoizedState,o!==null&&(h=o.dehydrated,h!==null))return Vp(e,t,a,r,h,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,h=o.sibling;var y={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=y,t.deletions=null):(r=rn(o,y),r.subtreeFlags=o.subtreeFlags&14680064),h!==null?i=rn(h,i):(i=Cn(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?qi(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Zi,r}return i=e.child,e=i.sibling,r=rn(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ji(e,t){return t=oo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gl(e,t,n,r){return r!==null&&ji(r),Wn(t,e.child,null,n),e=Ji(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vp(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Ki(Error(s(422))),Gl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=oo({mode:"visible",children:r.children},o,0,null),i=Cn(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Wn(t,e.child,null,a),t.child.memoizedState=qi(a),t.memoizedState=Zi,i);if((t.mode&1)===0)return Gl(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var h=r.dgst;return r=h,i=Error(s(419)),r=Ki(i,r,void 0),Gl(e,t,a,r)}if(h=(a&e.childLanes)!==0,et||h){if(r=Fe,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ot(e,o),wt(r,e,o,-1))}return hs(),r=Ki(Error(s(421))),Gl(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=nm.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,it=Gt(o.nextSibling),ot=t,Ee=!0,vt=null,e!==null&&(ut[at++]=Tt,ut[at++]=Lt,ut[at++]=hn,Tt=e.id,Lt=e.overflow,hn=t),t=Ji(t,r.children),t.flags|=4096,t)}function vc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ri(e.return,t,n)}function es(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function gc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Xe(e,t,r.children,n),r=_e.current,(r&2)!==0)r=r&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&&vc(e,n,t);else if(e.tag===19)vc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(_e,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Fl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),es(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Fl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}es(t,!0,n,null,i);break;case"together":es(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Wp(e,t,n){switch(t.tag){case 3:pc(t),Vn();break;case 5:Ma(t);break;case 1:Je(t.type)&&bl(t);break;case 4:Li(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(Il,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(_e,_e.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?hc(e,t,n):(ge(_e,_e.current&1),e=zt(e,t,n),e!==null?e.sibling:null);ge(_e,_e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return gc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(_e,_e.current),r)break;return null;case 22:case 23:return t.lanes=0,cc(e,t,n)}return zt(e,t,n)}var yc,ts,xc,wc;yc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ts=function(){},xc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,yn(Nt.current);var i=null;switch(n){case"input":o=Ro(e,o),r=Ro(e,r),i=[];break;case"select":o=U({},o,{value:void 0}),r=U({},r,{value:void 0}),i=[];break;case"textarea":o=Lo(e,o),r=Lo(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}Io(n,r);var a;n=null;for(_ in o)if(!r.hasOwnProperty(_)&&o.hasOwnProperty(_)&&o[_]!=null)if(_==="style"){var h=o[_];for(a in h)h.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else _!=="dangerouslySetInnerHTML"&&_!=="children"&&_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(d.hasOwnProperty(_)?i||(i=[]):(i=i||[]).push(_,null));for(_ in r){var y=r[_];if(h=o!=null?o[_]:void 0,r.hasOwnProperty(_)&&y!==h&&(y!=null||h!=null))if(_==="style")if(h){for(a in h)!h.hasOwnProperty(a)||y&&y.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in y)y.hasOwnProperty(a)&&h[a]!==y[a]&&(n||(n={}),n[a]=y[a])}else n||(i||(i=[]),i.push(_,n)),n=y;else _==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,h=h?h.__html:void 0,y!=null&&h!==y&&(i=i||[]).push(_,y)):_==="children"?typeof y!="string"&&typeof y!="number"||(i=i||[]).push(_,""+y):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&(d.hasOwnProperty(_)?(y!=null&&_==="onScroll"&&we("scroll",e),i||h===y||(i=[])):(i=i||[]).push(_,y))}n&&(i=i||[]).push("style",n);var _=i;(t.updateQueue=_)&&(t.flags|=4)}},wc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vr(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hp(e,t,n){var r=t.pendingProps;switch(Ei(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Je(t.type)&&Pl(),Ke(t),null;case 3:return r=t.stateNode,Kn(),ke(qe),ke(He),zi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,vt!==null&&(fs(vt),vt=null))),ts(e,t),Ke(t),null;case 5:Oi(t);var o=yn(Ar.current);if(n=t.type,e!==null&&t.stateNode!=null)xc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}if(e=yn(Nt.current),Ll(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ct]=t,r[Lr]=i,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)we(Rr[o],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":eu(r,i),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},we("invalid",r);break;case"textarea":ru(r,i),we("invalid",r)}Io(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var h=i[a];a==="children"?typeof h=="string"?r.textContent!==h&&(i.suppressHydrationWarning!==!0&&Nl(r.textContent,h,e),o=["children",h]):typeof h=="number"&&r.textContent!==""+h&&(i.suppressHydrationWarning!==!0&&Nl(r.textContent,h,e),o=["children",""+h]):d.hasOwnProperty(a)&&h!=null&&a==="onScroll"&&we("scroll",r)}switch(n){case"input":nl(r),nu(r,i,!0);break;case"textarea":nl(r),ou(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=jl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=iu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ct]=t,e[Lr]=r,yc(e,t,!1,!1),t.stateNode=e;e:{switch(a=zo(n,r),n){case"dialog":we("cancel",e),we("close",e),o=r;break;case"iframe":case"object":case"embed":we("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)we(Rr[o],e);o=r;break;case"source":we("error",e),o=r;break;case"img":case"image":case"link":we("error",e),we("load",e),o=r;break;case"details":we("toggle",e),o=r;break;case"input":eu(e,r),o=Ro(e,r),we("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=U({},r,{value:void 0}),we("invalid",e);break;case"textarea":ru(e,r),o=Lo(e,r),we("invalid",e);break;default:o=r}Io(n,o),h=o;for(i in h)if(h.hasOwnProperty(i)){var y=h[i];i==="style"?au(e,y):i==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&su(e,y)):i==="children"?typeof y=="string"?(n!=="textarea"||y!=="")&&dr(e,y):typeof y=="number"&&dr(e,""+y):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(d.hasOwnProperty(i)?y!=null&&i==="onScroll"&&we("scroll",e):y!=null&&te(e,i,y,a))}switch(n){case"input":nl(e),nu(e,r,!1);break;case"textarea":nl(e),ou(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ue(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Pn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Pn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=jl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ke(t),null;case 6:if(e&&t.stateNode!=null)wc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(n=yn(Ar.current),yn(Nt.current),Ll(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ct]=t,(i=r.nodeValue!==n)&&(e=ot,e!==null))switch(e.tag){case 3:Nl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Nl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ct]=t,t.stateNode=r}return Ke(t),null;case 13:if(ke(_e),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&it!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ea(),Vn(),t.flags|=98560,i=!1;else if(i=Ll(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[Ct]=t}else Vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else vt!==null&&(fs(vt),vt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(_e.current&1)!==0?ze===0&&(ze=3):hs())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Kn(),ts(e,t),e===null&&Mr(t.stateNode.containerInfo),Ke(t),null;case 10:return bi(t.type._context),Ke(t),null;case 17:return Je(t.type)&&Pl(),Ke(t),null;case 19:if(ke(_e),i=t.memoizedState,i===null)return Ke(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Vr(i,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Fl(e),a!==null){for(t.flags|=128,Vr(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===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=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(_e,_e.current&1|2),t.child}e=e.sibling}i.tail!==null&&Re()>Zn&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ee)return Ke(t),null}else 2*Re()-i.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Re(),t.sibling=null,n=_e.current,ge(_e,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return ms(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(st&1073741824)!==0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Gp(e,t){switch(Ei(t),t.tag){case 1:return Je(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(),ke(qe),ke(He),zi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Oi(t),null;case 13:if(ke(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(_e),null;case 4:return Kn(),null;case 10:return bi(t.type._context),null;case 22:case 23:return ms(),null;case 24:return null;default:return null}}var Ql=!1,Qe=!1,Kp=typeof WeakSet=="function"?WeakSet:Set,G=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function ns(e,t,n){try{n()}catch(r){be(e,t,r)}}var kc=!1;function Qp(e,t){if(mi=ml,e=Ju(),ii(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,h=-1,y=-1,_=0,O=0,I=e,L=null;t:for(;;){for(var $;I!==n||o!==0&&I.nodeType!==3||(h=a+o),I!==i||r!==0&&I.nodeType!==3||(y=a+r),I.nodeType===3&&(a+=I.nodeValue.length),($=I.firstChild)!==null;)L=I,I=$;for(;;){if(I===e)break t;if(L===n&&++_===o&&(h=a),L===i&&++O===r&&(y=a),($=I.nextSibling)!==null)break;I=L,L=I.parentNode}I=$}n=h===-1||y===-1?null:{start:h,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(hi={focusedElem:e,selectionRange:n},ml=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var K=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var Q=K.memoizedProps,Me=K.memoizedState,S=t.stateNode,x=S.getSnapshotBeforeUpdate(t.elementType===t.type?Q:gt(t.type,Q),Me);S.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(z){be(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return K=kc,kc=!1,K}function Wr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ns(t,n,i)}o=o.next}while(o!==r)}}function Yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sc(e){var t=e.alternate;t!==null&&(e.alternate=null,Sc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[Lr],delete t[xi],delete t[Rp],delete t[Mp])),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 Ec(e){return e.tag===5||e.tag===3||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ec(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 ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jl));else if(r!==4&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}function os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}var Be=null,yt=!1;function qt(e,t,n){for(n=n.child;n!==null;)Nc(e,t,n),n=n.sibling}function Nc(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(ul,n)}catch{}switch(n.tag){case 5:Qe||Yn(n,t);case 6:var r=Be,o=yt;Be=null,qt(e,t,n),Be=r,yt=o,Be!==null&&(yt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(yt?(e=Be,n=n.stateNode,e.nodeType===8?yi(e.parentNode,n):e.nodeType===1&&yi(e,n),Sr(e)):yi(Be,n.stateNode));break;case 4:r=Be,o=yt,Be=n.stateNode.containerInfo,yt=!0,qt(e,t,n),Be=r,yt=o;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&ns(n,t,a),o=o.next}while(o!==r)}qt(e,t,n);break;case 1:if(!Qe&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){be(n,t,h)}qt(e,t,n);break;case 21:qt(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,qt(e,t,n),Qe=r):qt(e,t,n);break;default:qt(e,t,n)}}function jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kp),t.forEach(function(r){var o=rm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,h=a;e:for(;h!==null;){switch(h.tag){case 5:Be=h.stateNode,yt=!1;break e;case 3:Be=h.stateNode.containerInfo,yt=!0;break e;case 4:Be=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(Be===null)throw Error(s(160));Nc(i,a,o),Be=null,yt=!1;var y=o.alternate;y!==null&&(y.return=null),o.return=null}catch(_){be(o,t,_)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_c(t,e),t=t.sibling}function _c(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),_t(e),r&4){try{Wr(3,e,e.return),Yl(3,e)}catch(Q){be(e,e.return,Q)}try{Wr(5,e,e.return)}catch(Q){be(e,e.return,Q)}}break;case 1:xt(t,e),_t(e),r&512&&n!==null&&Yn(n,n.return);break;case 5:if(xt(t,e),_t(e),r&512&&n!==null&&Yn(n,n.return),e.flags&32){var o=e.stateNode;try{dr(o,"")}catch(Q){be(e,e.return,Q)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,h=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{h==="input"&&i.type==="radio"&&i.name!=null&&tu(o,i),zo(h,a);var _=zo(h,i);for(a=0;a<y.length;a+=2){var O=y[a],I=y[a+1];O==="style"?au(o,I):O==="dangerouslySetInnerHTML"?su(o,I):O==="children"?dr(o,I):te(o,O,I,_)}switch(h){case"input":Mo(o,i);break;case"textarea":lu(o,i);break;case"select":var L=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var $=i.value;$!=null?Pn(o,!!i.multiple,$,!1):L!==!!i.multiple&&(i.defaultValue!=null?Pn(o,!!i.multiple,i.defaultValue,!0):Pn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Lr]=i}catch(Q){be(e,e.return,Q)}}break;case 6:if(xt(t,e),_t(e),r&4){if(e.stateNode===null)throw Error(s(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(Q){be(e,e.return,Q)}}break;case 3:if(xt(t,e),_t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Sr(t.containerInfo)}catch(Q){be(e,e.return,Q)}break;case 4:xt(t,e),_t(e);break;case 13:xt(t,e),_t(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(us=Re())),r&4&&jc(e);break;case 22:if(O=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(_=Qe)||O,xt(t,e),Qe=_):xt(t,e),_t(e),r&8192){if(_=e.memoizedState!==null,(e.stateNode.isHidden=_)&&!O&&(e.mode&1)!==0)for(G=e,O=e.child;O!==null;){for(I=G=O;G!==null;){switch(L=G,$=L.child,L.tag){case 0:case 11:case 14:case 15:Wr(4,L,L.return);break;case 1:Yn(L,L.return);var K=L.stateNode;if(typeof K.componentWillUnmount=="function"){r=L,n=L.return;try{t=r,K.props=t.memoizedProps,K.state=t.memoizedState,K.componentWillUnmount()}catch(Q){be(r,n,Q)}}break;case 5:Yn(L,L.return);break;case 22:if(L.memoizedState!==null){Rc(I);continue}}$!==null?($.return=L,G=$):Rc(I)}O=O.sibling}e:for(O=null,I=e;;){if(I.tag===5){if(O===null){O=I;try{o=I.stateNode,_?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(h=I.stateNode,y=I.memoizedProps.style,a=y!=null&&y.hasOwnProperty("display")?y.display:null,h.style.display=uu("display",a))}catch(Q){be(e,e.return,Q)}}}else if(I.tag===6){if(O===null)try{I.stateNode.nodeValue=_?"":I.memoizedProps}catch(Q){be(e,e.return,Q)}}else if((I.tag!==22&&I.tag!==23||I.memoizedState===null||I===e)&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===e)break e;for(;I.sibling===null;){if(I.return===null||I.return===e)break e;O===I&&(O=null),I=I.return}O===I&&(O=null),I.sibling.return=I.return,I=I.sibling}}break;case 19:xt(t,e),_t(e),r&4&&jc(e);break;case 21:break;default:xt(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ec(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(dr(o,""),r.flags&=-33);var i=Cc(e);os(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,h=Cc(e);ls(e,h,a);break;default:throw Error(s(161))}}catch(y){be(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yp(e,t,n){G=e,Pc(e)}function Pc(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var o=G,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Ql;if(!a){var h=o.alternate,y=h!==null&&h.memoizedState!==null||Qe;h=Ql;var _=Qe;if(Ql=a,(Qe=y)&&!_)for(G=o;G!==null;)a=G,y=a.child,a.tag===22&&a.memoizedState!==null?Mc(o):y!==null?(y.return=a,G=y):Mc(o);for(;i!==null;)G=i,Pc(i),i=i.sibling;G=o,Ql=h,Qe=_}bc(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,G=i):bc(e)}}function bc(e){for(;G!==null;){var t=G;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Qe||Yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ra(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ra(t,a,n)}break;case 5:var h=t.stateNode;if(n===null&&t.flags&4){n=h;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&n.focus();break;case"img":y.src&&(n.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var _=t.alternate;if(_!==null){var O=_.memoizedState;if(O!==null){var I=O.dehydrated;I!==null&&Sr(I)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Qe||t.flags&512&&rs(t)}catch(L){be(t,t.return,L)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Rc(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Mc(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yl(4,t)}catch(y){be(t,n,y)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(y){be(t,o,y)}}var i=t.return;try{rs(t)}catch(y){be(t,i,y)}break;case 5:var a=t.return;try{rs(t)}catch(y){be(t,a,y)}}}catch(y){be(t,t.return,y)}if(t===e){G=null;break}var h=t.sibling;if(h!==null){h.return=t.return,G=h;break}G=t.return}}var Xp=Math.ceil,Xl=q.ReactCurrentDispatcher,is=q.ReactCurrentOwner,ft=q.ReactCurrentBatchConfig,pe=0,Fe=null,Te=null,$e=0,st=0,Xn=Kt(0),ze=0,Hr=null,wn=0,Zl=0,ss=0,Gr=null,tt=null,us=0,Zn=1/0,Dt=null,ql=!1,as=null,Jt=null,Jl=!1,en=null,eo=0,Kr=0,cs=null,to=-1,no=0;function Ze(){return(pe&6)!==0?Re():to!==-1?to:to=Re()}function tn(e){return(e.mode&1)===0?1:(pe&2)!==0&&$e!==0?$e&-$e:Lp.transition!==null?(no===0&&(no=Cu()),no):(e=ve,e!==0||(e=window.event,e=e===void 0?16:Lu(e.type)),e)}function wt(e,t,n,r){if(50<Kr)throw Kr=0,cs=null,Error(s(185));gr(e,n,r),((pe&2)===0||e!==Fe)&&(e===Fe&&((pe&2)===0&&(Zl|=n),ze===4&&nn(e,$e)),nt(e,r),n===1&&pe===0&&(t.mode&1)===0&&(Zn=Re()+500,Rl&&Yt()))}function nt(e,t){var n=e.callbackNode;Lf(e,t);var r=dl(e,e===Fe?$e:0);if(r===0)n!==null&&ku(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ku(n),t===1)e.tag===0?Tp(Lc.bind(null,e)):ya(Lc.bind(null,e)),Pp(function(){(pe&6)===0&&Yt()}),n=null;else{switch(Nu(r)){case 1:n=Vo;break;case 4:n=Su;break;case 16:n=sl;break;case 536870912:n=Eu;break;default:n=sl}n=Bc(n,Tc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tc(e,t){if(to=-1,no=0,(pe&6)!==0)throw Error(s(327));var n=e.callbackNode;if(qn()&&e.callbackNode!==n)return null;var r=dl(e,e===Fe?$e:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=ro(e,r);else{t=r;var o=pe;pe|=2;var i=Ic();(Fe!==e||$e!==t)&&(Dt=null,Zn=Re()+500,Sn(e,t));do try{Jp();break}catch(h){Oc(e,h)}while(!0);Pi(),Xl.current=i,pe=o,Te!==null?t=0:(Fe=null,$e=0,t=ze)}if(t!==0){if(t===2&&(o=Wo(e),o!==0&&(r=o,t=ds(e,o))),t===1)throw n=Hr,Sn(e,0),nn(e,r),nt(e,Re()),n;if(t===6)nn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Zp(o)&&(t=ro(e,r),t===2&&(i=Wo(e),i!==0&&(r=i,t=ds(e,i))),t===1))throw n=Hr,Sn(e,0),nn(e,r),nt(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:En(e,tt,Dt);break;case 3:if(nn(e,r),(r&130023424)===r&&(t=us+500-Re(),10<t)){if(dl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ze(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gi(En.bind(null,e,tt,Dt),t);break}En(e,tt,Dt);break;case 4:if(nn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-mt(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xp(r/1960))-r,10<r){e.timeoutHandle=gi(En.bind(null,e,tt,Dt),r);break}En(e,tt,Dt);break;case 5:En(e,tt,Dt);break;default:throw Error(s(329))}}}return nt(e,Re()),e.callbackNode===n?Tc.bind(null,e):null}function ds(e,t){var n=Gr;return e.current.memoizedState.isDehydrated&&(Sn(e,t).flags|=256),e=ro(e,t),e!==2&&(t=tt,tt=n,t!==null&&fs(t)),e}function fs(e){tt===null?tt=e:tt.push.apply(tt,e)}function Zp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ht(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nn(e,t){for(t&=~ss,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mt(t),r=1<<n;e[n]=-1,t&=~r}}function Lc(e){if((pe&6)!==0)throw Error(s(327));qn();var t=dl(e,0);if((t&1)===0)return nt(e,Re()),null;var n=ro(e,t);if(e.tag!==0&&n===2){var r=Wo(e);r!==0&&(t=r,n=ds(e,r))}if(n===1)throw n=Hr,Sn(e,0),nn(e,t),nt(e,Re()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,tt,Dt),nt(e,Re()),null}function ps(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Zn=Re()+500,Rl&&Yt())}}function kn(e){en!==null&&en.tag===0&&(pe&6)===0&&qn();var t=pe;pe|=1;var n=ft.transition,r=ve;try{if(ft.transition=null,ve=1,e)return e()}finally{ve=r,ft.transition=n,pe=t,(pe&6)===0&&Yt()}}function ms(){st=Xn.current,ke(Xn)}function Sn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_p(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(Ei(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pl();break;case 3:Kn(),ke(qe),ke(He),zi();break;case 5:Oi(r);break;case 4:Kn();break;case 13:ke(_e);break;case 19:ke(_e);break;case 10:bi(r.type._context);break;case 22:case 23:ms()}n=n.return}if(Fe=e,Te=e=rn(e.current,null),$e=st=t,ze=0,Hr=null,ss=Zl=wn=0,tt=Gr=null,gn!==null){for(t=0;t<gn.length;t++)if(n=gn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}gn=null}return e}function Oc(e,t){do{var n=Te;try{if(Pi(),Ul.current=Wl,Bl){for(var r=Pe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Bl=!1}if(xn=0,Ae=Ie=Pe=null,Fr=!1,Ur=0,is.current=null,n===null||n.return===null){ze=1,Hr=t,Te=null;break}e:{var i=e,a=n.return,h=n,y=t;if(t=$e,h.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var _=y,O=h,I=O.tag;if((O.mode&1)===0&&(I===0||I===11||I===15)){var L=O.alternate;L?(O.updateQueue=L.updateQueue,O.memoizedState=L.memoizedState,O.lanes=L.lanes):(O.updateQueue=null,O.memoizedState=null)}var $=oc(a);if($!==null){$.flags&=-257,ic($,a,h,i,t),$.mode&1&&lc(i,_,t),t=$,y=_;var K=t.updateQueue;if(K===null){var Q=new Set;Q.add(y),t.updateQueue=Q}else K.add(y);break e}else{if((t&1)===0){lc(i,_,t),hs();break e}y=Error(s(426))}}else if(Ee&&h.mode&1){var Me=oc(a);if(Me!==null){(Me.flags&65536)===0&&(Me.flags|=256),ic(Me,a,h,i,t),ji(Qn(y,h));break e}}i=y=Qn(y,h),ze!==4&&(ze=2),Gr===null?Gr=[i]:Gr.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var S=nc(i,y,t);ba(i,S);break e;case 1:h=y;var x=i.type,C=i.stateNode;if((i.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Jt===null||!Jt.has(C)))){i.flags|=65536,t&=-t,i.lanes|=t;var z=rc(i,h,t);ba(i,z);break e}}i=i.return}while(i!==null)}Dc(n)}catch(X){t=X,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(!0)}function Ic(){var e=Xl.current;return Xl.current=Wl,e===null?Wl:e}function hs(){(ze===0||ze===3||ze===2)&&(ze=4),Fe===null||(wn&268435455)===0&&(Zl&268435455)===0||nn(Fe,$e)}function ro(e,t){var n=pe;pe|=2;var r=Ic();(Fe!==e||$e!==t)&&(Dt=null,Sn(e,t));do try{qp();break}catch(o){Oc(e,o)}while(!0);if(Pi(),pe=n,Xl.current=r,Te!==null)throw Error(s(261));return Fe=null,$e=0,ze}function qp(){for(;Te!==null;)zc(Te)}function Jp(){for(;Te!==null&&!Cf();)zc(Te)}function zc(e){var t=Uc(e.alternate,e,st);e.memoizedProps=e.pendingProps,t===null?Dc(e):Te=t,is.current=null}function Dc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Hp(n,t,st),n!==null){Te=n;return}}else{if(n=Gp(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Te=null;return}}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);ze===0&&(ze=5)}function En(e,t,n){var r=ve,o=ft.transition;try{ft.transition=null,ve=1,em(e,t,n,r)}finally{ft.transition=o,ve=r}return null}function em(e,t,n,r){do qn();while(en!==null);if((pe&6)!==0)throw Error(s(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Of(e,i),e===Fe&&(Te=Fe=null,$e=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Jl||(Jl=!0,Bc(sl,function(){return qn(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=ft.transition,ft.transition=null;var a=ve;ve=1;var h=pe;pe|=4,is.current=null,Qp(e,n),_c(n,e),wp(hi),ml=!!mi,hi=mi=null,e.current=n,Yp(n),Nf(),pe=h,ve=a,ft.transition=i}else e.current=n;if(Jl&&(Jl=!1,en=e,eo=o),i=e.pendingLanes,i===0&&(Jt=null),Pf(n.stateNode),nt(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ql)throw ql=!1,e=as,as=null,e;return(eo&1)!==0&&e.tag!==0&&qn(),i=e.pendingLanes,(i&1)!==0?e===cs?Kr++:(Kr=0,cs=e):Kr=0,Yt(),null}function qn(){if(en!==null){var e=Nu(eo),t=ft.transition,n=ve;try{if(ft.transition=null,ve=16>e?16:e,en===null)var r=!1;else{if(e=en,en=null,eo=0,(pe&6)!==0)throw Error(s(331));var o=pe;for(pe|=4,G=e.current;G!==null;){var i=G,a=i.child;if((G.flags&16)!==0){var h=i.deletions;if(h!==null){for(var y=0;y<h.length;y++){var _=h[y];for(G=_;G!==null;){var O=G;switch(O.tag){case 0:case 11:case 15:Wr(8,O,i)}var I=O.child;if(I!==null)I.return=O,G=I;else for(;G!==null;){O=G;var L=O.sibling,$=O.return;if(Sc(O),O===_){G=null;break}if(L!==null){L.return=$,G=L;break}G=$}}}var K=i.alternate;if(K!==null){var Q=K.child;if(Q!==null){K.child=null;do{var Me=Q.sibling;Q.sibling=null,Q=Me}while(Q!==null)}}G=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,G=a;else e:for(;G!==null;){if(i=G,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Wr(9,i,i.return)}var S=i.sibling;if(S!==null){S.return=i.return,G=S;break e}G=i.return}}var x=e.current;for(G=x;G!==null;){a=G;var C=a.child;if((a.subtreeFlags&2064)!==0&&C!==null)C.return=a,G=C;else e:for(a=x;G!==null;){if(h=G,(h.flags&2048)!==0)try{switch(h.tag){case 0:case 11:case 15:Yl(9,h)}}catch(X){be(h,h.return,X)}if(h===a){G=null;break e}var z=h.sibling;if(z!==null){z.return=h.return,G=z;break e}G=h.return}}if(pe=o,Yt(),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(ul,e)}catch{}r=!0}return r}finally{ve=n,ft.transition=t}}return!1}function Ac(e,t,n){t=Qn(n,t),t=nc(e,t,1),e=Zt(e,t,1),t=Ze(),e!==null&&(gr(e,1,t),nt(e,t))}function be(e,t,n){if(e.tag===3)Ac(e,e,n);else for(;t!==null;){if(t.tag===3){Ac(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Jt===null||!Jt.has(r))){e=Qn(n,e),e=rc(t,e,1),t=Zt(t,e,1),e=Ze(),t!==null&&(gr(t,1,e),nt(t,e));break}}t=t.return}}function tm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&($e&n)===n&&(ze===4||ze===3&&($e&130023424)===$e&&500>Re()-us?Sn(e,0):ss|=n),nt(e,t)}function Fc(e,t){t===0&&((e.mode&1)===0?t=1:(t=cl,cl<<=1,(cl&130023424)===0&&(cl=4194304)));var n=Ze();e=Ot(e,t),e!==null&&(gr(e,t,n),nt(e,n))}function nm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fc(e,n)}function rm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),Fc(e,n)}var Uc;Uc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)et=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return et=!1,Wp(e,t,n);et=(e.flags&131072)!==0}else et=!1,Ee&&(t.flags&1048576)!==0&&xa(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kl(e,t),e=t.pendingProps;var o=Un(t,He.current);Gn(t,n),o=Fi(null,t,r,e,o,n);var i=Ui();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(i=!0,bl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ti(t),o.updater=Hl,t.stateNode=o,o._reactInternals=t,Gi(t,r,e,n),t=Xi(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&Si(t),Xe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=om(r),e=gt(r,e),o){case 0:t=Yi(null,t,r,e,n);break e;case 1:t=fc(null,t,r,e,n);break e;case 11:t=sc(null,t,r,e,n);break e;case 14:t=uc(null,t,r,gt(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Yi(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),fc(e,t,r,o,n);case 3:e:{if(pc(t),e===null)throw Error(s(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Pa(e,t),Al(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Qn(Error(s(423)),t),t=mc(e,t,r,n,o);break e}else if(r!==o){o=Qn(Error(s(424)),t),t=mc(e,t,r,n,o);break e}else for(it=Gt(t.stateNode.containerInfo.firstChild),ot=t,Ee=!0,vt=null,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===o){t=zt(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return Ma(t),e===null&&Ni(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,vi(r,o)?a=null:i!==null&&vi(r,i)&&(t.flags|=32),dc(e,t),Xe(e,t,a,n),t.child;case 6:return e===null&&Ni(t),null;case 13:return hc(e,t,n);case 4:return Li(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wn(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),sc(e,t,r,o,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ge(Il,r._currentValue),r._currentValue=a,i!==null)if(ht(i.value,a)){if(i.children===o.children&&!qe.current){t=zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var h=i.dependencies;if(h!==null){a=i.child;for(var y=h.firstContext;y!==null;){if(y.context===r){if(i.tag===1){y=It(-1,n&-n),y.tag=2;var _=i.updateQueue;if(_!==null){_=_.shared;var O=_.pending;O===null?y.next=y:(y.next=O.next,O.next=y),_.pending=y}}i.lanes|=n,y=i.alternate,y!==null&&(y.lanes|=n),Ri(i.return,n,t),h.lanes|=n;break}y=y.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(s(341));a.lanes|=n,h=a.alternate,h!==null&&(h.lanes|=n),Ri(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Xe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Gn(t,n),o=ct(o),r=r(o),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),uc(e,t,r,o,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Kl(e,t),t.tag=1,Je(r)?(e=!0,bl(t)):e=!1,Gn(t,n),ec(t,r,o),Gi(t,r,o,n),Xi(null,t,r,!0,e,n);case 19:return gc(e,t,n);case 22:return cc(e,t,n)}throw Error(s(156,t.tag))};function Bc(e,t){return wu(e,t)}function lm(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new lm(e,t,n,r)}function vs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function om(e){if(typeof e=="function")return vs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ie)return 11;if(e===Oe)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lo(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")vs(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case se:return Cn(n.children,o,i,t);case ye:a=8,o|=8;break;case de:return e=pt(12,n,t,o|2),e.elementType=de,e.lanes=i,e;case Le:return e=pt(13,n,t,o),e.elementType=Le,e.lanes=i,e;case Ne:return e=pt(19,n,t,o),e.elementType=Ne,e.lanes=i,e;case he:return oo(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xe:a=10;break e;case Ce:a=9;break e;case ie:a=11;break e;case Oe:a=14;break e;case je:a=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=pt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Cn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function oo(e,t,n,r){return e=pt(22,e,r,t),e.elementType=he,e.lanes=n,e.stateNode={isHidden:!1},e}function gs(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function ys(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function im(e,t,n,r,o){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=Ho(0),this.expirationTimes=Ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ho(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function xs(e,t,n,r,o,i,a,h,y){return e=new im(e,t,n,h,y),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ti(i),e}function sm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ne,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $c(e){if(!e)return Qt;e=e._reactInternals;e:{if(fn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(Je(n))return va(e,n,t)}return t}function Vc(e,t,n,r,o,i,a,h,y){return e=xs(n,r,!0,e,o,i,a,h,y),e.context=$c(null),n=e.current,r=Ze(),o=tn(n),i=It(r,o),i.callback=t??null,Zt(n,i,o),e.current.lanes=o,gr(e,o,r),nt(e,r),e}function io(e,t,n,r){var o=t.current,i=Ze(),a=tn(o);return n=$c(n),t.context===null?t.context=n:t.pendingContext=n,t=It(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zt(o,t,a),e!==null&&(wt(e,o,a,i),Dl(e,o,a)),a}function so(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 Wc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ws(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}function um(){return null}var Hc=typeof reportError=="function"?reportError:function(e){console.error(e)};function ks(e){this._internalRoot=e}uo.prototype.render=ks.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));io(e,t,null,null)},uo.prototype.unmount=ks.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kn(function(){io(null,e,null,null)}),t[Rt]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vt.length&&t!==0&&t<Vt[n].priority;n++);Vt.splice(n,0,e),n===0&&Mu(e)}};function Ss(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ao(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gc(){}function am(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var _=so(a);i.call(_)}}var a=Vc(t,r,e,0,null,!1,!1,"",Gc);return e._reactRootContainer=a,e[Rt]=a.current,Mr(e.nodeType===8?e.parentNode:e),kn(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var h=r;r=function(){var _=so(y);h.call(_)}}var y=xs(e,0,!1,null,null,!1,!1,"",Gc);return e._reactRootContainer=y,e[Rt]=y.current,Mr(e.nodeType===8?e.parentNode:e),kn(function(){io(t,y,n,r)}),y}function co(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var h=o;o=function(){var y=so(a);h.call(y)}}io(t,a,e,o)}else a=am(n,t,e,o,r);return so(a)}ju=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vr(t.pendingLanes);n!==0&&(Go(t,n|1),nt(t,Re()),(pe&6)===0&&(Zn=Re()+500,Yt()))}break;case 13:kn(function(){var r=Ot(e,1);if(r!==null){var o=Ze();wt(r,e,1,o)}}),ws(e,1)}},Ko=function(e){if(e.tag===13){var t=Ot(e,134217728);if(t!==null){var n=Ze();wt(t,e,134217728,n)}ws(e,134217728)}},_u=function(e){if(e.tag===13){var t=tn(e),n=Ot(e,t);if(n!==null){var r=Ze();wt(n,e,t,r)}ws(e,t)}},Pu=function(){return ve},bu=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}},Fo=function(e,t,n){switch(t){case"input":if(Mo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_l(r);if(!o)throw Error(s(90));Js(r),Mo(r,o)}}}break;case"textarea":lu(e,n);break;case"select":t=n.value,t!=null&&Pn(e,!!n.multiple,t,!1)}},pu=ps,mu=kn;var cm={usingClientEntryPoint:!1,Events:[Or,An,_l,du,fu,ps]},Qr={findFiberByHostInstance:pn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dm={bundleType:Qr.bundleType,version:Qr.version,rendererPackageName:Qr.rendererPackageName,rendererConfig:Qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yu(e),e===null?null:e.stateNode},findFiberByHostInstance:Qr.findFiberByHostInstance||um,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 fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fo.isDisabled&&fo.supportsFiber)try{ul=fo.inject(dm),Et=fo}catch{}}return rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cm,rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ss(t))throw Error(s(200));return sm(e,t,null,n)},rt.createRoot=function(e,t){if(!Ss(e))throw Error(s(299));var n=!1,r="",o=Hc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=xs(e,1,!1,null,null,n,!1,r,o),e[Rt]=t.current,Mr(e.nodeType===8?e.parentNode:e),new ks(t)},rt.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(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=yu(t),e=e===null?null:e.stateNode,e},rt.flushSync=function(e){return kn(e)},rt.hydrate=function(e,t,n){if(!ao(t))throw Error(s(200));return co(null,e,t,!0,n)},rt.hydrateRoot=function(e,t,n){if(!Ss(e))throw Error(s(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=Hc;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Vc(t,null,e,1,n??null,o,!1,i,a),e[Rt]=t.current,Mr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new uo(t)},rt.render=function(e,t,n){if(!ao(t))throw Error(s(200));return co(null,e,t,!1,n)},rt.unmountComponentAtNode=function(e){if(!ao(e))throw Error(s(40));return e._reactRootContainer?(kn(function(){co(null,null,e,!1,function(){e._reactRootContainer=null,e[Rt]=null})}),!0):!1},rt.unstable_batchedUpdates=ps,rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ao(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return co(e,t,n,!1,r)},rt.version="18.3.1-next-f1338f8080-20240426",rt}var ed;function jd(){if(ed)return Ns.exports;ed=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Ns.exports=xm(),Ns.exports}var td;function wm(){if(td)return po;td=1;var l=jd();return po.createRoot=l.createRoot,po.hydrateRoot=l.hydrateRoot,po}var km=wm();const Sm=Cd(km);/**
|
|
* @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 Em=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_d=(...l)=>l.filter((u,s,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===s).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 Cm={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 Nm=v.forwardRef(({color:l="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:d="",children:p,iconNode:g,...m},j)=>v.createElement("svg",{ref:j,...Cm,width:u,height:u,stroke:l,strokeWidth:c?Number(s)*24/Number(u):s,className:_d("lucide",d),...m},[...g.map(([E,N])=>v.createElement(E,N)),...Array.isArray(p)?p:[p]]));/**
|
|
* @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=(l,u)=>{const s=v.forwardRef(({className:c,...d},p)=>v.createElement(Nm,{ref:p,iconNode:u,className:_d(`lucide-${Em(l)}`,c),...d}));return s.displayName=`${l}`,s};/**
|
|
* @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 jm=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 _m=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 Pm=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 bm=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 Rm=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 Mm=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 Tm=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 Lm=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 Om=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 Fs=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 Im=Ve("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
* @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 zm=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 Dm=Ve("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
|
|
* @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 Am=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 Fm=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 Um=Ve("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
* @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 Bm=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"}]]),Us=[{id:"models",label:"Modelle & Routing",hint:"Modelle kuratieren, Gruppen & Auto-Routing",icon:_m},{id:"routing",label:"Routing",hint:"Gateway-Regeln: schnell ↔ schwer",icon:Dm},{id:"system",label:"System",hint:"Metriken, Dienste, Updates",icon:Lm},{id:"memory",label:"Gedächtnis",hint:"Geteiltes Memory verwalten",icon:Pm},{id:"connect",label:"Verbinden",hint:"IDE-/Agent-Configs erzeugen",icon:zm},{id:"agent",label:"Hermes",hint:"Agent-Status & WebUI öffnen",icon:jm}];var nd=1,$m=.9,Vm=.8,Wm=.17,Ps=.1,bs=.999,Hm=.9999,Gm=.99,Km=/[\\\/_+.#"@\[\(\{&]/,Qm=/[\\\/_+.#"@\[\(\{&]/g,Ym=/[\s-]/,Pd=/[\s-]/g;function Bs(l,u,s,c,d,p,g){if(p===u.length)return d===l.length?nd:Gm;var m=`${d},${p}`;if(g[m]!==void 0)return g[m];for(var j=c.charAt(p),E=s.indexOf(j,d),N=0,P,M,T,V;E>=0;)P=Bs(l,u,s,c,E+1,p+1,g),P>N&&(E===d?P*=nd:Km.test(l.charAt(E-1))?(P*=Vm,T=l.slice(d,E-1).match(Qm),T&&d>0&&(P*=Math.pow(bs,T.length))):Ym.test(l.charAt(E-1))?(P*=$m,V=l.slice(d,E-1).match(Pd),V&&d>0&&(P*=Math.pow(bs,V.length))):(P*=Wm,d>0&&(P*=Math.pow(bs,E-d))),l.charAt(E)!==u.charAt(p)&&(P*=Hm)),(P<Ps&&s.charAt(E-1)===c.charAt(p+1)||c.charAt(p+1)===c.charAt(p)&&s.charAt(E-1)!==c.charAt(p))&&(M=Bs(l,u,s,c,E+1,p+2,g),M*Ps>P&&(P=M*Ps)),P>N&&(N=P),E=s.indexOf(j,E+1);return g[m]=N,N}function rd(l){return l.toLowerCase().replace(Pd," ")}function Xm(l,u,s){return l=s&&s.length>0?`${l+" "+s.join(" ")}`:l,Bs(l,u,rd(l),rd(u),0,0,{})}function cn(l,u,{checkForDefaultPrevented:s=!0}={}){return function(d){if(l==null||l(d),s===!1||!d.defaultPrevented)return u==null?void 0:u(d)}}function ld(l,u){if(typeof l=="function")return l(u);l!=null&&(l.current=u)}function sr(...l){return u=>{let s=!1;const c=l.map(d=>{const p=ld(d,u);return!s&&typeof p=="function"&&(s=!0),p});if(s)return()=>{for(let d=0;d<c.length;d++){const p=c[d];typeof p=="function"?p():ld(l[d],null)}}}}function _n(...l){return v.useCallback(sr(...l),l)}function Zm(l,u=[]){let s=[];function c(p,g){const m=v.createContext(g);m.displayName=p+"Context";const j=s.length;s=[...s,g];const E=P=>{var W;const{scope:M,children:T,...V}=P,R=((W=M==null?void 0:M[l])==null?void 0:W[j])||m,b=v.useMemo(()=>V,Object.values(V));return f.jsx(R.Provider,{value:b,children:T})};E.displayName=p+"Provider";function N(P,M){var R;const T=((R=M==null?void 0:M[l])==null?void 0:R[j])||m,V=v.useContext(T);if(V)return V;if(g!==void 0)return g;throw new Error(`\`${P}\` must be used within \`${p}\``)}return[E,N]}const d=()=>{const p=s.map(g=>v.createContext(g));return function(m){const j=(m==null?void 0:m[l])||p;return v.useMemo(()=>({[`__scope${l}`]:{...m,[l]:j}}),[m,j])}};return d.scopeName=l,[c,qm(d,...u)]}function qm(...l){const u=l[0];if(l.length===1)return u;const s=()=>{const c=l.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(p){const g=c.reduce((m,{useScope:j,scopeName:E})=>{const P=j(p)[`__scope${E}`];return{...m,...P}},{});return v.useMemo(()=>({[`__scope${u.scopeName}`]:g}),[g])}};return s.scopeName=u.scopeName,s}var Jr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Jm=Ks[" useId ".trim().toString()]||(()=>{}),eh=0;function Ft(l){const[u,s]=v.useState(Jm());return Jr(()=>{s(c=>c??String(eh++))},[l]),u?`radix-${u}`:""}var th=Ks[" useInsertionEffect ".trim().toString()]||Jr;function nh({prop:l,defaultProp:u,onChange:s=()=>{},caller:c}){const[d,p,g]=rh({defaultProp:u,onChange:s}),m=l!==void 0,j=m?l:d;{const N=v.useRef(l!==void 0);v.useEffect(()=>{const P=N.current;P!==m&&console.warn(`${c} is changing from ${P?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),N.current=m},[m,c])}const E=v.useCallback(N=>{var P;if(m){const M=lh(N)?N(l):N;M!==l&&((P=g.current)==null||P.call(g,M))}else p(N)},[m,l,p,g]);return[j,E]}function rh({defaultProp:l,onChange:u}){const[s,c]=v.useState(l),d=v.useRef(s),p=v.useRef(u);return th(()=>{p.current=u},[u]),v.useEffect(()=>{var g;d.current!==s&&((g=p.current)==null||g.call(p,s),d.current=s)},[s,d]),[s,c,p]}function lh(l){return typeof l=="function"}var bd=jd();function Rd(l){const u=v.forwardRef((s,c)=>{let{children:d,...p}=s,g=null,m=!1;const j=[];od(d)&&typeof mo=="function"&&(d=mo(d._payload)),v.Children.forEach(d,M=>{var T;if(ah(M)){m=!0;const V=M;let R="child"in V.props?V.props.child:V.props.children;od(R)&&typeof mo=="function"&&(R=mo(R._payload)),g=ih(V,R),j.push((T=g==null?void 0:g.props)==null?void 0:T.children)}else j.push(M)}),g?g=v.cloneElement(g,void 0,j):!m&&v.Children.count(d)===1&&v.isValidElement(d)&&(g=d);const E=g?uh(g):void 0,N=_n(c,E);if(!g){if(d||d===0)throw new Error(m?ph(l):fh(l));return d}const P=sh(p,g.props??{});return g.type!==v.Fragment&&(P.ref=c?N:E),v.cloneElement(g,P)});return u.displayName=`${l}.Slot`,u}var oh=Symbol.for("radix.slottable"),ih=(l,u)=>{if("child"in l.props){const s=l.props.child;return v.isValidElement(s)?v.cloneElement(s,void 0,l.props.children(s.props.children)):null}return v.isValidElement(u)?u:null};function sh(l,u){const s={...u};for(const c in u){const d=l[c],p=u[c];/^on[A-Z]/.test(c)?d&&p?s[c]=(...m)=>{const j=p(...m);return d(...m),j}:d&&(s[c]=d):c==="style"?s[c]={...d,...p}:c==="className"&&(s[c]=[d,p].filter(Boolean).join(" "))}return{...l,...s}}function uh(l){var c,d;let u=(c=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:c.get,s=u&&"isReactWarning"in u&&u.isReactWarning;return s?l.ref:(u=(d=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:d.get,s=u&&"isReactWarning"in u&&u.isReactWarning,s?l.props.ref:l.props.ref||l.ref)}function ah(l){return v.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===oh}var ch=Symbol.for("react.lazy");function od(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===ch&&"_payload"in l&&dh(l._payload)}function dh(l){return typeof l=="object"&&l!==null&&"then"in l}var fh=l=>`${l} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ph=l=>`${l} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,mo=Ks[" use ".trim().toString()],mh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=mh.reduce((l,u)=>{const s=Rd(`Primitive.${u}`),c=v.forwardRef((d,p)=>{const{asChild:g,...m}=d,j=g?s:u;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(j,{...m,ref:p})});return c.displayName=`Primitive.${u}`,{...l,[u]:c}},{});function hh(l,u){l&&bd.flushSync(()=>l.dispatchEvent(u))}function el(l){const u=v.useRef(l);return v.useEffect(()=>{u.current=l}),v.useMemo(()=>((...s)=>{var c;return(c=u.current)==null?void 0:c.call(u,...s)}),[])}function vh(l,u=globalThis==null?void 0:globalThis.document){const s=el(l);v.useEffect(()=>{const c=d=>{d.key==="Escape"&&s(d)};return u.addEventListener("keydown",c,{capture:!0}),()=>u.removeEventListener("keydown",c,{capture:!0})},[s,u])}var gh="DismissableLayer",$s="dismissableLayer.update",yh="dismissableLayer.pointerDownOutside",xh="dismissableLayer.focusOutside",id,Qs=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Md=v.forwardRef((l,u)=>{const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:m,onDismiss:j,...E}=l,N=v.useContext(Qs),[P,M]=v.useState(null),T=(P==null?void 0:P.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,V]=v.useState({}),R=_n(u,de=>M(de)),b=Array.from(N.layers),[W]=[...N.layersWithOutsidePointerEventsDisabled].slice(-1),H=b.indexOf(W),te=P?b.indexOf(P):-1,q=N.layersWithOutsidePointerEventsDisabled.size>0,le=te>=H,ne=v.useRef(!1),se=Eh(de=>{const xe=de.target;if(!(xe instanceof Node))return;const Ce=[...N.branches].some(ie=>ie.contains(xe));!le||Ce||(p==null||p(de),m==null||m(de),de.defaultPrevented||j==null||j())},{ownerDocument:T,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:ne,dismissableSurfaces:N.dismissableSurfaces}),ye=Ch(de=>{if(c&&ne.current)return;const xe=de.target;[...N.branches].some(ie=>ie.contains(xe))||(g==null||g(de),m==null||m(de),de.defaultPrevented||j==null||j())},T);return vh(de=>{te===N.layers.size-1&&(d==null||d(de),!de.defaultPrevented&&j&&(de.preventDefault(),j()))},T),v.useEffect(()=>{if(P)return s&&(N.layersWithOutsidePointerEventsDisabled.size===0&&(id=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),N.layersWithOutsidePointerEventsDisabled.add(P)),N.layers.add(P),sd(),()=>{s&&(N.layersWithOutsidePointerEventsDisabled.delete(P),N.layersWithOutsidePointerEventsDisabled.size===0&&(T.body.style.pointerEvents=id))}},[P,T,s,N]),v.useEffect(()=>()=>{P&&(N.layers.delete(P),N.layersWithOutsidePointerEventsDisabled.delete(P),sd())},[P,N]),v.useEffect(()=>{const de=()=>V({});return document.addEventListener($s,de),()=>document.removeEventListener($s,de)},[]),f.jsx(We.div,{...E,ref:R,style:{pointerEvents:q?le?"auto":"none":void 0,...l.style},onFocusCapture:cn(l.onFocusCapture,ye.onFocusCapture),onBlurCapture:cn(l.onBlurCapture,ye.onBlurCapture),onPointerDownCapture:cn(l.onPointerDownCapture,se.onPointerDownCapture)})});Md.displayName=gh;var wh="DismissableLayerBranch",kh=v.forwardRef((l,u)=>{const s=v.useContext(Qs),c=v.useRef(null),d=_n(u,c);return v.useEffect(()=>{const p=c.current;if(p)return s.branches.add(p),()=>{s.branches.delete(p)}},[s.branches]),f.jsx(We.div,{...l,ref:d})});kh.displayName=wh;function Sh(){const l=v.useContext(Qs),[u,s]=v.useState(null);return v.useEffect(()=>{if(u)return l.dismissableSurfaces.add(u),()=>{l.dismissableSurfaces.delete(u)}},[u,l.dismissableSurfaces]),s}function Eh(l,u){const{ownerDocument:s=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:c=!1,isDeferredPointerDownOutsideRef:d,dismissableSurfaces:p}=u,g=el(l),m=v.useRef(!1),j=v.useRef(!1),E=v.useRef(new Map),N=v.useRef(()=>{});return v.useEffect(()=>{function P(){j.current=!1,d.current=!1,E.current.clear()}function M(){return Array.from(E.current.values()).some(Boolean)}function T(H){if(!j.current)return;const te=H.target;te instanceof Node&&[...p].some(le=>le.contains(te))||E.current.set(H.type,!0),H.type==="click"&&window.setTimeout(()=>{j.current&&N.current()},0)}function V(H){j.current&&E.current.set(H.type,!1)}const R=H=>{if(H.target&&!m.current){let te=function(){s.removeEventListener("click",N.current);const le=M();P(),le||Td(yh,g,q,{discrete:!0})};const q={originalEvent:H};j.current=!0,d.current=c&&H.button===0,E.current.clear(),!c||H.button!==0?te():(s.removeEventListener("click",N.current),N.current=te,s.addEventListener("click",N.current,{once:!0}))}else s.removeEventListener("click",N.current),P();m.current=!1},b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const H of b)s.addEventListener(H,T,!0),s.addEventListener(H,V);const W=window.setTimeout(()=>{s.addEventListener("pointerdown",R)},0);return()=>{window.clearTimeout(W),s.removeEventListener("pointerdown",R),s.removeEventListener("click",N.current);for(const H of b)s.removeEventListener(H,T,!0),s.removeEventListener(H,V)}},[s,g,c,d,p]),{onPointerDownCapture:()=>m.current=!0}}function Ch(l,u=globalThis==null?void 0:globalThis.document){const s=el(l),c=v.useRef(!1);return v.useEffect(()=>{const d=p=>{p.target&&!c.current&&Td(xh,s,{originalEvent:p},{discrete:!1})};return u.addEventListener("focusin",d),()=>u.removeEventListener("focusin",d)},[u,s]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function sd(){const l=new CustomEvent($s);document.dispatchEvent(l)}function Td(l,u,s,{discrete:c}){const d=s.originalEvent.target,p=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:s});u&&d.addEventListener(l,u,{once:!0}),c?hh(d,p):d.dispatchEvent(p)}var Rs="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",ud={bubbles:!1,cancelable:!0},Nh="FocusScope",Ld=v.forwardRef((l,u)=>{const{loop:s=!1,trapped:c=!1,onMountAutoFocus:d,onUnmountAutoFocus:p,...g}=l,[m,j]=v.useState(null),E=el(d),N=el(p),P=v.useRef(null),M=_n(u,R=>j(R)),T=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(c){let R=function(te){if(T.paused||!m)return;const q=te.target;m.contains(q)?P.current=q:an(P.current,{select:!0})},b=function(te){if(T.paused||!m)return;const q=te.relatedTarget;q!==null&&(m.contains(q)||an(P.current,{select:!0}))},W=function(te){if(document.activeElement===document.body)for(const le of te)le.removedNodes.length>0&&an(m)};document.addEventListener("focusin",R),document.addEventListener("focusout",b);const H=new MutationObserver(W);return m&&H.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",b),H.disconnect()}}},[c,m,T.paused]),v.useEffect(()=>{if(m){cd.add(T);const R=document.activeElement;if(!m.contains(R)){const W=new CustomEvent(Rs,ud);m.addEventListener(Rs,E),m.dispatchEvent(W),W.defaultPrevented||(jh(Mh(Od(m)),{select:!0}),document.activeElement===R&&an(m))}return()=>{m.removeEventListener(Rs,E),setTimeout(()=>{const W=new CustomEvent(Ms,ud);m.addEventListener(Ms,N),m.dispatchEvent(W),W.defaultPrevented||an(R??document.body,{select:!0}),m.removeEventListener(Ms,N),cd.remove(T)},0)}}},[m,E,N,T]);const V=v.useCallback(R=>{if(!s&&!c||T.paused)return;const b=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,W=document.activeElement;if(b&&W){const H=R.currentTarget,[te,q]=_h(H);te&&q?!R.shiftKey&&W===q?(R.preventDefault(),s&&an(te,{select:!0})):R.shiftKey&&W===te&&(R.preventDefault(),s&&an(q,{select:!0})):W===H&&R.preventDefault()}},[s,c,T.paused]);return f.jsx(We.div,{tabIndex:-1,...g,ref:M,onKeyDown:V})});Ld.displayName=Nh;function jh(l,{select:u=!1}={}){const s=document.activeElement;for(const c of l)if(an(c,{select:u}),document.activeElement!==s)return}function _h(l){const u=Od(l),s=ad(u,l),c=ad(u.reverse(),l);return[s,c]}function Od(l){const u=[],s=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const d=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||d?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)u.push(s.currentNode);return u}function ad(l,u){for(const s of l)if(!Ph(s,{upTo:u}))return s}function Ph(l,{upTo:u}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(u!==void 0&&l===u)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function bh(l){return l instanceof HTMLInputElement&&"select"in l}function an(l,{select:u=!1}={}){if(l&&l.focus){const s=document.activeElement;l.focus({preventScroll:!0}),l!==s&&bh(l)&&u&&l.select()}}var cd=Rh();function Rh(){let l=[];return{add(u){const s=l[0];u!==s&&(s==null||s.pause()),l=dd(l,u),l.unshift(u)},remove(u){var s;l=dd(l,u),(s=l[0])==null||s.resume()}}}function dd(l,u){const s=[...l],c=s.indexOf(u);return c!==-1&&s.splice(c,1),s}function Mh(l){return l.filter(u=>u.tagName!=="A")}var Th="Portal",Id=v.forwardRef((l,u)=>{var m;const{container:s,...c}=l,[d,p]=v.useState(!1);Jr(()=>p(!0),[]);const g=s||d&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return g?bd.createPortal(f.jsx(We.div,{...c,ref:u}),g):null});Id.displayName=Th;function Lh(l,u){return v.useReducer((s,c)=>u[s][c]??s,l)}var jo=l=>{const{present:u,children:s}=l,c=Oh(u),d=typeof s=="function"?s({present:c.isPresent}):v.Children.only(s),p=Ih(c.ref,zh(d));return typeof s=="function"||c.isPresent?v.cloneElement(d,{ref:p}):null};jo.displayName="Presence";function Oh(l){const[u,s]=v.useState(),c=v.useRef(null),d=v.useRef(l),p=v.useRef("none"),g=l?"mounted":"unmounted",[m,j]=Lh(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const E=ho(c.current);p.current=m==="mounted"?E:"none"},[m]),Jr(()=>{const E=c.current,N=d.current;if(N!==l){const M=p.current,T=ho(E);l?j("MOUNT"):T==="none"||(E==null?void 0:E.display)==="none"?j("UNMOUNT"):j(N&&M!==T?"ANIMATION_OUT":"UNMOUNT"),d.current=l}},[l,j]),Jr(()=>{if(u){let E;const N=u.ownerDocument.defaultView??window,P=T=>{const R=ho(c.current).includes(CSS.escape(T.animationName));if(T.target===u&&R&&(j("ANIMATION_END"),!d.current)){const b=u.style.animationFillMode;u.style.animationFillMode="forwards",E=N.setTimeout(()=>{u.style.animationFillMode==="forwards"&&(u.style.animationFillMode=b)})}},M=T=>{T.target===u&&(p.current=ho(c.current))};return u.addEventListener("animationstart",M),u.addEventListener("animationcancel",P),u.addEventListener("animationend",P),()=>{N.clearTimeout(E),u.removeEventListener("animationstart",M),u.removeEventListener("animationcancel",P),u.removeEventListener("animationend",P)}}else j("ANIMATION_END")},[u,j]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(E=>{c.current=E?getComputedStyle(E):null,s(E)},[])}}function fd(l,u){if(typeof l=="function")return l(u);l!=null&&(l.current=u)}function Ih(...l){const u=v.useRef(l);return u.current=l,v.useCallback(s=>{const c=u.current;let d=!1;const p=c.map(g=>{const m=fd(g,s);return!d&&typeof m=="function"&&(d=!0),m});if(d)return()=>{for(let g=0;g<p.length;g++){const m=p[g];typeof m=="function"?m():fd(c[g],null)}}},[])}function ho(l){return(l==null?void 0:l.animationName)||"none"}function zh(l){var c,d;let u=(c=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:c.get,s=u&&"isReactWarning"in u&&u.isReactWarning;return s?l.ref:(u=(d=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:d.get,s=u&&"isReactWarning"in u&&u.isReactWarning,s?l.props.ref:l.props.ref||l.ref)}var vo=0,Pt=null;function Dh(){v.useEffect(()=>{Pt||(Pt={start:pd(),end:pd()});const{start:l,end:u}=Pt;return document.body.firstElementChild!==l&&document.body.insertAdjacentElement("afterbegin",l),document.body.lastElementChild!==u&&document.body.insertAdjacentElement("beforeend",u),vo++,()=>{vo===1&&(Pt==null||Pt.start.remove(),Pt==null||Pt.end.remove(),Pt=null),vo=Math.max(0,vo-1)}},[])}function pd(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var bt=function(){return bt=Object.assign||function(u){for(var s,c=1,d=arguments.length;c<d;c++){s=arguments[c];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(u[p]=s[p])}return u},bt.apply(this,arguments)};function zd(l,u){var s={};for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&u.indexOf(c)<0&&(s[c]=l[c]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,c=Object.getOwnPropertySymbols(l);d<c.length;d++)u.indexOf(c[d])<0&&Object.prototype.propertyIsEnumerable.call(l,c[d])&&(s[c[d]]=l[c[d]]);return s}function Ah(l,u,s){if(s||arguments.length===2)for(var c=0,d=u.length,p;c<d;c++)(p||!(c in u))&&(p||(p=Array.prototype.slice.call(u,0,c)),p[c]=u[c]);return l.concat(p||Array.prototype.slice.call(u))}var Eo="right-scroll-bar-position",Co="width-before-scroll-bar",Fh="with-scroll-bars-hidden",Uh="--removed-body-scroll-bar-size";function Ts(l,u){return typeof l=="function"?l(u):l&&(l.current=u),l}function Bh(l,u){var s=v.useState(function(){return{value:l,callback:u,facade:{get current(){return s.value},set current(c){var d=s.value;d!==c&&(s.value=c,s.callback(c,d))}}}})[0];return s.callback=u,s.facade}var $h=typeof window<"u"?v.useLayoutEffect:v.useEffect,md=new WeakMap;function Vh(l,u){var s=Bh(null,function(c){return l.forEach(function(d){return Ts(d,c)})});return $h(function(){var c=md.get(s);if(c){var d=new Set(c),p=new Set(l),g=s.current;d.forEach(function(m){p.has(m)||Ts(m,null)}),p.forEach(function(m){d.has(m)||Ts(m,g)})}md.set(s,l)},[l]),s}function Wh(l){return l}function Hh(l,u){u===void 0&&(u=Wh);var s=[],c=!1,d={read:function(){if(c)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:l},useMedium:function(p){var g=u(p,c);return s.push(g),function(){s=s.filter(function(m){return m!==g})}},assignSyncMedium:function(p){for(c=!0;s.length;){var g=s;s=[],g.forEach(p)}s={push:function(m){return p(m)},filter:function(){return s}}},assignMedium:function(p){c=!0;var g=[];if(s.length){var m=s;s=[],m.forEach(p),g=s}var j=function(){var N=g;g=[],N.forEach(p)},E=function(){return Promise.resolve().then(j)};E(),s={push:function(N){g.push(N),E()},filter:function(N){return g=g.filter(N),s}}}};return d}function Gh(l){l===void 0&&(l={});var u=Hh(null);return u.options=bt({async:!0,ssr:!1},l),u}var Dd=function(l){var u=l.sideCar,s=zd(l,["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 v.createElement(c,bt({},s))};Dd.isSideCarExport=!0;function Kh(l,u){return l.useMedium(u),Dd}var Ad=Gh(),Ls=function(){},_o=v.forwardRef(function(l,u){var s=v.useRef(null),c=v.useState({onScrollCapture:Ls,onWheelCapture:Ls,onTouchMoveCapture:Ls}),d=c[0],p=c[1],g=l.forwardProps,m=l.children,j=l.className,E=l.removeScrollBar,N=l.enabled,P=l.shards,M=l.sideCar,T=l.noRelative,V=l.noIsolation,R=l.inert,b=l.allowPinchZoom,W=l.as,H=W===void 0?"div":W,te=l.gapMode,q=zd(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),le=M,ne=Vh([s,u]),se=bt(bt({},q),d);return v.createElement(v.Fragment,null,N&&v.createElement(le,{sideCar:Ad,removeScrollBar:E,shards:P,noRelative:T,noIsolation:V,inert:R,setCallbacks:p,allowPinchZoom:!!b,lockRef:s,gapMode:te}),g?v.cloneElement(v.Children.only(m),bt(bt({},se),{ref:ne})):v.createElement(H,bt({},se,{className:j,ref:ne}),m))});_o.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_o.classNames={fullWidth:Co,zeroRight:Eo};var Qh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yh(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var u=Qh();return u&&l.setAttribute("nonce",u),l}function Xh(l,u){l.styleSheet?l.styleSheet.cssText=u:l.appendChild(document.createTextNode(u))}function Zh(l){var u=document.head||document.getElementsByTagName("head")[0];u.appendChild(l)}var qh=function(){var l=0,u=null;return{add:function(s){l==0&&(u=Yh())&&(Xh(u,s),Zh(u)),l++},remove:function(){l--,!l&&u&&(u.parentNode&&u.parentNode.removeChild(u),u=null)}}},Jh=function(){var l=qh();return function(u,s){v.useEffect(function(){return l.add(u),function(){l.remove()}},[u&&s])}},Fd=function(){var l=Jh(),u=function(s){var c=s.styles,d=s.dynamic;return l(c,d),null};return u},ev={left:0,top:0,right:0,gap:0},Os=function(l){return parseInt(l||"",10)||0},tv=function(l){var u=window.getComputedStyle(document.body),s=u[l==="padding"?"paddingLeft":"marginLeft"],c=u[l==="padding"?"paddingTop":"marginTop"],d=u[l==="padding"?"paddingRight":"marginRight"];return[Os(s),Os(c),Os(d)]},nv=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return ev;var u=tv(l),s=document.documentElement.clientWidth,c=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,c-s+u[2]-u[0])}},rv=Fd(),or="data-scroll-locked",lv=function(l,u,s,c){var d=l.left,p=l.top,g=l.right,m=l.gap;return s===void 0&&(s="margin"),`
|
|
.`.concat(Fh,` {
|
|
overflow: hidden `).concat(c,`;
|
|
padding-right: `).concat(m,"px ").concat(c,`;
|
|
}
|
|
body[`).concat(or,`] {
|
|
overflow: hidden `).concat(c,`;
|
|
overscroll-behavior: contain;
|
|
`).concat([u&&"position: relative ".concat(c,";"),s==="margin"&&`
|
|
padding-left: `.concat(d,`px;
|
|
padding-top: `).concat(p,`px;
|
|
padding-right: `).concat(g,`px;
|
|
margin-left:0;
|
|
margin-top:0;
|
|
margin-right: `).concat(m,"px ").concat(c,`;
|
|
`),s==="padding"&&"padding-right: ".concat(m,"px ").concat(c,";")].filter(Boolean).join(""),`
|
|
}
|
|
|
|
.`).concat(Eo,` {
|
|
right: `).concat(m,"px ").concat(c,`;
|
|
}
|
|
|
|
.`).concat(Co,` {
|
|
margin-right: `).concat(m,"px ").concat(c,`;
|
|
}
|
|
|
|
.`).concat(Eo," .").concat(Eo,` {
|
|
right: 0 `).concat(c,`;
|
|
}
|
|
|
|
.`).concat(Co," .").concat(Co,` {
|
|
margin-right: 0 `).concat(c,`;
|
|
}
|
|
|
|
body[`).concat(or,`] {
|
|
`).concat(Uh,": ").concat(m,`px;
|
|
}
|
|
`)},hd=function(){var l=parseInt(document.body.getAttribute(or)||"0",10);return isFinite(l)?l:0},ov=function(){v.useEffect(function(){return document.body.setAttribute(or,(hd()+1).toString()),function(){var l=hd()-1;l<=0?document.body.removeAttribute(or):document.body.setAttribute(or,l.toString())}},[])},iv=function(l){var u=l.noRelative,s=l.noImportant,c=l.gapMode,d=c===void 0?"margin":c;ov();var p=v.useMemo(function(){return nv(d)},[d]);return v.createElement(rv,{styles:lv(p,!u,d,s?"":"!important")})},Vs=!1;if(typeof window<"u")try{var go=Object.defineProperty({},"passive",{get:function(){return Vs=!0,!0}});window.addEventListener("test",go,go),window.removeEventListener("test",go,go)}catch{Vs=!1}var Jn=Vs?{passive:!1}:!1,sv=function(l){return l.tagName==="TEXTAREA"},Ud=function(l,u){if(!(l instanceof Element))return!1;var s=window.getComputedStyle(l);return s[u]!=="hidden"&&!(s.overflowY===s.overflowX&&!sv(l)&&s[u]==="visible")},uv=function(l){return Ud(l,"overflowY")},av=function(l){return Ud(l,"overflowX")},vd=function(l,u){var s=u.ownerDocument,c=u;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var d=Bd(l,c);if(d){var p=$d(l,c),g=p[1],m=p[2];if(g>m)return!0}c=c.parentNode}while(c&&c!==s.body);return!1},cv=function(l){var u=l.scrollTop,s=l.scrollHeight,c=l.clientHeight;return[u,s,c]},dv=function(l){var u=l.scrollLeft,s=l.scrollWidth,c=l.clientWidth;return[u,s,c]},Bd=function(l,u){return l==="v"?uv(u):av(u)},$d=function(l,u){return l==="v"?cv(u):dv(u)},fv=function(l,u){return l==="h"&&u==="rtl"?-1:1},pv=function(l,u,s,c,d){var p=fv(l,window.getComputedStyle(u).direction),g=p*c,m=s.target,j=u.contains(m),E=!1,N=g>0,P=0,M=0;do{if(!m)break;var T=$d(l,m),V=T[0],R=T[1],b=T[2],W=R-b-p*V;(V||W)&&Bd(l,m)&&(P+=W,M+=V);var H=m.parentNode;m=H&&H.nodeType===Node.DOCUMENT_FRAGMENT_NODE?H.host:H}while(!j&&m!==document.body||j&&(u.contains(m)||u===m));return(N&&Math.abs(P)<1||!N&&Math.abs(M)<1)&&(E=!0),E},yo=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},gd=function(l){return[l.deltaX,l.deltaY]},yd=function(l){return l&&"current"in l?l.current:l},mv=function(l,u){return l[0]===u[0]&&l[1]===u[1]},hv=function(l){return`
|
|
.block-interactivity-`.concat(l,` {pointer-events: none;}
|
|
.allow-interactivity-`).concat(l,` {pointer-events: all;}
|
|
`)},vv=0,er=[];function gv(l){var u=v.useRef([]),s=v.useRef([0,0]),c=v.useRef(),d=v.useState(vv++)[0],p=v.useState(Fd)[0],g=v.useRef(l);v.useEffect(function(){g.current=l},[l]),v.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(d));var R=Ah([l.lockRef.current],(l.shards||[]).map(yd),!0).filter(Boolean);return R.forEach(function(b){return b.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),R.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(d))})}}},[l.inert,l.lockRef.current,l.shards]);var m=v.useCallback(function(R,b){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!g.current.allowPinchZoom;var W=yo(R),H=s.current,te="deltaX"in R?R.deltaX:H[0]-W[0],q="deltaY"in R?R.deltaY:H[1]-W[1],le,ne=R.target,se=Math.abs(te)>Math.abs(q)?"h":"v";if("touches"in R&&se==="h"&&ne.type==="range")return!1;var ye=window.getSelection(),de=ye&&ye.anchorNode,xe=de?de===ne||de.contains(ne):!1;if(xe)return!1;var Ce=vd(se,ne);if(!Ce)return!0;if(Ce?le=se:(le=se==="v"?"h":"v",Ce=vd(se,ne)),!Ce)return!1;if(!c.current&&"changedTouches"in R&&(te||q)&&(c.current=le),!le)return!0;var ie=c.current||le;return pv(ie,b,R,ie==="h"?te:q)},[]),j=v.useCallback(function(R){var b=R;if(!(!er.length||er[er.length-1]!==p)){var W="deltaY"in b?gd(b):yo(b),H=u.current.filter(function(le){return le.name===b.type&&(le.target===b.target||b.target===le.shadowParent)&&mv(le.delta,W)})[0];if(H&&H.should){b.cancelable&&b.preventDefault();return}if(!H){var te=(g.current.shards||[]).map(yd).filter(Boolean).filter(function(le){return le.contains(b.target)}),q=te.length>0?m(b,te[0]):!g.current.noIsolation;q&&b.cancelable&&b.preventDefault()}}},[]),E=v.useCallback(function(R,b,W,H){var te={name:R,delta:b,target:W,should:H,shadowParent:yv(W)};u.current.push(te),setTimeout(function(){u.current=u.current.filter(function(q){return q!==te})},1)},[]),N=v.useCallback(function(R){s.current=yo(R),c.current=void 0},[]),P=v.useCallback(function(R){E(R.type,gd(R),R.target,m(R,l.lockRef.current))},[]),M=v.useCallback(function(R){E(R.type,yo(R),R.target,m(R,l.lockRef.current))},[]);v.useEffect(function(){return er.push(p),l.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:M}),document.addEventListener("wheel",j,Jn),document.addEventListener("touchmove",j,Jn),document.addEventListener("touchstart",N,Jn),function(){er=er.filter(function(R){return R!==p}),document.removeEventListener("wheel",j,Jn),document.removeEventListener("touchmove",j,Jn),document.removeEventListener("touchstart",N,Jn)}},[]);var T=l.removeScrollBar,V=l.inert;return v.createElement(v.Fragment,null,V?v.createElement(p,{styles:hv(d)}):null,T?v.createElement(iv,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function yv(l){for(var u=null;l!==null;)l instanceof ShadowRoot&&(u=l.host,l=l.host),l=l.parentNode;return u}const xv=Kh(Ad,gv);var Vd=v.forwardRef(function(l,u){return v.createElement(_o,bt({},l,{ref:u,sideCar:xv}))});Vd.classNames=_o.classNames;var wv=function(l){if(typeof document>"u")return null;var u=Array.isArray(l)?l[0]:l;return u.ownerDocument.body},tr=new WeakMap,xo=new WeakMap,wo={},Is=0,Wd=function(l){return l&&(l.host||Wd(l.parentNode))},kv=function(l,u){return u.map(function(s){if(l.contains(s))return s;var c=Wd(s);return c&&l.contains(c)?c:(console.error("aria-hidden",s,"in not contained inside",l,". Doing nothing"),null)}).filter(function(s){return!!s})},Sv=function(l,u,s,c){var d=kv(u,Array.isArray(l)?l:[l]);wo[s]||(wo[s]=new WeakMap);var p=wo[s],g=[],m=new Set,j=new Set(d),E=function(P){!P||m.has(P)||(m.add(P),E(P.parentNode))};d.forEach(E);var N=function(P){!P||j.has(P)||Array.prototype.forEach.call(P.children,function(M){if(m.has(M))N(M);else try{var T=M.getAttribute(c),V=T!==null&&T!=="false",R=(tr.get(M)||0)+1,b=(p.get(M)||0)+1;tr.set(M,R),p.set(M,b),g.push(M),R===1&&V&&xo.set(M,!0),b===1&&M.setAttribute(s,"true"),V||M.setAttribute(c,"true")}catch(W){console.error("aria-hidden: cannot operate on ",M,W)}})};return N(u),m.clear(),Is++,function(){g.forEach(function(P){var M=tr.get(P)-1,T=p.get(P)-1;tr.set(P,M),p.set(P,T),M||(xo.has(P)||P.removeAttribute(c),xo.delete(P)),T||P.removeAttribute(s)}),Is--,Is||(tr=new WeakMap,tr=new WeakMap,xo=new WeakMap,wo={})}},Ev=function(l,u,s){s===void 0&&(s="data-aria-hidden");var c=Array.from(Array.isArray(l)?l:[l]),d=wv(l);return d?(c.push.apply(c,Array.from(d.querySelectorAll("[aria-live], script"))),Sv(c,d,s,"aria-hidden")):function(){return null}},Po="Dialog",[Hd]=Zm(Po),[Cv,St]=Hd(Po),Gd=l=>{const{__scopeDialog:u,children:s,open:c,defaultOpen:d,onOpenChange:p,modal:g=!0}=l,m=v.useRef(null),j=v.useRef(null),[E,N]=nh({prop:c,defaultProp:d??!1,onChange:p,caller:Po});return f.jsx(Cv,{scope:u,triggerRef:m,contentRef:j,contentId:Ft(),titleId:Ft(),descriptionId:Ft(),open:E,onOpenChange:N,onOpenToggle:v.useCallback(()=>N(P=>!P),[N]),modal:g,children:s})};Gd.displayName=Po;var Kd="DialogTrigger",Nv=v.forwardRef((l,u)=>{const{__scopeDialog:s,...c}=l,d=St(Kd,s),p=_n(u,d.triggerRef);return f.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":Xs(d.open),...c,ref:p,onClick:cn(l.onClick,d.onOpenToggle)})});Nv.displayName=Kd;var Ys="DialogPortal",[jv,Qd]=Hd(Ys,{forceMount:void 0}),Yd=l=>{const{__scopeDialog:u,forceMount:s,children:c,container:d}=l,p=St(Ys,u);return f.jsx(jv,{scope:u,forceMount:s,children:v.Children.map(c,g=>f.jsx(jo,{present:s||p.open,children:f.jsx(Id,{asChild:!0,container:d,children:g})}))})};Yd.displayName=Ys;var No="DialogOverlay",Xd=v.forwardRef((l,u)=>{const s=Qd(No,l.__scopeDialog),{forceMount:c=s.forceMount,...d}=l,p=St(No,l.__scopeDialog);return p.modal?f.jsx(jo,{present:c||p.open,children:f.jsx(Pv,{...d,ref:u})}):null});Xd.displayName=No;var _v=Rd("DialogOverlay.RemoveScroll"),Pv=v.forwardRef((l,u)=>{const{__scopeDialog:s,...c}=l,d=St(No,s),p=Sh(),g=_n(u,p);return f.jsx(Vd,{as:_v,allowPinchZoom:!0,shards:[d.contentRef],children:f.jsx(We.div,{"data-state":Xs(d.open),...c,ref:g,style:{pointerEvents:"auto",...c.style}})})}),ur="DialogContent",Zd=v.forwardRef((l,u)=>{const s=Qd(ur,l.__scopeDialog),{forceMount:c=s.forceMount,...d}=l,p=St(ur,l.__scopeDialog);return f.jsx(jo,{present:c||p.open,children:p.modal?f.jsx(bv,{...d,ref:u}):f.jsx(Rv,{...d,ref:u})})});Zd.displayName=ur;var bv=v.forwardRef((l,u)=>{const s=St(ur,l.__scopeDialog),c=v.useRef(null),d=_n(u,s.contentRef,c);return v.useEffect(()=>{const p=c.current;if(p)return Ev(p)},[]),f.jsx(qd,{...l,ref:d,trapFocus:s.open,disableOutsidePointerEvents:s.open,onCloseAutoFocus:cn(l.onCloseAutoFocus,p=>{var g;p.preventDefault(),(g=s.triggerRef.current)==null||g.focus()}),onPointerDownOutside:cn(l.onPointerDownOutside,p=>{const g=p.detail.originalEvent,m=g.button===0&&g.ctrlKey===!0;(g.button===2||m)&&p.preventDefault()}),onFocusOutside:cn(l.onFocusOutside,p=>p.preventDefault())})}),Rv=v.forwardRef((l,u)=>{const s=St(ur,l.__scopeDialog),c=v.useRef(!1),d=v.useRef(!1);return f.jsx(qd,{...l,ref:u,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:p=>{var g,m;(g=l.onCloseAutoFocus)==null||g.call(l,p),p.defaultPrevented||(c.current||(m=s.triggerRef.current)==null||m.focus(),p.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:p=>{var j,E;(j=l.onInteractOutside)==null||j.call(l,p),p.defaultPrevented||(c.current=!0,p.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const g=p.target;((E=s.triggerRef.current)==null?void 0:E.contains(g))&&p.preventDefault(),p.detail.originalEvent.type==="focusin"&&d.current&&p.preventDefault()}})}),qd=v.forwardRef((l,u)=>{const{__scopeDialog:s,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:p,...g}=l,m=St(ur,s);return Dh(),f.jsx(f.Fragment,{children:f.jsx(Ld,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:p,children:f.jsx(Md,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Xs(m.open),...g,ref:u,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})}),Jd="DialogTitle",Mv=v.forwardRef((l,u)=>{const{__scopeDialog:s,...c}=l,d=St(Jd,s);return f.jsx(We.h2,{id:d.titleId,...c,ref:u})});Mv.displayName=Jd;var ef="DialogDescription",Tv=v.forwardRef((l,u)=>{const{__scopeDialog:s,...c}=l,d=St(ef,s);return f.jsx(We.p,{id:d.descriptionId,...c,ref:u})});Tv.displayName=ef;var tf="DialogClose",Lv=v.forwardRef((l,u)=>{const{__scopeDialog:s,...c}=l,d=St(tf,s);return f.jsx(We.button,{type:"button",...c,ref:u,onClick:cn(l.onClick,()=>d.onOpenChange(!1))})});Lv.displayName=tf;function Xs(l){return l?"open":"closed"}var Xr='[cmdk-group=""]',zs='[cmdk-group-items=""]',Ov='[cmdk-group-heading=""]',nf='[cmdk-item=""]',xd=`${nf}:not([aria-disabled="true"])`,Ws="cmdk-item-select",rr="data-value",Iv=(l,u,s)=>Xm(l,u,s),rf=v.createContext(void 0),tl=()=>v.useContext(rf),lf=v.createContext(void 0),Zs=()=>v.useContext(lf),of=v.createContext(void 0),sf=v.forwardRef((l,u)=>{let s=lr(()=>{var w,A;return{search:"",value:(A=(w=l.value)!=null?w:l.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=lr(()=>new Set),d=lr(()=>new Map),p=lr(()=>new Map),g=lr(()=>new Set),m=uf(l),{label:j,children:E,value:N,onValueChange:P,filter:M,shouldFilter:T,loop:V,disablePointerSelection:R=!1,vimBindings:b=!0,...W}=l,H=Ft(),te=Ft(),q=Ft(),le=v.useRef(null),ne=Gv();jn(()=>{if(N!==void 0){let w=N.trim();s.current.value=w,se.emit()}},[N]),jn(()=>{ne(6,Le)},[]);let se=v.useMemo(()=>({subscribe:w=>(g.current.add(w),()=>g.current.delete(w)),snapshot:()=>s.current,setState:(w,A,B)=>{var D,Y,re,ue;if(!Object.is(s.current[w],A)){if(s.current[w]=A,w==="search")ie(),xe(),ne(1,Ce);else if(w==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ce=document.getElementById(q);ce?ce.focus():(D=document.getElementById(H))==null||D.focus()}if(ne(7,()=>{var ce;s.current.selectedItemId=(ce=Ne())==null?void 0:ce.id,se.emit()}),B||ne(5,Le),((Y=m.current)==null?void 0:Y.value)!==void 0){let ce=A??"";(ue=(re=m.current).onValueChange)==null||ue.call(re,ce);return}}se.emit()}},emit:()=>{g.current.forEach(w=>w())}}),[]),ye=v.useMemo(()=>({value:(w,A,B)=>{var D;A!==((D=p.current.get(w))==null?void 0:D.value)&&(p.current.set(w,{value:A,keywords:B}),s.current.filtered.items.set(w,de(A,B)),ne(2,()=>{xe(),se.emit()}))},item:(w,A)=>(c.current.add(w),A&&(d.current.has(A)?d.current.get(A).add(w):d.current.set(A,new Set([w]))),ne(3,()=>{ie(),xe(),s.current.value||Ce(),se.emit()}),()=>{p.current.delete(w),c.current.delete(w),s.current.filtered.items.delete(w);let B=Ne();ne(4,()=>{ie(),(B==null?void 0:B.getAttribute("id"))===w&&Ce(),se.emit()})}),group:w=>(d.current.has(w)||d.current.set(w,new Set),()=>{p.current.delete(w),d.current.delete(w)}),filter:()=>m.current.shouldFilter,label:j||l["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:H,inputId:q,labelId:te,listInnerRef:le}),[]);function de(w,A){var B,D;let Y=(D=(B=m.current)==null?void 0:B.filter)!=null?D:Iv;return w?Y(w,s.current.search,A):0}function xe(){if(!s.current.search||m.current.shouldFilter===!1)return;let w=s.current.filtered.items,A=[];s.current.filtered.groups.forEach(D=>{let Y=d.current.get(D),re=0;Y.forEach(ue=>{let ce=w.get(ue);re=Math.max(ce,re)}),A.push([D,re])});let B=le.current;Oe().sort((D,Y)=>{var re,ue;let ce=D.getAttribute("id"),De=Y.getAttribute("id");return((re=w.get(De))!=null?re:0)-((ue=w.get(ce))!=null?ue:0)}).forEach(D=>{let Y=D.closest(zs);Y?Y.appendChild(D.parentElement===Y?D:D.closest(`${zs} > *`)):B.appendChild(D.parentElement===B?D:D.closest(`${zs} > *`))}),A.sort((D,Y)=>Y[1]-D[1]).forEach(D=>{var Y;let re=(Y=le.current)==null?void 0:Y.querySelector(`${Xr}[${rr}="${encodeURIComponent(D[0])}"]`);re==null||re.parentElement.appendChild(re)})}function Ce(){let w=Oe().find(B=>B.getAttribute("aria-disabled")!=="true"),A=w==null?void 0:w.getAttribute(rr);se.setState("value",A||void 0)}function ie(){var w,A,B,D;if(!s.current.search||m.current.shouldFilter===!1){s.current.filtered.count=c.current.size;return}s.current.filtered.groups=new Set;let Y=0;for(let re of c.current){let ue=(A=(w=p.current.get(re))==null?void 0:w.value)!=null?A:"",ce=(D=(B=p.current.get(re))==null?void 0:B.keywords)!=null?D:[],De=de(ue,ce);s.current.filtered.items.set(re,De),De>0&&Y++}for(let[re,ue]of d.current)for(let ce of ue)if(s.current.filtered.items.get(ce)>0){s.current.filtered.groups.add(re);break}s.current.filtered.count=Y}function Le(){var w,A,B;let D=Ne();D&&(((w=D.parentElement)==null?void 0:w.firstChild)===D&&((B=(A=D.closest(Xr))==null?void 0:A.querySelector(Ov))==null||B.scrollIntoView({block:"nearest"})),D.scrollIntoView({block:"nearest"}))}function Ne(){var w;return(w=le.current)==null?void 0:w.querySelector(`${nf}[aria-selected="true"]`)}function Oe(){var w;return Array.from(((w=le.current)==null?void 0:w.querySelectorAll(xd))||[])}function je(w){let A=Oe()[w];A&&se.setState("value",A.getAttribute(rr))}function he(w){var A;let B=Ne(),D=Oe(),Y=D.findIndex(ue=>ue===B),re=D[Y+w];(A=m.current)!=null&&A.loop&&(re=Y+w<0?D[D.length-1]:Y+w===D.length?D[0]:D[Y+w]),re&&se.setState("value",re.getAttribute(rr))}function F(w){let A=Ne(),B=A==null?void 0:A.closest(Xr),D;for(;B&&!D;)B=w>0?Wv(B,Xr):Hv(B,Xr),D=B==null?void 0:B.querySelector(xd);D?se.setState("value",D.getAttribute(rr)):he(w)}let Z=()=>je(Oe().length-1),U=w=>{w.preventDefault(),w.metaKey?Z():w.altKey?F(1):he(1)},k=w=>{w.preventDefault(),w.metaKey?je(0):w.altKey?F(-1):he(-1)};return v.createElement(We.div,{ref:u,tabIndex:-1,...W,"cmdk-root":"",onKeyDown:w=>{var A;(A=W.onKeyDown)==null||A.call(W,w);let B=w.nativeEvent.isComposing||w.keyCode===229;if(!(w.defaultPrevented||B))switch(w.key){case"n":case"j":{b&&w.ctrlKey&&U(w);break}case"ArrowDown":{U(w);break}case"p":case"k":{b&&w.ctrlKey&&k(w);break}case"ArrowUp":{k(w);break}case"Home":{w.preventDefault(),je(0);break}case"End":{w.preventDefault(),Z();break}case"Enter":{w.preventDefault();let D=Ne();if(D){let Y=new Event(Ws);D.dispatchEvent(Y)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:ye.inputId,id:ye.labelId,style:Qv},j),bo(l,w=>v.createElement(lf.Provider,{value:se},v.createElement(rf.Provider,{value:ye},w))))}),zv=v.forwardRef((l,u)=>{var s,c;let d=Ft(),p=v.useRef(null),g=v.useContext(of),m=tl(),j=uf(l),E=(c=(s=j.current)==null?void 0:s.forceMount)!=null?c:g==null?void 0:g.forceMount;jn(()=>{if(!E)return m.item(d,g==null?void 0:g.id)},[E]);let N=af(d,p,[l.value,l.children,p],l.keywords),P=Zs(),M=dn(ne=>ne.value&&ne.value===N.current),T=dn(ne=>E||m.filter()===!1?!0:ne.search?ne.filtered.items.get(d)>0:!0);v.useEffect(()=>{let ne=p.current;if(!(!ne||l.disabled))return ne.addEventListener(Ws,V),()=>ne.removeEventListener(Ws,V)},[T,l.onSelect,l.disabled]);function V(){var ne,se;R(),(se=(ne=j.current).onSelect)==null||se.call(ne,N.current)}function R(){P.setState("value",N.current,!0)}if(!T)return null;let{disabled:b,value:W,onSelect:H,forceMount:te,keywords:q,...le}=l;return v.createElement(We.div,{ref:sr(p,u),...le,id:d,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!M,"data-disabled":!!b,"data-selected":!!M,onPointerMove:b||m.getDisablePointerSelection()?void 0:R,onClick:b?void 0:V},l.children)}),Dv=v.forwardRef((l,u)=>{let{heading:s,children:c,forceMount:d,...p}=l,g=Ft(),m=v.useRef(null),j=v.useRef(null),E=Ft(),N=tl(),P=dn(T=>d||N.filter()===!1?!0:T.search?T.filtered.groups.has(g):!0);jn(()=>N.group(g),[]),af(g,m,[l.value,l.heading,j]);let M=v.useMemo(()=>({id:g,forceMount:d}),[d]);return v.createElement(We.div,{ref:sr(m,u),...p,"cmdk-group":"",role:"presentation",hidden:P?void 0:!0},s&&v.createElement("div",{ref:j,"cmdk-group-heading":"","aria-hidden":!0,id:E},s),bo(l,T=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":s?E:void 0},v.createElement(of.Provider,{value:M},T))))}),Av=v.forwardRef((l,u)=>{let{alwaysRender:s,...c}=l,d=v.useRef(null),p=dn(g=>!g.search);return!s&&!p?null:v.createElement(We.div,{ref:sr(d,u),...c,"cmdk-separator":"",role:"separator"})}),Fv=v.forwardRef((l,u)=>{let{onValueChange:s,...c}=l,d=l.value!=null,p=Zs(),g=dn(E=>E.search),m=dn(E=>E.selectedItemId),j=tl();return v.useEffect(()=>{l.value!=null&&p.setState("search",l.value)},[l.value]),v.createElement(We.input,{ref:u,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":j.listId,"aria-labelledby":j.labelId,"aria-activedescendant":m,id:j.inputId,type:"text",value:d?l.value:g,onChange:E=>{d||p.setState("search",E.target.value),s==null||s(E.target.value)}})}),Uv=v.forwardRef((l,u)=>{let{children:s,label:c="Suggestions",...d}=l,p=v.useRef(null),g=v.useRef(null),m=dn(E=>E.selectedItemId),j=tl();return v.useEffect(()=>{if(g.current&&p.current){let E=g.current,N=p.current,P,M=new ResizeObserver(()=>{P=requestAnimationFrame(()=>{let T=E.offsetHeight;N.style.setProperty("--cmdk-list-height",T.toFixed(1)+"px")})});return M.observe(E),()=>{cancelAnimationFrame(P),M.unobserve(E)}}},[]),v.createElement(We.div,{ref:sr(p,u),...d,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":c,id:j.listId},bo(l,E=>v.createElement("div",{ref:sr(g,j.listInnerRef),"cmdk-list-sizer":""},E)))}),Bv=v.forwardRef((l,u)=>{let{open:s,onOpenChange:c,overlayClassName:d,contentClassName:p,container:g,...m}=l;return v.createElement(Gd,{open:s,onOpenChange:c},v.createElement(Yd,{container:g},v.createElement(Xd,{"cmdk-overlay":"",className:d}),v.createElement(Zd,{"aria-label":l.label,"cmdk-dialog":"",className:p},v.createElement(sf,{ref:u,...m}))))}),$v=v.forwardRef((l,u)=>dn(s=>s.filtered.count===0)?v.createElement(We.div,{ref:u,...l,"cmdk-empty":"",role:"presentation"}):null),Vv=v.forwardRef((l,u)=>{let{progress:s,children:c,label:d="Loading...",...p}=l;return v.createElement(We.div,{ref:u,...p,"cmdk-loading":"",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,"aria-label":d},bo(l,g=>v.createElement("div",{"aria-hidden":!0},g)))}),nr=Object.assign(sf,{List:Uv,Item:zv,Input:Fv,Group:Dv,Separator:Av,Dialog:Bv,Empty:$v,Loading:Vv});function Wv(l,u){let s=l.nextElementSibling;for(;s;){if(s.matches(u))return s;s=s.nextElementSibling}}function Hv(l,u){let s=l.previousElementSibling;for(;s;){if(s.matches(u))return s;s=s.previousElementSibling}}function uf(l){let u=v.useRef(l);return jn(()=>{u.current=l}),u}var jn=typeof window>"u"?v.useEffect:v.useLayoutEffect;function lr(l){let u=v.useRef();return u.current===void 0&&(u.current=l()),u}function dn(l){let u=Zs(),s=()=>l(u.snapshot());return v.useSyncExternalStore(u.subscribe,s,s)}function af(l,u,s,c=[]){let d=v.useRef(),p=tl();return jn(()=>{var g;let m=(()=>{var E;for(let N of s){if(typeof N=="string")return N.trim();if(typeof N=="object"&&"current"in N)return N.current?(E=N.current.textContent)==null?void 0:E.trim():d.current}})(),j=c.map(E=>E.trim());p.value(l,m,j),(g=u.current)==null||g.setAttribute(rr,m),d.current=m}),d}var Gv=()=>{let[l,u]=v.useState(),s=lr(()=>new Map);return jn(()=>{s.current.forEach(c=>c()),s.current=new Map},[l]),(c,d)=>{s.current.set(c,d),u({})}};function Kv(l){let u=l.type;return typeof u=="function"?u(l.props):"render"in u?u.render(l.props):l}function bo({asChild:l,children:u},s){return l&&v.isValidElement(u)?v.cloneElement(Kv(u),{ref:u.ref},s(u.props.children)):s(u)}var Qv={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Yv({onNavigate:l}){const[u,s]=v.useState(!1);return v.useEffect(()=>{const c=d=>{(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()==="k"&&(d.preventDefault(),s(p=>!p))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),f.jsx(nr.Dialog,{open:u,onOpenChange:s,label:"Befehlspalette",className:"fixed inset-0 z-50 flex items-start justify-center bg-black/50 p-4 pt-[12vh]",onClick:()=>s(!1),children:f.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:[f.jsx(nr.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"}),f.jsxs(nr.List,{className:"max-h-80 overflow-y-auto p-2",children:[f.jsx(nr.Empty,{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"Nichts gefunden."}),f.jsx(nr.Group,{heading:"Bereiche",className:"px-1 py-1 text-xs text-muted-foreground",children:Us.map(c=>f.jsxs(nr.Item,{value:`${c.label} ${c.hint}`,onSelect:()=>{l(c.id),s(!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:[f.jsx(c.icon,{className:"h-4 w-4 text-primary"}),f.jsx("span",{children:c.label}),f.jsx("span",{className:"ml-auto truncate text-xs text-muted-foreground",children:c.hint})]},c.id))})]})]})})}async function Ye(l,u){const s=await fetch(l,{headers:{"Content-Type":"application/json"},...u});if(!s.ok)throw new Error(`${s.status} ${s.statusText}`);return s.json()}function Nn({children:l,tone:u="muted"}){const s={muted:"bg-muted text-muted-foreground",primary:"bg-primary/15 text-primary",warn:"bg-amber-500/15 text-amber-500"};return f.jsx("span",{className:`rounded px-1.5 py-0.5 text-[11px] font-medium ${s[u]}`,children:l})}function cf({caps:l}){return l?f.jsxs("span",{className:"inline-flex flex-wrap gap-1",children:[l.coder&&f.jsx(Nn,{children:"💻 Code"}),l.vision&&f.jsx(Nn,{children:"👁 Bild"}),l.reasoning&&f.jsx(Nn,{children:"🧠 Reason"}),l.moe&&f.jsxs(Nn,{tone:"primary",children:["🧩 MoE",l.active_b?`·${l.active_b}b`:""]}),l.tools==="yes"&&f.jsx(Nn,{tone:"primary",children:"🛠 Tools"}),l.tools==="likely"&&f.jsx(Nn,{tone:"warn",children:"🛠 Tools?"}),l.embedding&&f.jsx(Nn,{children:"🔢 Embed"})]}):null}function df(l){var u,s,c="";if(typeof l=="string"||typeof l=="number")c+=l;else if(typeof l=="object")if(Array.isArray(l)){var d=l.length;for(u=0;u<d;u++)l[u]&&(s=df(l[u]))&&(c&&(c+=" "),c+=s)}else for(s in l)l[s]&&(c&&(c+=" "),c+=s);return c}function Xv(){for(var l,u,s=0,c="",d=arguments.length;s<d;s++)(l=arguments[s])&&(u=df(l))&&(c&&(c+=" "),c+=u);return c}const qs="-",Zv=l=>{const u=Jv(l),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=l;return{getClassGroupId:g=>{const m=g.split(qs);return m[0]===""&&m.length!==1&&m.shift(),ff(m,u)||qv(g)},getConflictingClassGroupIds:(g,m)=>{const j=s[g]||[];return m&&c[g]?[...j,...c[g]]:j}}},ff=(l,u)=>{var g;if(l.length===0)return u.classGroupId;const s=l[0],c=u.nextPart.get(s),d=c?ff(l.slice(1),c):void 0;if(d)return d;if(u.validators.length===0)return;const p=l.join(qs);return(g=u.validators.find(({validator:m})=>m(p)))==null?void 0:g.classGroupId},wd=/^\[(.+)\]$/,qv=l=>{if(wd.test(l)){const u=wd.exec(l)[1],s=u==null?void 0:u.substring(0,u.indexOf(":"));if(s)return"arbitrary.."+s}},Jv=l=>{const{theme:u,prefix:s}=l,c={nextPart:new Map,validators:[]};return tg(Object.entries(l.classGroups),s).forEach(([p,g])=>{Hs(g,c,p,u)}),c},Hs=(l,u,s,c)=>{l.forEach(d=>{if(typeof d=="string"){const p=d===""?u:kd(u,d);p.classGroupId=s;return}if(typeof d=="function"){if(eg(d)){Hs(d(c),u,s,c);return}u.validators.push({validator:d,classGroupId:s});return}Object.entries(d).forEach(([p,g])=>{Hs(g,kd(u,p),s,c)})})},kd=(l,u)=>{let s=l;return u.split(qs).forEach(c=>{s.nextPart.has(c)||s.nextPart.set(c,{nextPart:new Map,validators:[]}),s=s.nextPart.get(c)}),s},eg=l=>l.isThemeGetter,tg=(l,u)=>u?l.map(([s,c])=>{const d=c.map(p=>typeof p=="string"?u+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([g,m])=>[u+g,m])):p);return[s,d]}):l,ng=l=>{if(l<1)return{get:()=>{},set:()=>{}};let u=0,s=new Map,c=new Map;const d=(p,g)=>{s.set(p,g),u++,u>l&&(u=0,c=s,s=new Map)};return{get(p){let g=s.get(p);if(g!==void 0)return g;if((g=c.get(p))!==void 0)return d(p,g),g},set(p,g){s.has(p)?s.set(p,g):d(p,g)}}},pf="!",rg=l=>{const{separator:u,experimentalParseClassName:s}=l,c=u.length===1,d=u[0],p=u.length,g=m=>{const j=[];let E=0,N=0,P;for(let b=0;b<m.length;b++){let W=m[b];if(E===0){if(W===d&&(c||m.slice(b,b+p)===u)){j.push(m.slice(N,b)),N=b+p;continue}if(W==="/"){P=b;continue}}W==="["?E++:W==="]"&&E--}const M=j.length===0?m:m.substring(N),T=M.startsWith(pf),V=T?M.substring(1):M,R=P&&P>N?P-N:void 0;return{modifiers:j,hasImportantModifier:T,baseClassName:V,maybePostfixModifierPosition:R}};return s?m=>s({className:m,parseClassName:g}):g},lg=l=>{if(l.length<=1)return l;const u=[];let s=[];return l.forEach(c=>{c[0]==="["?(u.push(...s.sort(),c),s=[]):s.push(c)}),u.push(...s.sort()),u},og=l=>({cache:ng(l.cacheSize),parseClassName:rg(l),...Zv(l)}),ig=/\s+/,sg=(l,u)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:d}=u,p=[],g=l.trim().split(ig);let m="";for(let j=g.length-1;j>=0;j-=1){const E=g[j],{modifiers:N,hasImportantModifier:P,baseClassName:M,maybePostfixModifierPosition:T}=s(E);let V=!!T,R=c(V?M.substring(0,T):M);if(!R){if(!V){m=E+(m.length>0?" "+m:m);continue}if(R=c(M),!R){m=E+(m.length>0?" "+m:m);continue}V=!1}const b=lg(N).join(":"),W=P?b+pf:b,H=W+R;if(p.includes(H))continue;p.push(H);const te=d(R,V);for(let q=0;q<te.length;++q){const le=te[q];p.push(W+le)}m=E+(m.length>0?" "+m:m)}return m};function ug(){let l=0,u,s,c="";for(;l<arguments.length;)(u=arguments[l++])&&(s=mf(u))&&(c&&(c+=" "),c+=s);return c}const mf=l=>{if(typeof l=="string")return l;let u,s="";for(let c=0;c<l.length;c++)l[c]&&(u=mf(l[c]))&&(s&&(s+=" "),s+=u);return s};function ag(l,...u){let s,c,d,p=g;function g(j){const E=u.reduce((N,P)=>P(N),l());return s=og(E),c=s.cache.get,d=s.cache.set,p=m,m(j)}function m(j){const E=c(j);if(E)return E;const N=sg(j,s);return d(j,N),N}return function(){return p(ug.apply(null,arguments))}}const Se=l=>{const u=s=>s[l]||[];return u.isThemeGetter=!0,u},hf=/^\[(?:([a-z-]+):)?(.+)\]$/i,cg=/^\d+\/\d+$/,dg=new Set(["px","full","screen"]),fg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pg=/\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$/,mg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=l=>ir(l)||dg.has(l)||cg.test(l),on=l=>ar(l,"length",Cg),ir=l=>!!l&&!Number.isNaN(Number(l)),Ds=l=>ar(l,"number",ir),Zr=l=>!!l&&Number.isInteger(Number(l)),gg=l=>l.endsWith("%")&&ir(l.slice(0,-1)),ae=l=>hf.test(l),sn=l=>fg.test(l),yg=new Set(["length","size","percentage"]),xg=l=>ar(l,yg,vf),wg=l=>ar(l,"position",vf),kg=new Set(["image","url"]),Sg=l=>ar(l,kg,jg),Eg=l=>ar(l,"",Ng),qr=()=>!0,ar=(l,u,s)=>{const c=hf.exec(l);return c?c[1]?typeof u=="string"?c[1]===u:u.has(c[1]):s(c[2]):!1},Cg=l=>pg.test(l)&&!mg.test(l),vf=()=>!1,Ng=l=>hg.test(l),jg=l=>vg.test(l),_g=()=>{const l=Se("colors"),u=Se("spacing"),s=Se("blur"),c=Se("brightness"),d=Se("borderColor"),p=Se("borderRadius"),g=Se("borderSpacing"),m=Se("borderWidth"),j=Se("contrast"),E=Se("grayscale"),N=Se("hueRotate"),P=Se("invert"),M=Se("gap"),T=Se("gradientColorStops"),V=Se("gradientColorStopPositions"),R=Se("inset"),b=Se("margin"),W=Se("opacity"),H=Se("padding"),te=Se("saturate"),q=Se("scale"),le=Se("sepia"),ne=Se("skew"),se=Se("space"),ye=Se("translate"),de=()=>["auto","contain","none"],xe=()=>["auto","hidden","clip","visible","scroll"],Ce=()=>["auto",ae,u],ie=()=>[ae,u],Le=()=>["",At,on],Ne=()=>["auto",ir,ae],Oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",ae],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[ir,ae];return{cacheSize:500,separator:":",theme:{colors:[qr],spacing:[At,on],blur:["none","",sn,ae],brightness:k(),borderColor:[l],borderRadius:["none","","full",sn,ae],borderSpacing:ie(),borderWidth:Le(),contrast:k(),grayscale:Z(),hueRotate:k(),invert:Z(),gap:ie(),gradientColorStops:[l],gradientColorStopPositions:[gg,on],inset:Ce(),margin:Ce(),opacity:k(),padding:ie(),saturate:k(),scale:k(),sepia:Z(),skew:k(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:[...Oe(),ae]}],overflow:[{overflow:xe()}],"overflow-x":[{"overflow-x":xe()}],"overflow-y":[{"overflow-y":xe()}],overscroll:[{overscroll:de()}],"overscroll-x":[{"overscroll-x":de()}],"overscroll-y":[{"overscroll-y":de()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zr,ae]}],basis:[{basis:Ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Zr,ae]}],"grid-cols":[{"grid-cols":[qr]}],"col-start-end":[{col:["auto",{span:["full",Zr,ae]},ae]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[qr]}],"row-start-end":[{row:["auto",{span:[Zr,ae]},ae]}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[M]}],"gap-x":[{"gap-x":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ae,u]}],"min-w":[{"min-w":[ae,u,"min","max","fit"]}],"max-w":[{"max-w":[ae,u,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[ae,u,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ae,u,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ae,u,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ae,u,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ds]}],"font-family":[{font:[qr]}],"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",ae]}],"line-clamp":[{"line-clamp":["none",ir,Ds]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,ae]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[l]}],"placeholder-opacity":[{"placeholder-opacity":[W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[W]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,on]}],"underline-offset":[{"underline-offset":["auto",At,ae]}],"text-decoration-color":[{decoration:[l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],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",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[W]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Oe(),wg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sg]}],"bg-color":[{bg:[l]}],"gradient-from-pos":[{from:[V]}],"gradient-via-pos":[{via:[V]}],"gradient-to-pos":[{to:[V]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[W]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[W]}],"divide-style":[{divide:je()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...je()]}],"outline-offset":[{"outline-offset":[At,ae]}],"outline-w":[{outline:[At,on]}],"outline-color":[{outline:[l]}],"ring-w":[{ring:Le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[l]}],"ring-opacity":[{"ring-opacity":[W]}],"ring-offset-w":[{"ring-offset":[At,on]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",sn,Eg]}],"shadow-color":[{shadow:[qr]}],opacity:[{opacity:[W]}],"mix-blend":[{"mix-blend":[...he(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":he()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[c]}],contrast:[{contrast:[j]}],"drop-shadow":[{"drop-shadow":["","none",sn,ae]}],grayscale:[{grayscale:[E]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[P]}],saturate:[{saturate:[te]}],sepia:[{sepia:[le]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[j]}],"backdrop-grayscale":[{"backdrop-grayscale":[E]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[W]}],"backdrop-saturate":[{"backdrop-saturate":[te]}],"backdrop-sepia":[{"backdrop-sepia":[le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[g]}],"border-spacing-x":[{"border-spacing-x":[g]}],"border-spacing-y":[{"border-spacing-y":[g]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[q]}],"scale-x":[{"scale-x":[q]}],"scale-y":[{"scale-y":[q]}],rotate:[{rotate:[Zr,ae]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],accent:[{accent:["auto",l]}],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",ae]}],"caret-color":[{caret:[l]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"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",ae]}],fill:[{fill:[l,"none"]}],"stroke-w":[{stroke:[At,on,Ds]}],stroke:[{stroke:[l,"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"]}}},Pg=ag(_g);function kt(...l){return Pg(Xv(l))}function Sd(l){return l?`${(l/1024**3).toFixed(1)} GB`:""}function bg(l){if(!l)return"";const u=Math.floor(l/60);return u>0?`${u} min`:`${l} s`}function Rg(){const[l,u]=v.useState([]);v.useEffect(()=>{const d=()=>Ye("/api/jobs").then(g=>u(g.jobs)).catch(()=>{});d();const p=setInterval(d,2e3);return()=>clearInterval(p)},[]);const s=l.filter(d=>d.state==="running"||d.state==="queued"),c=l.filter(d=>d.state!=="running"&&d.state!=="queued").slice(-3);return s.length===0&&c.length===0?null:f.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-card p-3",children:[f.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Downloads"}),s.map(d=>f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex justify-between text-xs",children:[f.jsx("span",{className:"truncate",children:d.label}),f.jsxs("span",{className:"text-muted-foreground",children:[d.progress??0,"% · ",Sd(d.done_bytes),"/",Sd(d.total_bytes),d.eta_s?` · ETA ${bg(d.eta_s)}`:""]})]}),f.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:f.jsx("div",{className:"h-full rounded-full bg-primary transition-all",style:{width:`${d.progress??0}%`}})})]},d.id)),c.map(d=>f.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[f.jsx("span",{className:"truncate",children:d.label}),f.jsx("span",{className:d.state==="done"?"text-emerald-500":"text-amber-500",children:d.state})]},d.id))]})}function Mg(l){if(!l)return"—";const u=l/1024**3;return u>=1?`${u.toFixed(1)} GB`:`${(l/1024**2).toFixed(0)} MB`}function Tg(l){return l?`${Math.round(l/1024)}k`:"—"}function Lg({fit:l}){const u={perfect:"bg-emerald-500/15 text-emerald-500",marginal:"bg-amber-500/15 text-amber-500",too_tight:"bg-red-500/15 text-red-500"}[l.level];return f.jsxs("span",{className:kt("rounded px-1.5 py-0.5 text-[11px] font-medium",u),children:[l.text," · ~",l.req_gb," GB"]})}function Og(){const[l,u]=v.useState([]),[s,c]=v.useState(""),[d,p]=v.useState(!0);return v.useEffect(()=>{Ye("/api/models").then(g=>u(g.models)).catch(g=>c(String(g))).finally(()=>p(!1))},[]),d?f.jsx("div",{className:"text-sm text-muted-foreground",children:"Lade…"}):s?f.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Engine nicht erreichbar oder keine Config gefunden (",s,")."]}):f.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card",children:f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted-foreground",children:[f.jsx("th",{className:"px-4 py-2 font-medium",children:"Modell"}),f.jsx("th",{className:"px-4 py-2 font-medium",children:"Rolle"}),f.jsx("th",{className:"px-4 py-2 font-medium",children:"Fähigkeiten"}),f.jsx("th",{className:"px-4 py-2 font-medium",children:"Kontext"}),f.jsx("th",{className:"px-4 py-2 font-medium",children:"Größe"})]})}),f.jsxs("tbody",{children:[l.length===0&&f.jsx("tr",{children:f.jsx("td",{colSpan:5,className:"px-4 py-8 text-center text-muted-foreground",children:"Keine Modelle konfiguriert."})}),l.map(g=>f.jsxs("tr",{className:"border-b border-border/50 last:border-0",children:[f.jsx("td",{className:"px-4 py-2.5 font-medium",children:g.name}),f.jsx("td",{className:"px-4 py-2.5",children:g.role?f.jsx("span",{className:"rounded-md bg-primary/15 px-2 py-0.5 text-xs text-primary",children:g.role}):f.jsx("span",{className:"text-muted-foreground",children:"—"})}),f.jsx("td",{className:"px-4 py-2.5",children:f.jsx(cf,{caps:g.capabilities})}),f.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:Tg(g.ctx)}),f.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:Mg(g.size_bytes)})]},g.name))]})]})})}function Ig(){const[l,u]=v.useState(null),[s,c]=v.useState(""),[d,p]=v.useState(!0),[g,m]=v.useState({});v.useEffect(()=>{Ye("/api/discover").then(u).catch(E=>c(String(E))).finally(()=>p(!1))},[]);async function j(E,N,P,M){m(T=>({...T,[E]:"…"}));try{await Ye("/api/models/install",{method:"POST",body:JSON.stringify({repo:E,role:N,quant:P,jinja:M})}),m(T=>({...T,[E]:"geladen"}))}catch{m(V=>({...V,[E]:"Fehler"}))}}return d?f.jsx("div",{className:"text-sm text-muted-foreground",children:"Suche aktuelle Modelle…"}):s||!l?f.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Modell-Quellen gerade nicht erreichbar (",s,")."]}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"text-xs text-muted-foreground",children:["Live von HuggingFace · Hardware-Fit für ~",l.sys_ram_gb," GB · ⭐ = beste Wahl je Kategorie"]}),l.categories.map(E=>f.jsxs("div",{className:"space-y-2",children:[f.jsx("h3",{className:"text-sm font-semibold",children:E.title}),f.jsx("div",{className:"grid gap-2 sm:grid-cols-2",children:E.models.map(N=>f.jsxs("div",{className:"rounded-lg border border-border bg-card p-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[E.recommended===N.repo&&f.jsx("span",{title:"beste Wahl",children:"⭐"}),f.jsx("span",{className:"truncate text-sm font-medium",children:N.name})]}),f.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:N.author}),f.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1",children:[f.jsx(cf,{caps:N.caps}),f.jsx(Lg,{fit:N.fit})]}),N.fit.level!=="too_tight"&&f.jsxs("button",{onClick:()=>j(N.repo,N.role,N.quant,N.caps.tools!=="no"),disabled:!!g[N.repo],className:"mt-2 flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1 text-xs hover:bg-accent disabled:opacity-60",children:[f.jsx(Om,{className:"h-3.5 w-3.5 text-primary"}),g[N.repo]||"Installieren"]})]},N.repo))})]},E.role))]})}function zg(){const[l,u]=v.useState("installed");return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-semibold",children:"Modelle & Routing"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Installierte Modelle (mit Fähigkeiten) und aktuell beste Modelle für deine Hardware."})]}),f.jsx(Rg,{}),f.jsx("div",{className:"inline-flex rounded-lg border border-border bg-card p-0.5 text-sm",children:["installed","discover"].map(s=>f.jsx("button",{onClick:()=>u(s),className:kt("rounded-md px-3 py-1.5 transition-colors",l===s?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground"),children:s==="installed"?"Installiert":"Modelle finden"},s))}),l==="installed"?f.jsx(Og,{}):f.jsx(Ig,{})]})}function Dg(){const[l,u]=v.useState(null),[s,c]=v.useState("");return v.useEffect(()=>{Ye("/api/routing").then(u).catch(d=>c(String(d)))},[]),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-semibold",children:"Routing"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Eingebauter OpenAI-Gateway: ein Endpunkt für alle Tools. ",f.jsx("code",{children:"model: auto"})," = schnell im Alltag (",f.jsx("code",{children:"fast"}),"), wechselt bei komplexen/langen Anfragen auf ",f.jsx("code",{children:"heavy"}),". Gilt für Hermes ",f.jsx("em",{children:"und"})," Vibe Coding."]})]}),s&&f.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Gateway-Config nicht lesbar (",s,")."]}),l&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx("span",{className:kt("h-2 w-2 rounded-full",l.gateway_reachable?"bg-emerald-500":"bg-amber-500")}),"Gateway ",l.gateway_reachable?"online":"offline",l.endpoint&&f.jsxs("span",{className:"text-muted-foreground",children:["· ",l.endpoint]}),l.heavy_threshold_chars&&f.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:["auto→heavy ab ",l.heavy_threshold_chars," Zeichen"]})]}),f.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card",children:f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted-foreground",children:[f.jsx("th",{className:"px-4 py-2 font-medium",children:"Gateway-Modell"}),f.jsx("th",{className:"px-4 py-2 font-medium",children:"→ Backend (llama-swap)"})]})}),f.jsx("tbody",{children:l.routes.map(d=>f.jsxs("tr",{className:"border-b border-border/50 last:border-0",children:[f.jsx("td",{className:"px-4 py-2.5 font-medium",children:d.name}),f.jsx("td",{className:"px-4 py-2.5 font-mono text-xs text-muted-foreground",children:d.target})]},d.name))})]})}),l.fallbacks.length>0&&f.jsxs("div",{className:"rounded-xl border border-border bg-card p-4 text-sm",children:[f.jsx("div",{className:"mb-2 font-medium",children:"Eskalation (Fallbacks)"}),f.jsx("ul",{className:"space-y-1 text-muted-foreground",children:l.fallbacks.map((d,p)=>{const[g,m]=Object.entries(d)[0];return f.jsxs("li",{children:[f.jsx("code",{children:g})," → ",f.jsx("code",{children:m.join(", ")})]},p)})})]})]})]})}function un(l){return(l/1024**3).toFixed(1)}function ko({label:l,percent:u,detail:s}){return f.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[f.jsxs("div",{className:"flex items-baseline justify-between",children:[f.jsx("span",{className:"text-sm font-medium",children:l}),f.jsxs("span",{className:"text-sm text-muted-foreground",children:[Math.round(u),"%"]})]}),f.jsx("div",{className:"mt-2 h-2 overflow-hidden rounded-full bg-muted",children:f.jsx("div",{className:"h-full rounded-full bg-primary",style:{width:`${Math.min(u,100)}%`}})}),s&&f.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:s})]})}function Ag(){const[l,u]=v.useState(null),[s,c]=v.useState(null),[d,p]=v.useState(""),[g,m]=v.useState("");v.useEffect(()=>{const E=()=>{Ye("/api/system/status").then(u).catch(P=>p(String(P))),Ye("/api/system/services").then(c).catch(()=>{})};E();const N=setInterval(E,3e3);return()=>clearInterval(N)},[]);async function j(){m("…");try{const E=await Ye("/api/system/backup",{method:"POST"});m(E.ok?`Snapshot ${E.snapshot} (${E.files.length} Dateien)`:"Nichts zu sichern")}catch(E){m(`Fehler: ${E}`)}}return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-semibold",children:"System"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Live-Auslastung der Box, Dienste & Updates."})]}),d&&f.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["System-Status nicht lesbar (",d,")."]}),l&&f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[f.jsx(ko,{label:"CPU",percent:l.cpu.percent,detail:l.cpu.cores?`${l.cpu.cores} Kerne`:void 0}),f.jsx(ko,{label:"RAM",percent:l.ram.percent,detail:`${un(l.ram.used)} / ${un(l.ram.total)} GB`}),l.gpu&&l.gpu.busy_percent!=null&&f.jsx(ko,{label:"GPU",percent:l.gpu.busy_percent,detail:l.gpu.gtt_used!=null&&l.gpu.gtt_total?`${un(l.gpu.gtt_used)} / ${un(l.gpu.gtt_total)} GB (GTT/unified)`:l.gpu.vram_used!=null&&l.gpu.vram_total?`${un(l.gpu.vram_used)} / ${un(l.gpu.vram_total)} GB VRAM`:void 0}),l.disk&&f.jsx(ko,{label:"Disk (Modelle)",percent:l.disk.percent,detail:`${un(l.disk.used)} / ${un(l.disk.total)} GB`})]}),(l==null?void 0:l.temp)&&(l.temp.cpu||l.temp.gpu)&&f.jsxs("div",{className:"flex gap-3 text-sm text-muted-foreground",children:[l.temp.cpu!=null&&f.jsxs("span",{children:["CPU ",l.temp.cpu," °C"]}),l.temp.gpu!=null&&f.jsxs("span",{children:["GPU ",l.temp.gpu," °C"]})]}),s&&f.jsxs("div",{className:"rounded-xl border border-border bg-card p-4",children:[f.jsx("div",{className:"mb-3 text-sm font-medium",children:"Dienste"}),f.jsx("div",{className:"grid gap-2 sm:grid-cols-2",children:s.services.map(E=>f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx("span",{className:kt("h-2 w-2 rounded-full",E.ok?"bg-emerald-500":"bg-amber-500")}),f.jsx("span",{children:E.name}),f.jsx("span",{className:"ml-auto font-mono text-xs text-muted-foreground",children:E.url})]},E.name))}),f.jsxs("div",{className:"mt-3 flex flex-wrap gap-3 text-xs",children:[f.jsxs("a",{href:s.links.engine_ui,target:"_blank",rel:"noopener",className:"flex items-center gap-1 text-primary hover:underline",children:[f.jsx(Fs,{className:"h-3 w-3"})," Engine-Logs (llama-swap /ui)"]}),f.jsxs("a",{href:s.links.gateway,target:"_blank",rel:"noopener",className:"flex items-center gap-1 text-primary hover:underline",children:[f.jsx(Fs,{className:"h-3 w-3"})," Gateway"]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("button",{onClick:j,className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-sm hover:bg-accent",children:[f.jsx(Am,{className:"h-3.5 w-3.5 text-primary"})," Backup jetzt"]}),g&&f.jsx("span",{className:"text-xs text-muted-foreground",children:g})]})]})}function Fg(){const[l,u]=v.useState(localStorage.getItem("mc_host")||"192.168.178.151"),[s,c]=v.useState(null),[d,p]=v.useState("cline"),[g,m]=v.useState(!1),[j,E]=v.useState("");v.useEffect(()=>{Ye(`/api/connect?host=${encodeURIComponent(l)}`).then(c).catch(T=>E(String(T)))},[l]);function N(T){u(T),T&&localStorage.setItem("mc_host",T)}const P=s==null?void 0:s.tools[d];async function M(){P&&(await navigator.clipboard.writeText(P.snippet),m(!0),setTimeout(()=>m(!1),1500))}return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-semibold",children:"Verbinden"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Fertige Snippets für deine Tools auf dem lokalen PC — alle zeigen auf den Gateway der Box (",f.jsx("code",{children:"model: auto"}),") + das geteilte Gedächtnis."]})]}),f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx("label",{className:"text-muted-foreground",children:"Box-LAN-IP:"}),f.jsx("input",{value:l,onChange:T=>N(T.target.value),className:"rounded-md border border-border bg-card px-2 py-1 font-mono text-xs outline-none focus:ring-2 focus:ring-ring"}),s&&f.jsxs("span",{className:"text-xs text-muted-foreground",children:["→ ",s.gateway_url]})]}),j&&f.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Snippets nicht ladbar (",j,")."]}),s&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"flex flex-wrap gap-1",children:Object.entries(s.tools).map(([T,V])=>f.jsx("button",{onClick:()=>p(T),className:kt("rounded-md px-3 py-1.5 text-sm transition-colors",d===T?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground"),children:V.label},T))}),P&&f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-xs text-muted-foreground",children:P.note}),f.jsxs("button",{onClick:M,className:"flex items-center gap-1.5 rounded-md border border-border px-2 py-1 text-xs hover:bg-accent",children:[g?f.jsx(bm,{className:"h-3.5 w-3.5 text-emerald-500"}):f.jsx(Tm,{className:"h-3.5 w-3.5"}),g?"Kopiert":"Kopieren"]})]}),f.jsx("pre",{className:"overflow-x-auto rounded-xl border border-border bg-card p-4 text-xs leading-relaxed",children:f.jsx("code",{children:P.snippet})})]})]})]})}const Ed=["user","instruction","stable","versioned","ephemeral"],As={user:"👤 User",instruction:"📋 Regel",stable:"🔵 Fakt",versioned:"🟡 Version",ephemeral:"⏱ Temporär"};function Ug(){const[l,u]=v.useState([]),[s,c]=v.useState(""),[d,p]=v.useState(""),[g,m]=v.useState(""),[j,E]=v.useState("stable"),[N,P]=v.useState("");function M(){const b=new URLSearchParams;d&&b.set("q",d),s&&b.set("category",s),Ye(`/api/memory?${b}`).then(u).catch(W=>P(String(W)))}v.useEffect(M,[d,s]);async function T(){g.trim()&&(await Ye("/api/memory",{method:"POST",body:JSON.stringify({content:g,category:j,source:"ui"})}),m(""),M())}async function V(b){await Ye(`/api/memory/${b}`,{method:"DELETE"}),M()}async function R(){const b=await Ye("/api/memory/dedupe",{method:"POST",body:JSON.stringify({apply:!1})});if(b.duplicate_count===0){alert("Keine Dubletten gefunden — alles sauber.");return}confirm(`${b.duplicate_count} Dublette(n) in ${b.groups.length} Gruppe(n) gefunden. Entfernen?`)&&(await Ye("/api/memory/dedupe",{method:"POST",body:JSON.stringify({apply:!0})}),M())}return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-start justify-between",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-semibold",children:"Gedächtnis"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:'Die geteilte „Verfassung" — alle Tools (Hermes, IDEs) lesen/schreiben hier via MCP.'})]}),f.jsxs("button",{onClick:R,className:"flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-sm hover:bg-accent",children:[f.jsx(Fm,{className:"h-3.5 w-3.5 text-primary"})," Aufräumen"]})]}),f.jsxs("div",{className:"rounded-xl border border-border bg-card p-3",children:[f.jsx("textarea",{value:g,onChange:b=>m(b.target.value),placeholder:"Neuen Fakt / Regel hinzufügen…",rows:2,className:"w-full resize-none rounded-md border border-border bg-background px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-ring"}),f.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[f.jsx("select",{value:j,onChange:b=>E(b.target.value),className:"rounded-md border border-border bg-background px-2 py-1.5 text-sm outline-none",children:Ed.map(b=>f.jsx("option",{value:b,children:As[b]},b))}),f.jsx("button",{onClick:T,className:"rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:opacity-90",children:"Speichern"})]})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx("input",{value:d,onChange:b=>p(b.target.value),placeholder:"Suchen…",className:"rounded-md border border-border bg-card px-2 py-1.5 text-sm outline-none focus:ring-2 focus:ring-ring"}),f.jsx("button",{onClick:()=>c(""),className:kt("rounded-md px-2.5 py-1.5 text-xs",s?"text-muted-foreground hover:text-foreground":"bg-primary/15 text-primary"),children:"Alle"}),Ed.map(b=>f.jsx("button",{onClick:()=>c(b),className:kt("rounded-md px-2.5 py-1.5 text-xs",s===b?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground"),children:As[b]},b))]}),N&&f.jsxs("div",{className:"text-sm text-muted-foreground",children:["Fehler: ",N]}),f.jsxs("div",{className:"space-y-2",children:[l.length===0&&f.jsx("div",{className:"text-sm text-muted-foreground",children:"Keine Einträge."}),l.map(b=>f.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border bg-card p-3",children:[f.jsx("span",{className:"shrink-0 rounded bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground",children:As[b.category]||b.category}),f.jsx("span",{className:"flex-1 text-sm",children:b.content}),f.jsx("span",{className:"shrink-0 text-[11px] text-muted-foreground",children:b.source}),f.jsx("button",{onClick:()=>V(b.id),className:"shrink-0 text-muted-foreground hover:text-red-500",children:f.jsx(Bm,{className:"h-4 w-4"})})]},b.id))]})]})}function Bg({ok:l}){return f.jsx("span",{className:kt("h-2 w-2 rounded-full",l?"bg-emerald-500":"bg-amber-500")})}function So({label:l,ok:u,detail:s}){return f.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Bg,{ok:u}),f.jsx("span",{className:"text-sm font-medium",children:l})]}),s&&f.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:s})]})}function $g(){const[l,u]=v.useState(null),[s,c]=v.useState("");return v.useEffect(()=>{const d=()=>Ye("/api/agent/status").then(u).catch(g=>c(String(g)));d();const p=setInterval(d,8e3);return()=>clearInterval(p)},[]),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-start justify-between",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-semibold",children:"Hermes"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Der autonome Agent läuft eigenständig (Gateway :8642) und hat seine eigene Oberfläche (hermes-webui :8787). Mission Control verlinkt nur — Chat & Steuerung leben dort."})]}),(l==null?void 0:l.webui_url)&&f.jsxs("a",{href:l.webui_url,target:"_blank",rel:"noopener",className:kt("flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium",l.webui_reachable?"bg-primary text-primary-foreground hover:opacity-90":"border border-border text-muted-foreground"),children:[f.jsx(Fs,{className:"h-4 w-4"})," Hermes öffnen"]})]}),s&&f.jsxs("div",{className:"text-sm text-muted-foreground",children:["Status nicht lesbar (",s,")."]}),l&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[f.jsx(So,{label:"Gateway (:8642)",ok:l.gateway_reachable,detail:l.gateway_reachable?"erreichbar":"offline"}),f.jsx(So,{label:"WebUI (:8787)",ok:l.webui_reachable,detail:l.webui_reachable?"erreichbar":"offline"}),f.jsx(So,{label:"Brain",ok:l.gateway_reachable,detail:"model: auto (über Gateway)"}),f.jsx(So,{label:"Verdrahtung",ok:l.has_config,detail:`config ${l.has_config?"✓":"—"} · skills ${l.has_skills?"✓":"—"} · memories ${l.has_memories?"✓":"—"}`})]}),!l.gateway_reachable&&f.jsxs("div",{className:"rounded-xl border border-dashed border-border bg-card/50 p-5 text-sm",children:[f.jsx("div",{className:"mb-2 font-medium",children:"Hermes ist (hier) offline"}),f.jsxs("p",{className:"text-muted-foreground",children:["Der Agent + hermes-webui laufen auf der Box. Einrichtung & volle Verdrahtung (Brain = ",f.jsx("code",{children:"model: auto"}),", Tools/MCP inkl. ",f.jsx("code",{children:"mcp_mc"})," + ",f.jsx("code",{children:"mcp_memory"}),", SSH→Windows, lokale Browser-/Such-MCP) sind im Runbook beschrieben:",f.jsx("code",{className:"ml-1",children:"docs/HERMES_SETUP.md"}),"."]})]})]})]})}function Vg({title:l,hint:u}){return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-semibold",children:l}),f.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),f.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:[f.jsx(Mm,{className:"h-8 w-8 text-muted-foreground"}),f.jsx("div",{className:"text-sm text-muted-foreground",children:"Kommt in einer späteren Phase."})]})]})}function Wg(){const[l,u]=v.useState("models"),[s,c]=v.useState(null),[d,p]=v.useState(()=>localStorage.getItem("mc_theme")!=="light");v.useEffect(()=>{const m=()=>Ye("/api/health").then(c).catch(()=>c(null));m();const j=setInterval(m,1e4);return()=>clearInterval(j)},[]),v.useEffect(()=>{document.documentElement.classList.toggle("dark",d),localStorage.setItem("mc_theme",d?"dark":"light")},[d]);const g=Us.find(m=>m.id===l);return f.jsxs("div",{className:"flex h-full",children:[f.jsx(Yv,{onNavigate:u}),f.jsxs("aside",{className:"flex w-60 shrink-0 flex-col border-r border-border bg-card/40",children:[f.jsxs("div",{className:"flex items-center gap-2 px-5 py-4",children:[f.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary"}),f.jsxs("div",{className:"leading-tight",children:[f.jsx("div",{className:"text-sm font-semibold",children:"Mission Control"}),f.jsx("div",{className:"text-xs text-muted-foreground",children:"2.0"})]})]}),f.jsx("nav",{className:"flex-1 space-y-1 px-3 py-2",children:Us.map(m=>f.jsxs("button",{onClick:()=>u(m.id),className:kt("flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",l===m.id?"bg-primary/15 text-primary":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[f.jsx(m.icon,{className:"h-4 w-4"}),m.label]},m.id))}),f.jsx("div",{className:"px-4 py-3 text-xs text-muted-foreground",children:s?f.jsxs("span",{className:"flex items-center gap-2",children:[f.jsx("span",{className:kt("h-2 w-2 rounded-full",s.engine_reachable?"bg-emerald-500":"bg-amber-500")}),"Engine ",s.engine_reachable?"online":"offline"," · v",s.version]}):f.jsxs("span",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"})," Backend offline"]})})]}),f.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[f.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between border-b border-border px-6",children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:g.hint}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:()=>p(m=>!m),className:"flex h-8 w-8 items-center justify-center rounded-md border border-border text-muted-foreground hover:bg-accent",title:"Hell/Dunkel",children:d?f.jsx(Um,{className:"h-3.5 w-3.5"}):f.jsx(Im,{className:"h-3.5 w-3.5"})}),f.jsxs("button",{onClick:()=>{const m=new KeyboardEvent("keydown",{key:"k",metaKey:!0});document.dispatchEvent(m)},className:"flex items-center gap-2 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent",children:[f.jsx(Rm,{className:"h-3.5 w-3.5"}),f.jsx("span",{children:"Springen"}),f.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:"⌘K"})]})]})]}),f.jsxs("main",{className:"flex-1 overflow-y-auto p-6",children:[l==="models"&&f.jsx(zg,{}),l==="routing"&&f.jsx(Dg,{}),l==="system"&&f.jsx(Ag,{}),l==="connect"&&f.jsx(Fg,{}),l==="memory"&&f.jsx(Ug,{}),l==="agent"&&f.jsx($g,{}),!["models","routing","system","connect","memory","agent"].includes(l)&&f.jsx(Vg,{title:g.label,hint:g.hint})]})]})]})}Sm.createRoot(document.getElementById("root")).render(f.jsx(Nd.StrictMode,{children:f.jsx(Wg,{})}));
|