Files
mission-control-v2/frontend/dist/assets/index-DP8A83Cd.js
T
2026-06-25 14:35:31 +02:00

186 lines
247 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 Qc;function mm(){if(Qc)return fe;Qc=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"),b=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),j=Symbol.iterator;function M(k){return k===null||typeof k!="object"?null:(k=j&&k[j]||k["@@iterator"],typeof k=="function"?k:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,_={};function R(k,w,A){this.props=k,this.context=w,this.refs=_,this.updater=A||T}R.prototype.isReactComponent={},R.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")},R.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function U(){}U.prototype=R.prototype;function H(k,w,A){this.props=k,this.context=w,this.refs=_,this.updater=A||T}var te=H.prototype=new U;te.constructor=H,$(te,R.prototype),te.isPureReactComponent=!0;var Z=Array.isArray,le=Object.prototype.hasOwnProperty,ne={current:null},se={key:!0,ref:!0,__self:!0,__source:!0};function ye(k,w,A){var V,z={},Y=null,re=null;if(w!=null)for(V in w.ref!==void 0&&(re=w.ref),w.key!==void 0&&(Y=""+w.key),w)le.call(w,V)&&!se.hasOwnProperty(V)&&(z[V]=w[V]);var ue=arguments.length-2;if(ue===1)z.children=A;else if(1<ue){for(var ce=Array(ue),Ae=0;Ae<ue;Ae++)ce[Ae]=arguments[Ae+2];z.children=ce}if(k&&k.defaultProps)for(V in ue=k.defaultProps,ue)z[V]===void 0&&(z[V]=ue[V]);return{$$typeof:l,type:k,key:Y,ref:re,props:z,_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 Oe(k,w){return typeof k=="object"&&k!==null&&k.key!=null?Ce(""+k.key):w.toString(36)}function Ne(k,w,A,V,z){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,z=z(re),k=V===""?"."+Oe(re,0):V,Z(z)?(A="",k!=null&&(A=k.replace(ie,"$&/")+"/"),Ne(z,w,A,"",function(Ae){return Ae})):z!=null&&(xe(z)&&(z=de(z,A+(!z.key||re&&re.key===z.key?"":(""+z.key).replace(ie,"$&/")+"/")+k)),w.push(z)),1;if(re=0,V=V===""?".":V+":",Z(k))for(var ue=0;ue<k.length;ue++){Y=k[ue];var ce=V+Oe(Y,ue);re+=Ne(Y,w,A,ce,z)}else if(ce=M(k),typeof ce=="function")for(k=ce.call(k),ue=0;!(Y=k.next()).done;)Y=Y.value,ce=V+Oe(Y,ue++),re+=Ne(Y,w,A,ce,z);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 Ie(k,w,A){if(k==null)return k;var V=[],z=0;return Ne(k,V,"","",function(Y){return w.call(A,Y,z++)}),V}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},q={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:F,ReactCurrentOwner:ne};function B(){throw Error("act(...) is not supported in production builds of React.")}return fe.Children={map:Ie,forEach:function(k,w,A){Ie(k,function(){w.apply(this,arguments)},A)},count:function(k){var w=0;return Ie(k,function(){w++}),w},toArray:function(k){return Ie(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=R,fe.Fragment=s,fe.Profiler=d,fe.PureComponent=H,fe.StrictMode=c,fe.Suspense=b,fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,fe.act=B,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 V=$({},k.props),z=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&&(z=""+w.key),k.type&&k.type.defaultProps)var ue=k.type.defaultProps;for(ce in w)le.call(w,ce)&&!se.hasOwnProperty(ce)&&(V[ce]=w[ce]===void 0&&ue!==void 0?ue[ce]:w[ce])}var ce=arguments.length-2;if(ce===1)V.children=A;else if(1<ce){ue=Array(ce);for(var Ae=0;Ae<ce;Ae++)ue[Ae]=arguments[Ae+2];V.children=ue}return{$$typeof:l,type:k.type,key:z,ref:Y,props:V,_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:S,_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=B,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 Kc;function Gs(){return Kc||(Kc=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,b,E){var S,j={},M=null,T=null;E!==void 0&&(M=""+E),b.key!==void 0&&(M=""+b.key),b.ref!==void 0&&(T=b.ref);for(S in b)c.call(b,S)&&!p.hasOwnProperty(S)&&(j[S]=b[S]);if(m&&m.defaultProps)for(S in b=m.defaultProps,b)j[S]===void 0&&(j[S]=b[S]);return{$$typeof:u,type:m,key:M,ref:T,props:j,_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),Qs=pm({__proto__:null,default:Nd},[v]);var po={},Ns={exports:{}},rt={},js={exports:{}},bs={};/**
* @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 qc;function gm(){return qc||(qc=1,(function(l){function u(F,q){var B=F.length;F.push(q);e:for(;0<B;){var k=B-1>>>1,w=F[k];if(0<d(w,q))F[k]=q,F[B]=w,B=k;else break e}}function s(F){return F.length===0?null:F[0]}function c(F){if(F.length===0)return null;var q=F[0],B=F.pop();if(B!==q){F[0]=B;e:for(var k=0,w=F.length,A=w>>>1;k<A;){var V=2*(k+1)-1,z=F[V],Y=V+1,re=F[Y];if(0>d(z,B))Y<w&&0>d(re,z)?(F[k]=re,F[Y]=B,k=Y):(F[k]=z,F[V]=B,k=V);else if(Y<w&&0>d(re,B))F[k]=re,F[Y]=B,k=Y;else break e}}return q}function d(F,q){var B=F.sortIndex-q.sortIndex;return B!==0?B:F.id-q.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 b=[],E=[],S=1,j=null,M=3,T=!1,$=!1,_=!1,R=typeof setTimeout=="function"?setTimeout:null,U=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 q=s(E);q!==null;){if(q.callback===null)c(E);else if(q.startTime<=F)c(E),q.sortIndex=q.expirationTime,u(b,q);else break;q=s(E)}}function Z(F){if(_=!1,te(F),!$)if(s(b)!==null)$=!0,je(le);else{var q=s(E);q!==null&&he(Z,q.startTime-F)}}function le(F,q){$=!1,_&&(_=!1,U(ye),ye=-1),T=!0;var B=M;try{for(te(q),j=s(b);j!==null&&(!(j.expirationTime>q)||F&&!Ce());){var k=j.callback;if(typeof k=="function"){j.callback=null,M=j.priorityLevel;var w=k(j.expirationTime<=q);q=l.unstable_now(),typeof w=="function"?j.callback=w:j===s(b)&&c(b),te(q)}else c(b);j=s(b)}if(j!==null)var A=!0;else{var V=s(E);V!==null&&he(Z,V.startTime-q),A=!1}return A}finally{j=null,M=B,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 q=!0;try{q=se(!0,F)}finally{q?Oe():(ne=!1,se=null)}}else ne=!1}var Oe;if(typeof H=="function")Oe=function(){H(ie)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Ie=Ne.port2;Ne.port1.onmessage=ie,Oe=function(){Ie.postMessage(null)}}else Oe=function(){R(ie,0)};function je(F){se=F,ne||(ne=!0,Oe())}function he(F,q){ye=R(function(){F(l.unstable_now())},q)}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(){$||T||($=!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(b)},l.unstable_next=function(F){switch(M){case 1:case 2:case 3:var q=3;break;default:q=M}var B=M;M=q;try{return F()}finally{M=B}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(F,q){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var B=M;M=F;try{return q()}finally{M=B}},l.unstable_scheduleCallback=function(F,q,B){var k=l.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?k+B:k):B=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=B+w,F={id:S++,callback:q,priorityLevel:F,startTime:B,expirationTime:w,sortIndex:-1},B>k?(F.sortIndex=B,u(E,F),s(b)===null&&F===s(E)&&(_?(U(ye),ye=-1):_=!0,he(Z,B-k))):(F.sortIndex=w,u(b,F),$||T||($=!0,je(le))),F},l.unstable_shouldYield=Ce,l.unstable_wrapCallback=function(F){var q=M;return function(){var B=M;M=q;try{return F.apply(this,arguments)}finally{M=B}}}})(bs)),bs}var Zc;function ym(){return Zc||(Zc=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"),b=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]*$/,S={},j={};function M(e){return b.call(j,e)?!0:b.call(S,e)?!1:E.test(e)?j[e]=!0:(S[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 $(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 _(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 R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){R[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];R[t]=new _(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){R[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){R[e]=new _(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){R[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){R[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){R[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){R[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){R[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var U=/[\-:]([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(U,H);R[t]=new _(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(U,H);R[t]=new _(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(U,H);R[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){R[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),R.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){R[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function te(e,t,n,r){var o=R.hasOwnProperty(t)?R[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($(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 Z=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"),Oe=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),F=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var B=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 V(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(P){var r=P}Reflect.construct(e,[],t)}else{try{t.call()}catch(P){r=P}e.call(t.prototype)}else{try{throw Error()}catch(P){r=P}e()}}catch(P){if(P&&r&&typeof P.stack=="string"){for(var o=P.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 z(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=V(e.type,!1),e;case 11:return e=V(e.type.render,!1),e;case 1:return e=V(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 Oe: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 Ie: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 Ae(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=Ae(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 B({},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 _n(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 B({},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=B({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 Do(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 zo=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,Pn=null,Rn=null;function cu(e){if(e=Or(e)){if(typeof Fo!="function")throw Error(s(280));var t=e.stateNode;t&&(t=bl(t),Fo(e.stateNode,e.type,t))}}function du(e){Pn?Rn?Rn.push(e):Rn=[e]:Pn=e}function fu(){if(Pn){var e=Pn,t=Rn;if(Rn=Pn=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,(Pn!==null||Rn!==null)&&(mu(),fu())}}function pr(e,t){var n=e.stateNode;if(n===null)return null;var r=bl(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 $o=!1;if(m)try{var mr={};Object.defineProperty(mr,"passive",{get:function(){$o=!0}}),window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch{$o=!1}function xf(e,t,n,r,o,i,a,h,y){var P=Array.prototype.slice.call(arguments,3);try{t.apply(n,P)}catch(O){this.onError(O)}}var hr=!1,ol=null,il=!1,Bo=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 P=ol;hr=!1,ol=null}else throw Error(s(198));il||(il=!0,Bo=P)}}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,Me=u.unstable_now,jf=u.unstable_getCurrentPriorityLevel,Vo=u.unstable_ImmediatePriority,Su=u.unstable_UserBlockingPriority,sl=u.unstable_NormalPriority,bf=u.unstable_LowPriority,Eu=u.unstable_IdlePriority,ul=null,Et=null;function _f(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,Pf=Math.log,Rf=Math.LN2;function Mf(e){return e>>>=0,e===0?32:31-(Pf(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,Qo,bu,_u,Pu,Ko=!1,fl=[],Ut=null,$t=null,Bt=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":$t=null;break;case"mouseover":case"mouseout":Bt=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&&Qo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Df(e,t,n,r,o){switch(t){case"focusin":return Ut=wr(Ut,e,t,n,r,o),!0;case"dragenter":return $t=wr($t,e,t,n,r,o),!0;case"mouseover":return Bt=wr(Bt,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,Pu(e.priority,function(){bu(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);zo=r,n.target.dispatchEvent(r),zo=null}else return t=Or(n),t!==null&&Qo(t),e.blockedOn=n,!1;t.shift()}return!0}function Tu(e,t,n){pl(e)&&n.delete(t)}function zf(){Ko=!1,Ut!==null&&pl(Ut)&&(Ut=null),$t!==null&&pl($t)&&($t=null),Bt!==null&&pl(Bt)&&(Bt=null),yr.forEach(Tu),xr.forEach(Tu)}function kr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ko||(Ko=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,zf)))}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),$t!==null&&kr($t,e),Bt!==null&&kr(Bt,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=Z.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(Df(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 bf:return 16;case Eu:return 536870912;default:return 16}default:return 16}}var Wt=null,qo=null,vl=null;function Ou(){if(vl)return vl;var e,t=qo,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 B(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},Zo=lt(Tn),Er=B({},Tn,{view:0,detail:0}),Uf=lt(Er),Jo,ei,Cr,xl=B({},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}}),Du=lt(xl),$f=B({},xl,{dataTransfer:0}),Bf=lt($f),Vf=B({},Er,{relatedTarget:0}),ti=lt(Vf),Wf=B({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hf=lt(Wf),Gf=B({},Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qf=lt(Gf),Kf=B({},Tn,{data:0}),zu=lt(Kf),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"},qf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qf[e])?!!t[e]:!1}function ni(){return Zf}var Jf=B({},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=B({},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=B({},Er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ni}),rp=lt(np),lp=B({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),op=lt(lp),ip=B({},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=" ",$u=!1;function Bu(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:($u=!0,Uu);case"textInput":return e=t.data,e===Uu&&$u?null:e;default:return null}}function dp(e,t){if(Ln)return e==="compositionend"||!ri&&Bu(e,t)?(e=Ou(),vl=qo=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 Zo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jr=null,br=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 Qu=document.createElement("div");Qu.setAttribute("oninput","return;"),oi=typeof Qu.oninput=="function"}li=oi}else li=!1;Gu=li&&(!document.documentMode||9<document.documentMode)}function Ku(){jr&&(jr.detachEvent("onpropertychange",Yu),br=jr=null)}function Yu(e){if(e.propertyName==="value"&&wl(br)){var t=[];Hu(t,br,e,Ao(e)),hu(pp,t)}}function hp(e,t,n){e==="focusin"?(Ku(),jr=t,br=n,jr.attachEvent("onpropertychange",Yu)):e==="focusout"&&Ku()}function vp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wl(br)}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 _r(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(!b.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 qu(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 Zu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zu(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&&Zu(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=qu(n,i);var a=qu(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,Pr=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}),Pr&&_r(Pr,r)||(Pr=r,r=Cl(si,"onSelect"),0<r.length&&(t=new Zo("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,P=h.currentTarget;if(h=h.listener,y!==i&&o.isPropagationStopped())break e;ua(o,h,P),i=y}else for(a=0;a<r.length;a++){if(h=r[a],y=h.instance,P=h.currentTarget,h=h.listener,y!==i&&o.isPropagationStopped())break e;ua(o,h,P),i=y}}}if(il)throw e=Bo,il=!1,Bo=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,!$o||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 P=i,O=Ao(n),I=[];e:{var L=ia.get(e);if(L!==void 0){var W=Zo,Q=e;switch(e){case"keypress":if(gl(n)===0)break e;case"keydown":case"keyup":W=ep;break;case"focusin":Q="focus",W=ti;break;case"focusout":Q="blur",W=ti;break;case"beforeblur":case"afterblur":W=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":W=Du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Bf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=rp;break;case na:case ra:case la:W=Hf;break;case oa:W=op;break;case"scroll":W=Uf;break;case"wheel":W=sp;break;case"copy":case"cut":case"paste":W=Qf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Au}var K=(t&4)!==0,Te=!K&&e==="scroll",C=K?L!==null?L+"Capture":null:L;K=[];for(var x=P,N;x!==null;){N=x;var D=N.stateNode;if(N.tag===5&&D!==null&&(N=D,C!==null&&(D=pr(x,C),D!=null&&K.push(Tr(x,D,N)))),Te)break;x=x.return}0<K.length&&(L=new W(L,Q,null,n,O),I.push({event:L,listeners:K}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",L&&n!==zo&&(Q=n.relatedTarget||n.fromElement)&&(pn(Q)||Q[Rt]))break e;if((W||L)&&(L=O.window===O?O:(L=O.ownerDocument)?L.defaultView||L.parentWindow:window,W?(Q=n.relatedTarget||n.toElement,W=P,Q=Q?pn(Q):null,Q!==null&&(Te=fn(Q),Q!==Te||Q.tag!==5&&Q.tag!==6)&&(Q=null)):(W=null,Q=P),W!==Q)){if(K=Du,D="onMouseLeave",C="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(K=Au,D="onPointerLeave",C="onPointerEnter",x="pointer"),Te=W==null?L:An(W),N=Q==null?L:An(Q),L=new K(D,x+"leave",W,n,O),L.target=Te,L.relatedTarget=N,D=null,pn(O)===P&&(K=new K(C,x+"enter",Q,n,O),K.target=N,K.relatedTarget=Te,D=K),Te=D,W&&Q)t:{for(K=W,C=Q,x=0,N=K;N;N=Dn(N))x++;for(N=0,D=C;D;D=Dn(D))N++;for(;0<x-N;)K=Dn(K),x--;for(;0<N-x;)C=Dn(C),N--;for(;x--;){if(K===C||C!==null&&K===C.alternate)break t;K=Dn(K),C=Dn(C)}K=null}else K=null;W!==null&&da(I,L,W,K,!1),Q!==null&&Te!==null&&da(I,Te,Q,K,!0)}}e:{if(L=P?An(P):window,W=L.nodeName&&L.nodeName.toLowerCase(),W==="select"||W==="input"&&L.type==="file")var X=mp;else if(Wu(L))if(Gu)X=yp;else{X=vp;var J=hp}else(W=L.nodeName)&&W.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(X=gp);if(X&&(X=X(e,P))){Hu(I,X,n,O);break e}J&&J(e,L,P),e==="focusout"&&(J=L._wrapperState)&&J.controlled&&L.type==="number"&&To(L,"number",L.value)}switch(J=P?An(P):window,e){case"focusin":(Wu(J)||J.contentEditable==="true")&&(On=J,si=P,Pr=null);break;case"focusout":Pr=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?Bu(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,qo="value"in Wt?Wt.value:Wt.textContent,Ln=!0)),J=Cl(P,oe),0<J.length&&(oe=new zu(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))&&(P=Cl(P,"onBeforeInput"),0<P.length&&(O=new zu("onBeforeInput","beforeinput",null,n,O),I.push({event:O,listeners:P}),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 Dn(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,P=h.stateNode;if(y!==null&&y===r)break;h.tag===5&&P!==null&&(h=P,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,bp=typeof clearTimeout=="function"?clearTimeout:void 0,pa=typeof Promise=="function"?Promise:void 0,_p=typeof queueMicrotask=="function"?queueMicrotask:typeof pa<"u"?function(e){return pa.resolve(null).then(e).catch(Pp)}:gi;function Pp(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 zn=Math.random().toString(36).slice(2),Ct="__reactFiber$"+zn,Lr="__reactProps$"+zn,Rt="__reactContainer$"+zn,xi="__reactEvents$"+zn,Rp="__reactListeners$"+zn,Mp="__reactHandles$"+zn;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 bl(e){return e[Lr]||null}var wi=[],Fn=-1;function Qt(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 Kt={},Ge=Qt(Kt),Ze=Qt(!1),mn=Kt;function Un(e,t){var n=e.type.contextTypes;if(!n)return Kt;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 _l(){ke(Ze),ke(Ge)}function ha(e,t,n){if(Ge.current!==Kt)throw Error(s(168));ge(Ge,t),ge(Ze,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 B({},n,r)}function Pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,mn=Ge.current,ge(Ge,e),ge(Ze,Ze.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(Ze),ke(Ge),ge(Ge,e)):ke(Ze),ge(Ze,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 $n=[],Bn=0,Ml=null,Tl=0,ut=[],at=0,hn=null,Tt=1,Lt="";function vn(e,t){$n[Bn++]=Tl,$n[Bn++]=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=$n[--Bn],$n[Bn]=null,Tl=$n[--Bn],$n[Bn]=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=Z.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(C,x){if(e){var N=C.deletions;N===null?(C.deletions=[x],C.flags|=16):N.push(x)}}function n(C,x){if(!e)return null;for(;x!==null;)t(C,x),x=x.sibling;return null}function r(C,x){for(C=new Map;x!==null;)x.key!==null?C.set(x.key,x):C.set(x.index,x),x=x.sibling;return C}function o(C,x){return C=rn(C,x),C.index=0,C.sibling=null,C}function i(C,x,N){return C.index=N,e?(N=C.alternate,N!==null?(N=N.index,N<x?(C.flags|=2,x):N):(C.flags|=2,x)):(C.flags|=1048576,x)}function a(C){return e&&C.alternate===null&&(C.flags|=2),C}function h(C,x,N,D){return x===null||x.tag!==6?(x=gs(N,C.mode,D),x.return=C,x):(x=o(x,N),x.return=C,x)}function y(C,x,N,D){var X=N.type;return X===se?O(C,x,N.props.children,D,N.key):x!==null&&(x.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===je&&Ca(X)===x.type)?(D=o(x,N.props),D.ref=Ir(C,x,N),D.return=C,D):(D=lo(N.type,N.key,N.props,null,C.mode,D),D.ref=Ir(C,x,N),D.return=C,D)}function P(C,x,N,D){return x===null||x.tag!==4||x.stateNode.containerInfo!==N.containerInfo||x.stateNode.implementation!==N.implementation?(x=ys(N,C.mode,D),x.return=C,x):(x=o(x,N.children||[]),x.return=C,x)}function O(C,x,N,D,X){return x===null||x.tag!==7?(x=Cn(N,C.mode,D,X),x.return=C,x):(x=o(x,N),x.return=C,x)}function I(C,x,N){if(typeof x=="string"&&x!==""||typeof x=="number")return x=gs(""+x,C.mode,N),x.return=C,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case le:return N=lo(x.type,x.key,x.props,null,C.mode,N),N.ref=Ir(C,null,x),N.return=C,N;case ne:return x=ys(x,C.mode,N),x.return=C,x;case je:var D=x._init;return I(C,D(x._payload),N)}if(cr(x)||q(x))return x=Cn(x,C.mode,N,null),x.return=C,x;Ol(C,x)}return null}function L(C,x,N,D){var X=x!==null?x.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return X!==null?null:h(C,x,""+N,D);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case le:return N.key===X?y(C,x,N,D):null;case ne:return N.key===X?P(C,x,N,D):null;case je:return X=N._init,L(C,x,X(N._payload),D)}if(cr(N)||q(N))return X!==null?null:O(C,x,N,D,null);Ol(C,N)}return null}function W(C,x,N,D,X){if(typeof D=="string"&&D!==""||typeof D=="number")return C=C.get(N)||null,h(x,C,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case le:return C=C.get(D.key===null?N:D.key)||null,y(x,C,D,X);case ne:return C=C.get(D.key===null?N:D.key)||null,P(x,C,D,X);case je:var J=D._init;return W(C,x,N,J(D._payload),X)}if(cr(D)||q(D))return C=C.get(N)||null,O(x,C,D,X,null);Ol(x,D)}return null}function Q(C,x,N,D){for(var X=null,J=null,ee=x,oe=x=0,$e=null;ee!==null&&oe<N.length;oe++){ee.index>oe?($e=ee,ee=null):$e=ee.sibling;var me=L(C,ee,N[oe],D);if(me===null){ee===null&&(ee=$e);break}e&&ee&&me.alternate===null&&t(C,ee),x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me,ee=$e}if(oe===N.length)return n(C,ee),Ee&&vn(C,oe),X;if(ee===null){for(;oe<N.length;oe++)ee=I(C,N[oe],D),ee!==null&&(x=i(ee,x,oe),J===null?X=ee:J.sibling=ee,J=ee);return Ee&&vn(C,oe),X}for(ee=r(C,ee);oe<N.length;oe++)$e=W(ee,C,oe,N[oe],D),$e!==null&&(e&&$e.alternate!==null&&ee.delete($e.key===null?oe:$e.key),x=i($e,x,oe),J===null?X=$e:J.sibling=$e,J=$e);return e&&ee.forEach(function(ln){return t(C,ln)}),Ee&&vn(C,oe),X}function K(C,x,N,D){var X=q(N);if(typeof X!="function")throw Error(s(150));if(N=X.call(N),N==null)throw Error(s(151));for(var J=X=null,ee=x,oe=x=0,$e=null,me=N.next();ee!==null&&!me.done;oe++,me=N.next()){ee.index>oe?($e=ee,ee=null):$e=ee.sibling;var ln=L(C,ee,me.value,D);if(ln===null){ee===null&&(ee=$e);break}e&&ee&&ln.alternate===null&&t(C,ee),x=i(ln,x,oe),J===null?X=ln:J.sibling=ln,J=ln,ee=$e}if(me.done)return n(C,ee),Ee&&vn(C,oe),X;if(ee===null){for(;!me.done;oe++,me=N.next())me=I(C,me.value,D),me!==null&&(x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me);return Ee&&vn(C,oe),X}for(ee=r(C,ee);!me.done;oe++,me=N.next())me=W(ee,C,oe,me.value,D),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(C,fm)}),Ee&&vn(C,oe),X}function Te(C,x,N,D){if(typeof N=="object"&&N!==null&&N.type===se&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case le:e:{for(var X=N.key,J=x;J!==null;){if(J.key===X){if(X=N.type,X===se){if(J.tag===7){n(C,J.sibling),x=o(J,N.props.children),x.return=C,C=x;break e}}else if(J.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===je&&Ca(X)===J.type){n(C,J.sibling),x=o(J,N.props),x.ref=Ir(C,J,N),x.return=C,C=x;break e}n(C,J);break}else t(C,J);J=J.sibling}N.type===se?(x=Cn(N.props.children,C.mode,D,N.key),x.return=C,C=x):(D=lo(N.type,N.key,N.props,null,C.mode,D),D.ref=Ir(C,x,N),D.return=C,C=D)}return a(C);case ne:e:{for(J=N.key;x!==null;){if(x.key===J)if(x.tag===4&&x.stateNode.containerInfo===N.containerInfo&&x.stateNode.implementation===N.implementation){n(C,x.sibling),x=o(x,N.children||[]),x.return=C,C=x;break e}else{n(C,x);break}else t(C,x);x=x.sibling}x=ys(N,C.mode,D),x.return=C,C=x}return a(C);case je:return J=N._init,Te(C,x,J(N._payload),D)}if(cr(N))return Q(C,x,N,D);if(q(N))return K(C,x,N,D);Ol(C,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,x!==null&&x.tag===6?(n(C,x.sibling),x=o(x,N),x.return=C,C=x):(n(C,x),x=gs(N,C.mode,D),x.return=C,C=x),a(C)):n(C,x)}return Te}var Wn=Na(!0),ja=Na(!1),Il=Qt(null),Dl=null,Hn=null,bi=null;function _i(){bi=Hn=Dl=null}function Pi(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){Dl=e,bi=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(bi!==e)if(e={context:e,memoizedValue:t,next:null},Hn===null){if(Dl===null)throw Error(s(308));Hn=e,Dl.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 ba(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 _a(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 qt(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 zl(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 Pa(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,P=y.next;y.next=null,a===null?i=P:a.next=P,a=y;var O=e.alternate;O!==null&&(O=O.updateQueue,h=O.lastBaseUpdate,h!==a&&(h===null?O.firstBaseUpdate=P:h.next=P,O.lastBaseUpdate=y))}if(i!==null){var I=o.baseState;a=0,O=P=y=null,h=i;do{var L=h.lane,W=h.eventTime;if((r&L)===L){O!==null&&(O=O.next={eventTime:W,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var Q=e,K=h;switch(L=t,W=n,K.tag){case 1:if(Q=K.payload,typeof Q=="function"){I=Q.call(W,I,L);break e}I=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=K.payload,L=typeof Q=="function"?Q.call(W,I,L):Q,L==null)break e;I=B({},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 W={eventTime:W,lane:L,tag:h.tag,payload:h.payload,callback:h.callback,next:null},O===null?(P=O=W,y=I):O=O.next=W,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=P,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 Dr={},Nt=Qt(Dr),zr=Qt(Dr),Ar=Qt(Dr);function yn(e){if(e===Dr)throw Error(s(174));return e}function Li(e,t){switch(ge(Ar,t),ge(zr,e),ge(Nt,Dr),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 Qn(){ke(Nt),ke(zr),ke(Ar)}function Ma(e){yn(Ar.current);var t=yn(Nt.current),n=Oo(t,e.type);t!==n&&(ge(zr,e),ge(Nt,n))}function Oi(e){zr.current===e&&(ke(Nt),ke(zr))}var be=Qt(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 Di(){for(var e=0;e<Ii.length;e++)Ii[e]._workInProgressVersionPrimary=null;Ii.length=0}var Ul=Z.ReactCurrentDispatcher,zi=Z.ReactCurrentBatchConfig,xn=0,_e=null,De=null,Fe=null,$l=!1,Fr=!1,Ur=0,Op=0;function Qe(){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,_e=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,Fe=De=null,t.updateQueue=null,Ul.current=Up,e=n(r,o)}while(Fr)}if(Ul.current=Wl,t=De!==null&&De.next!==null,xn=0,Fe=De=_e=null,$l=!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 Fe===null?_e.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function dt(){if(De===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Fe===null?_e.memoizedState:Fe.next;if(t!==null)Fe=t,De=e;else{if(e===null)throw Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Fe===null?_e.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function $r(e,t){return typeof t=="function"?t(e):t}function $i(e){var t=dt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=De,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,P=i;do{var O=P.lane;if((xn&O)===O)y!==null&&(y=y.next={lane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),r=P.hasEagerState?P.eagerState:e(r,P.action);else{var I={lane:O,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null};y===null?(h=y=I,a=r):y=y.next=I,_e.lanes|=O,wn|=O}P=P.next}while(P!==null&&P!==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,_e.lanes|=i,wn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bi(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=_e,r=dt(),o=t(),i=!ht(r.memoizedState,o);if(i&&(r.memoizedState=o,et=!0),r=r.queue,Vi(Da.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Br(9,Ia.bind(null,n,r,o,t),void 0,null),Ue===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=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.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,za(t)&&Aa(e)}function Da(e,t,n){return n(function(){za(t)&&Aa(e)})}function za(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:$r,lastRenderedState:e},t.queue=e,e=e.dispatch=zp.bind(null,_e,e),[t.memoizedState,e]}function Br(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.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 Bl(e,t,n,r){var o=jt();_e.flags|=e,o.memoizedState=Br(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(De!==null){var a=De.memoizedState;if(i=a.destroy,r!==null&&Ai(r,a.deps)){o.memoizedState=Br(t,n,i,r);return}}_e.flags|=e,o.memoizedState=Br(1|t,n,i,r)}function $a(e,t){return Bl(8390656,8,e,t)}function Vi(e,t){return Vl(2048,8,e,t)}function Ba(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 Qa(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 Ka(e,t,n){return(xn&21)===0?(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n):(ht(n,t)||(n=Cu(),_e.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=zi.transition;zi.transition={};try{e(!1),t()}finally{ve=n,zi.transition=r}}function Ya(){return dt().memoizedState}function Dp(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))qa(t,n);else if(n=ba(e,t,n,r),n!==null){var o=qe();wt(n,e,r,o),Za(n,t,r)}}function zp(e,t,n){var r=tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))qa(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=ba(e,t,o,r),n!==null&&(o=qe(),wt(n,e,r,o),Za(n,t,r))}}function Xa(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function qa(e,t){Fr=$l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(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:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Ap={readContext:ct,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:$a,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bl(4194308,4,Wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bl(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=Dp.bind(null,_e,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=_e,o=jt();if(Ee){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ue===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,$a(Da.bind(null,r,i,e),[e]),r.flags|=2048,Br(9,Ia.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=Ue.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:Ba,useLayoutEffect:Va,useMemo:Qa,useReducer:$i,useRef:Ua,useState:function(){return $i($r)},useDebugValue:Wi,useDeferredValue:function(e){var t=dt();return Ka(t,De.memoizedState,e)},useTransition:function(){var e=$i($r)[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:Ba,useLayoutEffect:Va,useMemo:Qa,useReducer:Bi,useRef:Ua,useState:function(){return Bi($r)},useDebugValue:Wi,useDeferredValue:function(e){var t=dt();return De===null?t.memoizedState=e:Ka(t,De.memoizedState,e)},useTransition:function(){var e=Bi($r)[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=B({},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:B({},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=qe(),o=tn(e),i=It(r,o);i.payload=t,n!=null&&(i.callback=n),t=qt(e,i,o),t!==null&&(wt(t,e,o,r),zl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qe(),o=tn(e),i=It(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qt(e,i,o),t!==null&&(wt(t,e,o,r),zl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qe(),r=tn(e),o=It(n,r);o.tag=2,t!=null&&(o.callback=t),t=qt(e,o,r),t!==null&&(wt(t,e,r,n),zl(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?!_r(n,r)||!_r(o,i):!0}function ec(e,t,n){var r=!1,o=Kt,i=t.contextType;return typeof i=="object"&&i!==null?i=ct(i):(o=Je(t)?mn:Ge.current,r=t.contextTypes,i=(r=r!=null)?Un(e,o):Kt),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:Ge.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 Kn(e,t){try{var n="",r=t;do n+=z(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 Qi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ki(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $p=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(){Zl||(Zl=!0,as=r),Ki(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(){Ki(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ki(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 $p;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,qt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Bp=Z.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,Dt(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:_r,n(a,r)&&e.ref===t.ref)return Dt(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(_r(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,Dt(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:Ge.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,Dt(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;Pl(t)}else i=!1;if(Gn(t,o),t.stateNode===null)Ql(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,P=n.contextType;typeof P=="object"&&P!==null?P=ct(P):(P=Je(n)?mn:Ge.current,P=Un(t,P));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!==P)&&tc(t,a,r,P),Xt=!1;var L=t.memoizedState;a.state=L,Al(t,r,a,o),y=t.memoizedState,h!==r||L!==y||Ze.current||Xt?(typeof O=="function"&&(Hi(t,n,O,r),y=t.memoizedState),(h=Xt||Ja(t,n,h,r,L,y,P))?(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=P,r=h):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,_a(e,t),h=t.memoizedProps,P=t.type===t.elementType?h:gt(t.type,h),a.props=P,I=t.pendingProps,L=a.context,y=n.contextType,typeof y=="object"&&y!==null?y=ct(y):(y=Je(n)?mn:Ge.current,y=Un(t,y));var W=n.getDerivedStateFromProps;(O=typeof W=="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 Q=t.memoizedState;h!==I||L!==Q||Ze.current||Xt?(typeof W=="function"&&(Hi(t,n,W,r),Q=t.memoizedState),(P=Xt||Ja(t,n,P,r,L,Q,y)||!1)?(O||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,Q,y),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,Q,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=Q),a.props=r,a.state=Q,a.context=y,r=P):(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),Dt(e,t,i);r=t.stateNode,Bp.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 qi={dehydrated:null,treeContext:null,retryLane:0};function Zi(e){return{baseLanes:e,cachePool:null,transitions:null}}function hc(e,t,n){var r=t.pendingProps,o=be.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(be,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=Zi(n),t.memoizedState=qi,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?Zi(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=qi,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=Qi(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=Zi(a),t.memoizedState=qi,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=Qi(i,r,void 0),Gl(e,t,a,r)}if(h=(a&e.childLanes)!==0,et||h){if(r=Ue,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=Qi(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=be.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(be,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 Ql(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Dt(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)&&Pl(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(be,be.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?hc(e,t,n):(ge(be,be.current&1),e=Dt(e,t,n),e!==null?e.sibling:null);ge(be,be.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(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,cc(e,t,n)}return Dt(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=B({},o,{value:void 0}),r=B({},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(P in o)if(!r.hasOwnProperty(P)&&o.hasOwnProperty(P)&&o[P]!=null)if(P==="style"){var h=o[P];for(a in h)h.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else P!=="dangerouslySetInnerHTML"&&P!=="children"&&P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(d.hasOwnProperty(P)?i||(i=[]):(i=i||[]).push(P,null));for(P in r){var y=r[P];if(h=o!=null?o[P]:void 0,r.hasOwnProperty(P)&&y!==h&&(y!=null||h!=null))if(P==="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(P,n)),n=y;else P==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,h=h?h.__html:void 0,y!=null&&h!==y&&(i=i||[]).push(P,y)):P==="children"?typeof y!="string"&&typeof y!="number"||(i=i||[]).push(P,""+y):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&(d.hasOwnProperty(P)?(y!=null&&P==="onScroll"&&we("scroll",e),i||h===y||(i=[])):(i=i||[]).push(P,y))}n&&(i=i||[]).push("style",n);var P=i;(t.updateQueue=P)&&(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)&&_l(),Ke(t),null;case 3:return r=t.stateNode,Qn(),ke(Ze),ke(Ge),Di(),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=Do(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=B({},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?_n(e,!!r.multiple,i,!1):r.defaultValue!=null&&_n(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(be),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||(be.current&1)!==0?ze===0&&(ze=3):hs())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Qn(),ts(e,t),e===null&&Mr(t.stateNode.containerInfo),Ke(t),null;case 10:return Pi(t.type._context),Ke(t),null;case 17:return Je(t.type)&&_l(),Ke(t),null;case 19:if(ke(be),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(be,be.current&1|2),t.child}e=e.sibling}i.tail!==null&&Me()>qn&&(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*Me()-i.renderingStartTime>qn&&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=Me(),t.sibling=null,n=be.current,ge(be,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)&&_l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),ke(Ze),ke(Ge),Di(),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(be),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(be),null;case 4:return Qn(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return ms(),null;case 24:return null;default:return null}}var Kl=!1,Ye=!1,Qp=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){Pe(e,t,r)}else n.current=null}function ns(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var kc=!1;function Kp(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,P=0,O=0,I=e,L=null;t:for(;;){for(var W;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),(W=I.firstChild)!==null;)L=I,I=W;for(;;){if(I===e)break t;if(L===n&&++P===o&&(h=a),L===i&&++O===r&&(y=a),(W=I.nextSibling)!==null)break;I=L,L=I.parentNode}I=W}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 Q=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Q!==null){var K=Q.memoizedProps,Te=Q.memoizedState,C=t.stateNode,x=C.getSnapshotBeforeUpdate(t.elementType===t.type?K:gt(t.type,K),Te);C.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var N=t.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(D){Pe(t,t.return,D)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return Q=kc,kc=!1,Q}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 Zt(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:Ye||Yn(n,t);case 6:var r=Be,o=yt;Be=null,Zt(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,Zt(e,t,n),Be=r,yt=o;break;case 0:case 11:case 14:case 15:if(!Ye&&(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)}Zt(e,t,n);break;case 1:if(!Ye&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){Pe(n,t,h)}Zt(e,t,n);break;case 21:Zt(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,Zt(e,t,n),Ye=r):Zt(e,t,n);break;default:Zt(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 Qp),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(P){Pe(o,t,P)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bc(t,e),t=t.sibling}function bc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),bt(e),r&4){try{Wr(3,e,e.return),Yl(3,e)}catch(K){Pe(e,e.return,K)}try{Wr(5,e,e.return)}catch(K){Pe(e,e.return,K)}}break;case 1:xt(t,e),bt(e),r&512&&n!==null&&Yn(n,n.return);break;case 5:if(xt(t,e),bt(e),r&512&&n!==null&&Yn(n,n.return),e.flags&32){var o=e.stateNode;try{dr(o,"")}catch(K){Pe(e,e.return,K)}}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),Do(h,a);var P=Do(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,P)}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 W=i.value;W!=null?_n(o,!!i.multiple,W,!1):L!==!!i.multiple&&(i.defaultValue!=null?_n(o,!!i.multiple,i.defaultValue,!0):_n(o,!!i.multiple,i.multiple?[]:"",!1))}o[Lr]=i}catch(K){Pe(e,e.return,K)}}break;case 6:if(xt(t,e),bt(e),r&4){if(e.stateNode===null)throw Error(s(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(K){Pe(e,e.return,K)}}break;case 3:if(xt(t,e),bt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Sr(t.containerInfo)}catch(K){Pe(e,e.return,K)}break;case 4:xt(t,e),bt(e);break;case 13:xt(t,e),bt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(us=Me())),r&4&&jc(e);break;case 22:if(O=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(P=Ye)||O,xt(t,e),Ye=P):xt(t,e),bt(e),r&8192){if(P=e.memoizedState!==null,(e.stateNode.isHidden=P)&&!O&&(e.mode&1)!==0)for(G=e,O=e.child;O!==null;){for(I=G=O;G!==null;){switch(L=G,W=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 Q=L.stateNode;if(typeof Q.componentWillUnmount=="function"){r=L,n=L.return;try{t=r,Q.props=t.memoizedProps,Q.state=t.memoizedState,Q.componentWillUnmount()}catch(K){Pe(r,n,K)}}break;case 5:Yn(L,L.return);break;case 22:if(L.memoizedState!==null){Rc(I);continue}}W!==null?(W.return=L,G=W):Rc(I)}O=O.sibling}e:for(O=null,I=e;;){if(I.tag===5){if(O===null){O=I;try{o=I.stateNode,P?(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(K){Pe(e,e.return,K)}}}else if(I.tag===6){if(O===null)try{I.stateNode.nodeValue=P?"":I.memoizedProps}catch(K){Pe(e,e.return,K)}}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),bt(e),r&4&&jc(e);break;case 21:break;default:xt(t,e),bt(e)}}function bt(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){Pe(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yp(e,t,n){G=e,_c(e)}function _c(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||Kl;if(!a){var h=o.alternate,y=h!==null&&h.memoizedState!==null||Ye;h=Kl;var P=Ye;if(Kl=a,(Ye=y)&&!P)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,_c(i),i=i.sibling;G=o,Kl=h,Ye=P}Pc(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,G=i):Pc(e)}}function Pc(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:Ye||Yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ye)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 P=t.alternate;if(P!==null){var O=P.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))}Ye||t.flags&512&&rs(t)}catch(L){Pe(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){Pe(t,n,y)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(y){Pe(t,o,y)}}var i=t.return;try{rs(t)}catch(y){Pe(t,i,y)}break;case 5:var a=t.return;try{rs(t)}catch(y){Pe(t,a,y)}}}catch(y){Pe(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=Z.ReactCurrentDispatcher,is=Z.ReactCurrentOwner,ft=Z.ReactCurrentBatchConfig,pe=0,Ue=null,Le=null,Ve=0,st=0,Xn=Qt(0),ze=0,Hr=null,wn=0,ql=0,ss=0,Gr=null,tt=null,us=0,qn=1/0,zt=null,Zl=!1,as=null,Jt=null,Jl=!1,en=null,eo=0,Qr=0,cs=null,to=-1,no=0;function qe(){return(pe&6)!==0?Me():to!==-1?to:to=Me()}function tn(e){return(e.mode&1)===0?1:(pe&2)!==0&&Ve!==0?Ve&-Ve: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<Qr)throw Qr=0,cs=null,Error(s(185));gr(e,n,r),((pe&2)===0||e!==Ue)&&(e===Ue&&((pe&2)===0&&(ql|=n),ze===4&&nn(e,Ve)),nt(e,r),n===1&&pe===0&&(t.mode&1)===0&&(qn=Me()+500,Rl&&Yt()))}function nt(e,t){var n=e.callbackNode;Lf(e,t);var r=dl(e,e===Ue?Ve: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)),_p(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=$c(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(Zn()&&e.callbackNode!==n)return null;var r=dl(e,e===Ue?Ve: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();(Ue!==e||Ve!==t)&&(zt=null,qn=Me()+500,Sn(e,t));do try{Jp();break}catch(h){Oc(e,h)}while(!0);_i(),Xl.current=i,pe=o,Le!==null?t=0:(Ue=null,Ve=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,Me()),n;if(t===6)nn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!qp(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,Me()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:En(e,tt,zt);break;case 3:if(nn(e,r),(r&130023424)===r&&(t=us+500-Me(),10<t)){if(dl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){qe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gi(En.bind(null,e,tt,zt),t);break}En(e,tt,zt);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=Me()-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,zt),r);break}En(e,tt,zt);break;case 5:En(e,tt,zt);break;default:throw Error(s(329))}}}return nt(e,Me()),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 qp(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&=~ql,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));Zn();var t=dl(e,0);if((t&1)===0)return nt(e,Me()),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,Me()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,tt,zt),nt(e,Me()),null}function ps(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(qn=Me()+500,Rl&&Yt())}}function kn(e){en!==null&&en.tag===0&&(pe&6)===0&&Zn();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,bp(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(Ei(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&_l();break;case 3:Qn(),ke(Ze),ke(Ge),Di();break;case 5:Oi(r);break;case 4:Qn();break;case 13:ke(be);break;case 19:ke(be);break;case 10:Pi(r.type._context);break;case 22:case 23:ms()}n=n.return}if(Ue=e,Le=e=rn(e.current,null),Ve=st=t,ze=0,Hr=null,ss=ql=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=Le;try{if(_i(),Ul.current=Wl,$l){for(var r=_e.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}$l=!1}if(xn=0,Fe=De=_e=null,Fr=!1,Ur=0,is.current=null,n===null||n.return===null){ze=1,Hr=t,Le=null;break}e:{var i=e,a=n.return,h=n,y=t;if(t=Ve,h.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var P=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 W=oc(a);if(W!==null){W.flags&=-257,ic(W,a,h,i,t),W.mode&1&&lc(i,P,t),t=W,y=P;var Q=t.updateQueue;if(Q===null){var K=new Set;K.add(y),t.updateQueue=K}else Q.add(y);break e}else{if((t&1)===0){lc(i,P,t),hs();break e}y=Error(s(426))}}else if(Ee&&h.mode&1){var Te=oc(a);if(Te!==null){(Te.flags&65536)===0&&(Te.flags|=256),ic(Te,a,h,i,t),ji(Kn(y,h));break e}}i=y=Kn(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 C=nc(i,y,t);Pa(i,C);break e;case 1:h=y;var x=i.type,N=i.stateNode;if((i.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Jt===null||!Jt.has(N)))){i.flags|=65536,t&=-t,i.lanes|=t;var D=rc(i,h,t);Pa(i,D);break e}}i=i.return}while(i!==null)}zc(n)}catch(X){t=X,Le===n&&n!==null&&(Le=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),Ue===null||(wn&268435455)===0&&(ql&268435455)===0||nn(Ue,Ve)}function ro(e,t){var n=pe;pe|=2;var r=Ic();(Ue!==e||Ve!==t)&&(zt=null,Sn(e,t));do try{Zp();break}catch(o){Oc(e,o)}while(!0);if(_i(),pe=n,Xl.current=r,Le!==null)throw Error(s(261));return Ue=null,Ve=0,ze}function Zp(){for(;Le!==null;)Dc(Le)}function Jp(){for(;Le!==null&&!Cf();)Dc(Le)}function Dc(e){var t=Uc(e.alternate,e,st);e.memoizedProps=e.pendingProps,t===null?zc(e):Le=t,is.current=null}function zc(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){Le=n;return}}else{if(n=Gp(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Le=null;return}}if(t=t.sibling,t!==null){Le=t;return}Le=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 Zn();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===Ue&&(Le=Ue=null,Ve=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Jl||(Jl=!0,$c(sl,function(){return Zn(),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,Kp(e,n),bc(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),_f(n.stateNode),nt(e,Me()),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(Zl)throw Zl=!1,e=as,as=null,e;return(eo&1)!==0&&e.tag!==0&&Zn(),i=e.pendingLanes,(i&1)!==0?e===cs?Qr++:(Qr=0,cs=e):Qr=0,Yt(),null}function Zn(){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 P=h[y];for(G=P;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,W=O.return;if(Sc(O),O===P){G=null;break}if(L!==null){L.return=W,G=L;break}G=W}}}var Q=i.alternate;if(Q!==null){var K=Q.child;if(K!==null){Q.child=null;do{var Te=K.sibling;K.sibling=null,K=Te}while(K!==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 C=i.sibling;if(C!==null){C.return=i.return,G=C;break e}G=i.return}}var x=e.current;for(G=x;G!==null;){a=G;var N=a.child;if((a.subtreeFlags&2064)!==0&&N!==null)N.return=a,G=N;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){Pe(h,h.return,X)}if(h===a){G=null;break e}var D=h.sibling;if(D!==null){D.return=h.return,G=D;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=Kn(n,t),t=nc(e,t,1),e=qt(e,t,1),t=qe(),e!==null&&(gr(e,1,t),nt(e,t))}function Pe(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=Kn(n,e),e=rc(t,e,1),t=qt(t,e,1),e=qe(),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=qe(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(Ve&n)===n&&(ze===4||ze===3&&(Ve&130023424)===Ve&&500>Me()-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=qe();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||Ze.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;Ql(e,t),e=t.pendingProps;var o=Un(t,Ge.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,Pl(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(Ql(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,_a(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=Kn(Error(s(423)),t),t=mc(e,t,r,n,o);break e}else if(r!==o){o=Kn(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=Dt(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&&!Ze.current){t=Dt(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 P=i.updateQueue;if(P!==null){P=P.shared;var O=P.pending;O===null?y.next=y:(y.next=O.next,O.next=y),P.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),Ql(e,t),t.tag=1,Je(r)?(e=!0,Pl(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 $c(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===Ie)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 Oe:return e=pt(13,n,t,o),e.elementType=Oe,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 Ie: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 Bc(e){if(!e)return Kt;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=Bc(null),n=e.current,r=qe(),o=tn(n),i=It(r,o),i.callback=t??null,qt(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=qe(),a=tn(o);return n=Bc(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=qt(o,t,a),e!==null&&(wt(e,o,a,i),zl(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=_u();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 P=so(a);i.call(P)}}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 P=so(y);h.call(P)}}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,Me()),(pe&6)===0&&(qn=Me()+500,Yt()))}break;case 13:kn(function(){var r=Ot(e,1);if(r!==null){var o=qe();wt(r,e,1,o)}}),ws(e,1)}},Qo=function(e){if(e.tag===13){var t=Ot(e,134217728);if(t!==null){var n=qe();wt(t,e,134217728,n)}ws(e,134217728)}},bu=function(e){if(e.tag===13){var t=tn(e),n=Ot(e,t);if(n!==null){var r=qe();wt(n,e,t,r)}ws(e,t)}},_u=function(){return ve},Pu=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=bl(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&&_n(e,!!n.multiple,t,!1)}},pu=ps,mu=kn;var cm={usingClientEntryPoint:!1,Events:[Or,An,bl,du,fu,ps]},Kr={findFiberByHostInstance:pn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dm={bundleType:Kr.bundleType,version:Kr.version,rendererPackageName:Kr.rendererPackageName,rendererConfig:Kr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yu(e),e===null?null:e.stateNode},findFiberByHostInstance:Kr.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(),bd=(...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},b)=>v.createElement("svg",{ref:b,...Cm,width:u,height:u,stroke:l,strokeWidth:c?Number(s)*24/Number(u):s,className:bd("lucide",d),...m},[...g.map(([E,S])=>v.createElement(E,S)),...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 We=(l,u)=>{const s=v.forwardRef(({className:c,...d},p)=>v.createElement(Nm,{ref:p,iconNode:u,className:bd(`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=We("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 bm=We("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 _m=We("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 Pm=We("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=We("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=We("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=We("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=We("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=We("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=We("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=We("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 Dm=We("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 zm=We("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=We("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=We("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=We("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 $m=We("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:bm},{id:"routing",label:"Routing",hint:"Gateway-Regeln: schnell ↔ schwer",icon:zm},{id:"system",label:"System",hint:"Metriken, Dienste, Updates",icon:Lm},{id:"memory",label:"Gedächtnis",hint:"Geteiltes Memory verwalten",icon:_m},{id:"connect",label:"Verbinden",hint:"IDE-/Agent-Configs erzeugen",icon:Dm},{id:"agent",label:"Hermes",hint:"Agent-Status & WebUI öffnen",icon:jm}];var nd=1,Bm=.9,Vm=.8,Wm=.17,_s=.1,Ps=.999,Hm=.9999,Gm=.99,Qm=/[\\\/_+.#"@\[\(\{&]/,Km=/[\\\/_+.#"@\[\(\{&]/g,Ym=/[\s-]/,_d=/[\s-]/g;function $s(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 b=c.charAt(p),E=s.indexOf(b,d),S=0,j,M,T,$;E>=0;)j=$s(l,u,s,c,E+1,p+1,g),j>S&&(E===d?j*=nd:Qm.test(l.charAt(E-1))?(j*=Vm,T=l.slice(d,E-1).match(Km),T&&d>0&&(j*=Math.pow(Ps,T.length))):Ym.test(l.charAt(E-1))?(j*=Bm,$=l.slice(d,E-1).match(_d),$&&d>0&&(j*=Math.pow(Ps,$.length))):(j*=Wm,d>0&&(j*=Math.pow(Ps,E-d))),l.charAt(E)!==u.charAt(p)&&(j*=Hm)),(j<_s&&s.charAt(E-1)===c.charAt(p+1)||c.charAt(p+1)===c.charAt(p)&&s.charAt(E-1)!==c.charAt(p))&&(M=$s(l,u,s,c,E+1,p+2,g),M*_s>j&&(j=M*_s)),j>S&&(S=j),E=s.indexOf(b,E+1);return g[m]=S,S}function rd(l){return l.toLowerCase().replace(_d," ")}function Xm(l,u,s){return l=s&&s.length>0?`${l+" "+s.join(" ")}`:l,$s(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 bn(...l){return v.useCallback(sr(...l),l)}function qm(l,u=[]){let s=[];function c(p,g){const m=v.createContext(g);m.displayName=p+"Context";const b=s.length;s=[...s,g];const E=j=>{var U;const{scope:M,children:T,...$}=j,_=((U=M==null?void 0:M[l])==null?void 0:U[b])||m,R=v.useMemo(()=>$,Object.values($));return f.jsx(_.Provider,{value:R,children:T})};E.displayName=p+"Provider";function S(j,M){var _;const T=((_=M==null?void 0:M[l])==null?void 0:_[b])||m,$=v.useContext(T);if($)return $;if(g!==void 0)return g;throw new Error(`\`${j}\` must be used within \`${p}\``)}return[E,S]}const d=()=>{const p=s.map(g=>v.createContext(g));return function(m){const b=(m==null?void 0:m[l])||p;return v.useMemo(()=>({[`__scope${l}`]:{...m,[l]:b}}),[m,b])}};return d.scopeName=l,[c,Zm(d,...u)]}function Zm(...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:b,scopeName:E})=>{const j=b(p)[`__scope${E}`];return{...m,...j}},{});return v.useMemo(()=>({[`__scope${u.scopeName}`]:g}),[g])}};return s.scopeName=u.scopeName,s}var Jr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Jm=Qs[" 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=Qs[" 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,b=m?l:d;{const S=v.useRef(l!==void 0);v.useEffect(()=>{const j=S.current;j!==m&&console.warn(`${c} is changing from ${j?"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.`),S.current=m},[m,c])}const E=v.useCallback(S=>{var j;if(m){const M=lh(S)?S(l):S;M!==l&&((j=g.current)==null||j.call(g,M))}else p(S)},[m,l,p,g]);return[b,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 Pd=jd();function Rd(l){const u=v.forwardRef((s,c)=>{let{children:d,...p}=s,g=null,m=!1;const b=[];od(d)&&typeof mo=="function"&&(d=mo(d._payload)),v.Children.forEach(d,M=>{var T;if(ah(M)){m=!0;const $=M;let _="child"in $.props?$.props.child:$.props.children;od(_)&&typeof mo=="function"&&(_=mo(_._payload)),g=ih($,_),b.push((T=g==null?void 0:g.props)==null?void 0:T.children)}else b.push(M)}),g?g=v.cloneElement(g,void 0,b):!m&&v.Children.count(d)===1&&v.isValidElement(d)&&(g=d);const E=g?uh(g):void 0,S=bn(c,E);if(!g){if(d||d===0)throw new Error(m?ph(l):fh(l));return d}const j=sh(p,g.props??{});return g.type!==v.Fragment&&(j.ref=c?S:E),v.cloneElement(g,j)});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 b=p(...m);return d(...m),b}: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=Qs[" use ".trim().toString()],mh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=mh.reduce((l,u)=>{const s=Rd(`Primitive.${u}`),c=v.forwardRef((d,p)=>{const{asChild:g,...m}=d,b=g?s:u;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(b,{...m,ref:p})});return c.displayName=`Primitive.${u}`,{...l,[u]:c}},{});function hh(l,u){l&&Pd.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",Bs="dismissableLayer.update",yh="dismissableLayer.pointerDownOutside",xh="dismissableLayer.focusOutside",id,Ks=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:b,...E}=l,S=v.useContext(Ks),[j,M]=v.useState(null),T=(j==null?void 0:j.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,$]=v.useState({}),_=bn(u,de=>M(de)),R=Array.from(S.layers),[U]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),H=R.indexOf(U),te=j?R.indexOf(j):-1,Z=S.layersWithOutsidePointerEventsDisabled.size>0,le=te>=H,ne=v.useRef(!1),se=Eh(de=>{const xe=de.target;if(!(xe instanceof Node))return;const Ce=[...S.branches].some(ie=>ie.contains(xe));!le||Ce||(p==null||p(de),m==null||m(de),de.defaultPrevented||b==null||b())},{ownerDocument:T,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:ne,dismissableSurfaces:S.dismissableSurfaces}),ye=Ch(de=>{if(c&&ne.current)return;const xe=de.target;[...S.branches].some(ie=>ie.contains(xe))||(g==null||g(de),m==null||m(de),de.defaultPrevented||b==null||b())},T);return vh(de=>{te===S.layers.size-1&&(d==null||d(de),!de.defaultPrevented&&b&&(de.preventDefault(),b()))},T),v.useEffect(()=>{if(j)return s&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(id=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(j)),S.layers.add(j),sd(),()=>{s&&(S.layersWithOutsidePointerEventsDisabled.delete(j),S.layersWithOutsidePointerEventsDisabled.size===0&&(T.body.style.pointerEvents=id))}},[j,T,s,S]),v.useEffect(()=>()=>{j&&(S.layers.delete(j),S.layersWithOutsidePointerEventsDisabled.delete(j),sd())},[j,S]),v.useEffect(()=>{const de=()=>$({});return document.addEventListener(Bs,de),()=>document.removeEventListener(Bs,de)},[]),f.jsx(He.div,{...E,ref:_,style:{pointerEvents:Z?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(Ks),c=v.useRef(null),d=bn(u,c);return v.useEffect(()=>{const p=c.current;if(p)return s.branches.add(p),()=>{s.branches.delete(p)}},[s.branches]),f.jsx(He.div,{...l,ref:d})});kh.displayName=wh;function Sh(){const l=v.useContext(Ks),[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),b=v.useRef(!1),E=v.useRef(new Map),S=v.useRef(()=>{});return v.useEffect(()=>{function j(){b.current=!1,d.current=!1,E.current.clear()}function M(){return Array.from(E.current.values()).some(Boolean)}function T(H){if(!b.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(()=>{b.current&&S.current()},0)}function $(H){b.current&&E.current.set(H.type,!1)}const _=H=>{if(H.target&&!m.current){let te=function(){s.removeEventListener("click",S.current);const le=M();j(),le||Td(yh,g,Z,{discrete:!0})};const Z={originalEvent:H};b.current=!0,d.current=c&&H.button===0,E.current.clear(),!c||H.button!==0?te():(s.removeEventListener("click",S.current),S.current=te,s.addEventListener("click",S.current,{once:!0}))}else s.removeEventListener("click",S.current),j();m.current=!1},R=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const H of R)s.addEventListener(H,T,!0),s.addEventListener(H,$);const U=window.setTimeout(()=>{s.addEventListener("pointerdown",_)},0);return()=>{window.clearTimeout(U),s.removeEventListener("pointerdown",_),s.removeEventListener("click",S.current);for(const H of R)s.removeEventListener(H,T,!0),s.removeEventListener(H,$)}},[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(Bs);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,b]=v.useState(null),E=el(d),S=el(p),j=v.useRef(null),M=bn(u,_=>b(_)),T=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(c){let _=function(te){if(T.paused||!m)return;const Z=te.target;m.contains(Z)?j.current=Z:an(j.current,{select:!0})},R=function(te){if(T.paused||!m)return;const Z=te.relatedTarget;Z!==null&&(m.contains(Z)||an(j.current,{select:!0}))},U=function(te){if(document.activeElement===document.body)for(const le of te)le.removedNodes.length>0&&an(m)};document.addEventListener("focusin",_),document.addEventListener("focusout",R);const H=new MutationObserver(U);return m&&H.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",R),H.disconnect()}}},[c,m,T.paused]),v.useEffect(()=>{if(m){cd.add(T);const _=document.activeElement;if(!m.contains(_)){const U=new CustomEvent(Rs,ud);m.addEventListener(Rs,E),m.dispatchEvent(U),U.defaultPrevented||(jh(Mh(Od(m)),{select:!0}),document.activeElement===_&&an(m))}return()=>{m.removeEventListener(Rs,E),setTimeout(()=>{const U=new CustomEvent(Ms,ud);m.addEventListener(Ms,S),m.dispatchEvent(U),U.defaultPrevented||an(_??document.body,{select:!0}),m.removeEventListener(Ms,S),cd.remove(T)},0)}}},[m,E,S,T]);const $=v.useCallback(_=>{if(!s&&!c||T.paused)return;const R=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,U=document.activeElement;if(R&&U){const H=_.currentTarget,[te,Z]=bh(H);te&&Z?!_.shiftKey&&U===Z?(_.preventDefault(),s&&an(te,{select:!0})):_.shiftKey&&U===te&&(_.preventDefault(),s&&an(Z,{select:!0})):U===H&&_.preventDefault()}},[s,c,T.paused]);return f.jsx(He.div,{tabIndex:-1,...g,ref:M,onKeyDown:$})});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 bh(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(!_h(s,{upTo:u}))return s}function _h(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 Ph(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&&Ph(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?Pd.createPortal(f.jsx(He.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,Dh(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,b]=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,S=d.current;if(S!==l){const M=p.current,T=ho(E);l?b("MOUNT"):T==="none"||(E==null?void 0:E.display)==="none"?b("UNMOUNT"):b(S&&M!==T?"ANIMATION_OUT":"UNMOUNT"),d.current=l}},[l,b]),Jr(()=>{if(u){let E;const S=u.ownerDocument.defaultView??window,j=T=>{const _=ho(c.current).includes(CSS.escape(T.animationName));if(T.target===u&&_&&(b("ANIMATION_END"),!d.current)){const R=u.style.animationFillMode;u.style.animationFillMode="forwards",E=S.setTimeout(()=>{u.style.animationFillMode==="forwards"&&(u.style.animationFillMode=R)})}},M=T=>{T.target===u&&(p.current=ho(c.current))};return u.addEventListener("animationstart",M),u.addEventListener("animationcancel",j),u.addEventListener("animationend",j),()=>{S.clearTimeout(E),u.removeEventListener("animationstart",M),u.removeEventListener("animationcancel",j),u.removeEventListener("animationend",j)}}else b("ANIMATION_END")},[u,b]),{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 Dh(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,_t=null;function zh(){v.useEffect(()=>{_t||(_t={start:pd(),end:pd()});const{start:l,end:u}=_t;return document.body.firstElementChild!==l&&document.body.insertAdjacentElement("afterbegin",l),document.body.lastElementChild!==u&&document.body.insertAdjacentElement("beforeend",u),vo++,()=>{vo===1&&(_t==null||_t.start.remove(),_t==null||_t.end.remove(),_t=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 Pt=function(){return Pt=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},Pt.apply(this,arguments)};function Dd(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 $h(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 Bh=typeof window<"u"?v.useLayoutEffect:v.useEffect,md=new WeakMap;function Vh(l,u){var s=$h(null,function(c){return l.forEach(function(d){return Ts(d,c)})});return Bh(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 b=function(){var S=g;g=[],S.forEach(p)},E=function(){return Promise.resolve().then(b)};E(),s={push:function(S){g.push(S),E()},filter:function(S){return g=g.filter(S),s}}}};return d}function Gh(l){l===void 0&&(l={});var u=Hh(null);return u.options=Pt({async:!0,ssr:!1},l),u}var zd=function(l){var u=l.sideCar,s=Dd(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,Pt({},s))};zd.isSideCarExport=!0;function Qh(l,u){return l.useMedium(u),zd}var Ad=Gh(),Ls=function(){},bo=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,b=l.className,E=l.removeScrollBar,S=l.enabled,j=l.shards,M=l.sideCar,T=l.noRelative,$=l.noIsolation,_=l.inert,R=l.allowPinchZoom,U=l.as,H=U===void 0?"div":U,te=l.gapMode,Z=Dd(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),le=M,ne=Vh([s,u]),se=Pt(Pt({},Z),d);return v.createElement(v.Fragment,null,S&&v.createElement(le,{sideCar:Ad,removeScrollBar:E,shards:j,noRelative:T,noIsolation:$,inert:_,setCallbacks:p,allowPinchZoom:!!R,lockRef:s,gapMode:te}),g?v.cloneElement(v.Children.only(m),Pt(Pt({},se),{ref:ne})):v.createElement(H,Pt({},se,{className:b,ref:ne}),m))});bo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bo.classNames={fullWidth:Co,zeroRight:Eo};var Kh=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=Kh();return u&&l.setAttribute("nonce",u),l}function Xh(l,u){l.styleSheet?l.styleSheet.cssText=u:l.appendChild(document.createTextNode(u))}function qh(l){var u=document.head||document.getElementsByTagName("head")[0];u.appendChild(l)}var Zh=function(){var l=0,u=null;return{add:function(s){l==0&&(u=Yh())&&(Xh(u,s),qh(u)),l++},remove:function(){l--,!l&&u&&(u.parentNode&&u.parentNode.removeChild(u),u=null)}}},Jh=function(){var l=Zh();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=$d(l,c);if(d){var p=Bd(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]},$d=function(l,u){return l==="v"?uv(u):av(u)},Bd=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,b=u.contains(m),E=!1,S=g>0,j=0,M=0;do{if(!m)break;var T=Bd(l,m),$=T[0],_=T[1],R=T[2],U=_-R-p*$;($||U)&&$d(l,m)&&(j+=U,M+=$);var H=m.parentNode;m=H&&H.nodeType===Node.DOCUMENT_FRAGMENT_NODE?H.host:H}while(!b&&m!==document.body||b&&(u.contains(m)||u===m));return(S&&Math.abs(j)<1||!S&&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 _=Ah([l.lockRef.current],(l.shards||[]).map(yd),!0).filter(Boolean);return _.forEach(function(R){return R.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),_.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(d))})}}},[l.inert,l.lockRef.current,l.shards]);var m=v.useCallback(function(_,R){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!g.current.allowPinchZoom;var U=yo(_),H=s.current,te="deltaX"in _?_.deltaX:H[0]-U[0],Z="deltaY"in _?_.deltaY:H[1]-U[1],le,ne=_.target,se=Math.abs(te)>Math.abs(Z)?"h":"v";if("touches"in _&&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 _&&(te||Z)&&(c.current=le),!le)return!0;var ie=c.current||le;return pv(ie,R,_,ie==="h"?te:Z)},[]),b=v.useCallback(function(_){var R=_;if(!(!er.length||er[er.length-1]!==p)){var U="deltaY"in R?gd(R):yo(R),H=u.current.filter(function(le){return le.name===R.type&&(le.target===R.target||R.target===le.shadowParent)&&mv(le.delta,U)})[0];if(H&&H.should){R.cancelable&&R.preventDefault();return}if(!H){var te=(g.current.shards||[]).map(yd).filter(Boolean).filter(function(le){return le.contains(R.target)}),Z=te.length>0?m(R,te[0]):!g.current.noIsolation;Z&&R.cancelable&&R.preventDefault()}}},[]),E=v.useCallback(function(_,R,U,H){var te={name:_,delta:R,target:U,should:H,shadowParent:yv(U)};u.current.push(te),setTimeout(function(){u.current=u.current.filter(function(Z){return Z!==te})},1)},[]),S=v.useCallback(function(_){s.current=yo(_),c.current=void 0},[]),j=v.useCallback(function(_){E(_.type,gd(_),_.target,m(_,l.lockRef.current))},[]),M=v.useCallback(function(_){E(_.type,yo(_),_.target,m(_,l.lockRef.current))},[]);v.useEffect(function(){return er.push(p),l.setCallbacks({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:M}),document.addEventListener("wheel",b,Jn),document.addEventListener("touchmove",b,Jn),document.addEventListener("touchstart",S,Jn),function(){er=er.filter(function(_){return _!==p}),document.removeEventListener("wheel",b,Jn),document.removeEventListener("touchmove",b,Jn),document.removeEventListener("touchstart",S,Jn)}},[]);var T=l.removeScrollBar,$=l.inert;return v.createElement(v.Fragment,null,$?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=Qh(Ad,gv);var Vd=v.forwardRef(function(l,u){return v.createElement(bo,Pt({},l,{ref:u,sideCar:xv}))});Vd.classNames=bo.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,b=new Set(d),E=function(j){!j||m.has(j)||(m.add(j),E(j.parentNode))};d.forEach(E);var S=function(j){!j||b.has(j)||Array.prototype.forEach.call(j.children,function(M){if(m.has(M))S(M);else try{var T=M.getAttribute(c),$=T!==null&&T!=="false",_=(tr.get(M)||0)+1,R=(p.get(M)||0)+1;tr.set(M,_),p.set(M,R),g.push(M),_===1&&$&&xo.set(M,!0),R===1&&M.setAttribute(s,"true"),$||M.setAttribute(c,"true")}catch(U){console.error("aria-hidden: cannot operate on ",M,U)}})};return S(u),m.clear(),Is++,function(){g.forEach(function(j){var M=tr.get(j)-1,T=p.get(j)-1;tr.set(j,M),p.set(j,T),M||(xo.has(j)||j.removeAttribute(c),xo.delete(j)),T||j.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}},_o="Dialog",[Hd]=qm(_o),[Cv,St]=Hd(_o),Gd=l=>{const{__scopeDialog:u,children:s,open:c,defaultOpen:d,onOpenChange:p,modal:g=!0}=l,m=v.useRef(null),b=v.useRef(null),[E,S]=nh({prop:c,defaultProp:d??!1,onChange:p,caller:_o});return f.jsx(Cv,{scope:u,triggerRef:m,contentRef:b,contentId:Ft(),titleId:Ft(),descriptionId:Ft(),open:E,onOpenChange:S,onOpenToggle:v.useCallback(()=>S(j=>!j),[S]),modal:g,children:s})};Gd.displayName=_o;var Qd="DialogTrigger",Nv=v.forwardRef((l,u)=>{const{__scopeDialog:s,...c}=l,d=St(Qd,s),p=bn(u,d.triggerRef);return f.jsx(He.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=Qd;var Ys="DialogPortal",[jv,Kd]=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=Kd(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(_v,{...d,ref:u})}):null});Xd.displayName=No;var bv=Rd("DialogOverlay.RemoveScroll"),_v=v.forwardRef((l,u)=>{const{__scopeDialog:s,...c}=l,d=St(No,s),p=Sh(),g=bn(u,p);return f.jsx(Vd,{as:bv,allowPinchZoom:!0,shards:[d.contentRef],children:f.jsx(He.div,{"data-state":Xs(d.open),...c,ref:g,style:{pointerEvents:"auto",...c.style}})})}),ur="DialogContent",qd=v.forwardRef((l,u)=>{const s=Kd(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(Pv,{...d,ref:u}):f.jsx(Rv,{...d,ref:u})})});qd.displayName=ur;var Pv=v.forwardRef((l,u)=>{const s=St(ur,l.__scopeDialog),c=v.useRef(null),d=bn(u,s.contentRef,c);return v.useEffect(()=>{const p=c.current;if(p)return Ev(p)},[]),f.jsx(Zd,{...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(Zd,{...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 b,E;(b=l.onInteractOutside)==null||b.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()}})}),Zd=v.forwardRef((l,u)=>{const{__scopeDialog:s,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:p,...g}=l,m=St(ur,s);return zh(),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(He.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(He.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(He.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=""]',Ds='[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),qs=()=>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:b,children:E,value:S,onValueChange:j,filter:M,shouldFilter:T,loop:$,disablePointerSelection:_=!1,vimBindings:R=!0,...U}=l,H=Ft(),te=Ft(),Z=Ft(),le=v.useRef(null),ne=Gv();jn(()=>{if(S!==void 0){let w=S.trim();s.current.value=w,se.emit()}},[S]),jn(()=>{ne(6,Oe)},[]);let se=v.useMemo(()=>({subscribe:w=>(g.current.add(w),()=>g.current.delete(w)),snapshot:()=>s.current,setState:(w,A,V)=>{var z,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(Z);ce?ce.focus():(z=document.getElementById(H))==null||z.focus()}if(ne(7,()=>{var ce;s.current.selectedItemId=(ce=Ne())==null?void 0:ce.id,se.emit()}),V||ne(5,Oe),((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,V)=>{var z;A!==((z=p.current.get(w))==null?void 0:z.value)&&(p.current.set(w,{value:A,keywords:V}),s.current.filtered.items.set(w,de(A,V)),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 V=Ne();ne(4,()=>{ie(),(V==null?void 0:V.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:b||l["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:H,inputId:Z,labelId:te,listInnerRef:le}),[]);function de(w,A){var V,z;let Y=(z=(V=m.current)==null?void 0:V.filter)!=null?z: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(z=>{let Y=d.current.get(z),re=0;Y.forEach(ue=>{let ce=w.get(ue);re=Math.max(ce,re)}),A.push([z,re])});let V=le.current;Ie().sort((z,Y)=>{var re,ue;let ce=z.getAttribute("id"),Ae=Y.getAttribute("id");return((re=w.get(Ae))!=null?re:0)-((ue=w.get(ce))!=null?ue:0)}).forEach(z=>{let Y=z.closest(Ds);Y?Y.appendChild(z.parentElement===Y?z:z.closest(`${Ds} > *`)):V.appendChild(z.parentElement===V?z:z.closest(`${Ds} > *`))}),A.sort((z,Y)=>Y[1]-z[1]).forEach(z=>{var Y;let re=(Y=le.current)==null?void 0:Y.querySelector(`${Xr}[${rr}="${encodeURIComponent(z[0])}"]`);re==null||re.parentElement.appendChild(re)})}function Ce(){let w=Ie().find(V=>V.getAttribute("aria-disabled")!=="true"),A=w==null?void 0:w.getAttribute(rr);se.setState("value",A||void 0)}function ie(){var w,A,V,z;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=(z=(V=p.current.get(re))==null?void 0:V.keywords)!=null?z:[],Ae=de(ue,ce);s.current.filtered.items.set(re,Ae),Ae>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 Oe(){var w,A,V;let z=Ne();z&&(((w=z.parentElement)==null?void 0:w.firstChild)===z&&((V=(A=z.closest(Xr))==null?void 0:A.querySelector(Ov))==null||V.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function Ne(){var w;return(w=le.current)==null?void 0:w.querySelector(`${nf}[aria-selected="true"]`)}function Ie(){var w;return Array.from(((w=le.current)==null?void 0:w.querySelectorAll(xd))||[])}function je(w){let A=Ie()[w];A&&se.setState("value",A.getAttribute(rr))}function he(w){var A;let V=Ne(),z=Ie(),Y=z.findIndex(ue=>ue===V),re=z[Y+w];(A=m.current)!=null&&A.loop&&(re=Y+w<0?z[z.length-1]:Y+w===z.length?z[0]:z[Y+w]),re&&se.setState("value",re.getAttribute(rr))}function F(w){let A=Ne(),V=A==null?void 0:A.closest(Xr),z;for(;V&&!z;)V=w>0?Wv(V,Xr):Hv(V,Xr),z=V==null?void 0:V.querySelector(xd);z?se.setState("value",z.getAttribute(rr)):he(w)}let q=()=>je(Ie().length-1),B=w=>{w.preventDefault(),w.metaKey?q():w.altKey?F(1):he(1)},k=w=>{w.preventDefault(),w.metaKey?je(0):w.altKey?F(-1):he(-1)};return v.createElement(He.div,{ref:u,tabIndex:-1,...U,"cmdk-root":"",onKeyDown:w=>{var A;(A=U.onKeyDown)==null||A.call(U,w);let V=w.nativeEvent.isComposing||w.keyCode===229;if(!(w.defaultPrevented||V))switch(w.key){case"n":case"j":{R&&w.ctrlKey&&B(w);break}case"ArrowDown":{B(w);break}case"p":case"k":{R&&w.ctrlKey&&k(w);break}case"ArrowUp":{k(w);break}case"Home":{w.preventDefault(),je(0);break}case"End":{w.preventDefault(),q();break}case"Enter":{w.preventDefault();let z=Ne();if(z){let Y=new Event(Ws);z.dispatchEvent(Y)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:ye.inputId,id:ye.labelId,style:Kv},b),Po(l,w=>v.createElement(lf.Provider,{value:se},v.createElement(rf.Provider,{value:ye},w))))}),Dv=v.forwardRef((l,u)=>{var s,c;let d=Ft(),p=v.useRef(null),g=v.useContext(of),m=tl(),b=uf(l),E=(c=(s=b.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 S=af(d,p,[l.value,l.children,p],l.keywords),j=qs(),M=dn(ne=>ne.value&&ne.value===S.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,$),()=>ne.removeEventListener(Ws,$)},[T,l.onSelect,l.disabled]);function $(){var ne,se;_(),(se=(ne=b.current).onSelect)==null||se.call(ne,S.current)}function _(){j.setState("value",S.current,!0)}if(!T)return null;let{disabled:R,value:U,onSelect:H,forceMount:te,keywords:Z,...le}=l;return v.createElement(He.div,{ref:sr(p,u),...le,id:d,"cmdk-item":"",role:"option","aria-disabled":!!R,"aria-selected":!!M,"data-disabled":!!R,"data-selected":!!M,onPointerMove:R||m.getDisablePointerSelection()?void 0:_,onClick:R?void 0:$},l.children)}),zv=v.forwardRef((l,u)=>{let{heading:s,children:c,forceMount:d,...p}=l,g=Ft(),m=v.useRef(null),b=v.useRef(null),E=Ft(),S=tl(),j=dn(T=>d||S.filter()===!1?!0:T.search?T.filtered.groups.has(g):!0);jn(()=>S.group(g),[]),af(g,m,[l.value,l.heading,b]);let M=v.useMemo(()=>({id:g,forceMount:d}),[d]);return v.createElement(He.div,{ref:sr(m,u),...p,"cmdk-group":"",role:"presentation",hidden:j?void 0:!0},s&&v.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:E},s),Po(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(He.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=qs(),g=dn(E=>E.search),m=dn(E=>E.selectedItemId),b=tl();return v.useEffect(()=>{l.value!=null&&p.setState("search",l.value)},[l.value]),v.createElement(He.input,{ref:u,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":m,id:b.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),b=tl();return v.useEffect(()=>{if(g.current&&p.current){let E=g.current,S=p.current,j,M=new ResizeObserver(()=>{j=requestAnimationFrame(()=>{let T=E.offsetHeight;S.style.setProperty("--cmdk-list-height",T.toFixed(1)+"px")})});return M.observe(E),()=>{cancelAnimationFrame(j),M.unobserve(E)}}},[]),v.createElement(He.div,{ref:sr(p,u),...d,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":c,id:b.listId},Po(l,E=>v.createElement("div",{ref:sr(g,b.listInnerRef),"cmdk-list-sizer":""},E)))}),$v=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(qd,{"aria-label":l.label,"cmdk-dialog":"",className:p},v.createElement(sf,{ref:u,...m}))))}),Bv=v.forwardRef((l,u)=>dn(s=>s.filtered.count===0)?v.createElement(He.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(He.div,{ref:u,...p,"cmdk-loading":"",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,"aria-label":d},Po(l,g=>v.createElement("div",{"aria-hidden":!0},g)))}),nr=Object.assign(sf,{List:Uv,Item:Dv,Input:Fv,Group:zv,Separator:Av,Dialog:$v,Empty:Bv,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=qs(),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 S of s){if(typeof S=="string")return S.trim();if(typeof S=="object"&&"current"in S)return S.current?(E=S.current.textContent)==null?void 0:E.trim():d.current}})(),b=c.map(E=>E.trim());p.value(l,m,b),(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 Qv(l){let u=l.type;return typeof u=="function"?u(l.props):"render"in u?u.render(l.props):l}function Po({asChild:l,children:u},s){return l&&v.isValidElement(u)?v.cloneElement(Qv(u),{ref:u.ref},s(u.props.children)):s(u)}var Kv={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 Re(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 Zs="-",qv=l=>{const u=Jv(l),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=l;return{getClassGroupId:g=>{const m=g.split(Zs);return m[0]===""&&m.length!==1&&m.shift(),ff(m,u)||Zv(g)},getConflictingClassGroupIds:(g,m)=>{const b=s[g]||[];return m&&c[g]?[...b,...c[g]]:b}}},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(Zs);return(g=u.validators.find(({validator:m})=>m(p)))==null?void 0:g.classGroupId},wd=/^\[(.+)\]$/,Zv=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(Zs).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 b=[];let E=0,S=0,j;for(let R=0;R<m.length;R++){let U=m[R];if(E===0){if(U===d&&(c||m.slice(R,R+p)===u)){b.push(m.slice(S,R)),S=R+p;continue}if(U==="/"){j=R;continue}}U==="["?E++:U==="]"&&E--}const M=b.length===0?m:m.substring(S),T=M.startsWith(pf),$=T?M.substring(1):M,_=j&&j>S?j-S:void 0;return{modifiers:b,hasImportantModifier:T,baseClassName:$,maybePostfixModifierPosition:_}};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),...qv(l)}),ig=/\s+/,sg=(l,u)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:d}=u,p=[],g=l.trim().split(ig);let m="";for(let b=g.length-1;b>=0;b-=1){const E=g[b],{modifiers:S,hasImportantModifier:j,baseClassName:M,maybePostfixModifierPosition:T}=s(E);let $=!!T,_=c($?M.substring(0,T):M);if(!_){if(!$){m=E+(m.length>0?" "+m:m);continue}if(_=c(M),!_){m=E+(m.length>0?" "+m:m);continue}$=!1}const R=lg(S).join(":"),U=j?R+pf:R,H=U+_;if(p.includes(H))continue;p.push(H);const te=d(_,$);for(let Z=0;Z<te.length;++Z){const le=te[Z];p.push(U+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(b){const E=u.reduce((S,j)=>j(S),l());return s=og(E),c=s.cache.get,d=s.cache.set,p=m,m(b)}function m(b){const E=c(b);if(E)return E;const S=sg(b,s);return d(b,S),S}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)),zs=l=>ar(l,"number",ir),qr=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),Zr=()=>!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),bg=()=>{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"),b=Se("contrast"),E=Se("grayscale"),S=Se("hueRotate"),j=Se("invert"),M=Se("gap"),T=Se("gradientColorStops"),$=Se("gradientColorStopPositions"),_=Se("inset"),R=Se("margin"),U=Se("opacity"),H=Se("padding"),te=Se("saturate"),Z=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],Oe=()=>["",At,on],Ne=()=>["auto",ir,ae],Ie=()=>["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"],q=()=>["","0",ae],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[ir,ae];return{cacheSize:500,separator:":",theme:{colors:[Zr],spacing:[At,on],blur:["none","",sn,ae],brightness:k(),borderColor:[l],borderRadius:["none","","full",sn,ae],borderSpacing:ie(),borderWidth:Oe(),contrast:k(),grayscale:q(),hueRotate:k(),invert:q(),gap:ie(),gradientColorStops:[l],gradientColorStopPositions:[gg,on],inset:Ce(),margin:Ce(),opacity:k(),padding:ie(),saturate:k(),scale:k(),sepia:q(),skew:k(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...Ie(),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:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qr,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:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",qr,ae]}],"grid-cols":[{"grid-cols":[Zr]}],"col-start-end":[{col:["auto",{span:["full",qr,ae]},ae]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[Zr]}],"row-start-end":[{row:["auto",{span:[qr,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:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"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",zs]}],"font-family":[{font:[Zr]}],"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,zs]}],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":[U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[U]}],"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":[U]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),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:[$]}],"gradient-via-pos":[{via:[$]}],"gradient-to-pos":[{to:[$]}],"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":[U]}],"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":[U]}],"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:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[l]}],"ring-opacity":[{"ring-opacity":[U]}],"ring-offset-w":[{"ring-offset":[At,on]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",sn,Eg]}],"shadow-color":[{shadow:[Zr]}],opacity:[{opacity:[U]}],"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:[b]}],"drop-shadow":[{"drop-shadow":["","none",sn,ae]}],grayscale:[{grayscale:[E]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[j]}],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":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[E]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[U]}],"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:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[qr,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,zs]}],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"]}}},_g=ag(bg);function kt(...l){return _g(Xv(l))}function Sd(l){return l?`${(l/1024**3).toFixed(1)} GB`:""}function Pg(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=()=>Re("/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 ${Pg(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"]})}const Og=["","fast","heavy","coder","reasoning","agent","vision","scout"];function Ig(){const[l,u]=v.useState([]),[s,c]=v.useState(""),[d,p]=v.useState(!0);function g(){Re("/api/models").then(S=>u(S.models)).catch(S=>c(String(S))).finally(()=>p(!1))}v.useEffect(g,[]);async function m(S,j){await Re(`/api/models/${encodeURIComponent(S)}/role`,{method:"POST",body:JSON.stringify({role:j||null})}),g()}async function b(S,j){const M=prompt("Kontextlänge (Tokens):",String(j||32768));M&&(await Re(`/api/models/${encodeURIComponent(S)}/ctx`,{method:"POST",body:JSON.stringify({ctx:parseInt(M,10)})}),g())}async function E(S){confirm(`Modell '${S}' aus der Config entfernen? (GGUF-Datei bleibt)`)&&(await Re(`/api/models/${encodeURIComponent(S)}`,{method:"DELETE"}),g())}return 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.jsx("th",{className:"px-4 py-2 font-medium",children:"Aktionen"})]})}),f.jsxs("tbody",{children:[l.length===0&&f.jsx("tr",{children:f.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-muted-foreground",children:"Keine Modelle konfiguriert."})}),l.map(S=>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:S.name}),f.jsx("td",{className:"px-4 py-2.5",children:f.jsx("select",{value:S.role||"",onChange:j=>m(S.name,j.target.value),className:"rounded-md border border-border bg-background px-1.5 py-1 text-xs outline-none",title:"Rolle/Alias setzen (so tauschst du z.B. das fast-Hirn)",children:Og.map(j=>f.jsx("option",{value:j,children:j||"—"},j))})}),f.jsx("td",{className:"px-4 py-2.5",children:f.jsx(cf,{caps:S.capabilities})}),f.jsx("td",{className:"px-4 py-2.5",children:f.jsxs("button",{onClick:()=>b(S.name,S.ctx),className:"text-muted-foreground hover:text-foreground",title:"Kontext ändern",children:[Tg(S.ctx)," ✎"]})}),f.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:Mg(S.size_bytes)}),f.jsx("td",{className:"px-4 py-2.5",children:f.jsx("button",{onClick:()=>E(S.name),className:"text-muted-foreground hover:text-red-500",title:"Aus Config entfernen",children:"🗑"})})]},S.name))]})]})})}function Dg(){const[l,u]=v.useState(""),[s,c]=v.useState([]),[d,p]=v.useState("Q4_K_M"),[g,m]=v.useState(""),[b,E]=v.useState(""),[S,j]=v.useState([]);async function M(_){const R=_??l;if(R.trim()){m("Lade Quants…");try{const U=await Re(`/api/hf/quants?repo=${encodeURIComponent(R)}`);u(U.repo),c(U.quants),U.quants.length&&p(U.quants.includes("Q4_K_M")?"Q4_K_M":U.quants[0]),m(U.quants.length?"":"Keine GGUF-Quants gefunden")}catch(U){m(`Fehler: ${U}`)}}}async function T(){if(!b.trim())return;const _=await Re(`/api/hf/search?q=${encodeURIComponent(b)}`);j(_.results)}async function $(){if(l.trim()){m("Installiere…");try{await Re("/api/models/install",{method:"POST",body:JSON.stringify({repo:l,quant:d,jinja:!0})}),m(`Download gestartet: ${l} (${d}) — Fortschritt oben.`)}catch(_){m(`Fehler: ${_}`)}}}return f.jsxs("div",{className:"space-y-3 rounded-xl border border-border bg-card p-4",children:[f.jsx("div",{className:"text-sm font-medium",children:"Eigenes Modell laden (HuggingFace)"}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx("input",{value:l,onChange:_=>u(_.target.value),placeholder:"HF-URL oder org/repo (z.B. unsloth/Qwen3.6-35B-A3B-GGUF)",className:"min-w-[280px] flex-1 rounded-md border border-border bg-background px-2 py-1.5 text-sm outline-none focus:ring-2 focus:ring-ring"}),f.jsx("button",{onClick:()=>M(),className:"rounded-md border border-border px-2.5 py-1.5 text-sm hover:bg-accent",children:"Quants laden"}),s.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("select",{value:d,onChange:_=>p(_.target.value),className:"rounded-md border border-border bg-background px-2 py-1.5 text-sm",children:s.map(_=>f.jsx("option",{value:_,children:_},_))}),f.jsx("button",{onClick:$,className:"rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:opacity-90",children:"Installieren"})]})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx("input",{value:b,onChange:_=>E(_.target.value),onKeyDown:_=>_.key==="Enter"&&T(),placeholder:"HuggingFace durchsuchen (GGUF)…",className:"min-w-[240px] flex-1 rounded-md border border-border bg-background px-2 py-1.5 text-sm outline-none focus:ring-2 focus:ring-ring"}),f.jsx("button",{onClick:T,className:"rounded-md border border-border px-2.5 py-1.5 text-sm hover:bg-accent",children:"Suchen"})]}),S.length>0&&f.jsx("div",{className:"max-h-48 space-y-1 overflow-y-auto",children:S.map(_=>f.jsxs("button",{onClick:()=>{u(_.repo),j([]),E(""),M(_.repo)},className:"flex w-full items-center justify-between rounded-md px-2 py-1 text-left text-xs hover:bg-accent",children:[f.jsx("span",{className:"truncate",children:_.repo}),f.jsxs("span",{className:"text-muted-foreground",children:["↓",_.downloads.toLocaleString()]})]},_.repo))}),g&&f.jsx("div",{className:"text-xs text-muted-foreground",children:g})]})}function zg(){const[l,u]=v.useState(null),[s,c]=v.useState(""),[d,p]=v.useState(!0),[g,m]=v.useState({});v.useEffect(()=>{Re("/api/discover").then(u).catch(E=>c(String(E))).finally(()=>p(!1))},[]);async function b(E,S,j,M){m(T=>({...T,[E]:"…"}));try{await Re("/api/models/install",{method:"POST",body:JSON.stringify({repo:E,role:S,quant:j,jinja:M})}),m(T=>({...T,[E]:"geladen"}))}catch{m($=>({...$,[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.jsx(Dg,{}),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(S=>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===S.repo&&f.jsx("span",{title:"beste Wahl",children:"⭐"}),f.jsx("span",{className:"truncate text-sm font-medium",children:S.name})]}),f.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:S.author}),f.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1",children:[f.jsx(cf,{caps:S.caps}),f.jsx(Lg,{fit:S.fit})]}),S.fit.level!=="too_tight"&&f.jsxs("button",{onClick:()=>b(S.repo,S.role,S.quant,S.caps.tools!=="no"),disabled:!!g[S.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[S.repo]||"Installieren"]})]},S.repo))})]},E.role))]})}function Ag(){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(Ig,{}):f.jsx(zg,{})]})}function Fg(){const[l,u]=v.useState(null),[s,c]=v.useState("");return v.useEffect(()=>{Re("/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 Ug(){const[l,u]=v.useState(null),[s,c]=v.useState(null),[d,p]=v.useState(""),[g,m]=v.useState("");v.useEffect(()=>{const E=()=>{Re("/api/system/status").then(u).catch(j=>p(String(j))),Re("/api/system/services").then(c).catch(()=>{})};E();const S=setInterval(E,3e3);return()=>clearInterval(S)},[]);async function b(){m("…");try{const E=await Re("/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:b,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 $g(){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),[b,E]=v.useState("");v.useEffect(()=>{Re(`/api/connect?host=${encodeURIComponent(l)}`).then(c).catch(T=>E(String(T)))},[l]);function S(T){u(T),T&&localStorage.setItem("mc_host",T)}const j=s==null?void 0:s.tools[d];async function M(){j&&(await navigator.clipboard.writeText(j.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=>S(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]})]}),b&&f.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Snippets nicht ladbar (",b,")."]}),s&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"flex flex-wrap gap-1",children:Object.entries(s.tools).map(([T,$])=>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:$.label},T))}),j&&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:j.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(Pm,{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:j.snippet})})]})]})]})}const Ed=["user","instruction","stable","versioned","ephemeral"],As={user:"👤 User",instruction:"📋 Regel",stable:"🔵 Fakt",versioned:"🟡 Version",ephemeral:"⏱ Temporär"};function Bg(){const[l,u]=v.useState([]),[s,c]=v.useState(""),[d,p]=v.useState(""),[g,m]=v.useState(""),[b,E]=v.useState("stable"),[S,j]=v.useState("");function M(){const R=new URLSearchParams;d&&R.set("q",d),s&&R.set("category",s),Re(`/api/memory?${R}`).then(u).catch(U=>j(String(U)))}v.useEffect(M,[d,s]);async function T(){g.trim()&&(await Re("/api/memory",{method:"POST",body:JSON.stringify({content:g,category:b,source:"ui"})}),m(""),M())}async function $(R){await Re(`/api/memory/${R}`,{method:"DELETE"}),M()}async function _(){const R=await Re("/api/memory/dedupe",{method:"POST",body:JSON.stringify({apply:!1})});if(R.duplicate_count===0){alert("Keine Dubletten gefunden — alles sauber.");return}confirm(`${R.duplicate_count} Dublette(n) in ${R.groups.length} Gruppe(n) gefunden. Entfernen?`)&&(await Re("/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:_,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:R=>m(R.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:b,onChange:R=>E(R.target.value),className:"rounded-md border border-border bg-background px-2 py-1.5 text-sm outline-none",children:Ed.map(R=>f.jsx("option",{value:R,children:As[R]},R))}),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:R=>p(R.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(R=>f.jsx("button",{onClick:()=>c(R),className:kt("rounded-md px-2.5 py-1.5 text-xs",s===R?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground"),children:As[R]},R))]}),S&&f.jsxs("div",{className:"text-sm text-muted-foreground",children:["Fehler: ",S]}),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(R=>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[R.category]||R.category}),f.jsx("span",{className:"flex-1 text-sm",children:R.content}),f.jsx("span",{className:"shrink-0 text-[11px] text-muted-foreground",children:R.source}),f.jsx("button",{onClick:()=>$(R.id),className:"shrink-0 text-muted-foreground hover:text-red-500",children:f.jsx($m,{className:"h-4 w-4"})})]},R.id))]})]})}function Vg({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(Vg,{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 Wg(){const[l,u]=v.useState(null),[s,c]=v.useState("");return v.useEffect(()=>{const d=()=>Re("/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 Hg({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 Gg(){const[l,u]=v.useState("models"),[s,c]=v.useState(null),[d,p]=v.useState(()=>localStorage.getItem("mc_theme")!=="light");v.useEffect(()=>{const m=()=>Re("/api/health").then(c).catch(()=>c(null));m();const b=setInterval(m,1e4);return()=>clearInterval(b)},[]),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("a",{href:"https://git.tobisniceshomelab.ddnsfree.com/Hitonabi/mission-control-v2/src/branch/main/docs/BEDIENUNG.md",target:"_blank",rel:"noopener",className:"flex h-8 items-center rounded-md border border-border px-2 text-xs text-muted-foreground hover:bg-accent",title:"Bedien-Anleitung",children:"Hilfe"}),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(Ag,{}),l==="routing"&&f.jsx(Fg,{}),l==="system"&&f.jsx(Ug,{}),l==="connect"&&f.jsx($g,{}),l==="memory"&&f.jsx(Bg,{}),l==="agent"&&f.jsx(Wg,{}),!["models","routing","system","connect","memory","agent"].includes(l)&&f.jsx(Hg,{title:g.label,hint:g.hint})]})]})]})}Sm.createRoot(document.getElementById("root")).render(f.jsx(Nd.StrictMode,{children:f.jsx(Gg,{})}));