nyxora 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,300 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var ca={exports:{}},yl={},da={exports:{}},D={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var cr=Symbol.for("react.element"),Oc=Symbol.for("react.portal"),Dc=Symbol.for("react.fragment"),Fc=Symbol.for("react.strict_mode"),Ac=Symbol.for("react.profiler"),$c=Symbol.for("react.provider"),Uc=Symbol.for("react.context"),Wc=Symbol.for("react.forward_ref"),Bc=Symbol.for("react.suspense"),Vc=Symbol.for("react.memo"),Hc=Symbol.for("react.lazy"),qo=Symbol.iterator;function Qc(e){return e===null||typeof e!="object"?null:(e=qo&&e[qo]||e["@@iterator"],typeof e=="function"?e:null)}var fa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pa=Object.assign,ha={};function kn(e,t,n){this.props=e,this.context=t,this.refs=ha,this.updater=n||fa}kn.prototype.isReactComponent={};kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ma(){}ma.prototype=kn.prototype;function eo(e,t,n){this.props=e,this.context=t,this.refs=ha,this.updater=n||fa}var to=eo.prototype=new ma;to.constructor=eo;pa(to,kn.prototype);to.isPureReactComponent=!0;var bo=Array.isArray,ya=Object.prototype.hasOwnProperty,no={current:null},ga={key:!0,ref:!0,__self:!0,__source:!0};function va(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)ya.call(t,r)&&!ga.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:cr,type:e,key:i,ref:o,props:l,_owner:no.current}}function Kc(e,t){return{$$typeof:cr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ro(e){return typeof e=="object"&&e!==null&&e.$$typeof===cr}function Gc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var es=/\/+/g;function Rl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gc(""+e.key):t.toString(36)}function Ir(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case cr:case Oc:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Rl(o,0):r,bo(l)?(n="",e!=null&&(n=e.replace(es,"$&/")+"/"),Ir(l,t,n,"",function(c){return c})):l!=null&&(ro(l)&&(l=Kc(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(es,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",bo(e))for(var a=0;a<e.length;a++){i=e[a];var u=r+Rl(i,a);o+=Ir(i,t,n,u,l)}else if(u=Qc(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=r+Rl(i,a++),o+=Ir(i,t,n,u,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function gr(e,t,n){if(e==null)return e;var r=[],l=0;return Ir(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Yc(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pe={current:null},Or={transition:null},Xc={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:Or,ReactCurrentOwner:no};function xa(){throw Error("act(...) is not supported in production builds of React.")}D.Children={map:gr,forEach:function(e,t,n){gr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gr(e,function(){t++}),t},toArray:function(e){return gr(e,function(t){return t})||[]},only:function(e){if(!ro(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};D.Component=kn;D.Fragment=Dc;D.Profiler=Ac;D.PureComponent=eo;D.StrictMode=Fc;D.Suspense=Bc;D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xc;D.act=xa;D.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=pa({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=no.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)ya.call(t,u)&&!ga.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:cr,type:e.type,key:l,ref:i,props:r,_owner:o}};D.createContext=function(e){return e={$$typeof:Uc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$c,_context:e},e.Consumer=e};D.createElement=va;D.createFactory=function(e){var t=va.bind(null,e);return t.type=e,t};D.createRef=function(){return{current:null}};D.forwardRef=function(e){return{$$typeof:Wc,render:e}};D.isValidElement=ro;D.lazy=function(e){return{$$typeof:Hc,_payload:{_status:-1,_result:e},_init:Yc}};D.memo=function(e,t){return{$$typeof:Vc,type:e,compare:t===void 0?null:t}};D.startTransition=function(e){var t=Or.transition;Or.transition={};try{e()}finally{Or.transition=t}};D.unstable_act=xa;D.useCallback=function(e,t){return pe.current.useCallback(e,t)};D.useContext=function(e){return pe.current.useContext(e)};D.useDebugValue=function(){};D.useDeferredValue=function(e){return pe.current.useDeferredValue(e)};D.useEffect=function(e,t){return pe.current.useEffect(e,t)};D.useId=function(){return pe.current.useId()};D.useImperativeHandle=function(e,t,n){return pe.current.useImperativeHandle(e,t,n)};D.useInsertionEffect=function(e,t){return pe.current.useInsertionEffect(e,t)};D.useLayoutEffect=function(e,t){return pe.current.useLayoutEffect(e,t)};D.useMemo=function(e,t){return pe.current.useMemo(e,t)};D.useReducer=function(e,t,n){return pe.current.useReducer(e,t,n)};D.useRef=function(e){return pe.current.useRef(e)};D.useState=function(e){return pe.current.useState(e)};D.useSyncExternalStore=function(e,t,n){return pe.current.useSyncExternalStore(e,t,n)};D.useTransition=function(){return pe.current.useTransition()};D.version="18.3.1";da.exports=D;var T=da.exports;/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Zc=T,Jc=Symbol.for("react.element"),qc=Symbol.for("react.fragment"),bc=Object.prototype.hasOwnProperty,ed=Zc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,td={key:!0,ref:!0,__self:!0,__source:!0};function ka(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)bc.call(t,r)&&!td.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Jc,type:e,key:i,ref:o,props:l,_owner:ed.current}}yl.Fragment=qc;yl.jsx=ka;yl.jsxs=ka;ca.exports=yl;var s=ca.exports,wa={exports:{}},Ne={},Sa={exports:{}},ja={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(C,R){var I=C.length;C.push(R);e:for(;0<I;){var U=I-1>>>1,X=C[U];if(0<l(X,R))C[U]=R,C[I]=X,I=U;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var R=C[0],I=C.pop();if(I!==R){C[0]=I;e:for(var U=0,X=C.length,Kt=X>>>1;U<Kt;){var Ie=2*(U+1)-1,Cn=C[Ie],Oe=Ie+1,zt=C[Oe];if(0>l(Cn,I))Oe<X&&0>l(zt,Cn)?(C[U]=zt,C[Oe]=I,U=Oe):(C[U]=Cn,C[Ie]=I,U=Ie);else if(Oe<X&&0>l(zt,I))C[U]=zt,C[Oe]=I,U=Oe;else break e}}return R}function l(C,R){var I=C.sortIndex-R.sortIndex;return I!==0?I:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],g=1,y=null,m=3,h=!1,v=!1,x=!1,L=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(C){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=C)r(c),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(c)}}function k(C){if(x=!1,p(C),!v)if(n(u)!==null)v=!0,ke(j);else{var R=n(c);R!==null&&Qt(k,R.startTime-C)}}function j(C,R){v=!1,x&&(x=!1,f(z),z=-1),h=!0;var I=m;try{for(p(R),y=n(u);y!==null&&(!(y.expirationTime>R)||C&&!Ee());){var U=y.callback;if(typeof U=="function"){y.callback=null,m=y.priorityLevel;var X=U(y.expirationTime<=R);R=e.unstable_now(),typeof X=="function"?y.callback=X:y===n(u)&&r(u),p(R)}else r(u);y=n(u)}if(y!==null)var Kt=!0;else{var Ie=n(c);Ie!==null&&Qt(k,Ie.startTime-R),Kt=!1}return Kt}finally{y=null,m=I,h=!1}}var _=!1,E=null,z=-1,A=5,O=-1;function Ee(){return!(e.unstable_now()-O<A)}function Ht(){if(E!==null){var C=e.unstable_now();O=C;var R=!0;try{R=E(!0,C)}finally{R?ot():(_=!1,E=null)}}else _=!1}var ot;if(typeof d=="function")ot=function(){d(Ht)};else if(typeof MessageChannel<"u"){var jn=new MessageChannel,mr=jn.port2;jn.port1.onmessage=Ht,ot=function(){mr.postMessage(null)}}else ot=function(){L(Ht,0)};function ke(C){E=C,_||(_=!0,ot())}function Qt(C,R){z=L(function(){C(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,ke(j))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(C){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var I=m;m=R;try{return C()}finally{m=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var I=m;m=C;try{return R()}finally{m=I}},e.unstable_scheduleCallback=function(C,R,I){var U=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?U+I:U):I=U,C){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=I+X,C={id:g++,callback:R,priorityLevel:C,startTime:I,expirationTime:X,sortIndex:-1},I>U?(C.sortIndex=I,t(c,C),n(u)===null&&C===n(c)&&(x?(f(z),z=-1):x=!0,Qt(k,I-U))):(C.sortIndex=X,t(u,C),v||h||(v=!0,ke(j))),C},e.unstable_shouldYield=Ee,e.unstable_wrapCallback=function(C){var R=m;return function(){var I=m;m=R;try{return C.apply(this,arguments)}finally{m=I}}}})(ja);Sa.exports=ja;var nd=Sa.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var rd=T,Ce=nd;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 Ca=new Set,Gn={};function Bt(e,t){pn(e,t),pn(e+"Capture",t)}function pn(e,t){for(Gn[e]=t,e=0;e<t.length;e++)Ca.add(t[e])}var tt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),si=Object.prototype.hasOwnProperty,ld=/^[: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]*$/,ts={},ns={};function id(e){return si.call(ns,e)?!0:si.call(ts,e)?!1:ld.test(e)?ns[e]=!0:(ts[e]=!0,!1)}function od(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 sd(e,t,n,r){if(t===null||typeof t>"u"||od(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 he(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new he(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){oe[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var lo=/[\-:]([a-z])/g;function io(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(lo,io);oe[t]=new he(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(lo,io);oe[t]=new he(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(lo,io);oe[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function oo(e,t,n,r){var l=oe.hasOwnProperty(t)?oe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sd(t,n,l,r)&&(n=null),r||l===null?id(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var it=rd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vr=Symbol.for("react.element"),Yt=Symbol.for("react.portal"),Xt=Symbol.for("react.fragment"),so=Symbol.for("react.strict_mode"),ai=Symbol.for("react.profiler"),Na=Symbol.for("react.provider"),_a=Symbol.for("react.context"),ao=Symbol.for("react.forward_ref"),ui=Symbol.for("react.suspense"),ci=Symbol.for("react.suspense_list"),uo=Symbol.for("react.memo"),ut=Symbol.for("react.lazy"),Ea=Symbol.for("react.offscreen"),rs=Symbol.iterator;function Nn(e){return e===null||typeof e!="object"?null:(e=rs&&e[rs]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,Il;function In(e){if(Il===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Il=t&&t[1]||""}return`
34
+ `+Il+e}var Ol=!1;function Dl(e,t){if(!e||Ol)return"";Ol=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),o=l.length-1,a=i.length-1;1<=o&&0<=a&&l[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==i[a]){var u=`
37
+ `+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?In(e):""}function ad(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function di(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 Xt:return"Fragment";case Yt:return"Portal";case ai:return"Profiler";case so:return"StrictMode";case ui:return"Suspense";case ci:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _a:return(e.displayName||"Context")+".Consumer";case Na:return(e._context.displayName||"Context")+".Provider";case ao:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uo:return t=e.displayName||null,t!==null?t:di(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return di(e(t))}catch{}}return null}function ud(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 di(t);case 8:return t===so?"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 jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function za(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cd(e){var t=za(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=cd(e))}function Ta(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=za(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kr(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 fi(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ls(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jt(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 La(e,t){t=t.checked,t!=null&&oo(e,"checked",t,!1)}function pi(e,t){La(e,t);var n=jt(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")?hi(e,t.type,n):t.hasOwnProperty("defaultValue")&&hi(e,t.type,jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function is(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 hi(e,t,n){(t!=="number"||Kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var On=Array.isArray;function sn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function mi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function os(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(On(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jt(n)}}function Pa(e,t){var n=jt(t.value),r=jt(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 ss(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ma(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 yi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ma(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var kr,Ra=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(kr=kr||document.createElement("div"),kr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var An={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},dd=["Webkit","ms","Moz","O"];Object.keys(An).forEach(function(e){dd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),An[t]=An[e]})});function Ia(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||An.hasOwnProperty(e)&&An[e]?(""+t).trim():t+"px"}function Oa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ia(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var fd=G({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 gi(e,t){if(t){if(fd[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 vi(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 xi=null;function co(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ki=null,an=null,un=null;function as(e){if(e=pr(e)){if(typeof ki!="function")throw Error(S(280));var t=e.stateNode;t&&(t=wl(t),ki(e.stateNode,e.type,t))}}function Da(e){an?un?un.push(e):un=[e]:an=e}function Fa(){if(an){var e=an,t=un;if(un=an=null,as(e),t)for(e=0;e<t.length;e++)as(t[e])}}function Aa(e,t){return e(t)}function $a(){}var Fl=!1;function Ua(e,t,n){if(Fl)return e(t,n);Fl=!0;try{return Aa(e,t,n)}finally{Fl=!1,(an!==null||un!==null)&&($a(),Fa())}}function Xn(e,t){var n=e.stateNode;if(n===null)return null;var r=wl(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 wi=!1;if(tt)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){wi=!0}}),window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{wi=!1}function pd(e,t,n,r,l,i,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(g){this.onError(g)}}var $n=!1,Gr=null,Yr=!1,Si=null,hd={onError:function(e){$n=!0,Gr=e}};function md(e,t,n,r,l,i,o,a,u){$n=!1,Gr=null,pd.apply(hd,arguments)}function yd(e,t,n,r,l,i,o,a,u){if(md.apply(this,arguments),$n){if($n){var c=Gr;$n=!1,Gr=null}else throw Error(S(198));Yr||(Yr=!0,Si=c)}}function Vt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Wa(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 us(e){if(Vt(e)!==e)throw Error(S(188))}function gd(e){var t=e.alternate;if(!t){if(t=Vt(e),t===null)throw Error(S(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return us(l),e;if(i===r)return us(l),t;i=i.sibling}throw Error(S(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o)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 Ba(e){return e=gd(e),e!==null?Va(e):null}function Va(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Va(e);if(t!==null)return t;e=e.sibling}return null}var Ha=Ce.unstable_scheduleCallback,cs=Ce.unstable_cancelCallback,vd=Ce.unstable_shouldYield,xd=Ce.unstable_requestPaint,J=Ce.unstable_now,kd=Ce.unstable_getCurrentPriorityLevel,fo=Ce.unstable_ImmediatePriority,Qa=Ce.unstable_UserBlockingPriority,Xr=Ce.unstable_NormalPriority,wd=Ce.unstable_LowPriority,Ka=Ce.unstable_IdlePriority,gl=null,Ye=null;function Sd(e){if(Ye&&typeof Ye.onCommitFiberRoot=="function")try{Ye.onCommitFiberRoot(gl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:Nd,jd=Math.log,Cd=Math.LN2;function Nd(e){return e>>>=0,e===0?32:31-(jd(e)/Cd|0)|0}var wr=64,Sr=4194304;function Dn(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 Zr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Dn(a):(i&=o,i!==0&&(r=Dn(i)))}else o=n&~l,o!==0?r=Dn(o):i!==0&&(r=Dn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ue(t),l=1<<n,r|=e[n],t&=~l;return r}function _d(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 Ed(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Ue(i),a=1<<o,u=l[o];u===-1?(!(a&n)||a&r)&&(l[o]=_d(a,t)):u<=t&&(e.expiredLanes|=a),i&=~a}}function ji(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ga(){var e=wr;return wr<<=1,!(wr&4194240)&&(wr=64),e}function Al(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function dr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function zd(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 l=31-Ue(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function po(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var $=0;function Ya(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Xa,ho,Za,Ja,qa,Ci=!1,jr=[],mt=null,yt=null,gt=null,Zn=new Map,Jn=new Map,dt=[],Td="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 ds(e,t){switch(e){case"focusin":case"focusout":mt=null;break;case"dragenter":case"dragleave":yt=null;break;case"mouseover":case"mouseout":gt=null;break;case"pointerover":case"pointerout":Zn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jn.delete(t.pointerId)}}function En(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=pr(t),t!==null&&ho(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Ld(e,t,n,r,l){switch(t){case"focusin":return mt=En(mt,e,t,n,r,l),!0;case"dragenter":return yt=En(yt,e,t,n,r,l),!0;case"mouseover":return gt=En(gt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Zn.set(i,En(Zn.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Jn.set(i,En(Jn.get(i)||null,e,t,n,r,l)),!0}return!1}function ba(e){var t=Mt(e.target);if(t!==null){var n=Vt(t);if(n!==null){if(t=n.tag,t===13){if(t=Wa(n),t!==null){e.blockedOn=t,qa(e.priority,function(){Za(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 Dr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ni(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xi=r,n.target.dispatchEvent(r),xi=null}else return t=pr(n),t!==null&&ho(t),e.blockedOn=n,!1;t.shift()}return!0}function fs(e,t,n){Dr(e)&&n.delete(t)}function Pd(){Ci=!1,mt!==null&&Dr(mt)&&(mt=null),yt!==null&&Dr(yt)&&(yt=null),gt!==null&&Dr(gt)&&(gt=null),Zn.forEach(fs),Jn.forEach(fs)}function zn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ci||(Ci=!0,Ce.unstable_scheduleCallback(Ce.unstable_NormalPriority,Pd)))}function qn(e){function t(l){return zn(l,e)}if(0<jr.length){zn(jr[0],e);for(var n=1;n<jr.length;n++){var r=jr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mt!==null&&zn(mt,e),yt!==null&&zn(yt,e),gt!==null&&zn(gt,e),Zn.forEach(t),Jn.forEach(t),n=0;n<dt.length;n++)r=dt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&(n=dt[0],n.blockedOn===null);)ba(n),n.blockedOn===null&&dt.shift()}var cn=it.ReactCurrentBatchConfig,Jr=!0;function Md(e,t,n,r){var l=$,i=cn.transition;cn.transition=null;try{$=1,mo(e,t,n,r)}finally{$=l,cn.transition=i}}function Rd(e,t,n,r){var l=$,i=cn.transition;cn.transition=null;try{$=4,mo(e,t,n,r)}finally{$=l,cn.transition=i}}function mo(e,t,n,r){if(Jr){var l=Ni(e,t,n,r);if(l===null)Yl(e,t,r,qr,n),ds(e,r);else if(Ld(l,e,t,n,r))r.stopPropagation();else if(ds(e,r),t&4&&-1<Td.indexOf(e)){for(;l!==null;){var i=pr(l);if(i!==null&&Xa(i),i=Ni(e,t,n,r),i===null&&Yl(e,t,r,qr,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Yl(e,t,r,null,n)}}var qr=null;function Ni(e,t,n,r){if(qr=null,e=co(r),e=Mt(e),e!==null)if(t=Vt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Wa(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 qr=e,null}function eu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kd()){case fo:return 1;case Qa:return 4;case Xr:case wd:return 16;case Ka:return 536870912;default:return 16}default:return 16}}var pt=null,yo=null,Fr=null;function tu(){if(Fr)return Fr;var e,t=yo,n=t.length,r,l="value"in pt?pt.value:pt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return Fr=l.slice(e,1<r?1-r:void 0)}function Ar(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 Cr(){return!0}function ps(){return!1}function _e(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Cr:ps,this.isPropagationStopped=ps,this}return G(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=Cr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cr)},persist:function(){},isPersistent:Cr}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},go=_e(wn),fr=G({},wn,{view:0,detail:0}),Id=_e(fr),$l,Ul,Tn,vl=G({},fr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Tn&&(Tn&&e.type==="mousemove"?($l=e.screenX-Tn.screenX,Ul=e.screenY-Tn.screenY):Ul=$l=0,Tn=e),$l)},movementY:function(e){return"movementY"in e?e.movementY:Ul}}),hs=_e(vl),Od=G({},vl,{dataTransfer:0}),Dd=_e(Od),Fd=G({},fr,{relatedTarget:0}),Wl=_e(Fd),Ad=G({},wn,{animationName:0,elapsedTime:0,pseudoElement:0}),$d=_e(Ad),Ud=G({},wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wd=_e(Ud),Bd=G({},wn,{data:0}),ms=_e(Bd),Vd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hd={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"},Qd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qd[e])?!!t[e]:!1}function vo(){return Kd}var Gd=G({},fr,{key:function(e){if(e.key){var t=Vd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vo,charCode:function(e){return e.type==="keypress"?Ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yd=_e(Gd),Xd=G({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ys=_e(Xd),Zd=G({},fr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vo}),Jd=_e(Zd),qd=G({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),bd=_e(qd),ef=G({},vl,{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}),tf=_e(ef),nf=[9,13,27,32],xo=tt&&"CompositionEvent"in window,Un=null;tt&&"documentMode"in document&&(Un=document.documentMode);var rf=tt&&"TextEvent"in window&&!Un,nu=tt&&(!xo||Un&&8<Un&&11>=Un),gs=" ",vs=!1;function ru(e,t){switch(e){case"keyup":return nf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zt=!1;function lf(e,t){switch(e){case"compositionend":return lu(t);case"keypress":return t.which!==32?null:(vs=!0,gs);case"textInput":return e=t.data,e===gs&&vs?null:e;default:return null}}function of(e,t){if(Zt)return e==="compositionend"||!xo&&ru(e,t)?(e=tu(),Fr=yo=pt=null,Zt=!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 nu&&t.locale!=="ko"?null:t.data;default:return null}}var sf={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 xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sf[e.type]:t==="textarea"}function iu(e,t,n,r){Da(r),t=br(t,"onChange"),0<t.length&&(n=new go("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,bn=null;function af(e){yu(e,0)}function xl(e){var t=bt(e);if(Ta(t))return e}function uf(e,t){if(e==="change")return t}var ou=!1;if(tt){var Bl;if(tt){var Vl="oninput"in document;if(!Vl){var ks=document.createElement("div");ks.setAttribute("oninput","return;"),Vl=typeof ks.oninput=="function"}Bl=Vl}else Bl=!1;ou=Bl&&(!document.documentMode||9<document.documentMode)}function ws(){Wn&&(Wn.detachEvent("onpropertychange",su),bn=Wn=null)}function su(e){if(e.propertyName==="value"&&xl(bn)){var t=[];iu(t,bn,e,co(e)),Ua(af,t)}}function cf(e,t,n){e==="focusin"?(ws(),Wn=t,bn=n,Wn.attachEvent("onpropertychange",su)):e==="focusout"&&ws()}function df(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xl(bn)}function ff(e,t){if(e==="click")return xl(t)}function pf(e,t){if(e==="input"||e==="change")return xl(t)}function hf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Be=typeof Object.is=="function"?Object.is:hf;function er(e,t){if(Be(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 l=n[r];if(!si.call(t,l)||!Be(e[l],t[l]))return!1}return!0}function Ss(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function js(e,t){var n=Ss(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=Ss(n)}}function au(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?au(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uu(){for(var e=window,t=Kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function ko(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 mf(e){var t=uu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&au(n.ownerDocument.documentElement,n)){if(r!==null&&ko(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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=js(n,i);var o=js(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 yf=tt&&"documentMode"in document&&11>=document.documentMode,Jt=null,_i=null,Bn=null,Ei=!1;function Cs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ei||Jt==null||Jt!==Kr(r)||(r=Jt,"selectionStart"in r&&ko(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}),Bn&&er(Bn,r)||(Bn=r,r=br(_i,"onSelect"),0<r.length&&(t=new go("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Jt)))}function Nr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qt={animationend:Nr("Animation","AnimationEnd"),animationiteration:Nr("Animation","AnimationIteration"),animationstart:Nr("Animation","AnimationStart"),transitionend:Nr("Transition","TransitionEnd")},Hl={},cu={};tt&&(cu=document.createElement("div").style,"AnimationEvent"in window||(delete qt.animationend.animation,delete qt.animationiteration.animation,delete qt.animationstart.animation),"TransitionEvent"in window||delete qt.transitionend.transition);function kl(e){if(Hl[e])return Hl[e];if(!qt[e])return e;var t=qt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cu)return Hl[e]=t[n];return e}var du=kl("animationend"),fu=kl("animationiteration"),pu=kl("animationstart"),hu=kl("transitionend"),mu=new Map,Ns="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 Nt(e,t){mu.set(e,t),Bt(t,[e])}for(var Ql=0;Ql<Ns.length;Ql++){var Kl=Ns[Ql],gf=Kl.toLowerCase(),vf=Kl[0].toUpperCase()+Kl.slice(1);Nt(gf,"on"+vf)}Nt(du,"onAnimationEnd");Nt(fu,"onAnimationIteration");Nt(pu,"onAnimationStart");Nt("dblclick","onDoubleClick");Nt("focusin","onFocus");Nt("focusout","onBlur");Nt(hu,"onTransitionEnd");pn("onMouseEnter",["mouseout","mouseover"]);pn("onMouseLeave",["mouseout","mouseover"]);pn("onPointerEnter",["pointerout","pointerover"]);pn("onPointerLeave",["pointerout","pointerover"]);Bt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Bt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Bt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Bt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fn="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(" "),xf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fn));function _s(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yd(r,t,void 0,e),e.currentTarget=null}function yu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==i&&l.isPropagationStopped())break e;_s(l,a,c),i=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==i&&l.isPropagationStopped())break e;_s(l,a,c),i=u}}}if(Yr)throw e=Si,Yr=!1,Si=null,e}function B(e,t){var n=t[Mi];n===void 0&&(n=t[Mi]=new Set);var r=e+"__bubble";n.has(r)||(gu(t,e,2,!1),n.add(r))}function Gl(e,t,n){var r=0;t&&(r|=4),gu(n,e,r,t)}var _r="_reactListening"+Math.random().toString(36).slice(2);function tr(e){if(!e[_r]){e[_r]=!0,Ca.forEach(function(n){n!=="selectionchange"&&(xf.has(n)||Gl(n,!1,e),Gl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_r]||(t[_r]=!0,Gl("selectionchange",!1,t))}}function gu(e,t,n,r){switch(eu(t)){case 1:var l=Md;break;case 4:l=Rd;break;default:l=mo}n=l.bind(null,t,n,e),l=void 0,!wi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Yl(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;a!==null;){if(o=Mt(a),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Ua(function(){var c=i,g=co(n),y=[];e:{var m=mu.get(e);if(m!==void 0){var h=go,v=e;switch(e){case"keypress":if(Ar(n)===0)break e;case"keydown":case"keyup":h=Yd;break;case"focusin":v="focus",h=Wl;break;case"focusout":v="blur",h=Wl;break;case"beforeblur":case"afterblur":h=Wl;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":h=hs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Jd;break;case du:case fu:case pu:h=$d;break;case hu:h=bd;break;case"scroll":h=Id;break;case"wheel":h=tf;break;case"copy":case"cut":case"paste":h=Wd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ys}var x=(t&4)!==0,L=!x&&e==="scroll",f=x?m!==null?m+"Capture":null:m;x=[];for(var d=c,p;d!==null;){p=d;var k=p.stateNode;if(p.tag===5&&k!==null&&(p=k,f!==null&&(k=Xn(d,f),k!=null&&x.push(nr(d,k,p)))),L)break;d=d.return}0<x.length&&(m=new h(m,v,null,n,g),y.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",m&&n!==xi&&(v=n.relatedTarget||n.fromElement)&&(Mt(v)||v[nt]))break e;if((h||m)&&(m=g.window===g?g:(m=g.ownerDocument)?m.defaultView||m.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=c,v=v?Mt(v):null,v!==null&&(L=Vt(v),v!==L||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=c),h!==v)){if(x=hs,k="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(x=ys,k="onPointerLeave",f="onPointerEnter",d="pointer"),L=h==null?m:bt(h),p=v==null?m:bt(v),m=new x(k,d+"leave",h,n,g),m.target=L,m.relatedTarget=p,k=null,Mt(g)===c&&(x=new x(f,d+"enter",v,n,g),x.target=p,x.relatedTarget=L,k=x),L=k,h&&v)t:{for(x=h,f=v,d=0,p=x;p;p=Gt(p))d++;for(p=0,k=f;k;k=Gt(k))p++;for(;0<d-p;)x=Gt(x),d--;for(;0<p-d;)f=Gt(f),p--;for(;d--;){if(x===f||f!==null&&x===f.alternate)break t;x=Gt(x),f=Gt(f)}x=null}else x=null;h!==null&&Es(y,m,h,x,!1),v!==null&&L!==null&&Es(y,L,v,x,!0)}}e:{if(m=c?bt(c):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var j=uf;else if(xs(m))if(ou)j=pf;else{j=df;var _=cf}else(h=m.nodeName)&&h.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(j=ff);if(j&&(j=j(e,c))){iu(y,j,n,g);break e}_&&_(e,m,c),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&hi(m,"number",m.value)}switch(_=c?bt(c):window,e){case"focusin":(xs(_)||_.contentEditable==="true")&&(Jt=_,_i=c,Bn=null);break;case"focusout":Bn=_i=Jt=null;break;case"mousedown":Ei=!0;break;case"contextmenu":case"mouseup":case"dragend":Ei=!1,Cs(y,n,g);break;case"selectionchange":if(yf)break;case"keydown":case"keyup":Cs(y,n,g)}var E;if(xo)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else Zt?ru(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(nu&&n.locale!=="ko"&&(Zt||z!=="onCompositionStart"?z==="onCompositionEnd"&&Zt&&(E=tu()):(pt=g,yo="value"in pt?pt.value:pt.textContent,Zt=!0)),_=br(c,z),0<_.length&&(z=new ms(z,e,null,n,g),y.push({event:z,listeners:_}),E?z.data=E:(E=lu(n),E!==null&&(z.data=E)))),(E=rf?lf(e,n):of(e,n))&&(c=br(c,"onBeforeInput"),0<c.length&&(g=new ms("onBeforeInput","beforeinput",null,n,g),y.push({event:g,listeners:c}),g.data=E))}yu(y,t)})}function nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function br(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Xn(e,n),i!=null&&r.unshift(nr(e,i,l)),i=Xn(e,t),i!=null&&r.push(nr(e,i,l))),e=e.return}return r}function Gt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Es(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,l?(u=Xn(n,i),u!=null&&o.unshift(nr(n,u,a))):l||(u=Xn(n,i),u!=null&&o.push(nr(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kf=/\r\n?/g,wf=/\u0000|\uFFFD/g;function zs(e){return(typeof e=="string"?e:""+e).replace(kf,`
38
+ `).replace(wf,"")}function Er(e,t,n){if(t=zs(t),zs(e)!==t&&n)throw Error(S(425))}function el(){}var zi=null,Ti=null;function Li(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 Pi=typeof setTimeout=="function"?setTimeout:void 0,Sf=typeof clearTimeout=="function"?clearTimeout:void 0,Ts=typeof Promise=="function"?Promise:void 0,jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Ts<"u"?function(e){return Ts.resolve(null).then(e).catch(Cf)}:Pi;function Cf(e){setTimeout(function(){throw e})}function Xl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),qn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);qn(t)}function vt(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 Ls(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 Sn=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Sn,rr="__reactProps$"+Sn,nt="__reactContainer$"+Sn,Mi="__reactEvents$"+Sn,Nf="__reactListeners$"+Sn,_f="__reactHandles$"+Sn;function Mt(e){var t=e[Ge];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nt]||n[Ge]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ls(e);e!==null;){if(n=e[Ge])return n;e=Ls(e)}return t}e=n,n=e.parentNode}return null}function pr(e){return e=e[Ge]||e[nt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function wl(e){return e[rr]||null}var Ri=[],en=-1;function _t(e){return{current:e}}function V(e){0>en||(e.current=Ri[en],Ri[en]=null,en--)}function W(e,t){en++,Ri[en]=e.current,e.current=t}var Ct={},ce=_t(Ct),ge=_t(!1),Ft=Ct;function hn(e,t){var n=e.type.contextTypes;if(!n)return Ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ve(e){return e=e.childContextTypes,e!=null}function tl(){V(ge),V(ce)}function Ps(e,t,n){if(ce.current!==Ct)throw Error(S(168));W(ce,t),W(ge,n)}function vu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,ud(e)||"Unknown",l));return G({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ct,Ft=ce.current,W(ce,e),W(ge,ge.current),!0}function Ms(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=vu(e,t,Ft),r.__reactInternalMemoizedMergedChildContext=e,V(ge),V(ce),W(ce,e)):V(ge),W(ge,n)}var Je=null,Sl=!1,Zl=!1;function xu(e){Je===null?Je=[e]:Je.push(e)}function Ef(e){Sl=!0,xu(e)}function Et(){if(!Zl&&Je!==null){Zl=!0;var e=0,t=$;try{var n=Je;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Je=null,Sl=!1}catch(l){throw Je!==null&&(Je=Je.slice(e+1)),Ha(fo,Et),l}finally{$=t,Zl=!1}}return null}var tn=[],nn=0,rl=null,ll=0,ze=[],Te=0,At=null,qe=1,be="";function Lt(e,t){tn[nn++]=ll,tn[nn++]=rl,rl=e,ll=t}function ku(e,t,n){ze[Te++]=qe,ze[Te++]=be,ze[Te++]=At,At=e;var r=qe;e=be;var l=32-Ue(r)-1;r&=~(1<<l),n+=1;var i=32-Ue(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,qe=1<<32-Ue(t)+l|n<<l|r,be=i+e}else qe=1<<i|n<<l|r,be=e}function wo(e){e.return!==null&&(Lt(e,1),ku(e,1,0))}function So(e){for(;e===rl;)rl=tn[--nn],tn[nn]=null,ll=tn[--nn],tn[nn]=null;for(;e===At;)At=ze[--Te],ze[Te]=null,be=ze[--Te],ze[Te]=null,qe=ze[--Te],ze[Te]=null}var je=null,Se=null,H=!1,$e=null;function wu(e,t){var n=Le(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 Rs(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,je=e,Se=vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,je=e,Se=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=At!==null?{id:qe,overflow:be}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Le(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,je=e,Se=null,!0):!1;default:return!1}}function Ii(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Oi(e){if(H){var t=Se;if(t){var n=t;if(!Rs(e,t)){if(Ii(e))throw Error(S(418));t=vt(n.nextSibling);var r=je;t&&Rs(e,t)?wu(r,n):(e.flags=e.flags&-4097|2,H=!1,je=e)}}else{if(Ii(e))throw Error(S(418));e.flags=e.flags&-4097|2,H=!1,je=e}}}function Is(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function zr(e){if(e!==je)return!1;if(!H)return Is(e),H=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Li(e.type,e.memoizedProps)),t&&(t=Se)){if(Ii(e))throw Su(),Error(S(418));for(;t;)wu(e,t),t=vt(t.nextSibling)}if(Is(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){Se=vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Se=null}}else Se=je?vt(e.stateNode.nextSibling):null;return!0}function Su(){for(var e=Se;e;)e=vt(e.nextSibling)}function mn(){Se=je=null,H=!1}function jo(e){$e===null?$e=[e]:$e.push(e)}var zf=it.ReactCurrentBatchConfig;function Ln(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 l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=l.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function Tr(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Os(e){var t=e._init;return t(e._payload)}function ju(e){function t(f,d){if(e){var p=f.deletions;p===null?(f.deletions=[d],f.flags|=16):p.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function l(f,d){return f=St(f,d),f.index=0,f.sibling=null,f}function i(f,d,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<d?(f.flags|=2,d):p):(f.flags|=2,d)):(f.flags|=1048576,d)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,d,p,k){return d===null||d.tag!==6?(d=ri(p,f.mode,k),d.return=f,d):(d=l(d,p),d.return=f,d)}function u(f,d,p,k){var j=p.type;return j===Xt?g(f,d,p.props.children,k,p.key):d!==null&&(d.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ut&&Os(j)===d.type)?(k=l(d,p.props),k.ref=Ln(f,d,p),k.return=f,k):(k=Qr(p.type,p.key,p.props,null,f.mode,k),k.ref=Ln(f,d,p),k.return=f,k)}function c(f,d,p,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==p.containerInfo||d.stateNode.implementation!==p.implementation?(d=li(p,f.mode,k),d.return=f,d):(d=l(d,p.children||[]),d.return=f,d)}function g(f,d,p,k,j){return d===null||d.tag!==7?(d=Dt(p,f.mode,k,j),d.return=f,d):(d=l(d,p),d.return=f,d)}function y(f,d,p){if(typeof d=="string"&&d!==""||typeof d=="number")return d=ri(""+d,f.mode,p),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case vr:return p=Qr(d.type,d.key,d.props,null,f.mode,p),p.ref=Ln(f,null,d),p.return=f,p;case Yt:return d=li(d,f.mode,p),d.return=f,d;case ut:var k=d._init;return y(f,k(d._payload),p)}if(On(d)||Nn(d))return d=Dt(d,f.mode,p,null),d.return=f,d;Tr(f,d)}return null}function m(f,d,p,k){var j=d!==null?d.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:a(f,d,""+p,k);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case vr:return p.key===j?u(f,d,p,k):null;case Yt:return p.key===j?c(f,d,p,k):null;case ut:return j=p._init,m(f,d,j(p._payload),k)}if(On(p)||Nn(p))return j!==null?null:g(f,d,p,k,null);Tr(f,p)}return null}function h(f,d,p,k,j){if(typeof k=="string"&&k!==""||typeof k=="number")return f=f.get(p)||null,a(d,f,""+k,j);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case vr:return f=f.get(k.key===null?p:k.key)||null,u(d,f,k,j);case Yt:return f=f.get(k.key===null?p:k.key)||null,c(d,f,k,j);case ut:var _=k._init;return h(f,d,p,_(k._payload),j)}if(On(k)||Nn(k))return f=f.get(p)||null,g(d,f,k,j,null);Tr(d,k)}return null}function v(f,d,p,k){for(var j=null,_=null,E=d,z=d=0,A=null;E!==null&&z<p.length;z++){E.index>z?(A=E,E=null):A=E.sibling;var O=m(f,E,p[z],k);if(O===null){E===null&&(E=A);break}e&&E&&O.alternate===null&&t(f,E),d=i(O,d,z),_===null?j=O:_.sibling=O,_=O,E=A}if(z===p.length)return n(f,E),H&&Lt(f,z),j;if(E===null){for(;z<p.length;z++)E=y(f,p[z],k),E!==null&&(d=i(E,d,z),_===null?j=E:_.sibling=E,_=E);return H&&Lt(f,z),j}for(E=r(f,E);z<p.length;z++)A=h(E,f,z,p[z],k),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?z:A.key),d=i(A,d,z),_===null?j=A:_.sibling=A,_=A);return e&&E.forEach(function(Ee){return t(f,Ee)}),H&&Lt(f,z),j}function x(f,d,p,k){var j=Nn(p);if(typeof j!="function")throw Error(S(150));if(p=j.call(p),p==null)throw Error(S(151));for(var _=j=null,E=d,z=d=0,A=null,O=p.next();E!==null&&!O.done;z++,O=p.next()){E.index>z?(A=E,E=null):A=E.sibling;var Ee=m(f,E,O.value,k);if(Ee===null){E===null&&(E=A);break}e&&E&&Ee.alternate===null&&t(f,E),d=i(Ee,d,z),_===null?j=Ee:_.sibling=Ee,_=Ee,E=A}if(O.done)return n(f,E),H&&Lt(f,z),j;if(E===null){for(;!O.done;z++,O=p.next())O=y(f,O.value,k),O!==null&&(d=i(O,d,z),_===null?j=O:_.sibling=O,_=O);return H&&Lt(f,z),j}for(E=r(f,E);!O.done;z++,O=p.next())O=h(E,f,z,O.value,k),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?z:O.key),d=i(O,d,z),_===null?j=O:_.sibling=O,_=O);return e&&E.forEach(function(Ht){return t(f,Ht)}),H&&Lt(f,z),j}function L(f,d,p,k){if(typeof p=="object"&&p!==null&&p.type===Xt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case vr:e:{for(var j=p.key,_=d;_!==null;){if(_.key===j){if(j=p.type,j===Xt){if(_.tag===7){n(f,_.sibling),d=l(_,p.props.children),d.return=f,f=d;break e}}else if(_.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ut&&Os(j)===_.type){n(f,_.sibling),d=l(_,p.props),d.ref=Ln(f,_,p),d.return=f,f=d;break e}n(f,_);break}else t(f,_);_=_.sibling}p.type===Xt?(d=Dt(p.props.children,f.mode,k,p.key),d.return=f,f=d):(k=Qr(p.type,p.key,p.props,null,f.mode,k),k.ref=Ln(f,d,p),k.return=f,f=k)}return o(f);case Yt:e:{for(_=p.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(f,d.sibling),d=l(d,p.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=li(p,f.mode,k),d.return=f,f=d}return o(f);case ut:return _=p._init,L(f,d,_(p._payload),k)}if(On(p))return v(f,d,p,k);if(Nn(p))return x(f,d,p,k);Tr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,p),d.return=f,f=d):(n(f,d),d=ri(p,f.mode,k),d.return=f,f=d),o(f)):n(f,d)}return L}var yn=ju(!0),Cu=ju(!1),il=_t(null),ol=null,rn=null,Co=null;function No(){Co=rn=ol=null}function _o(e){var t=il.current;V(il),e._currentValue=t}function Di(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 dn(e,t){ol=e,Co=rn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function Me(e){var t=e._currentValue;if(Co!==e)if(e={context:e,memoizedValue:t,next:null},rn===null){if(ol===null)throw Error(S(308));rn=e,ol.dependencies={lanes:0,firstContext:e}}else rn=rn.next=e;return t}var Rt=null;function Eo(e){Rt===null?Rt=[e]:Rt.push(e)}function Nu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Eo(t)):(n.next=l.next,l.next=n),t.interleaved=n,rt(e,r)}function rt(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 ct=!1;function zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _u(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 et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,rt(e,n)}return l=r.interleaved,l===null?(t.next=t,Eo(r)):(t.next=l.next,l.next=t),r.interleaved=t,rt(e,n)}function $r(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,po(e,n)}}function Ds(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,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 sl(e,t,n,r){var l=e.updateQueue;ct=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var g=e.alternate;g!==null&&(g=g.updateQueue,a=g.lastBaseUpdate,a!==o&&(a===null?g.firstBaseUpdate=c:a.next=c,g.lastBaseUpdate=u))}if(i!==null){var y=l.baseState;o=0,g=c=u=null,a=i;do{var m=a.lane,h=a.eventTime;if((r&m)===m){g!==null&&(g=g.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(m=t,h=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){y=v.call(h,y,m);break e}y=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,m=typeof v=="function"?v.call(h,y,m):v,m==null)break e;y=G({},y,m);break e;case 2:ct=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[a]:m.push(a))}else h={eventTime:h,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},g===null?(c=g=h,u=y):g=g.next=h,o|=m;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;m=a,a=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(g===null&&(u=y),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Ut|=o,e.lanes=o,e.memoizedState=y}}function Fs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(S(191,l));l.call(r)}}}var hr={},Xe=_t(hr),lr=_t(hr),ir=_t(hr);function It(e){if(e===hr)throw Error(S(174));return e}function To(e,t){switch(W(ir,t),W(lr,e),W(Xe,hr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yi(t,e)}V(Xe),W(Xe,t)}function gn(){V(Xe),V(lr),V(ir)}function Eu(e){It(ir.current);var t=It(Xe.current),n=yi(t,e.type);t!==n&&(W(lr,e),W(Xe,n))}function Lo(e){lr.current===e&&(V(Xe),V(lr))}var Q=_t(0);function al(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)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 Jl=[];function Po(){for(var e=0;e<Jl.length;e++)Jl[e]._workInProgressVersionPrimary=null;Jl.length=0}var Ur=it.ReactCurrentDispatcher,ql=it.ReactCurrentBatchConfig,$t=0,K=null,ee=null,ne=null,ul=!1,Vn=!1,or=0,Tf=0;function se(){throw Error(S(321))}function Mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Be(e[n],t[n]))return!1;return!0}function Ro(e,t,n,r,l,i){if($t=i,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ur.current=e===null||e.memoizedState===null?Rf:If,e=n(r,l),Vn){i=0;do{if(Vn=!1,or=0,25<=i)throw Error(S(301));i+=1,ne=ee=null,t.updateQueue=null,Ur.current=Of,e=n(r,l)}while(Vn)}if(Ur.current=cl,t=ee!==null&&ee.next!==null,$t=0,ne=ee=K=null,ul=!1,t)throw Error(S(300));return e}function Io(){var e=or!==0;return or=0,e}function Ke(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ne===null?K.memoizedState=ne=e:ne=ne.next=e,ne}function Re(){if(ee===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=ee.next;var t=ne===null?K.memoizedState:ne.next;if(t!==null)ne=t,ee=e;else{if(e===null)throw Error(S(310));ee=e,e={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},ne===null?K.memoizedState=ne=e:ne=ne.next=e}return ne}function sr(e,t){return typeof t=="function"?t(e):t}function bl(e){var t=Re(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=ee,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var a=o=null,u=null,c=i;do{var g=c.lane;if(($t&g)===g)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var y={lane:g,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=y,o=r):u=u.next=y,K.lanes|=g,Ut|=g}c=c.next}while(c!==null&&c!==i);u===null?o=r:u.next=a,Be(r,t.memoizedState)||(ye=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,K.lanes|=i,Ut|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ei(e){var t=Re(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);Be(i,t.memoizedState)||(ye=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function zu(){}function Tu(e,t){var n=K,r=Re(),l=t(),i=!Be(r.memoizedState,l);if(i&&(r.memoizedState=l,ye=!0),r=r.queue,Oo(Mu.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ne!==null&&ne.memoizedState.tag&1){if(n.flags|=2048,ar(9,Pu.bind(null,n,r,l,t),void 0,null),re===null)throw Error(S(349));$t&30||Lu(n,t,l)}return l}function Lu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pu(e,t,n,r){t.value=n,t.getSnapshot=r,Ru(t)&&Iu(e)}function Mu(e,t,n){return n(function(){Ru(t)&&Iu(e)})}function Ru(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Be(e,n)}catch{return!0}}function Iu(e){var t=rt(e,1);t!==null&&We(t,e,1,-1)}function As(e){var t=Ke();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:e},t.queue=e,e=e.dispatch=Mf.bind(null,K,e),[t.memoizedState,e]}function ar(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.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 Ou(){return Re().memoizedState}function Wr(e,t,n,r){var l=Ke();K.flags|=e,l.memoizedState=ar(1|t,n,void 0,r===void 0?null:r)}function jl(e,t,n,r){var l=Re();r=r===void 0?null:r;var i=void 0;if(ee!==null){var o=ee.memoizedState;if(i=o.destroy,r!==null&&Mo(r,o.deps)){l.memoizedState=ar(t,n,i,r);return}}K.flags|=e,l.memoizedState=ar(1|t,n,i,r)}function $s(e,t){return Wr(8390656,8,e,t)}function Oo(e,t){return jl(2048,8,e,t)}function Du(e,t){return jl(4,2,e,t)}function Fu(e,t){return jl(4,4,e,t)}function Au(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 $u(e,t,n){return n=n!=null?n.concat([e]):null,jl(4,4,Au.bind(null,t,e),n)}function Do(){}function Uu(e,t){var n=Re();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wu(e,t){var n=Re();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Bu(e,t,n){return $t&21?(Be(n,t)||(n=Ga(),K.lanes|=n,Ut|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ye=!0),e.memoizedState=n)}function Lf(e,t){var n=$;$=n!==0&&4>n?n:4,e(!0);var r=ql.transition;ql.transition={};try{e(!1),t()}finally{$=n,ql.transition=r}}function Vu(){return Re().memoizedState}function Pf(e,t,n){var r=wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hu(e))Qu(t,n);else if(n=Nu(e,t,n,r),n!==null){var l=fe();We(n,e,r,l),Ku(n,t,r)}}function Mf(e,t,n){var r=wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hu(e))Qu(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,Be(a,o)){var u=t.interleaved;u===null?(l.next=l,Eo(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Nu(e,t,l,r),n!==null&&(l=fe(),We(n,e,r,l),Ku(n,t,r))}}function Hu(e){var t=e.alternate;return e===K||t!==null&&t===K}function Qu(e,t){Vn=ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ku(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,po(e,n)}}var cl={readContext:Me,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Rf={readContext:Me,useCallback:function(e,t){return Ke().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:$s,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wr(4194308,4,Au.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wr(4,2,e,t)},useMemo:function(e,t){var n=Ke();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ke();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=Pf.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ke();return e={current:e},t.memoizedState=e},useState:As,useDebugValue:Do,useDeferredValue:function(e){return Ke().memoizedState=e},useTransition:function(){var e=As(!1),t=e[0];return e=Lf.bind(null,e[1]),Ke().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=Ke();if(H){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),re===null)throw Error(S(349));$t&30||Lu(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,$s(Mu.bind(null,r,i,e),[e]),r.flags|=2048,ar(9,Pu.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ke(),t=re.identifierPrefix;if(H){var n=be,r=qe;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=or++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Tf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},If={readContext:Me,useCallback:Uu,useContext:Me,useEffect:Oo,useImperativeHandle:$u,useInsertionEffect:Du,useLayoutEffect:Fu,useMemo:Wu,useReducer:bl,useRef:Ou,useState:function(){return bl(sr)},useDebugValue:Do,useDeferredValue:function(e){var t=Re();return Bu(t,ee.memoizedState,e)},useTransition:function(){var e=bl(sr)[0],t=Re().memoizedState;return[e,t]},useMutableSource:zu,useSyncExternalStore:Tu,useId:Vu,unstable_isNewReconciler:!1},Of={readContext:Me,useCallback:Uu,useContext:Me,useEffect:Oo,useImperativeHandle:$u,useInsertionEffect:Du,useLayoutEffect:Fu,useMemo:Wu,useReducer:ei,useRef:Ou,useState:function(){return ei(sr)},useDebugValue:Do,useDeferredValue:function(e){var t=Re();return ee===null?t.memoizedState=e:Bu(t,ee.memoizedState,e)},useTransition:function(){var e=ei(sr)[0],t=Re().memoizedState;return[e,t]},useMutableSource:zu,useSyncExternalStore:Tu,useId:Vu,unstable_isNewReconciler:!1};function Fe(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cl={isMounted:function(e){return(e=e._reactInternals)?Vt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),l=wt(e),i=et(r,l);i.payload=t,n!=null&&(i.callback=n),t=xt(e,i,l),t!==null&&(We(t,e,l,r),$r(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fe(),l=wt(e),i=et(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=xt(e,i,l),t!==null&&(We(t,e,l,r),$r(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fe(),r=wt(e),l=et(n,r);l.tag=2,t!=null&&(l.callback=t),t=xt(e,l,r),t!==null&&(We(t,e,r,n),$r(t,e,r))}};function Us(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!er(n,r)||!er(l,i):!0}function Gu(e,t,n){var r=!1,l=Ct,i=t.contextType;return typeof i=="object"&&i!==null?i=Me(i):(l=ve(t)?Ft:ce.current,r=t.contextTypes,i=(r=r!=null)?hn(e,l):Ct),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ws(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&&Cl.enqueueReplaceState(t,t.state,null)}function Ai(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},zo(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Me(i):(i=ve(t)?Ft:ce.current,l.context=hn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Fi(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Cl.enqueueReplaceState(l,l.state,null),sl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function vn(e,t){try{var n="",r=t;do n+=ad(r),r=r.return;while(r);var l=n}catch(i){l=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:l,digest:null}}function ti(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $i(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Df=typeof WeakMap=="function"?WeakMap:Map;function Yu(e,t,n){n=et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,Xi=r),$i(e,t)},n}function Xu(e,t,n){n=et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){$i(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){$i(e,t),typeof r!="function"&&(kt===null?kt=new Set([this]):kt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Bs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Df;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Zf.bind(null,e,t,n),t.then(e,e))}function Vs(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 Hs(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=et(-1,1),t.tag=2,xt(n,t,1))),n.lanes|=1),e)}var Ff=it.ReactCurrentOwner,ye=!1;function de(e,t,n,r){t.child=e===null?Cu(t,null,n,r):yn(t,e.child,n,r)}function Qs(e,t,n,r,l){n=n.render;var i=t.ref;return dn(t,l),r=Ro(e,t,n,r,i,l),n=Io(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(H&&n&&wo(t),t.flags|=1,de(e,t,r,l),t.child)}function Ks(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Ho(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Zu(e,t,i,r,l)):(e=Qr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:er,n(o,r)&&e.ref===t.ref)return lt(e,t,l)}return t.flags|=1,e=St(i,r),e.ref=t.ref,e.return=t,t.child=e}function Zu(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(er(i,r)&&e.ref===t.ref)if(ye=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ye=!0);else return t.lanes=e.lanes,lt(e,t,l)}return Ui(e,t,n,r,l)}function Ju(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(on,we),we|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(on,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,W(on,we),we|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,W(on,we),we|=r;return de(e,t,l,n),t.child}function qu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ui(e,t,n,r,l){var i=ve(n)?Ft:ce.current;return i=hn(t,i),dn(t,l),n=Ro(e,t,n,r,i,l),r=Io(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(H&&r&&wo(t),t.flags|=1,de(e,t,n,l),t.child)}function Gs(e,t,n,r,l){if(ve(n)){var i=!0;nl(t)}else i=!1;if(dn(t,l),t.stateNode===null)Br(e,t),Gu(t,n,r),Ai(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Me(c):(c=ve(n)?Ft:ce.current,c=hn(t,c));var g=n.getDerivedStateFromProps,y=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function";y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Ws(t,o,r,c),ct=!1;var m=t.memoizedState;o.state=m,sl(t,r,o,l),u=t.memoizedState,a!==r||m!==u||ge.current||ct?(typeof g=="function"&&(Fi(t,n,g,r),u=t.memoizedState),(a=ct||Us(t,n,a,r,m,u,c))?(y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,_u(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Fe(t.type,a),o.props=c,y=t.pendingProps,m=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Me(u):(u=ve(n)?Ft:ce.current,u=hn(t,u));var h=n.getDerivedStateFromProps;(g=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==y||m!==u)&&Ws(t,o,r,u),ct=!1,m=t.memoizedState,o.state=m,sl(t,r,o,l);var v=t.memoizedState;a!==y||m!==v||ge.current||ct?(typeof h=="function"&&(Fi(t,n,h,r),v=t.memoizedState),(c=ct||Us(t,n,c,r,m,v,u)||!1)?(g||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Wi(e,t,n,r,i,l)}function Wi(e,t,n,r,l,i){qu(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Ms(t,n,!1),lt(e,t,i);r=t.stateNode,Ff.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=yn(t,e.child,null,i),t.child=yn(t,null,a,i)):de(e,t,a,i),t.memoizedState=r.state,l&&Ms(t,n,!0),t.child}function bu(e){var t=e.stateNode;t.pendingContext?Ps(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ps(e,t.context,!1),To(e,t.containerInfo)}function Ys(e,t,n,r,l){return mn(),jo(l),t.flags|=256,de(e,t,n,r),t.child}var Bi={dehydrated:null,treeContext:null,retryLane:0};function Vi(e){return{baseLanes:e,cachePool:null,transitions:null}}function ec(e,t,n){var r=t.pendingProps,l=Q.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),W(Q,l&1),e===null)return Oi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=El(o,r,0,null),e=Dt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Vi(n),t.memoizedState=Bi,e):Fo(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Af(e,t,o,r,a,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=St(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?i=St(a,i):(i=Dt(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Vi(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Bi,r}return i=e.child,e=i.sibling,r=St(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(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 Fo(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Lr(e,t,n,r){return r!==null&&jo(r),yn(t,e.child,null,n),e=Fo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Af(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=ti(Error(S(422))),Lr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=El({mode:"visible",children:r.children},l,0,null),i=Dt(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&yn(t,e.child,null,o),t.child.memoizedState=Vi(o),t.memoizedState=Bi,i);if(!(t.mode&1))return Lr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(S(419)),r=ti(i,r,void 0),Lr(e,t,o,r)}if(a=(o&e.childLanes)!==0,ye||a){if(r=re,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,rt(e,l),We(r,e,l,-1))}return Vo(),r=ti(Error(S(421))),Lr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Jf.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Se=vt(l.nextSibling),je=t,H=!0,$e=null,e!==null&&(ze[Te++]=qe,ze[Te++]=be,ze[Te++]=At,qe=e.id,be=e.overflow,At=t),t=Fo(t,r.children),t.flags|=4096,t)}function Xs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Di(e.return,t,n)}function ni(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function tc(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(de(e,t,r.children,n),r=Q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xs(e,n,t);else if(e.tag===19)Xs(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(W(Q,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&al(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ni(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&al(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ni(t,!0,n,null,i);break;case"together":ni(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Br(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ut|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=St(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=St(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $f(e,t,n){switch(t.tag){case 3:bu(t),mn();break;case 5:Eu(t);break;case 1:ve(t.type)&&nl(t);break;case 4:To(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;W(il,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(Q,Q.current&1),t.flags|=128,null):n&t.child.childLanes?ec(e,t,n):(W(Q,Q.current&1),e=lt(e,t,n),e!==null?e.sibling:null);W(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),W(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,Ju(e,t,n)}return lt(e,t,n)}var nc,Hi,rc,lc;nc=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}};Hi=function(){};rc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,It(Xe.current);var i=null;switch(n){case"input":l=fi(e,l),r=fi(e,r),i=[];break;case"select":l=G({},l,{value:void 0}),r=G({},r,{value:void 0}),i=[];break;case"textarea":l=mi(e,l),r=mi(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=el)}gi(n,r);var o;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var a=l[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Gn.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(a=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Gn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&B("scroll",e),i||a===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};lc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Pn(e,t){if(!H)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 ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Uf(e,t,n){var r=t.pendingProps;switch(So(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(t),null;case 1:return ve(t.type)&&tl(),ae(t),null;case 3:return r=t.stateNode,gn(),V(ge),V(ce),Po(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(qi($e),$e=null))),Hi(e,t),ae(t),null;case 5:Lo(t);var l=It(ir.current);if(n=t.type,e!==null&&t.stateNode!=null)rc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return ae(t),null}if(e=It(Xe.current),zr(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ge]=t,r[rr]=i,e=(t.mode&1)!==0,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("load",r);break;case"video":case"audio":for(l=0;l<Fn.length;l++)B(Fn[l],r);break;case"source":B("error",r);break;case"img":case"image":case"link":B("error",r),B("load",r);break;case"details":B("toggle",r);break;case"input":ls(r,i),B("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},B("invalid",r);break;case"textarea":os(r,i),B("invalid",r)}gi(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Er(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Er(r.textContent,a,e),l=["children",""+a]):Gn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&B("scroll",r)}switch(n){case"input":xr(r),is(r,i,!0);break;case"textarea":xr(r),ss(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=el)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ma(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ge]=t,e[rr]=r,nc(e,t,!1,!1),t.stateNode=e;e:{switch(o=vi(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;l<Fn.length;l++)B(Fn[l],e);l=r;break;case"source":B("error",e),l=r;break;case"img":case"image":case"link":B("error",e),B("load",e),l=r;break;case"details":B("toggle",e),l=r;break;case"input":ls(e,r),l=fi(e,r),B("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=G({},r,{value:void 0}),B("invalid",e);break;case"textarea":os(e,r),l=mi(e,r),B("invalid",e);break;default:l=r}gi(n,l),a=l;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];i==="style"?Oa(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ra(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Yn(e,u):typeof u=="number"&&Yn(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Gn.hasOwnProperty(i)?u!=null&&i==="onScroll"&&B("scroll",e):u!=null&&oo(e,i,u,o))}switch(n){case"input":xr(e),is(e,r,!1);break;case"textarea":xr(e),ss(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?sn(e,!!r.multiple,i,!1):r.defaultValue!=null&&sn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=el)}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 ae(t),null;case 6:if(e&&t.stateNode!=null)lc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=It(ir.current),It(Xe.current),zr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ge]=t,(i=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:Er(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Er(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ge]=t,t.stateNode=r}return ae(t),null;case 13:if(V(Q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(H&&Se!==null&&t.mode&1&&!(t.flags&128))Su(),mn(),t.flags|=98560,i=!1;else if(i=zr(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[Ge]=t}else mn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ae(t),i=!1}else $e!==null&&(qi($e),$e=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Q.current&1?te===0&&(te=3):Vo())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return gn(),Hi(e,t),e===null&&tr(t.stateNode.containerInfo),ae(t),null;case 10:return _o(t.type._context),ae(t),null;case 17:return ve(t.type)&&tl(),ae(t),null;case 19:if(V(Q),i=t.memoizedState,i===null)return ae(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Pn(i,!1);else{if(te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=al(e),o!==null){for(t.flags|=128,Pn(i,!1),r=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(Q,Q.current&1|2),t.child}e=e.sibling}i.tail!==null&&J()>xn&&(t.flags|=128,r=!0,Pn(i,!1),t.lanes=4194304)}else{if(!r)if(e=al(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!H)return ae(t),null}else 2*J()-i.renderingStartTime>xn&&n!==1073741824&&(t.flags|=128,r=!0,Pn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=J(),t.sibling=null,n=Q.current,W(Q,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return Bo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Wf(e,t){switch(So(t),t.tag){case 1:return ve(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(),V(ge),V(ce),Po(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lo(t),null;case 13:if(V(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Q),null;case 4:return gn(),null;case 10:return _o(t.type._context),null;case 22:case 23:return Bo(),null;case 24:return null;default:return null}}var Pr=!1,ue=!1,Bf=typeof WeakSet=="function"?WeakSet:Set,N=null;function ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function Qi(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Zs=!1;function Vf(e,t){if(zi=Jr,e=uu(),ko(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 l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,g=0,y=e,m=null;t:for(;;){for(var h;y!==n||l!==0&&y.nodeType!==3||(a=o+l),y!==i||r!==0&&y.nodeType!==3||(u=o+r),y.nodeType===3&&(o+=y.nodeValue.length),(h=y.firstChild)!==null;)m=y,y=h;for(;;){if(y===e)break t;if(m===n&&++c===l&&(a=o),m===i&&++g===r&&(u=o),(h=y.nextSibling)!==null)break;y=m,m=y.parentNode}y=h}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ti={focusedElem:e,selectionRange:n},Jr=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,L=v.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Fe(t.type,x),L);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(k){Y(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return v=Zs,Zs=!1,v}function Hn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Qi(t,n,i)}l=l.next}while(l!==r)}}function Nl(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 Ki(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 ic(e){var t=e.alternate;t!==null&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[rr],delete t[Mi],delete t[Nf],delete t[_f])),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 oc(e){return e.tag===5||e.tag===3||e.tag===4}function Js(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oc(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 Gi(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=el));else if(r!==4&&(e=e.child,e!==null))for(Gi(e,t,n),e=e.sibling;e!==null;)Gi(e,t,n),e=e.sibling}function Yi(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(Yi(e,t,n),e=e.sibling;e!==null;)Yi(e,t,n),e=e.sibling}var le=null,Ae=!1;function st(e,t,n){for(n=n.child;n!==null;)sc(e,t,n),n=n.sibling}function sc(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:ue||ln(n,t);case 6:var r=le,l=Ae;le=null,st(e,t,n),le=r,Ae=l,le!==null&&(Ae?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ae?(e=le,n=n.stateNode,e.nodeType===8?Xl(e.parentNode,n):e.nodeType===1&&Xl(e,n),qn(e)):Xl(le,n.stateNode));break;case 4:r=le,l=Ae,le=n.stateNode.containerInfo,Ae=!0,st(e,t,n),le=r,Ae=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qi(n,t,o),l=l.next}while(l!==r)}st(e,t,n);break;case 1:if(!ue&&(ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Y(n,t,a)}st(e,t,n);break;case 21:st(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,st(e,t,n),ue=r):st(e,t,n);break;default:st(e,t,n)}}function qs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bf),t.forEach(function(r){var l=qf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function De(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:le=a.stateNode,Ae=!1;break e;case 3:le=a.stateNode.containerInfo,Ae=!0;break e;case 4:le=a.stateNode.containerInfo,Ae=!0;break e}a=a.return}if(le===null)throw Error(S(160));sc(i,o,l),le=null,Ae=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(c){Y(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ac(t,e),t=t.sibling}function ac(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(De(t,e),Qe(e),r&4){try{Hn(3,e,e.return),Nl(3,e)}catch(x){Y(e,e.return,x)}try{Hn(5,e,e.return)}catch(x){Y(e,e.return,x)}}break;case 1:De(t,e),Qe(e),r&512&&n!==null&&ln(n,n.return);break;case 5:if(De(t,e),Qe(e),r&512&&n!==null&&ln(n,n.return),e.flags&32){var l=e.stateNode;try{Yn(l,"")}catch(x){Y(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&La(l,i),vi(a,o);var c=vi(a,i);for(o=0;o<u.length;o+=2){var g=u[o],y=u[o+1];g==="style"?Oa(l,y):g==="dangerouslySetInnerHTML"?Ra(l,y):g==="children"?Yn(l,y):oo(l,g,y,c)}switch(a){case"input":pi(l,i);break;case"textarea":Pa(l,i);break;case"select":var m=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?sn(l,!!i.multiple,h,!1):m!==!!i.multiple&&(i.defaultValue!=null?sn(l,!!i.multiple,i.defaultValue,!0):sn(l,!!i.multiple,i.multiple?[]:"",!1))}l[rr]=i}catch(x){Y(e,e.return,x)}}break;case 6:if(De(t,e),Qe(e),r&4){if(e.stateNode===null)throw Error(S(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(x){Y(e,e.return,x)}}break;case 3:if(De(t,e),Qe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qn(t.containerInfo)}catch(x){Y(e,e.return,x)}break;case 4:De(t,e),Qe(e);break;case 13:De(t,e),Qe(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Uo=J())),r&4&&qs(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(c=ue)||g,De(t,e),ue=c):De(t,e),Qe(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!g&&e.mode&1)for(N=e,g=e.child;g!==null;){for(y=N=g;N!==null;){switch(m=N,h=m.child,m.tag){case 0:case 11:case 14:case 15:Hn(4,m,m.return);break;case 1:ln(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){Y(r,n,x)}}break;case 5:ln(m,m.return);break;case 22:if(m.memoizedState!==null){ea(y);continue}}h!==null?(h.return=m,N=h):ea(y)}g=g.sibling}e:for(g=null,y=e;;){if(y.tag===5){if(g===null){g=y;try{l=y.stateNode,c?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=y.stateNode,u=y.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Ia("display",o))}catch(x){Y(e,e.return,x)}}}else if(y.tag===6){if(g===null)try{y.stateNode.nodeValue=c?"":y.memoizedProps}catch(x){Y(e,e.return,x)}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===e)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break e;for(;y.sibling===null;){if(y.return===null||y.return===e)break e;g===y&&(g=null),y=y.return}g===y&&(g=null),y.sibling.return=y.return,y=y.sibling}}break;case 19:De(t,e),Qe(e),r&4&&qs(e);break;case 21:break;default:De(t,e),Qe(e)}}function Qe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(oc(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Yn(l,""),r.flags&=-33);var i=Js(e);Yi(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Js(e);Gi(e,a,o);break;default:throw Error(S(161))}}catch(u){Y(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hf(e,t,n){N=e,uc(e)}function uc(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var l=N,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Pr;if(!o){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ue;a=Pr;var c=ue;if(Pr=o,(ue=u)&&!c)for(N=l;N!==null;)o=N,u=o.child,o.tag===22&&o.memoizedState!==null?ta(l):u!==null?(u.return=o,N=u):ta(l);for(;i!==null;)N=i,uc(i),i=i.sibling;N=l,Pr=a,ue=c}bs(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,N=i):bs(e)}}function bs(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ue||Nl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Fe(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Fs(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fs(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var g=c.memoizedState;if(g!==null){var y=g.dehydrated;y!==null&&qn(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}ue||t.flags&512&&Ki(t)}catch(m){Y(t,t.return,m)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function ea(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function ta(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Nl(4,t)}catch(u){Y(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){Y(t,l,u)}}var i=t.return;try{Ki(t)}catch(u){Y(t,i,u)}break;case 5:var o=t.return;try{Ki(t)}catch(u){Y(t,o,u)}}}catch(u){Y(t,t.return,u)}if(t===e){N=null;break}var a=t.sibling;if(a!==null){a.return=t.return,N=a;break}N=t.return}}var Qf=Math.ceil,dl=it.ReactCurrentDispatcher,Ao=it.ReactCurrentOwner,Pe=it.ReactCurrentBatchConfig,F=0,re=null,b=null,ie=0,we=0,on=_t(0),te=0,ur=null,Ut=0,_l=0,$o=0,Qn=null,me=null,Uo=0,xn=1/0,Ze=null,fl=!1,Xi=null,kt=null,Mr=!1,ht=null,pl=0,Kn=0,Zi=null,Vr=-1,Hr=0;function fe(){return F&6?J():Vr!==-1?Vr:Vr=J()}function wt(e){return e.mode&1?F&2&&ie!==0?ie&-ie:zf.transition!==null?(Hr===0&&(Hr=Ga()),Hr):(e=$,e!==0||(e=window.event,e=e===void 0?16:eu(e.type)),e):1}function We(e,t,n,r){if(50<Kn)throw Kn=0,Zi=null,Error(S(185));dr(e,n,r),(!(F&2)||e!==re)&&(e===re&&(!(F&2)&&(_l|=n),te===4&&ft(e,ie)),xe(e,r),n===1&&F===0&&!(t.mode&1)&&(xn=J()+500,Sl&&Et()))}function xe(e,t){var n=e.callbackNode;Ed(e,t);var r=Zr(e,e===re?ie:0);if(r===0)n!==null&&cs(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&cs(n),t===1)e.tag===0?Ef(na.bind(null,e)):xu(na.bind(null,e)),jf(function(){!(F&6)&&Et()}),n=null;else{switch(Ya(r)){case 1:n=fo;break;case 4:n=Qa;break;case 16:n=Xr;break;case 536870912:n=Ka;break;default:n=Xr}n=gc(n,cc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cc(e,t){if(Vr=-1,Hr=0,F&6)throw Error(S(327));var n=e.callbackNode;if(fn()&&e.callbackNode!==n)return null;var r=Zr(e,e===re?ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=hl(e,r);else{t=r;var l=F;F|=2;var i=fc();(re!==e||ie!==t)&&(Ze=null,xn=J()+500,Ot(e,t));do try{Yf();break}catch(a){dc(e,a)}while(!0);No(),dl.current=i,F=l,b!==null?t=0:(re=null,ie=0,t=te)}if(t!==0){if(t===2&&(l=ji(e),l!==0&&(r=l,t=Ji(e,l))),t===1)throw n=ur,Ot(e,0),ft(e,r),xe(e,J()),n;if(t===6)ft(e,r);else{if(l=e.current.alternate,!(r&30)&&!Kf(l)&&(t=hl(e,r),t===2&&(i=ji(e),i!==0&&(r=i,t=Ji(e,i))),t===1))throw n=ur,Ot(e,0),ft(e,r),xe(e,J()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Pt(e,me,Ze);break;case 3:if(ft(e,r),(r&130023424)===r&&(t=Uo+500-J(),10<t)){if(Zr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Pi(Pt.bind(null,e,me,Ze),t);break}Pt(e,me,Ze);break;case 4:if(ft(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-Ue(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qf(r/1960))-r,10<r){e.timeoutHandle=Pi(Pt.bind(null,e,me,Ze),r);break}Pt(e,me,Ze);break;case 5:Pt(e,me,Ze);break;default:throw Error(S(329))}}}return xe(e,J()),e.callbackNode===n?cc.bind(null,e):null}function Ji(e,t){var n=Qn;return e.current.memoizedState.isDehydrated&&(Ot(e,t).flags|=256),e=hl(e,t),e!==2&&(t=me,me=n,t!==null&&qi(t)),e}function qi(e){me===null?me=e:me.push.apply(me,e)}function Kf(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 l=n[r],i=l.getSnapshot;l=l.value;try{if(!Be(i(),l))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 ft(e,t){for(t&=~$o,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ue(t),r=1<<n;e[n]=-1,t&=~r}}function na(e){if(F&6)throw Error(S(327));fn();var t=Zr(e,0);if(!(t&1))return xe(e,J()),null;var n=hl(e,t);if(e.tag!==0&&n===2){var r=ji(e);r!==0&&(t=r,n=Ji(e,r))}if(n===1)throw n=ur,Ot(e,0),ft(e,t),xe(e,J()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pt(e,me,Ze),xe(e,J()),null}function Wo(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(xn=J()+500,Sl&&Et())}}function Wt(e){ht!==null&&ht.tag===0&&!(F&6)&&fn();var t=F;F|=1;var n=Pe.transition,r=$;try{if(Pe.transition=null,$=1,e)return e()}finally{$=r,Pe.transition=n,F=t,!(F&6)&&Et()}}function Bo(){we=on.current,V(on)}function Ot(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sf(n)),b!==null)for(n=b.return;n!==null;){var r=n;switch(So(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tl();break;case 3:gn(),V(ge),V(ce),Po();break;case 5:Lo(r);break;case 4:gn();break;case 13:V(Q);break;case 19:V(Q);break;case 10:_o(r.type._context);break;case 22:case 23:Bo()}n=n.return}if(re=e,b=e=St(e.current,null),ie=we=t,te=0,ur=null,$o=_l=Ut=0,me=Qn=null,Rt!==null){for(t=0;t<Rt.length;t++)if(n=Rt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}Rt=null}return e}function dc(e,t){do{var n=b;try{if(No(),Ur.current=cl,ul){for(var r=K.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ul=!1}if($t=0,ne=ee=K=null,Vn=!1,or=0,Ao.current=null,n===null||n.return===null){te=1,ur=t,b=null;break}e:{var i=e,o=n.return,a=n,u=t;if(t=ie,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,g=a,y=g.tag;if(!(g.mode&1)&&(y===0||y===11||y===15)){var m=g.alternate;m?(g.updateQueue=m.updateQueue,g.memoizedState=m.memoizedState,g.lanes=m.lanes):(g.updateQueue=null,g.memoizedState=null)}var h=Vs(o);if(h!==null){h.flags&=-257,Hs(h,o,a,i,t),h.mode&1&&Bs(i,c,t),t=h,u=c;var v=t.updateQueue;if(v===null){var x=new Set;x.add(u),t.updateQueue=x}else v.add(u);break e}else{if(!(t&1)){Bs(i,c,t),Vo();break e}u=Error(S(426))}}else if(H&&a.mode&1){var L=Vs(o);if(L!==null){!(L.flags&65536)&&(L.flags|=256),Hs(L,o,a,i,t),jo(vn(u,a));break e}}i=u=vn(u,a),te!==4&&(te=2),Qn===null?Qn=[i]:Qn.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var f=Yu(i,u,t);Ds(i,f);break e;case 1:a=u;var d=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(kt===null||!kt.has(p)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=Xu(i,a,t);Ds(i,k);break e}}i=i.return}while(i!==null)}hc(n)}catch(j){t=j,b===n&&n!==null&&(b=n=n.return);continue}break}while(!0)}function fc(){var e=dl.current;return dl.current=cl,e===null?cl:e}function Vo(){(te===0||te===3||te===2)&&(te=4),re===null||!(Ut&268435455)&&!(_l&268435455)||ft(re,ie)}function hl(e,t){var n=F;F|=2;var r=fc();(re!==e||ie!==t)&&(Ze=null,Ot(e,t));do try{Gf();break}catch(l){dc(e,l)}while(!0);if(No(),F=n,dl.current=r,b!==null)throw Error(S(261));return re=null,ie=0,te}function Gf(){for(;b!==null;)pc(b)}function Yf(){for(;b!==null&&!vd();)pc(b)}function pc(e){var t=yc(e.alternate,e,we);e.memoizedProps=e.pendingProps,t===null?hc(e):b=t,Ao.current=null}function hc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Wf(n,t),n!==null){n.flags&=32767,b=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{te=6,b=null;return}}else if(n=Uf(n,t,we),n!==null){b=n;return}if(t=t.sibling,t!==null){b=t;return}b=t=e}while(t!==null);te===0&&(te=5)}function Pt(e,t,n){var r=$,l=Pe.transition;try{Pe.transition=null,$=1,Xf(e,t,n,r)}finally{Pe.transition=l,$=r}return null}function Xf(e,t,n,r){do fn();while(ht!==null);if(F&6)throw Error(S(327));n=e.finishedWork;var l=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(zd(e,i),e===re&&(b=re=null,ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mr||(Mr=!0,gc(Xr,function(){return fn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Pe.transition,Pe.transition=null;var o=$;$=1;var a=F;F|=4,Ao.current=null,Vf(e,n),ac(n,e),mf(Ti),Jr=!!zi,Ti=zi=null,e.current=n,Hf(n),xd(),F=a,$=o,Pe.transition=i}else e.current=n;if(Mr&&(Mr=!1,ht=e,pl=l),i=e.pendingLanes,i===0&&(kt=null),Sd(n.stateNode),xe(e,J()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(fl)throw fl=!1,e=Xi,Xi=null,e;return pl&1&&e.tag!==0&&fn(),i=e.pendingLanes,i&1?e===Zi?Kn++:(Kn=0,Zi=e):Kn=0,Et(),null}function fn(){if(ht!==null){var e=Ya(pl),t=Pe.transition,n=$;try{if(Pe.transition=null,$=16>e?16:e,ht===null)var r=!1;else{if(e=ht,ht=null,pl=0,F&6)throw Error(S(331));var l=F;for(F|=4,N=e.current;N!==null;){var i=N,o=i.child;if(N.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(N=c;N!==null;){var g=N;switch(g.tag){case 0:case 11:case 15:Hn(8,g,i)}var y=g.child;if(y!==null)y.return=g,N=y;else for(;N!==null;){g=N;var m=g.sibling,h=g.return;if(ic(g),g===c){N=null;break}if(m!==null){m.return=h,N=m;break}N=h}}}var v=i.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var L=x.sibling;x.sibling=null,x=L}while(x!==null)}}N=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,N=o;else e:for(;N!==null;){if(i=N,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Hn(9,i,i.return)}var f=i.sibling;if(f!==null){f.return=i.return,N=f;break e}N=i.return}}var d=e.current;for(N=d;N!==null;){o=N;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,N=p;else e:for(o=d;N!==null;){if(a=N,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Nl(9,a)}}catch(j){Y(a,a.return,j)}if(a===o){N=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,N=k;break e}N=a.return}}if(F=l,Et(),Ye&&typeof Ye.onPostCommitFiberRoot=="function")try{Ye.onPostCommitFiberRoot(gl,e)}catch{}r=!0}return r}finally{$=n,Pe.transition=t}}return!1}function ra(e,t,n){t=vn(n,t),t=Yu(e,t,1),e=xt(e,t,1),t=fe(),e!==null&&(dr(e,1,t),xe(e,t))}function Y(e,t,n){if(e.tag===3)ra(e,e,n);else for(;t!==null;){if(t.tag===3){ra(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kt===null||!kt.has(r))){e=vn(n,e),e=Xu(t,e,1),t=xt(t,e,1),e=fe(),t!==null&&(dr(t,1,e),xe(t,e));break}}t=t.return}}function Zf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fe(),e.pingedLanes|=e.suspendedLanes&n,re===e&&(ie&n)===n&&(te===4||te===3&&(ie&130023424)===ie&&500>J()-Uo?Ot(e,0):$o|=n),xe(e,t)}function mc(e,t){t===0&&(e.mode&1?(t=Sr,Sr<<=1,!(Sr&130023424)&&(Sr=4194304)):t=1);var n=fe();e=rt(e,t),e!==null&&(dr(e,t,n),xe(e,n))}function Jf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mc(e,n)}function qf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),mc(e,n)}var yc;yc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,$f(e,t,n);ye=!!(e.flags&131072)}else ye=!1,H&&t.flags&1048576&&ku(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var l=hn(t,ce.current);dn(t,n),l=Ro(null,t,r,e,l,n);var i=Io();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ve(r)?(i=!0,nl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,zo(t),l.updater=Cl,t.stateNode=l,l._reactInternals=t,Ai(t,r,e,n),t=Wi(null,t,r,!0,i,n)):(t.tag=0,H&&i&&wo(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ep(r),e=Fe(r,e),l){case 0:t=Ui(null,t,r,e,n);break e;case 1:t=Gs(null,t,r,e,n);break e;case 11:t=Qs(null,t,r,e,n);break e;case 14:t=Ks(null,t,r,Fe(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Ui(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Gs(e,t,r,l,n);case 3:e:{if(bu(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,_u(e,t),sl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=vn(Error(S(423)),t),t=Ys(e,t,r,n,l);break e}else if(r!==l){l=vn(Error(S(424)),t),t=Ys(e,t,r,n,l);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),je=t,H=!0,$e=null,n=Cu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mn(),r===l){t=lt(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return Eu(t),e===null&&Oi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Li(r,l)?o=null:i!==null&&Li(r,i)&&(t.flags|=32),qu(e,t),de(e,t,o,n),t.child;case 6:return e===null&&Oi(t),null;case 13:return ec(e,t,n);case 4:return To(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=yn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Qs(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,W(il,r._currentValue),r._currentValue=o,i!==null)if(Be(i.value,o)){if(i.children===l.children&&!ge.current){t=lt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=et(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var g=c.pending;g===null?u.next=u:(u.next=g.next,g.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Di(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(S(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Di(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,dn(t,n),l=Me(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=Fe(r,t.pendingProps),l=Fe(r.type,l),Ks(e,t,r,l,n);case 15:return Zu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Br(e,t),t.tag=1,ve(r)?(e=!0,nl(t)):e=!1,dn(t,n),Gu(t,r,l),Ai(t,r,l,n),Wi(null,t,r,!0,e,n);case 19:return tc(e,t,n);case 22:return Ju(e,t,n)}throw Error(S(156,t.tag))};function gc(e,t){return Ha(e,t)}function bf(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 Le(e,t,n,r){return new bf(e,t,n,r)}function Ho(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ep(e){if(typeof e=="function")return Ho(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ao)return 11;if(e===uo)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Le(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 Qr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ho(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Xt:return Dt(n.children,l,i,t);case so:o=8,l|=8;break;case ai:return e=Le(12,n,t,l|2),e.elementType=ai,e.lanes=i,e;case ui:return e=Le(13,n,t,l),e.elementType=ui,e.lanes=i,e;case ci:return e=Le(19,n,t,l),e.elementType=ci,e.lanes=i,e;case Ea:return El(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Na:o=10;break e;case _a:o=9;break e;case ao:o=11;break e;case uo:o=14;break e;case ut:o=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Le(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Dt(e,t,n,r){return e=Le(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=Le(22,e,r,t),e.elementType=Ea,e.lanes=n,e.stateNode={isHidden:!1},e}function ri(e,t,n){return e=Le(6,e,null,t),e.lanes=n,e}function li(e,t,n){return t=Le(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Al(0),this.expirationTimes=Al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Qo(e,t,n,r,l,i,o,a,u){return e=new tp(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Le(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zo(i),e}function np(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Yt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vc(e){if(!e)return Ct;e=e._reactInternals;e:{if(Vt(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(ve(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(ve(n))return vu(e,n,t)}return t}function xc(e,t,n,r,l,i,o,a,u){return e=Qo(n,r,!0,e,l,i,o,a,u),e.context=vc(null),n=e.current,r=fe(),l=wt(n),i=et(r,l),i.callback=t??null,xt(n,i,l),e.current.lanes=l,dr(e,l,r),xe(e,r),e}function zl(e,t,n,r){var l=t.current,i=fe(),o=wt(l);return n=vc(n),t.context===null?t.context=n:t.pendingContext=n,t=et(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xt(l,t,o),e!==null&&(We(e,l,o,i),$r(e,l,o)),o}function ml(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 la(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ko(e,t){la(e,t),(e=e.alternate)&&la(e,t)}function rp(){return null}var kc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Go(e){this._internalRoot=e}Tl.prototype.render=Go.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));zl(e,t,null,null)};Tl.prototype.unmount=Go.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wt(function(){zl(null,e,null,null)}),t[nt]=null}};function Tl(e){this._internalRoot=e}Tl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ja();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dt.length&&t!==0&&t<dt[n].priority;n++);dt.splice(n,0,e),n===0&&ba(e)}};function Yo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ll(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ia(){}function lp(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var c=ml(o);i.call(c)}}var o=xc(t,r,e,0,null,!1,!1,"",ia);return e._reactRootContainer=o,e[nt]=o.current,tr(e.nodeType===8?e.parentNode:e),Wt(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var c=ml(u);a.call(c)}}var u=Qo(e,0,!1,null,null,!1,!1,"",ia);return e._reactRootContainer=u,e[nt]=u.current,tr(e.nodeType===8?e.parentNode:e),Wt(function(){zl(t,u,n,r)}),u}function Pl(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var a=l;l=function(){var u=ml(o);a.call(u)}}zl(t,o,e,l)}else o=lp(n,t,e,l,r);return ml(o)}Xa=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dn(t.pendingLanes);n!==0&&(po(t,n|1),xe(t,J()),!(F&6)&&(xn=J()+500,Et()))}break;case 13:Wt(function(){var r=rt(e,1);if(r!==null){var l=fe();We(r,e,1,l)}}),Ko(e,1)}};ho=function(e){if(e.tag===13){var t=rt(e,134217728);if(t!==null){var n=fe();We(t,e,134217728,n)}Ko(e,134217728)}};Za=function(e){if(e.tag===13){var t=wt(e),n=rt(e,t);if(n!==null){var r=fe();We(n,e,t,r)}Ko(e,t)}};Ja=function(){return $};qa=function(e,t){var n=$;try{return $=e,t()}finally{$=n}};ki=function(e,t,n){switch(t){case"input":if(pi(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 l=wl(r);if(!l)throw Error(S(90));Ta(r),pi(r,l)}}}break;case"textarea":Pa(e,n);break;case"select":t=n.value,t!=null&&sn(e,!!n.multiple,t,!1)}};Aa=Wo;$a=Wt;var ip={usingClientEntryPoint:!1,Events:[pr,bt,wl,Da,Fa,Wo]},Mn={findFiberByHostInstance:Mt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},op={bundleType:Mn.bundleType,version:Mn.version,rendererPackageName:Mn.rendererPackageName,rendererConfig:Mn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:it.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ba(e),e===null?null:e.stateNode},findFiberByHostInstance:Mn.findFiberByHostInstance||rp,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 Rr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rr.isDisabled&&Rr.supportsFiber)try{gl=Rr.inject(op),Ye=Rr}catch{}}Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ip;Ne.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yo(t))throw Error(S(200));return np(e,t,null,n)};Ne.createRoot=function(e,t){if(!Yo(e))throw Error(S(299));var n=!1,r="",l=kc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Qo(e,1,!1,null,null,n,!1,r,l),e[nt]=t.current,tr(e.nodeType===8?e.parentNode:e),new Go(t)};Ne.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=Ba(t),e=e===null?null:e.stateNode,e};Ne.flushSync=function(e){return Wt(e)};Ne.hydrate=function(e,t,n){if(!Ll(t))throw Error(S(200));return Pl(null,e,t,!0,n)};Ne.hydrateRoot=function(e,t,n){if(!Yo(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=kc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=xc(t,null,e,1,n??null,l,!1,i,o),e[nt]=t.current,tr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Tl(t)};Ne.render=function(e,t,n){if(!Ll(t))throw Error(S(200));return Pl(null,e,t,!1,n)};Ne.unmountComponentAtNode=function(e){if(!Ll(e))throw Error(S(40));return e._reactRootContainer?(Wt(function(){Pl(null,null,e,!1,function(){e._reactRootContainer=null,e[nt]=null})}),!0):!1};Ne.unstable_batchedUpdates=Wo;Ne.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ll(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Pl(e,t,n,!1,r)};Ne.version="18.3.1-next-f1338f8080-20240426";function wc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wc)}catch(e){console.error(e)}}wc(),wa.exports=Ne;var sp=wa.exports,Sc,oa=sp;Sc=oa.createRoot,oa.hydrateRoot;const ap=new URLSearchParams(window.location.search),sa=ap.get("token");sa&&(localStorage.setItem("nyxora_token",sa),window.history.replaceState({},document.title,window.location.pathname));const up=()=>localStorage.getItem("nyxora_token")||"",cp="";async function q(e,t){const n=up(),r=new Headers(t==null?void 0:t.headers);n&&r.set("x-nyxora-token",n);const l=typeof e=="string"&&e.startsWith("/")?`${cp}${e}`:e;return fetch(l,{...t,headers:r})}/**
41
+ * @license lucide-react v0.474.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const dp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
+ * @license lucide-react v0.474.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var fp={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"};/**
51
+ * @license lucide-react v0.474.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const pp=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:i,iconNode:o,...a},u)=>T.createElement("svg",{ref:u,...fp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:jc("lucide",l),...a},[...o.map(([c,g])=>T.createElement(c,g)),...Array.isArray(i)?i:[i]]));/**
56
+ * @license lucide-react v0.474.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const M=(e,t)=>{const n=T.forwardRef(({className:r,...l},i)=>T.createElement(pp,{ref:i,iconNode:t,className:jc(`lucide-${dp(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
61
+ * @license lucide-react v0.474.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const hp=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Cc=M("Activity",hp);/**
66
+ * @license lucide-react v0.474.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const mp=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]],yp=M("ArrowDownUp",mp);/**
71
+ * @license lucide-react v0.474.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const gp=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],vp=M("ArrowRightLeft",gp);/**
76
+ * @license lucide-react v0.474.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const xp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],kp=M("ArrowRight",xp);/**
81
+ * @license lucide-react v0.474.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const wp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Sp=M("Calendar",wp);/**
86
+ * @license lucide-react v0.474.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const jp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],Cp=M("ChartLine",jp);/**
91
+ * @license lucide-react v0.474.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Np=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],_p=M("ChartPie",Np);/**
96
+ * @license lucide-react v0.474.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Ep=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],aa=M("Check",Ep);/**
101
+ * @license lucide-react v0.474.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const zp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xo=M("ChevronDown",zp);/**
106
+ * @license lucide-react v0.474.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Tp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Zo=M("CircleCheck",Tp);/**
111
+ * @license lucide-react v0.474.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Lp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Pp=M("CircleX",Lp);/**
116
+ * @license lucide-react v0.474.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Mp=[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],Rp=M("CloudDownload",Mp);/**
121
+ * @license lucide-react v0.474.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const Ip=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Nc=M("Compass",Ip);/**
126
+ * @license lucide-react v0.474.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Op=[["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"}]],bi=M("Copy",Op);/**
131
+ * @license lucide-react v0.474.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Dp=[["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"}]],Rn=M("Cpu",Dp);/**
136
+ * @license lucide-react v0.474.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Fp=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],Ap=M("FilePen",Fp);/**
141
+ * @license lucide-react v0.474.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const $p=[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]],Up=M("FileSearch",$p);/**
146
+ * @license lucide-react v0.474.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Wp=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Bp=M("FileText",Wp);/**
151
+ * @license lucide-react v0.474.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const Vp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],at=M("Globe",Vp);/**
156
+ * @license lucide-react v0.474.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Hp=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Qp=M("Image",Hp);/**
161
+ * @license lucide-react v0.474.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Kp=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Gp=M("Key",Kp);/**
166
+ * @license lucide-react v0.474.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const Yp=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Xp=M("LayoutDashboard",Yp);/**
171
+ * @license lucide-react v0.474.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const Zp=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],Jp=M("ListOrdered",Zp);/**
176
+ * @license lucide-react v0.474.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const qp=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],bp=M("Mail",qp);/**
181
+ * @license lucide-react v0.474.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const e0=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],t0=M("MessageSquare",e0);/**
186
+ * @license lucide-react v0.474.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const n0=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],r0=M("Mic",n0);/**
191
+ * @license lucide-react v0.474.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const l0=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],_c=M("Network",l0);/**
196
+ * @license lucide-react v0.474.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const i0=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],o0=M("Pen",i0);/**
201
+ * @license lucide-react v0.474.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const s0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],a0=M("Plus",s0);/**
206
+ * @license lucide-react v0.474.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const u0=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],c0=M("RefreshCcw",u0);/**
211
+ * @license lucide-react v0.474.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const d0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],f0=M("RefreshCw",d0);/**
216
+ * @license lucide-react v0.474.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const p0=[["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"}]],h0=M("Route",p0);/**
221
+ * @license lucide-react v0.474.0 - ISC
222
+ *
223
+ * This source code is licensed under the ISC license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */const m0=[["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"}]],y0=M("Save",m0);/**
226
+ * @license lucide-react v0.474.0 - ISC
227
+ *
228
+ * This source code is licensed under the ISC license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */const g0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Ml=M("Search",g0);/**
231
+ * @license lucide-react v0.474.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */const v0=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Ec=M("Send",v0);/**
236
+ * @license lucide-react v0.474.0 - ISC
237
+ *
238
+ * This source code is licensed under the ISC license.
239
+ * See the LICENSE file in the root directory of this source tree.
240
+ */const x0=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],k0=M("Settings",x0);/**
241
+ * @license lucide-react v0.474.0 - ISC
242
+ *
243
+ * This source code is licensed under the ISC license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */const w0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],S0=M("ShieldAlert",w0);/**
246
+ * @license lucide-react v0.474.0 - ISC
247
+ *
248
+ * This source code is licensed under the ISC license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */const j0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],C0=M("Shield",j0);/**
251
+ * @license lucide-react v0.474.0 - ISC
252
+ *
253
+ * This source code is licensed under the ISC license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */const N0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],_0=M("Target",N0);/**
256
+ * @license lucide-react v0.474.0 - ISC
257
+ *
258
+ * This source code is licensed under the ISC license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */const E0=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],Jo=M("Terminal",E0);/**
261
+ * @license lucide-react v0.474.0 - ISC
262
+ *
263
+ * This source code is licensed under the ISC license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */const z0=[["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"}]],T0=M("Trash2",z0);/**
266
+ * @license lucide-react v0.474.0 - ISC
267
+ *
268
+ * This source code is licensed under the ISC license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */const L0=[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]],P0=M("TrendingDown",L0);/**
271
+ * @license lucide-react v0.474.0 - ISC
272
+ *
273
+ * This source code is licensed under the ISC license.
274
+ * See the LICENSE file in the root directory of this source tree.
275
+ */const M0=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],R0=M("TrendingUp",M0);/**
276
+ * @license lucide-react v0.474.0 - ISC
277
+ *
278
+ * This source code is licensed under the ISC license.
279
+ * See the LICENSE file in the root directory of this source tree.
280
+ */const I0=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],O0=M("TriangleAlert",I0);/**
281
+ * @license lucide-react v0.474.0 - ISC
282
+ *
283
+ * This source code is licensed under the ISC license.
284
+ * See the LICENSE file in the root directory of this source tree.
285
+ */const D0=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],zc=M("User",D0);/**
286
+ * @license lucide-react v0.474.0 - ISC
287
+ *
288
+ * This source code is licensed under the ISC license.
289
+ * See the LICENSE file in the root directory of this source tree.
290
+ */const F0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]],A0=M("WalletCards",F0);/**
291
+ * @license lucide-react v0.474.0 - ISC
292
+ *
293
+ * This source code is licensed under the ISC license.
294
+ * See the LICENSE file in the root directory of this source tree.
295
+ */const $0=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],Tc=M("Wallet",$0);/**
296
+ * @license lucide-react v0.474.0 - ISC
297
+ *
298
+ * This source code is licensed under the ISC license.
299
+ * See the LICENSE file in the root directory of this source tree.
300
+ */const U0=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Lc=M("Zap",U0),W0=({config:e})=>{const[t,n]=T.useState({cost:0,tokens:0,messages:0}),[r,l]=T.useState([]),[i,o]=T.useState([]),a=T.useRef(null),u=T.useRef(null);return T.useEffect(()=>{const c=async()=>{try{const y=await q("/api/stats");y.ok&&n(await y.json());const m=await q("/api/logs");if(m.ok){const h=await m.json();l(h.events),o(h.gateway)}}catch{console.error("Failed to fetch analytics")}};c();const g=setInterval(c,2e3);return()=>clearInterval(g)},[]),e?s.jsxs("div",{className:"overview-container",children:[s.jsxs("div",{className:"overview-header",children:[s.jsx("h1",{children:"Nyxora Status"}),s.jsx("p",{children:"System health, active configuration, and loaded Web3 skills."})]}),s.jsxs("div",{className:"panel gateway-access",children:[s.jsxs("div",{className:"panel-header",children:[s.jsx("h3",{children:"System Configuration"}),s.jsx("p",{children:"Current runtime parameters for your Web3 Agent."})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{children:"API Endpoint"}),s.jsx("input",{type:"text",value:"/api/chat",readOnly:!0})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{children:"Agent Name"}),s.jsx("input",{type:"text",value:e.agent.name,readOnly:!0})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{children:"Memory Storage"}),s.jsx("input",{type:"text",value:"./memory.json",readOnly:!0})]})]})]}),s.jsxs("div",{className:"metrics-grid",children:[s.jsxs("div",{className:"metric-card",children:[s.jsx("label",{children:"COST"}),s.jsxs("div",{className:"metric-val",children:["$",t.cost.toFixed(4)]}),s.jsxs("div",{className:"metric-sub",children:[t.tokens," tokens - ",t.messages," msgs"]})]}),s.jsxs("div",{className:"metric-card",children:[s.jsx("label",{children:"SESSIONS"}),s.jsx("div",{className:"metric-val",children:"1"}),s.jsx("div",{className:"metric-sub",children:"Local chat session active"})]}),s.jsxs("div",{className:"metric-card",children:[s.jsx("label",{children:"SKILLS"}),s.jsx("div",{className:"metric-val",children:"2/2"}),s.jsx("div",{className:"metric-sub",children:"2 Web3 skills loaded"})]}),s.jsxs("div",{className:"metric-card",children:[s.jsx("label",{children:"CRON"}),s.jsx("div",{className:"metric-val",children:"0 jobs"}),s.jsx("div",{className:"metric-sub",children:"No scheduled tasks"})]}),s.jsxs("div",{className:"metric-card",children:[s.jsx("label",{children:"MODEL AUTH"}),s.jsx("div",{className:"metric-val text-green",children:"1 ok"}),s.jsxs("div",{className:"metric-sub",children:[e.llm.provider.toUpperCase()," provider connected"]})]})]}),s.jsxs("div",{className:"logs-grid",children:[s.jsxs("div",{className:"log-panel",children:[s.jsx("div",{className:"log-header",children:s.jsxs("span",{children:["Event Log ",s.jsx("span",{className:"badge",children:r.length})]})}),s.jsxs("div",{className:"log-content",children:[r.map((c,g)=>s.jsxs("div",{className:"log-row",style:{fontFamily:"monospace"},children:[s.jsxs("span",{className:"log-time",style:{color:"#88C0D0"},children:["[",c.timestamp,"]"]}),s.jsxs("span",{className:"log-msg",style:{color:"#D8DEE9",marginLeft:"8px"},children:[c.event," ",c.meta&&Object.keys(c.meta).length>0?s.jsx("span",{className:"log-meta",style:{color:"#81A1C1"},children:JSON.stringify(c.meta)}):null]})]},g)),s.jsx("div",{ref:a})]})]}),s.jsxs("div",{className:"log-panel",children:[s.jsx("div",{className:"log-header",children:s.jsxs("span",{children:["Gateway Logs ",s.jsx("span",{className:"badge",children:i.length})]})}),s.jsxs("div",{className:"log-content",children:[i.map((c,g)=>{let y=c.message.replace(/\x1b\[[0-9;]*m/g,"");return y=y.replace(/token=[a-fA-F0-9]+/g,"token=••••••••[REDACTED]••••••••"),s.jsxs("div",{className:"log-row gateway-row",style:{fontFamily:"monospace"},children:[s.jsxs("span",{className:"log-time",style:{color:"#88C0D0"},children:["[",c.timestamp,"]"]}),s.jsxs("span",{className:"log-msg",style:{color:"#D8DEE9",marginLeft:"8px"},children:[y," ",c.meta?JSON.stringify(c.meta):""]})]},g)}),s.jsx("div",{ref:u})]})]})]})]}):s.jsx("div",{className:"overview-container",children:"Loading..."})},ua=({value:e,options:t,onChange:n,pillColor:r="#88c0d0",textColor:l="#000000"})=>{const[i,o]=T.useState(!1),a=T.useRef(null);T.useEffect(()=>{const c=g=>{a.current&&!a.current.contains(g.target)&&o(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]);const u=t.find(c=>c.id===e)||t[0];return s.jsxs("div",{className:"custom-network-selector",ref:a,style:{width:"100%"},children:[s.jsxs("button",{className:"network-selector-pill",style:{background:r,color:l,padding:"10px 20px",fontSize:"0.9rem",width:"100%",justifyContent:"space-between"},onClick:()=>o(!i),type:"button",children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(u==null?void 0:u.icon)&&s.jsx("div",{children:u.icon}),s.jsx("span",{className:"network-label",style:{fontWeight:600},children:u==null?void 0:u.label})]}),s.jsx(Xo,{size:14,className:"network-chevron"})]}),i&&s.jsx("ul",{className:"network-dropdown-menu",style:{width:"100%",top:"calc(100% + 8px)",padding:"8px",zIndex:1e3},children:t.map(c=>s.jsxs("li",{className:`network-dropdown-item ${c.id===e?"active":""}`,onClick:()=>{n(c.id),o(!1)},style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 16px",borderRadius:"8px",cursor:"pointer",transition:"background 0.2s",fontWeight:500},onMouseEnter:g=>g.currentTarget.style.background="rgba(255,255,255,0.05)",onMouseLeave:g=>g.currentTarget.style.background="transparent",children:[c.icon&&s.jsx("div",{children:c.icon}),c.label]},c.id))})]})},B0=({config:e,onConfigChange:t})=>{var m;const[n,r]=T.useState(null),[l,i]=T.useState(!1);if(T.useEffect(()=>{var h,v,x,L,f,d,p,k;e&&r({agent:{name:((h=e.agent)==null?void 0:h.name)||"Nyxora",default_chain:((v=e.agent)==null?void 0:v.default_chain)||"base"},llm:{provider:((x=e.llm)==null?void 0:x.provider)||"openai",model:((L=e.llm)==null?void 0:L.model)||"gpt-4o-mini",temperature:((f=e.llm)==null?void 0:f.temperature)??.2,api_keys:Array.isArray((d=e.llm)==null?void 0:d.api_keys)?e.llm.api_keys:(p=e.llm)!=null&&p.api_keys?[e.llm.api_keys]:[]},web3:{rpc_urls:((k=e.web3)==null?void 0:k.rpc_urls)||{}}})},[e]),!n)return s.jsx("div",{className:"overview-container",children:"Loading settings..."});const o=(h,v,x)=>{r(L=>L&&{...L,[h]:{...L[h],[v]:v==="temperature"?Number(x):x}})},a=(h,v)=>{r(x=>{var d;if(!x)return x;const L=v.split(",").map(p=>p.trim()).filter(p=>p),f={...((d=x.web3)==null?void 0:d.rpc_urls)||{}};return L.length===0?delete f[h]:L.length===1?f[h]=L[0]:f[h]=L,{...x,web3:{...x.web3,rpc_urls:f}}})},u=()=>{r(h=>{if(!h)return h;const v=h.llm.api_keys||[];return v.length>=10?h:{...h,llm:{...h.llm,api_keys:[...v,""]}}})},c=(h,v)=>{r(x=>{if(!x)return x;const L=[...x.llm.api_keys||[]];return L[h]=v,{...x,llm:{...x.llm,api_keys:L}}})},g=h=>{r(v=>{if(!v)return v;const x=[...v.llm.api_keys||[]];return x.splice(h,1),{...v,llm:{...v.llm,api_keys:x}}})},y=async()=>{i(!0);try{(await q("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).ok&&(t(n),alert("Settings saved successfully!"))}catch(h){console.error(h),alert("Failed to save settings")}finally{i(!1)}};return s.jsxs("div",{className:"overview-container",style:{maxWidth:"900px",margin:"0 auto"},children:[s.jsxs("div",{className:"overview-header",style:{marginBottom:"32px"},children:[s.jsx("h1",{style:{color:"#eceff4"},children:"Configuration"}),s.jsx("p",{style:{color:"#d8dee9"},children:"Modify the core behaviors and parameters of the Nyxora Agent."})]}),s.jsxs("div",{className:"panel",style:{background:"transparent",border:"none",padding:0},children:[s.jsxs("div",{className:"nord-panel-header",children:[s.jsx(zc,{size:18,color:"#81a1c1"}),s.jsx("h3",{children:"Agent Profile"})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{className:"nord-label",children:"Agent Name"}),s.jsx("input",{className:"nord-pill-input",type:"text",value:n.agent.name,onChange:h=>o("agent","name",h.target.value)})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{className:"nord-label",children:"Default Web3 Chain"}),s.jsx(ua,{value:n.agent.default_chain,onChange:h=>o("agent","default_chain",h),pillColor:"#88c0d0",textColor:"#000000",options:[{id:"ethereum",label:"Ethereum Mainnet",icon:s.jsx(at,{size:14})},{id:"bsc",label:"BNB Chain",icon:s.jsx(at,{size:14})},{id:"base",label:"Base",icon:s.jsx(at,{size:14})},{id:"arbitrum",label:"Arbitrum One",icon:s.jsx(at,{size:14})},{id:"optimism",label:"OP Mainnet",icon:s.jsx(at,{size:14})},{id:"polygon",label:"Polygon (Matic)",icon:s.jsx(at,{size:14})},{id:"sepolia",label:"Sepolia Testnet",icon:s.jsx(at,{size:14})}]})]})]})]}),s.jsxs("div",{className:"panel",style:{background:"transparent",border:"none",padding:0,marginTop:"32px"},children:[s.jsxs("div",{className:"nord-panel-header",children:[s.jsx(Rn,{size:18,color:"#81a1c1"}),s.jsx("h3",{children:"LLM Engine"})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{className:"nord-label",children:"Provider"}),s.jsx(ua,{value:n.llm.provider,onChange:h=>o("llm","provider",h),pillColor:"#81a1c1",textColor:"#000000",options:[{id:"gemini",label:"Google Gemini",icon:s.jsx(Rn,{size:14})},{id:"openai",label:"OpenAI",icon:s.jsx(Rn,{size:14})},{id:"openrouter",label:"OpenRouter",icon:s.jsx(Rn,{size:14})},{id:"ollama",label:"Ollama (Local)",icon:s.jsx(Rn,{size:14})}]})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{className:"nord-label",children:"Model Name"}),s.jsx("input",{className:"nord-pill-input",style:{color:"#81a1c1"},type:"text",value:n.llm.model,onChange:h=>o("llm","model",h.target.value)})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsxs("label",{className:"nord-label",children:["Temperature (",n.llm.temperature,")"]}),s.jsx("input",{className:"nord-slider",type:"range",min:"0",max:"1",step:"0.1",value:n.llm.temperature,onChange:h=>o("llm","temperature",h.target.value)})]})]})]}),s.jsxs("div",{className:"panel",style:{background:"transparent",border:"none",padding:0,marginTop:"32px"},children:[s.jsxs("div",{className:"nord-panel-header",style:{justifyContent:"space-between"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[s.jsx(Gp,{size:18,color:"#81a1c1"}),s.jsx("h3",{children:"API Keys (Rotation)"})]}),s.jsxs("span",{style:{fontSize:"0.8rem",color:"#81a1c1",fontWeight:600},children:[((m=n.llm.api_keys)==null?void 0:m.length)||0," / 10 Keys"]})]}),s.jsx("p",{style:{fontSize:"0.85rem",color:"#d8dee9",marginBottom:"20px"},children:"Add up to 10 API keys. The system will automatically rotate through them (Round-Robin) for each request to prevent rate limits. Leave empty to fallback to default credentials set via CLI (nyxora setup)."}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(n.llm.api_keys||[]).map((h,v)=>s.jsxs("div",{style:{display:"flex",gap:"12px",alignItems:"center"},children:[s.jsx("input",{className:"nord-input",type:"password",value:h,placeholder:"sk-...",onChange:x=>c(v,x.target.value)}),s.jsx("button",{onClick:()=>g(v),style:{background:"rgba(191, 97, 106, 0.15)",color:"#bf616a",border:"1px solid rgba(191, 97, 106, 0.3)",borderRadius:"6px",padding:"10px 16px",cursor:"pointer",transition:"all 0.2s",fontWeight:600,fontSize:"0.85rem"},onMouseEnter:x=>x.currentTarget.style.background="rgba(191, 97, 106, 0.25)",onMouseLeave:x=>x.currentTarget.style.background="rgba(191, 97, 106, 0.15)",children:"Delete"})]},v)),(!n.llm.api_keys||n.llm.api_keys.length<10)&&s.jsx("button",{onClick:u,style:{alignSelf:"flex-start",background:"transparent",color:"#81a1c1",border:"1px dashed #434c5e",borderRadius:"6px",padding:"10px 20px",cursor:"pointer",marginTop:"8px",transition:"all 0.2s",fontWeight:600,fontSize:"0.85rem"},onMouseEnter:h=>{h.currentTarget.style.borderColor="#81a1c1",h.currentTarget.style.background="rgba(129, 161, 193, 0.1)"},onMouseLeave:h=>{h.currentTarget.style.borderColor="#434c5e",h.currentTarget.style.background="transparent"},children:"+ Add API Key"})]})]}),s.jsxs("div",{className:"panel",style:{background:"transparent",border:"none",padding:0,marginTop:"40px"},children:[s.jsxs("div",{className:"nord-panel-header",children:[s.jsx(_c,{size:18,color:"#81a1c1"}),s.jsx("h3",{children:"Web3 & RPC Settings"})]}),s.jsx("p",{style:{fontSize:"0.85rem",color:"#d8dee9",marginBottom:"20px"},children:"Override the default public RPCs with your own Premium endpoints (Alchemy/Infura). Separate multiple URLs with a comma for Fallback High-Availability."}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"20px"},children:["ethereum","base","bsc","arbitrum","optimism","polygon","sepolia"].map(h=>{var L,f;const v=(f=(L=n.web3)==null?void 0:L.rpc_urls)==null?void 0:f[h],x=Array.isArray(v)?v.join(", "):v||"";return s.jsxs("div",{className:"form-group",style:{position:"relative"},children:[s.jsxs("label",{className:"nord-label",style:{display:"flex",alignItems:"center",gap:"6px"},children:[s.jsx("img",{src:`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/${h==="bsc"?"smartchain":h}/info/logo.png`,alt:h,style:{width:"14px",height:"14px",borderRadius:"50%"},onError:d=>d.currentTarget.style.display="none"}),h," RPC"]}),s.jsx("input",{className:"nord-input",type:"text",placeholder:"https://...",value:x,onChange:d=>a(h,d.target.value)})]},h)})})]}),s.jsx("div",{className:"form-actions",style:{justifyContent:"flex-end",marginTop:"48px",paddingTop:"24px",borderTop:"1px solid rgba(216, 222, 233, 0.05)"},children:s.jsxs("button",{className:"nord-btn-primary",onClick:y,disabled:l,children:[s.jsx(y0,{size:16,style:{marginRight:"8px"}}),l?"Saving...":"Save Configuration"]})})]})},Pc=e=>e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),V0=(e,t)=>{const n=t!==!1?"#88c0d0":"#4c566a",r=20;switch(Pc(e).toLowerCase()){case"get balance":return s.jsx(Tc,{size:r,color:n});case"transfer token":return s.jsx(Ec,{size:r,color:n});case"get price":return s.jsx(Lc,{size:r,color:n});case"swap token":return s.jsx(vp,{size:r,color:n});case"bridge token":return s.jsx(f0,{size:r,color:n});case"mint nft":return s.jsx(Qp,{size:r,color:n});case"custom tx":return s.jsx(Jo,{size:r,color:n});case"check address":return s.jsx(Ml,{size:r,color:n});case"get my address":return s.jsx(zc,{size:r,color:n});case"check token security":return s.jsx(C0,{size:r,color:n});case"check portfolio":return s.jsx(_p,{size:r,color:n});case"analyze market":return s.jsx(Cp,{size:r,color:n});case"create wallet":return s.jsx(A0,{size:r,color:n});case"create limit order":return s.jsx(_0,{size:r,color:n});case"list limit orders":return s.jsx(Jp,{size:r,color:n});case"cancel limit order":return s.jsx(Pp,{size:r,color:n});default:return s.jsx(Nc,{size:r,color:n})}},H0=()=>{const[e,t]=T.useState([]),[n,r]=T.useState(""),[l,i]=T.useState(!0);T.useEffect(()=>{(async()=>{try{const c=await q("/api/skills");c.ok&&t(await c.json())}catch(c){console.error(c)}finally{i(!1)}})()},[]);const o=async(u,c)=>{const g=!c;t(y=>y.map(m=>m.function.name===u?{...m,isActive:g}:m));try{await q("/api/skills/toggle",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skillName:u,active:g})})}catch(y){t(m=>m.map(h=>h.function.name===u?{...h,isActive:c}:h)),console.error("Failed to toggle skill",y)}};if(l)return s.jsx("div",{className:"overview-container",children:"Loading skills..."});const a=e.filter(u=>u.function.name.toLowerCase().includes(n.toLowerCase())||u.function.description.toLowerCase().includes(n.toLowerCase()));return s.jsxs("div",{className:"overview-container",style:{maxWidth:"1000px",margin:"0 auto",width:"100%"},children:[s.jsxs("div",{className:"overview-header",style:{marginBottom:"24px"},children:[s.jsx("h1",{style:{color:"#eceff4"},children:"Skills"}),s.jsx("p",{style:{color:"#d8dee9"},children:"Installed skills and their status."})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",background:"rgba(46, 52, 64, 0.4)",border:"1px solid rgba(216, 222, 233, 0.1)",borderRadius:"8px",padding:"0 16px",marginBottom:"24px"},children:[s.jsx(Ml,{size:18,color:"#9ca3af"}),s.jsx("input",{type:"text",placeholder:"Filter installed skills...",value:n,onChange:u=>r(u.target.value),style:{background:"transparent",border:"none",outline:"none",color:"#eceff4",padding:"16px",width:"100%",fontSize:"0.95rem"}}),s.jsxs("span",{style:{color:"#6b7280",fontSize:"0.85rem"},children:[a.length," shown"]})]}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:a.map((u,c)=>s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#3b4252",padding:"20px 24px",borderRadius:"8px",border:"1px solid rgba(216, 222, 233, 0.05)"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"16px",flex:1},children:[s.jsx("div",{style:{marginTop:"2px"},children:V0(u.function.name,u.isActive!==!1)}),s.jsxs("div",{children:[s.jsx("h3",{style:{margin:"0 0 6px 0",fontSize:"1rem",color:u.isActive!==!1?"#eceff4":"#d8dee9",fontWeight:600},children:Pc(u.function.name)}),s.jsx("p",{style:{margin:0,color:"#9ca3af",fontSize:"0.85rem",lineHeight:"1.5",maxWidth:"800px"},children:u.function.description})]})]}),s.jsx("div",{style:{marginLeft:"24px"},children:s.jsx("button",{onClick:()=>o(u.function.name,u.isActive!==!1),style:{position:"relative",width:"40px",height:"22px",borderRadius:"11px",background:u.isActive!==!1?"#88c0d0":"#4c566a",border:"none",cursor:"pointer",transition:"background 0.3s ease",padding:0},children:s.jsx("div",{style:{position:"absolute",top:"2px",left:u.isActive!==!1?"20px":"2px",width:"18px",height:"18px",borderRadius:"50%",background:"#fff",transition:"left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1)",boxShadow:"0 1px 3px rgba(0,0,0,0.3)"}})})})]},c))})]})},Mc=e=>e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),Q0=(e,t)=>{const n=t!==!1?"#88c0d0":"#4c566a",r=20;switch(Mc(e).toLowerCase()){case"run terminal command":return s.jsx(Jo,{size:r,color:n});case"read local file":return s.jsx(Bp,{size:r,color:n});case"write local file":return s.jsx(Ap,{size:r,color:n});case"browse website":return s.jsx(at,{size:r,color:n});case"update security policy":return s.jsx(S0,{size:r,color:n});case"install external skill":return s.jsx(Rp,{size:r,color:n});case"analyze document":return s.jsx(Up,{size:r,color:n});case"search web":return s.jsx(Ml,{size:r,color:n});case"read gmail inbox":return s.jsx(bp,{size:r,color:n});case"list calendar events":return s.jsx(Sp,{size:r,color:n});default:return s.jsx(Nc,{size:r,color:n})}},K0=()=>{const[e,t]=T.useState([]),[n,r]=T.useState(""),[l,i]=T.useState(!0),[o,a]=T.useState(null),[u,c]=T.useState(!1);T.useEffect(()=>{const h=async()=>{try{const x=await q("/api/skills/system");x.ok&&t(await x.json())}catch(x){console.error(x)}finally{i(!1)}},v=async()=>{try{const x=await q("/api/auth/google/status");if(x.ok){const L=await x.json();c(L.connected)}}catch(x){console.error("Failed to fetch Google Auth status",x)}};h(),v()},[]);const g=async(h,v)=>{if(h==="run_terminal_command"&&!v){a({skillName:h,currentStatus:v});return}await y(h,v)},y=async(h,v)=>{const x=!v;t(L=>L.map(f=>f.function.name===h?{...f,isActive:x}:f));try{await q("/api/skills/toggle",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skillName:h,active:x})})}catch(L){t(f=>f.map(d=>d.function.name===h?{...d,isActive:v}:d)),console.error("Failed to toggle OS skill",L)}};if(l)return s.jsx("div",{className:"overview-container",children:"Loading OS skills..."});const m=e.filter(h=>h.function.name.toLowerCase().includes(n.toLowerCase())||h.function.description.toLowerCase().includes(n.toLowerCase()));return s.jsxs("div",{className:"overview-container",style:{maxWidth:"1000px",margin:"0 auto",width:"100%"},children:[s.jsxs("div",{className:"overview-header",style:{marginBottom:"24px"},children:[s.jsx("h1",{style:{color:"#eceff4"},children:"OS Skills"}),s.jsx("p",{style:{color:"#d8dee9"},children:"System-level capabilities for the agent OS."})]}),s.jsxs("div",{style:{background:"#3b4252",border:"1px solid rgba(216, 222, 233, 0.1)",borderRadius:"8px",padding:"24px",marginBottom:"24px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsxs("div",{children:[s.jsx("h3",{style:{margin:"0 0 8px 0",color:"#eceff4",fontSize:"1.1rem"},children:"Account Linking"}),s.jsx("p",{style:{margin:0,color:"#d8dee9",fontSize:"0.9rem"},children:"Connect your Google Workspace to unlock Gmail and Calendar skills."})]}),s.jsx("div",{children:u?s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",background:"rgba(163, 190, 140, 0.1)",color:"#a3be8c",padding:"8px 16px",borderRadius:"6px",fontWeight:600},children:[s.jsx("span",{style:{width:"8px",height:"8px",background:"#a3be8c",borderRadius:"50%",display:"inline-block"}}),"Connected to Google"]}),s.jsx("button",{onClick:async()=>{try{(await q("/api/auth/google",{method:"DELETE"})).ok&&c(!1)}catch{alert("Failed to disconnect.")}},style:{background:"transparent",color:"#bf616a",border:"1px solid rgba(191, 97, 106, 0.4)",padding:"8px 16px",borderRadius:"6px",fontWeight:600,cursor:"pointer",transition:"background 0.2s"},onMouseOver:h=>h.currentTarget.style.background="rgba(191, 97, 106, 0.1)",onMouseOut:h=>h.currentTarget.style.background="transparent",children:"Disconnect"})]}):s.jsxs("button",{onClick:async()=>{try{const h=await q("/api/auth/google/url"),v=await h.json();h.ok?window.open(v.url,"_blank","width=600,height=700"):alert("Setup Required: "+(v.error||"Please add google-credentials.json to ~/.nyxora/"))}catch{alert("Failed to initiate Google Auth. Is the backend running?")}},style:{background:"#eceff4",color:"#2e3440",border:"none",padding:"10px 20px",borderRadius:"6px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",gap:"8px"},children:[s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),s.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),s.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),s.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),"Sign in with Google"]})})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",background:"rgba(46, 52, 64, 0.4)",border:"1px solid rgba(216, 222, 233, 0.1)",borderRadius:"8px",padding:"0 16px",marginBottom:"24px"},children:[s.jsx(Ml,{size:18,color:"#9ca3af"}),s.jsx("input",{type:"text",placeholder:"Filter OS skills...",value:n,onChange:h=>r(h.target.value),style:{background:"transparent",border:"none",outline:"none",color:"#eceff4",padding:"16px",width:"100%",fontSize:"0.95rem"}}),s.jsxs("span",{style:{color:"#6b7280",fontSize:"0.85rem"},children:[m.length," shown"]})]}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:m.map((h,v)=>s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#3b4252",padding:"20px 24px",borderRadius:"8px",border:"1px solid rgba(216, 222, 233, 0.05)"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"16px",flex:1},children:[s.jsx("div",{style:{marginTop:"2px"},children:Q0(h.function.name,h.isActive!==!1)}),s.jsxs("div",{children:[s.jsx("h3",{style:{margin:"0 0 6px 0",fontSize:"1rem",color:h.isActive!==!1?"#eceff4":"#d8dee9",fontWeight:600},children:Mc(h.function.name)}),s.jsx("p",{style:{margin:0,color:"#9ca3af",fontSize:"0.85rem",lineHeight:"1.5",maxWidth:"800px"},children:h.function.description})]})]}),s.jsx("div",{style:{marginLeft:"24px"},children:s.jsx("button",{onClick:()=>g(h.function.name,h.isActive!==!1),style:{position:"relative",width:"40px",height:"22px",borderRadius:"11px",background:h.isActive!==!1?"#88c0d0":"#4c566a",border:"none",cursor:"pointer",transition:"background 0.3s ease",padding:0},children:s.jsx("div",{style:{position:"absolute",top:"2px",left:h.isActive!==!1?"20px":"2px",width:"18px",height:"18px",borderRadius:"50%",background:"#fff",transition:"left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1)",boxShadow:"0 1px 3px rgba(0,0,0,0.3)"}})})})]},v))}),o&&s.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},children:s.jsxs("div",{style:{background:"#2e3440",border:"1px solid rgba(191, 97, 106, 0.4)",borderRadius:"12px",padding:"32px",maxWidth:"500px",width:"100%",boxShadow:"0 20px 40px rgba(0,0,0,0.4)"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"16px"},children:[s.jsx("div",{style:{background:"rgba(191, 97, 106, 0.1)",padding:"12px",borderRadius:"50%"},children:s.jsx(O0,{size:32,color:"#bf616a"})}),s.jsx("h2",{style:{margin:0,color:"#eceff4",fontSize:"1.25rem"},children:"DANGER ZONE: System Access"})]}),s.jsxs("p",{style:{color:"#d8dee9",lineHeight:"1.6",marginBottom:"24px"},children:["You are about to enable ",s.jsx("strong",{children:"Terminal Execution"}),". This grants the AI agent",s.jsx("strong",{children:" full, unrestrained access"})," to execute arbitrary shell scripts on your host operating system."]}),s.jsx("p",{style:{color:"#bf616a",fontWeight:"bold",fontSize:"0.9rem",marginBottom:"32px"},children:"⚠️ The agent could read sensitive files, modify your system, or execute harmful commands if prompted maliciously."}),s.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"12px"},children:[s.jsx("button",{onClick:()=>a(null),style:{background:"transparent",border:"1px solid #4c566a",color:"#d8dee9",padding:"10px 20px",borderRadius:"6px",cursor:"pointer",fontWeight:600},children:"Cancel"}),s.jsx("button",{onClick:()=>{y(o.skillName,o.currentStatus),a(null)},style:{background:"#bf616a",border:"none",color:"#eceff4",padding:"10px 20px",borderRadius:"6px",cursor:"pointer",fontWeight:600},children:"I Understand the Risks, Enable"})]})]})})]})},ii=[{id:"ethereum",label:"Ethereum"},{id:"bsc",label:"BNB Smart Chain"},{id:"base",label:"Base"},{id:"arbitrum",label:"Arbitrum One"},{id:"optimism",label:"OP Mainnet"},{id:"polygon",label:"Polygon (Matic)"},{id:"sepolia",label:"Sepolia (Testnet)"}],G0=({value:e,onChange:t})=>{const[n,r]=T.useState(!1),l=T.useRef(null);T.useEffect(()=>{const o=a=>{l.current&&!l.current.contains(a.target)&&r(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[]);const i=ii.find(o=>o.id===e)||ii[0];return s.jsxs("div",{className:"custom-network-selector",ref:l,children:[s.jsxs("button",{className:"network-selector-pill",onClick:()=>r(!n),"aria-expanded":n,children:[s.jsx(_c,{size:16,className:"network-icon"}),s.jsx("span",{className:"network-label",children:i.label}),s.jsx(Xo,{size:14,className:"network-chevron"})]}),n&&s.jsx("ul",{className:"network-dropdown-menu",children:ii.map(o=>s.jsx("li",{className:`network-dropdown-item ${o.id===e?"active":""}`,onClick:()=>{t(o.id),r(!1)},children:o.label},o.id))})]})},oi=[{id:"auto",label:"Default (Auto-Route)"},{id:"1inch",label:"1inch (Aggregator)"},{id:"cowswap",label:"CowSwap (MEV-Protect)"},{id:"lifi",label:"Li.Fi"},{id:"relay",label:"Relay"},{id:"uniswap_v2",label:"Uniswap V2"},{id:"uniswap_v3",label:"Uniswap V3"},{id:"pancakeswap",label:"PancakeSwap"}],Y0=({value:e,onChange:t})=>{const[n,r]=T.useState(!1),l=T.useRef(null);T.useEffect(()=>{const o=a=>{l.current&&!l.current.contains(a.target)&&r(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[]);const i=oi.find(o=>o.id===e)||oi[0];return s.jsxs("div",{className:"custom-network-selector",ref:l,style:{marginLeft:"10px"},children:[s.jsxs("button",{className:"network-selector-pill",onClick:()=>r(!n),"aria-expanded":n,children:[s.jsx(h0,{size:16,className:"network-icon"}),s.jsx("span",{className:"network-label",children:i.label}),s.jsx(Xo,{size:14,className:"network-chevron"})]}),n&&s.jsx("ul",{className:"network-dropdown-menu",children:oi.map(o=>s.jsx("li",{className:`network-dropdown-item ${o.id===i.id?"active":""}`,onClick:()=>{t(o.id),r(!1)},children:o.label},o.id))})]})},X0=({data:e})=>{let t="0.00",n="Unknown";if(e.includes(" on ")){const r=e.split(" on "),l=r[0];n=r[1].toUpperCase();const i=parseFloat(l);isNaN(i)?t=l:t=i.toLocaleString("en-US",{maximumFractionDigits:6})}return s.jsxs("div",{style:{background:"linear-gradient(135deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.9) 100%)",borderRadius:"24px",padding:"32px",border:"1px solid rgba(255,255,255,0.1)",boxShadow:"0 20px 40px -10px rgba(0,0,0,0.5)",width:"100%",maxWidth:"400px",margin:"0 auto",animation:"fadeIn 0.5s ease-out forwards"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"32px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[s.jsx("div",{style:{background:"rgba(59,130,246,0.2)",padding:"10px",borderRadius:"12px"},children:s.jsx(Tc,{size:24,color:"#3b82f6"})}),s.jsx("span",{style:{color:"#94a3b8",fontWeight:500,fontSize:"0.9rem",letterSpacing:"1px"},children:"WALLET BALANCE"})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",background:"rgba(34,197,94,0.1)",padding:"6px 12px",borderRadius:"20px"},children:[s.jsx(Zo,{size:14,color:"#4ade80"}),s.jsx("span",{style:{color:"#4ade80",fontSize:"0.75rem",fontWeight:600},children:"LIVE"})]})]}),s.jsxs("div",{style:{marginBottom:"12px",display:"flex",alignItems:"baseline",flexWrap:"wrap",overflow:"hidden"},children:[s.jsx("span",{style:{fontSize:"2.5rem",fontWeight:800,color:"white",letterSpacing:"-1px",wordBreak:"break-all"},children:t}),s.jsx("span",{style:{fontSize:"1.2rem",color:"#94a3b8",marginLeft:"8px",fontWeight:500},children:"ETH"})]}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"32px",paddingTop:"20px",borderTop:"1px solid rgba(255,255,255,0.05)"},children:[s.jsx("span",{style:{color:"#64748b",fontSize:"0.85rem"},children:"Network"}),s.jsx("span",{style:{color:"#e2e8f0",fontSize:"0.9rem",fontWeight:600,fontFamily:"monospace"},children:n})]})]})},Z0=({data:e})=>{if(e.startsWith("TRANSACTION_PENDING"))return s.jsxs("div",{className:"widget-card",style:{background:"#1e293b",border:"1px solid #eab308",padding:"24px",borderRadius:"16px"},children:[s.jsx("h3",{className:"widget-title",style:{color:"#eab308",margin:0,marginBottom:"8px"},children:"Action Required"}),s.jsx("p",{style:{color:"#cbd5e1",fontSize:"0.9rem",margin:0},children:"Please review and approve the transfer transaction."})]});let t="0.00",n="UNKNOWN",r="0x...";try{const i=e.match(/transferred ([\d.]+) on/i);i&&(t=i[1]);const o=e.match(/on (\w+) to/i);o&&(n=o[1].toUpperCase());const a=e.match(/to (0x[a-fA-F0-9]+)/i);a&&(r=a[1])}catch{}const l=i=>i.substring(0,6)+"..."+i.substring(i.length-4);return s.jsxs("div",{style:{background:"#0f172a",borderRadius:"24px",padding:"32px",border:"1px solid rgba(255,255,255,0.1)",width:"100%",maxWidth:"400px",margin:"0 auto",animation:"fadeIn 0.5s ease-out forwards",boxShadow:"0 20px 40px -10px rgba(0,0,0,0.5)"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:"24px"},children:[s.jsx("div",{style:{width:"64px",height:"64px",background:"rgba(34,197,94,0.1)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px"},children:s.jsx(Zo,{size:32,color:"#4ade80"})}),s.jsx("h2",{style:{color:"white",margin:0,fontSize:"1.25rem"},children:"Transaction Sent"}),s.jsxs("span",{style:{color:"#94a3b8",fontSize:"0.9rem"},children:["Successfully confirmed on ",n]})]}),s.jsxs("div",{style:{background:"#1e293b",borderRadius:"16px",padding:"20px",marginBottom:"24px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px"},children:[s.jsx("span",{style:{color:"#94a3b8",fontSize:"0.85rem"},children:"Amount Sent"}),s.jsxs("span",{style:{color:"white",fontWeight:600},children:[t," NATIVE"]})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[s.jsxs("div",{style:{flex:1},children:[s.jsx("div",{style:{color:"#64748b",fontSize:"0.75rem",marginBottom:"4px"},children:"FROM"}),s.jsx("div",{style:{color:"#e2e8f0",fontSize:"0.85rem",fontFamily:"monospace"},children:"Agent Wallet"})]}),s.jsx(kp,{size:16,color:"#64748b"}),s.jsxs("div",{style:{flex:1,textAlign:"right"},children:[s.jsx("div",{style:{color:"#64748b",fontSize:"0.75rem",marginBottom:"4px"},children:"TO"}),s.jsxs("div",{style:{color:"#e2e8f0",fontSize:"0.85rem",fontFamily:"monospace",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"4px"},children:[l(r)," ",s.jsx(bi,{size:12,color:"#64748b",style:{cursor:"pointer"}})]})]})]})]}),s.jsx("button",{style:{width:"100%",padding:"14px",background:"transparent",border:"1px solid rgba(255,255,255,0.1)",color:"white",borderRadius:"12px",fontWeight:600,cursor:"pointer"},children:"View on Explorer"})]})},J0=({data:e})=>{let t=null;try{t=JSON.parse(e)}catch{return null}if(t.error)return s.jsx("div",{style:{background:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)",padding:"16px",borderRadius:"16px"},children:s.jsx("p",{style:{color:"#ef4444"},children:t.error})});const{coin:n,priceUsd:r,change24h:l}=t,i=l>=0,o=i?"#4ade80":"#ef4444",a=i?"rgba(74, 222, 128, 0.1)":"rgba(239, 68, 68, 0.1)",u=i?R0:P0;return s.jsxs("div",{style:{background:"linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"24px",padding:"24px",boxShadow:"0 10px 40px -10px rgba(0,0,0,0.5)"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"24px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[s.jsx("div",{style:{background:"rgba(59, 130, 246, 0.2)",padding:"12px",borderRadius:"16px",border:"1px solid rgba(59, 130, 246, 0.3)"},children:s.jsx(Cc,{size:24,color:"#3b82f6"})}),s.jsxs("div",{children:[s.jsx("h3",{style:{margin:0,fontSize:"1.2rem",color:"white",textTransform:"capitalize"},children:n}),s.jsx("span",{style:{fontSize:"0.85rem",color:"#94a3b8"},children:"Live Price (USD)"})]})]}),s.jsxs("div",{style:{background:a,color:o,padding:"6px 12px",borderRadius:"12px",display:"flex",alignItems:"center",gap:"6px",fontWeight:600,fontSize:"0.9rem"},children:[s.jsx(u,{size:16}),i?"+":"",l.toFixed(2),"%"]})]}),s.jsx("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",overflow:"hidden"},children:s.jsxs("span",{style:{fontSize:"3rem",fontWeight:800,color:"white",letterSpacing:"-1px",wordBreak:"break-all"},children:["$",r.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:6})]})})]})},q0=({size:e=28,className:t=""})=>s.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"210 210 835 835",width:e,height:e,className:t,children:[s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M391.558502,864.562012 C414.770752,831.424988 437.898010,798.228088 461.224091,765.171326 C477.741455,741.763550 494.530212,718.547302 511.188538,695.238953 C512.325684,693.647888 513.384827,692.001099 514.827759,689.865967 C416.111115,669.324341 317.944061,648.897095 219.777023,628.469910 C219.745956,628.100342 219.714890,627.730774 219.683807,627.361206 C317.965973,607.048096 416.248169,586.734985 515.386597,566.244934 C489.683167,530.326538 464.441345,495.053223 438.641846,459.000580 C437.294037,462.427734 436.131836,465.046661 435.221252,467.750305 C426.203400,494.526520 419.706848,521.833374 418.307770,550.164917 C418.161621,553.124207 417.398041,554.463074 414.247314,555.063660 C403.349243,557.141052 392.525635,559.609436 380.672791,562.142944 C381.955139,549.287842 382.795654,537.188110 384.428314,525.196289 C389.018463,491.482178 398.703979,459.225067 412.769470,428.242523 C413.487701,426.660400 412.872864,423.774323 411.822296,422.200531 C404.613678,411.401794 397.123077,400.791260 389.753174,389.651367 C389.905334,389.067993 390.027649,388.953430 390.149933,388.838837 C400.609253,396.183838 411.068604,403.528839 421.732483,411.017487 C448.953796,360.083954 488.595703,321.332672 537.556702,291.163635 C536.430664,291.357513 535.276550,291.451691 534.182617,291.759583 C473.404877,308.867706 421.375061,340.392334 377.824371,386.130768 C332.064423,434.189392 302.581238,490.723297 288.788391,555.519043 C287.160980,563.164368 286.307709,570.972107 284.888123,578.666321 C284.643646,579.991333 283.544373,581.987549 282.517700,582.214172 C268.590088,585.289429 254.605560,588.106750 239.666290,591.187622 C249.186905,504.342407 281.266876,428.187378 339.867310,364.210388 C407.528534,290.341309 491.608215,248.142334 592.349182,237.331238 C590.731506,245.370377 589.307007,252.614029 587.812500,259.843231 C584.407288,276.314758 580.834412,292.753448 577.645447,309.266479 C576.937866,312.930328 574.568787,313.922150 571.855469,315.234436 C518.939209,340.827637 479.413025,380.264313 451.142212,432.059692 C489.395081,459.635254 527.531799,487.127106 566.385315,515.135681 C586.988159,416.540558 607.394653,318.885071 627.801086,221.229568 C628.032654,221.259720 628.264160,221.289856 628.495667,221.320007 C648.896179,318.988525 669.296631,416.657074 689.808777,514.860291 C749.231628,472.484833 808.059265,430.533875 867.341919,388.626953 C867.900818,388.812653 868.004700,388.954315 868.108582,389.096008 C849.003479,415.756317 829.905701,442.421814 810.791443,469.075500 C788.267273,500.484131 765.727478,531.881470 743.204163,563.290710 C742.647949,564.066345 742.205200,564.923340 741.467285,566.142639 C840.231323,586.608215 938.625000,606.997070 1037.018677,627.385925 C1037.040283,627.731873 1037.062012,628.077881 1037.083618,628.423828 C938.778198,648.880981 840.472778,669.338074 741.484985,689.937195 C780.034912,744.140015 818.287720,797.925110 856.739441,851.989746 C857.870544,851.388916 859.027100,850.855286 860.102966,850.191101 C891.392395,830.875427 918.577148,806.818420 939.357849,776.533569 C947.590210,764.536194 953.158813,750.218750 957.569092,736.211121 C963.550171,717.214111 967.202209,697.487122 972.020630,678.114868 C972.446899,676.400879 973.864685,673.918213 975.231079,673.610779 C988.701538,670.579590 1002.258545,667.933167 1015.850098,665.165710 C1006.960327,831.437073 859.668823,998.586304 665.964600,1014.599609 C666.161560,1012.942749 666.229980,1011.378174 666.546021,1009.865417 C669.031982,997.967957 671.659729,986.098999 674.013733,974.175842 C674.563416,971.391418 675.734192,970.367493 678.503540,969.994568 C730.376587,963.009094 778.243225,945.312073 821.729614,916.054871 C827.915039,911.893494 833.889709,907.418823 839.719055,902.229187 C789.737976,922.594238 738.281250,931.719971 684.053101,924.868225 C686.495605,912.886902 688.875671,901.211975 691.358215,889.034485 C719.122437,891.573181 746.474426,890.263916 773.529236,884.649719 C800.425781,879.068298 825.987671,869.833374 850.707886,855.726074 C796.893921,817.308716 743.624573,779.280273 689.712219,740.792725 C669.298584,840.439758 649.062561,939.219666 628.826538,1037.999634 C628.337769,1038.062988 627.848999,1038.126343 627.360229,1038.189697 C607.031616,939.372681 586.703064,840.555603 566.225220,741.013123 C508.181274,782.548218 450.532928,823.800232 392.387512,864.971436 C391.890411,864.890564 391.558502,864.562012 391.558502,864.562012 M671.054382,685.592590 C683.651733,669.250977 700.426758,659.979492 720.473022,655.958557 C760.160095,647.997925 799.813110,639.867310 839.477173,631.792114 C844.905396,630.686890 850.316223,629.496033 856.934082,628.090088 C855.240906,627.423645 854.855042,627.202271 854.441284,627.118713 C809.391235,618.015625 764.324524,608.994141 719.292053,599.805237 C687.129700,593.242493 666.357849,573.794189 658.085388,542.310303 C652.000183,519.150879 647.862915,495.475311 642.997131,472.000824 C638.094788,448.350525 633.364502,424.664551 628.366150,400.044769 C627.805237,401.719086 627.470642,402.460938 627.308472,403.238739 C618.164917,447.087311 609.088989,490.950134 599.887695,534.786621 C592.838074,568.371887 574.333862,591.798584 539.707825,599.260986 C497.549194,608.346741 455.186249,616.484192 412.913910,625.042847 C409.059052,625.823303 405.220459,626.683960 400.609985,627.671082 C401.828217,628.367615 402.088959,628.612732 402.387390,628.673767 C446.942963,637.790649 491.531921,646.747131 536.049377,656.046265 C569.849854,663.106689 591.605042,683.306885 598.985901,717.262268 C608.430969,760.713928 616.988403,804.358521 625.937500,847.918152 C626.558655,850.941589 627.255554,853.949463 628.215210,858.322327 C637.018921,814.944580 645.550049,773.068237 654.003601,731.176331 C657.208618,715.293640 660.428406,699.446167 671.054382,685.592590 z"}),s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M386.726410,932.261108 C301.744720,862.964966 252.860352,774.276062 239.571213,664.782349 C243.640167,665.623230 246.658188,666.259705 249.681610,666.869385 C260.132385,668.976929 270.570435,671.152649 281.047028,673.123108 C283.713837,673.624695 284.803009,674.577637 285.264160,677.483826 C299.943695,769.993530 344.846649,844.861694 418.412781,902.306030 C465.297638,938.916199 518.736572,961.112610 577.599609,970.152466 C579.135315,970.388245 581.405090,971.909729 581.702209,973.205444 C584.604919,985.865601 587.168518,998.603699 589.797119,1011.326111 C589.988586,1012.252930 589.933960,1013.230591 590.033508,1014.819641 C514.202637,1006.650635 446.673218,979.319702 386.726410,932.261108 z"}),s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M717.095459,286.762451 C702.518005,285.946136 688.403137,285.164001 673.635620,284.345703 C670.496094,269.397308 667.259644,253.987091 663.812012,237.571594 C699.948914,240.829361 734.403198,248.649704 767.807129,261.272522 C801.262024,273.914642 832.392090,290.666199 860.278870,313.266907 C813.130981,301.801331 765.908508,291.274475 717.095459,286.762451 z"}),s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M508.385742,845.601562 C503.292084,841.116760 498.462646,836.867615 493.256165,832.286682 C503.293274,824.734863 512.820435,817.566772 522.083801,810.597107 C532.372131,818.453186 542.291443,825.997009 552.154602,833.613647 C552.996399,834.263733 553.846802,835.322083 554.047241,836.320496 C557.123535,851.643250 560.092407,866.987488 563.338562,883.619385 C542.903259,872.819641 525.360107,859.943787 508.385742,845.601562 z"}),s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M443.739258,707.133484 C445.894348,709.609070 447.759094,711.954102 449.403809,714.444519 C453.212250,720.211304 452.803345,725.074036 447.955048,730.693237 C441.574707,738.088135 436.480682,746.592834 429.788666,756.105713 C420.586670,736.813904 411.856506,718.511169 403.126312,700.208496 C403.546173,699.856079 403.966003,699.503662 404.385864,699.151184 C417.373566,701.790466 430.361298,704.429749 443.739258,707.133484 z"}),s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M389.592651,389.346680 C389.291229,389.122070 389.180267,388.733337 389.069275,388.344666 C389.338684,388.340118 389.608063,388.335571 390.013702,388.584961 C390.027649,388.953430 389.905334,389.067993 389.592651,389.346680 z"}),s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M867.646118,388.454865 C867.856812,388.036652 868.218323,387.834564 868.579834,387.632507 C868.601868,388.016388 868.623962,388.400299 868.377319,388.940094 C868.004700,388.954315 867.900818,388.812653 867.646118,388.454865 z"}),s.jsx("path",{fill:"#88c0d0",opacity:"1.0",stroke:"none",d:"M392.055237,865.056030 C391.863586,865.412903 391.507172,865.604370 391.150757,865.795837 C391.133575,865.521484 391.116425,865.247192 391.328857,864.767456 C391.558502,864.562012 391.890411,864.890564 392.055237,865.056030 z"})]}),b0=({data:e})=>{if(e.startsWith("TRANSACTION_PENDING"))return s.jsxs("div",{className:"widget-card",style:{background:"#1e293b",border:"1px solid #eab308"},children:[s.jsx("h3",{className:"widget-title",style:{color:"#eab308",display:"flex",alignItems:"center",gap:"8px",margin:0,marginBottom:"8px"},children:"Action Required"}),s.jsx("p",{style:{color:"#cbd5e1",fontSize:"0.9rem",margin:0},children:"Please review and approve the swap transaction."})]});let t=null;try{t=JSON.parse(e)}catch{return s.jsxs("div",{className:"widget-card error",children:[s.jsx("h3",{className:"widget-title",children:"Swap Error"}),s.jsx("p",{children:"Failed to parse swap data."})]})}return t.error?s.jsxs("div",{className:"widget-card error",children:[s.jsx("h3",{className:"widget-title",children:"Transaction Failed"}),s.jsx("p",{children:t.error})]}):s.jsxs("div",{className:"widget-card swap-widget",style:{background:"rgba(30, 41, 59, 0.7)",backdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"24px",padding:"28px",color:"white",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)",width:"100%",maxWidth:"420px",margin:"0 auto",animation:"fadeIn 0.5s ease-out"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:[s.jsxs("h3",{style:{margin:0,fontSize:"1.1rem",fontWeight:600,display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx(c0,{size:18,color:"#a855f7"}),"DeFi Swap Execution"]}),s.jsxs("span",{style:{background:"rgba(34, 197, 94, 0.2)",color:"#4ade80",padding:"4px 10px",borderRadius:"12px",fontSize:"0.75rem",fontWeight:600,display:"flex",alignItems:"center",gap:"4px"},children:[s.jsx(Zo,{size:14})," ",t.status]})]}),s.jsxs("div",{style:{background:"rgba(15, 23, 42, 0.5)",borderRadius:"16px",padding:"20px",marginBottom:"12px",border:"1px solid rgba(255,255,255,0.03)"},children:[s.jsx("div",{style:{fontSize:"0.8rem",color:"#94a3b8",marginBottom:"8px"},children:"Pay"}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsx("span",{style:{fontSize:"1.8rem",fontWeight:700},children:t.fromAmount}),s.jsx("span",{style:{background:"rgba(255,255,255,0.1)",padding:"6px 12px",borderRadius:"12px",fontWeight:600},children:t.fromToken})]})]}),s.jsx("div",{style:{display:"flex",justifyContent:"center",margin:"-20px 0",position:"relative",zIndex:10},children:s.jsx("div",{style:{background:"#1e293b",border:"1px solid rgba(255,255,255,0.1)",padding:"8px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.5)"},children:s.jsx(yp,{size:20,color:"#a855f7"})})}),s.jsxs("div",{style:{background:"rgba(168, 85, 247, 0.1)",borderRadius:"16px",padding:"20px",marginBottom:"24px",border:"1px solid rgba(168, 85, 247, 0.2)"},children:[s.jsx("div",{style:{fontSize:"0.8rem",color:"#c084fc",marginBottom:"8px"},children:"Receive"}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsx("span",{style:{fontSize:"1.8rem",fontWeight:700,color:"#e9d5ff"},children:t.toAmount}),s.jsx("span",{style:{background:"rgba(168, 85, 247, 0.2)",color:"#e9d5ff",padding:"6px 12px",borderRadius:"12px",fontWeight:600},children:t.toToken})]})]}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px",fontSize:"0.85rem",color:"#94a3b8"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[s.jsx("span",{children:"Exchange Rate"}),s.jsxs("span",{style:{color:"white"},children:["1 ",t.fromToken," = ",t.exchangeRate," ",t.toToken]})]}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[s.jsx("span",{children:"Network"}),s.jsx("span",{style:{color:"white",textTransform:"capitalize"},children:t.chain})]}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[s.jsx("span",{children:"Network Fee (Gas)"}),s.jsx("span",{style:{color:"#f59e0b"},children:t.gasFee})]}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"8px",paddingTop:"12px",borderTop:"1px dashed rgba(255,255,255,0.1)"},children:[s.jsx("span",{children:"Transaction Hash"}),s.jsxs("a",{href:"#",style:{color:"#3b82f6",textDecoration:"none",display:"flex",alignItems:"center",gap:"4px"},children:[t.txHash.substring(0,8),"...",t.txHash.substring(60)]})]})]}),s.jsx("div",{style:{marginTop:"24px",width:"100%",height:"4px",background:"rgba(255,255,255,0.1)",borderRadius:"2px",overflow:"hidden"},children:s.jsx("div",{style:{height:"100%",width:"100%",background:"linear-gradient(90deg, #3b82f6, #a855f7)",animation:"progress 2s ease-in-out"}})})]})};function e1(){const[e,t]=T.useState("chat"),[n,r]=T.useState(["$BTC","$ETH","$SOL","$SUI"]),[l,i]=T.useState([]),[o,a]=T.useState([]),[u,c]=T.useState(null),[g,y]=T.useState(null),[m,h]=T.useState(""),[v,x]=T.useState(""),[L,f]=T.useState(!1),[d,p]=T.useState(!1),[k,j]=T.useState(!1),_=T.useRef(!1),[E,z]=T.useState(!1),[A,O]=T.useState(null),[Ee,Ht]=T.useState(70),[ot,jn]=T.useState(null),mr=T.useRef(null),ke=T.useRef(null);T.useEffect(()=>{const w=window.SpeechRecognition||window.webkitSpeechRecognition;w&&(ke.current=new w,ke.current.continuous=!1,ke.current.interimResults=!1,ke.current.lang="en-US",ke.current.onresult=P=>{const Z=P.results[0][0].transcript;x(Z),p(!1)},ke.current.onerror=P=>{console.error("Speech recognition error",P.error),p(!1)},ke.current.onend=()=>{p(!1)})},[]);const Qt=()=>{var w;try{(w=ke.current)==null||w.start(),p(!0)}catch{}},C=w=>{if(!("speechSynthesis"in window))return;window.speechSynthesis.cancel();const P=w.replace(/[*#_`]/g,""),Z=new SpeechSynthesisUtterance(P);Z.lang="id-ID",Z.onstart=()=>z(!0),Z.onend=()=>{z(!1),_.current&&Qt()},window.speechSynthesis.speak(Z)},R=()=>{var P;const w=!k;j(w),_.current=w,w?Qt():((P=ke.current)==null||P.stop(),p(!1),window.speechSynthesis.cancel(),z(!1))},I=async()=>{if(!u){i([]);return}try{const w=`/api/history?session_id=${u}`,P=await q(w);if(P.ok){const Z=await P.json();i(Z)}}catch{console.warn("Backend not ready, retrying history fetch in 2s...")}},U=async()=>{try{const w=await q("/api/sessions");if(w.ok){const P=await w.json();a(P),P.length>0&&!u&&c(P[0].id)}}catch{}},X=async()=>{try{const w=await q("/api/trending");w.ok&&r(await w.json())}catch{}},Kt=async()=>{try{const w=await q("/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:"New Chat"})});if(w.ok){const{id:P}=await w.json();c(P),i([]),await U(),t("chat")}}catch{}},Ie=async(w,P)=>{try{await q(`/api/sessions/${w}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:P})}),y(null),await U()}catch{}},Cn=async(w,P)=>{P.stopPropagation();try{await q(`/api/sessions/${w}`,{method:"DELETE"}),u===w&&(c(null),i([])),await U()}catch{}},Oe=async()=>{try{const w=await q("/api/config");if(w.ok){const P=await w.json();O(P)}else setTimeout(Oe,2e3)}catch{console.warn("Backend not ready, retrying config fetch in 2s..."),setTimeout(Oe,2e3)}},zt=async w=>{O(w);try{await q("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)})}catch(P){console.error("Failed to save config",P)}};T.useEffect(()=>{I(),Oe(),U(),X();const w=setInterval(()=>{I(),U(),X()},2e3);return()=>clearInterval(w)},[u]),T.useEffect(()=>{setTimeout(()=>{var w;(w=mr.current)==null||w.scrollIntoView({behavior:"smooth"})},10)},[l.length,L,e]);const Rc=async w=>{if(w.preventDefault(),!v.trim()||L)return;const P=v.trim();x(""),f(!0);let Z=u;if(!Z)try{const He=P.length>25?P.substring(0,25)+"...":P,Tt=await q("/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:He})});if(Tt.ok){const{id:yr}=await Tt.json();Z=yr,c(yr),await U()}}catch(He){console.error("Failed to auto-create session",He)}i(He=>[...He,{role:"user",content:P}]);try{const Tt=await(await q("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:P,session_id:Z})})).json();if(await I(),l.length===0&&Z){const yr=P.length>25?P.substring(0,25)+"...":P;Ie(Z,yr)}_.current&&Tt.response&&C(Tt.response)}catch(He){console.error("Error sending message:",He)}finally{f(!1)}},Ve=[...l].reverse().find(w=>w.role==="tool");Ve&&Ve.name&&(Ve.name==="get_balance"||Ve.name==="transfer_native"||Ve.name==="get_price"||Ve.name==="swap_token")&&Ve.content;const Ic=w=>w.split(/(\*\*.*?\*\*)/g).map((P,Z)=>P.startsWith("**")&&P.endsWith("**")?s.jsx("strong",{style:{color:"#fff"},children:P.slice(2,-2)},Z):P);return s.jsxs(s.Fragment,{children:[s.jsxs("aside",{className:"sidebar",children:[s.jsxs("div",{className:"agent-identity-card",children:[s.jsx("div",{className:"agent-avatar",children:s.jsx(q0,{size:48})}),s.jsxs("div",{className:"agent-info",children:[s.jsx("div",{className:"agent-name",children:"Nyxora AI"}),s.jsxs("div",{className:"agent-status",children:[s.jsx("span",{className:"status-dot"})," ONLINE"]})]})]}),s.jsxs("div",{className:"sidebar-scroll-area",children:[s.jsxs("nav",{className:"sidebar-nav",style:{paddingTop:"16px"},children:[s.jsxs("div",{className:"nav-item",onClick:Kt,children:[s.jsx(a0,{size:15,className:"nav-icon"})," New Chat"]}),s.jsxs("div",{className:`nav-item ${e==="overview"?"active":""}`,onClick:()=>t("overview"),children:[s.jsx(Xp,{size:15,className:"nav-icon"})," Overview"]}),s.jsxs("div",{className:`nav-item ${e==="skills"?"active":""}`,onClick:()=>t("skills"),children:[s.jsx(Lc,{size:15,className:"nav-icon"})," Web3 Skills"]}),s.jsxs("div",{className:`nav-item ${e==="osskills"?"active":""}`,onClick:()=>t("osskills"),children:[s.jsx(Jo,{size:15,className:"nav-icon"})," OS Skills"]}),s.jsxs("div",{className:`nav-item ${e==="settings"?"active":""}`,onClick:()=>t("settings"),children:[s.jsx(k0,{size:15,className:"nav-icon"})," Settings"]})]}),s.jsx("div",{className:"sidebar-section",children:s.jsx("span",{children:"Recent"})}),s.jsx("nav",{className:"sidebar-nav sessions-list",children:o.map(w=>s.jsxs("div",{className:`nav-item session-item ${u===w.id&&e==="chat"?"active":""}`,onClick:()=>{c(w.id),t("chat")},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",overflow:"hidden",flex:1},children:[s.jsx(t0,{size:14,className:"nav-icon"}),s.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"0.85rem"},children:w.title})]}),s.jsxs("div",{style:{display:"flex",gap:"4px"},children:[s.jsx("button",{className:"delete-session-btn",onClick:P=>{P.stopPropagation(),y(w.id),h(w.title)},title:"Rename Session",children:s.jsx(o0,{size:12})}),s.jsx("button",{className:"delete-session-btn",onClick:P=>Cn(w.id,P),title:"Delete Session",children:s.jsx(T0,{size:14})})]})]},w.id))})]})]}),s.jsxs("main",{className:"main-content",children:[s.jsxs("header",{className:"topbar",children:[s.jsxs("div",{className:"topbar-left",children:[s.jsx("span",{children:"Nyxora"}),s.jsx("span",{style:{color:"#3b82f6"},children:"•"}),s.jsx("span",{style:{color:"#fff"},children:"Chat"})]}),s.jsx("div",{className:"topbar-right",children:A?s.jsxs(s.Fragment,{children:[s.jsx(G0,{value:A.agent.default_chain,onChange:w=>zt({...A,agent:{...A.agent,default_chain:w}})}),s.jsx(Y0,{value:A.agent.default_router||"auto",onChange:w=>zt({...A,agent:{...A.agent,default_router:w}})})]}):s.jsxs("span",{style:{color:"#f59e0b",fontSize:"0.85rem",display:"flex",alignItems:"center",gap:"6px"},children:[s.jsx("span",{className:"dot",style:{background:"#f59e0b",animation:"pulse 1s infinite"}})," Waiting for API Gateway..."]})})]}),e==="overview"?s.jsx(W0,{config:A}):e==="skills"?s.jsx(H0,{}):e==="osskills"?s.jsx(K0,{}):e==="settings"?s.jsx(B0,{config:A,onConfigChange:O}):s.jsx("div",{className:"workspace-container",children:s.jsxs("div",{className:"chat-wrapper",style:{width:"100%",margin:"0 auto",maxWidth:"1000px"},children:[s.jsxs("div",{className:"chat-container",children:[l.map((w,P)=>{const Z=()=>{navigator.clipboard.writeText(w.content),jn(P),setTimeout(()=>jn(null),2e3)};return w.role==="user"?s.jsxs("div",{className:"message-wrapper user",children:[s.jsx("div",{className:"message-bubble",children:w.content}),s.jsx("button",{className:"copy-btn",onClick:Z,title:"Copy message",children:ot===P?s.jsx(aa,{size:14,color:"#a3be8c"}):s.jsx(bi,{size:14})})]},P):w.role==="assistant"&&w.content?s.jsxs("div",{className:"message-wrapper agent",children:[s.jsx("div",{className:"message-bubble",children:Ic(w.content)}),s.jsx("button",{className:"copy-btn",onClick:Z,title:"Copy message",children:ot===P?s.jsx(aa,{size:14,color:"#a3be8c"}):s.jsx(bi,{size:14})})]},P):w.role==="assistant"&&w.tool_calls?s.jsx("div",{className:"message-wrapper agent",children:w.tool_calls.map((He,Tt)=>s.jsxs("div",{className:"tool-call",children:[s.jsx(Cc,{size:16,color:"#22c55e"}),"Executing: ",s.jsx("code",{children:He.function.name})]},Tt))},P):null}),L&&s.jsxs("div",{className:"typing-indicator",children:[s.jsx("div",{className:"dot"}),s.jsx("div",{className:"dot"}),s.jsx("div",{className:"dot"})]}),s.jsx("div",{ref:mr})]}),s.jsxs("div",{className:"input-area",children:[s.jsxs("form",{className:"input-form",onSubmit:Rc,children:[s.jsx("button",{type:"button",className:`voice-button ${d?"listening":""} ${E?"speaking":""} ${k&&!d&&!E?"active-mode":""}`,onClick:R,title:k?"Disable Voice Mode":"Enable Hands-Free Voice Mode",children:s.jsx(r0,{size:20})}),s.jsx("input",{type:"text",className:"chat-input",placeholder:"Message Nyxora Agent (Enter to send)...",value:v,onChange:w=>x(w.target.value),disabled:L}),s.jsx("button",{type:"submit",className:"send-button",disabled:L||!v.trim(),children:s.jsx(Ec,{size:20})})]}),s.jsxs("div",{className:"trending-tokens",children:[s.jsx("span",{children:"Trending Tokens:"}),n.map((w,P)=>s.jsx("span",{className:"token-tag",onClick:()=>x(`Tolong berikan analisis pasar terbaru untuk ${w}`),title:`Click to analyze ${w}`,style:{cursor:"pointer"},children:w},P))]})]})]})})]}),g&&s.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},children:s.jsxs("div",{style:{background:"#1e1e24",borderRadius:"16px",padding:"24px",width:"400px",boxShadow:"0 10px 25px rgba(0,0,0,0.5)",border:"1px solid rgba(255,255,255,0.1)"},children:[s.jsx("h3",{style:{margin:"0 0 16px 0",fontSize:"1.2rem",color:"#e2e8f0",fontWeight:500},children:"Rename this chat"}),s.jsx("input",{type:"text",value:m,onChange:w=>h(w.target.value),onKeyDown:w=>{w.key==="Enter"&&Ie(g,m),w.key==="Escape"&&y(null)},autoFocus:!0,style:{width:"100%",background:"transparent",color:"#fff",border:"1px solid #3f4451",borderRadius:"8px",padding:"14px 16px",fontSize:"0.95rem",outline:"none",boxSizing:"border-box"},onFocus:w=>w.target.style.borderColor="#88c0d0",onBlur:w=>w.target.style.borderColor="#3f4451"}),s.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"24px"},children:[s.jsx("button",{onClick:()=>y(null),style:{background:"transparent",border:"none",color:"#a0aec0",cursor:"pointer",padding:"10px 20px",borderRadius:"24px",fontWeight:500,fontSize:"0.9rem"},onMouseEnter:w=>w.currentTarget.style.background="rgba(255,255,255,0.05)",onMouseLeave:w=>w.currentTarget.style.background="transparent",children:"Cancel"}),s.jsx("button",{onClick:()=>Ie(g,m),style:{background:"#88c0d0",border:"none",color:"#13131a",cursor:"pointer",padding:"10px 20px",borderRadius:"24px",fontWeight:600,fontSize:"0.9rem"},onMouseEnter:w=>w.currentTarget.style.opacity="0.9",onMouseLeave:w=>w.currentTarget.style.opacity="1",children:"Rename"})]})]})})]})}Sc(document.getElementById("root")).render(s.jsx(T.StrictMode,{children:s.jsx(e1,{})}));